From 99b4a94299e8c432f408dfc46e3adf83d28dd20f Mon Sep 17 00:00:00 2001 From: SciLor Date: Wed, 25 Dec 2024 12:23:27 +0000 Subject: [PATCH] Update frontend (make web) --- .../{index-C8r4GW1E.js => index-BWOSK_Vl.js} | 266 +++---- contrib/data/www/web/esp32_tool.htm | 391 ---------- contrib/data/www/web/index.html | 2 +- contrib/data/www/web/revvox_flasher.js | 708 ------------------ contrib/data/www/web/translations/de.json | 10 + contrib/data/www/web/translations/en.json | 10 + contrib/data/www/web/translations/es.json | 10 + contrib/data/www/web/translations/fr.json | 10 + contrib/data/www/web/web_version.json | 6 +- teddycloud_web | 2 +- 10 files changed, 178 insertions(+), 1237 deletions(-) rename contrib/data/www/web/assets/{index-C8r4GW1E.js => index-BWOSK_Vl.js} (53%) delete mode 100644 contrib/data/www/web/esp32_tool.htm delete mode 100644 contrib/data/www/web/revvox_flasher.js diff --git a/contrib/data/www/web/assets/index-C8r4GW1E.js b/contrib/data/www/web/assets/index-BWOSK_Vl.js similarity index 53% rename from contrib/data/www/web/assets/index-C8r4GW1E.js rename to contrib/data/www/web/assets/index-BWOSK_Vl.js index e700527f..1b3476a9 100644 --- a/contrib/data/www/web/assets/index-C8r4GW1E.js +++ b/contrib/data/www/web/assets/index-BWOSK_Vl.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esp32-BPYaDt9v.js","assets/rom-Caghk6Eh.js","assets/esp32c2-CVPL8n1g.js","assets/esp32c3-I3vXmsVg.js","assets/esp32c6-C93uIFil.js","assets/esp32c61-Qo5S0GG2.js","assets/esp32c5-CAGCiNY4.js","assets/esp32h2-Cf8JbGZQ.js","assets/esp32s3-mu2zzjDN.js","assets/esp32s2-3nCAg6Ct.js","assets/esp8266-8VKmCx7J.js","assets/esp32p4-DfBdIAkh.js"])))=>i.map(i=>d[i]); -var lJ=Object.defineProperty;var cJ=(e,t,n)=>t in e?lJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var uJ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ja=(e,t,n)=>cJ(e,typeof t!="symbol"?t+"":t,n);var JGe=uJ((To,Ro)=>{function f$(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U7={exports:{}},p0={},V7={exports:{}},Sn={};/** +var lJ=Object.defineProperty;var cJ=(e,t,n)=>t in e?lJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var uJ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ja=(e,t,n)=>cJ(e,typeof t!="symbol"?t+"":t,n);var JGe=uJ((To,Ro)=>{function f$(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U7={exports:{}},m0={},V7={exports:{}},wn={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var lJ=Object.defineProperty;var cJ=(e,t,n)=>t in e?lJ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qg=Symbol.for("react.element"),dJ=Symbol.for("react.portal"),fJ=Symbol.for("react.fragment"),pJ=Symbol.for("react.strict_mode"),gJ=Symbol.for("react.profiler"),mJ=Symbol.for("react.provider"),hJ=Symbol.for("react.context"),vJ=Symbol.for("react.forward_ref"),bJ=Symbol.for("react.suspense"),yJ=Symbol.for("react.memo"),xJ=Symbol.for("react.lazy"),E3=Symbol.iterator;function SJ(e){return e===null||typeof e!="object"?null:(e=E3&&e[E3]||e["@@iterator"],typeof e=="function"?e:null)}var W7={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G7=Object.assign,q7={};function Qd(e,t,n){this.props=e,this.context=t,this.refs=q7,this.updater=n||W7}Qd.prototype.isReactComponent={};Qd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function K7(){}K7.prototype=Qd.prototype;function p$(e,t,n){this.props=e,this.context=t,this.refs=q7,this.updater=n||W7}var g$=p$.prototype=new K7;g$.constructor=p$;G7(g$,Qd.prototype);g$.isPureReactComponent=!0;var I3=Array.isArray,Y7=Object.prototype.hasOwnProperty,m$={current:null},X7={key:!0,ref:!0,__self:!0,__source:!0};function Z7(e,t,n){var r,a={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Y7.call(t,r)&&!X7.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1t in e?lJ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var TJ=l,RJ=Symbol.for("react.element"),_J=Symbol.for("react.fragment"),$J=Object.prototype.hasOwnProperty,OJ=TJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,NJ={key:!0,ref:!0,__self:!0,__source:!0};function J7(e,t,n){var r,a={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)$J.call(t,r)&&!NJ.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:RJ,type:e,key:o,ref:i,props:a,_owner:OJ.current}}p0.Fragment=_J;p0.jsx=J7;p0.jsxs=J7;U7.exports=p0;var f=U7.exports,ZI={},ez={exports:{}},No={},tz={exports:{}},nz={};/** + */var TJ=l,RJ=Symbol.for("react.element"),_J=Symbol.for("react.fragment"),$J=Object.prototype.hasOwnProperty,OJ=TJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,NJ={key:!0,ref:!0,__self:!0,__source:!0};function J7(e,t,n){var r,a={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)$J.call(t,r)&&!NJ.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:RJ,type:e,key:o,ref:i,props:a,_owner:OJ.current}}m0.Fragment=_J;m0.jsx=J7;m0.jsxs=J7;U7.exports=m0;var f=U7.exports,QI={},ez={exports:{}},No={},tz={exports:{}},nz={};/** * @license React * scheduler.production.min.js * @@ -23,7 +23,7 @@ var lJ=Object.defineProperty;var cJ=(e,t,n)=>t in e?lJ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(A,L){var j=A.length;A.push(L);e:for(;0>>1,B=A[F];if(0>>1;Fa(H,j))Ya(K,H)?(A[F]=K,A[Y]=j,F=Y):(A[F]=H,A[U]=j,F=U);else if(Ya(K,j))A[F]=K,A[Y]=j,F=Y;else break e}}return L}function a(A,L){var j=A.sortIndex-L.sortIndex;return j!==0?j:A.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,p=null,g=3,m=!1,h=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=A)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function C(A){if(b=!1,y(A),!h)if(n(c)!==null)h=!0,k(w);else{var L=n(u);L!==null&&N(C,L.startTime-A)}}function w(A,L){h=!1,b&&(b=!1,S(T),T=-1),m=!0;var j=g;try{for(y(L),p=n(c);p!==null&&(!(p.expirationTime>L)||A&&!$());){var F=p.callback;if(typeof F=="function"){p.callback=null,g=p.priorityLevel;var B=F(p.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?p.callback=B:p===n(c)&&r(c),y(L)}else r(c);p=n(c)}if(p!==null)var z=!0;else{var U=n(u);U!==null&&N(C,U.startTime-L),z=!1}return z}finally{p=null,g=j,m=!1}}var E=!1,I=null,T=-1,R=5,_=-1;function $(){return!(e.unstable_now()-_A||125F?(A.sortIndex=j,t(u,A),n(c)===null&&A===n(u)&&(b?(S(T),T=-1):b=!0,N(C,j-F))):(A.sortIndex=B,t(c,A),h||m||(h=!0,k(w))),A},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(A){var L=g;return function(){var j=g;g=L;try{return A.apply(this,arguments)}finally{g=j}}}})(nz);tz.exports=nz;var kJ=tz.exports;/** + */(function(e){function t(A,L){var j=A.length;A.push(L);e:for(;0>>1,B=A[F];if(0>>1;Fa(H,j))Ka(Y,H)?(A[F]=Y,A[K]=j,F=K):(A[F]=H,A[U]=j,F=U);else if(Ka(Y,j))A[F]=Y,A[K]=j,F=K;else break e}}return L}function a(A,L){var j=A.sortIndex-L.sortIndex;return j!==0?j:A.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,p=null,g=3,m=!1,h=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=A)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function w(A){if(b=!1,y(A),!h)if(n(c)!==null)h=!0,k(C);else{var L=n(u);L!==null&&N(w,L.startTime-A)}}function C(A,L){h=!1,b&&(b=!1,S(T),T=-1),m=!0;var j=g;try{for(y(L),p=n(c);p!==null&&(!(p.expirationTime>L)||A&&!$());){var F=p.callback;if(typeof F=="function"){p.callback=null,g=p.priorityLevel;var B=F(p.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?p.callback=B:p===n(c)&&r(c),y(L)}else r(c);p=n(c)}if(p!==null)var z=!0;else{var U=n(u);U!==null&&N(w,U.startTime-L),z=!1}return z}finally{p=null,g=j,m=!1}}var E=!1,I=null,T=-1,R=5,_=-1;function $(){return!(e.unstable_now()-_A||125F?(A.sortIndex=j,t(u,A),n(c)===null&&A===n(u)&&(b?(S(T),T=-1):b=!0,N(w,j-F))):(A.sortIndex=B,t(c,A),h||m||(h=!0,k(C))),A},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(A){var L=g;return function(){var j=g;g=L;try{return A.apply(this,arguments)}finally{g=j}}}})(nz);tz.exports=nz;var kJ=tz.exports;/** * @license React * react-dom.production.min.js * @@ -31,15 +31,15 @@ var lJ=Object.defineProperty;var cJ=(e,t,n)=>t in e?lJ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var AJ=l,$o=kJ;function vt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),QI=Object.prototype.hasOwnProperty,MJ=/^[: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]*$/,R3={},_3={};function DJ(e){return QI.call(_3,e)?!0:QI.call(R3,e)?!1:MJ.test(e)?_3[e]=!0:(R3[e]=!0,!1)}function PJ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LJ(e,t,n,r){if(t===null||typeof t>"u"||PJ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qa(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var wa={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wa[e]=new qa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wa[t]=new qa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wa[e]=new qa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wa[e]=new qa(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){wa[e]=new qa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wa[e]=new qa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wa[e]=new qa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wa[e]=new qa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wa[e]=new qa(e,5,!1,e.toLowerCase(),null,!1,!1)});var v$=/[\-:]([a-z])/g;function b$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v$,b$);wa[t]=new qa(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v$,b$);wa[t]=new qa(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v$,b$);wa[t]=new qa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wa[e]=new qa(e,1,!1,e.toLowerCase(),null,!1,!1)});wa.xlinkHref=new qa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wa[e]=new qa(e,1,!1,e.toLowerCase(),null,!0,!0)});function y$(e,t,n,r){var a=wa.hasOwnProperty(t)?wa[t]:null;(a!==null?a.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),JI=Object.prototype.hasOwnProperty,MJ=/^[: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]*$/,R3={},_3={};function DJ(e){return JI.call(_3,e)?!0:JI.call(R3,e)?!1:MJ.test(e)?_3[e]=!0:(R3[e]=!0,!1)}function PJ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LJ(e,t,n,r){if(t===null||typeof t>"u"||PJ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qa(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ea={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ea[e]=new qa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ea[t]=new qa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ea[e]=new qa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ea[e]=new qa(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ea[e]=new qa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ea[e]=new qa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ea[e]=new qa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ea[e]=new qa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ea[e]=new qa(e,5,!1,e.toLowerCase(),null,!1,!1)});var v$=/[\-:]([a-z])/g;function b$(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v$,b$);Ea[t]=new qa(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v$,b$);Ea[t]=new qa(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v$,b$);Ea[t]=new qa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ea[e]=new qa(e,1,!1,e.toLowerCase(),null,!1,!1)});Ea.xlinkHref=new qa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ea[e]=new qa(e,1,!1,e.toLowerCase(),null,!0,!0)});function y$(e,t,n,r){var a=Ea.hasOwnProperty(t)?Ea[t]:null;(a!==null?a.type!==0:r||!(2s||a[i]!==o[s]){var c=` -`+a[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{Ix=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?op(e):""}function jJ(e){switch(e.tag){case 5:return op(e.type);case 16:return op("Lazy");case 13:return op("Suspense");case 19:return op("SuspenseList");case 0:case 2:case 15:return e=Tx(e.type,!1),e;case 11:return e=Tx(e.type.render,!1),e;case 1:return e=Tx(e.type,!0),e;default:return""}}function nT(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bu:return"Fragment";case Fu:return"Portal";case JI:return"Profiler";case x$:return"StrictMode";case eT:return"Suspense";case tT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oz:return(e.displayName||"Context")+".Consumer";case az:return(e._context.displayName||"Context")+".Provider";case S$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case C$:return t=e.displayName||null,t!==null?t:nT(e.type)||"Memo";case Js:t=e._payload,e=e._init;try{return nT(e(t))}catch{}}return null}function FJ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nT(t);case 8:return t===x$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ol(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function BJ(e){var t=sz(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eh(e){e._valueTracker||(e._valueTracker=BJ(e))}function lz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rT(e,t){var n=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function O3(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ol(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cz(e,t){t=t.checked,t!=null&&y$(e,"checked",t,!1)}function aT(e,t){cz(e,t);var n=Ol(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oT(e,t.type,n):t.hasOwnProperty("defaultValue")&&oT(e,t.type,Ol(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function N3(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oT(e,t,n){(t!=="number"||Xv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ip=Array.isArray;function id(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=th.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zJ=["Webkit","ms","Moz","O"];Object.keys(Sp).forEach(function(e){zJ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sp[t]=Sp[e]})});function pz(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sp.hasOwnProperty(e)&&Sp[e]?(""+t).trim():t+"px"}function gz(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=pz(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var HJ=Rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lT(e,t){if(t){if(HJ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(vt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(vt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(vt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(vt(62))}}function cT(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uT=null;function w$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dT=null,sd=null,ld=null;function M3(e){if(e=nm(e)){if(typeof dT!="function")throw Error(vt(280));var t=e.stateNode;t&&(t=b0(t),dT(e.stateNode,e.type,t))}}function mz(e){sd?ld?ld.push(e):ld=[e]:sd=e}function hz(){if(sd){var e=sd,t=ld;if(ld=sd=null,M3(e),t)for(e=0;e>>=0,e===0?32:31-(JJ(e)/eee|0)|0}var nh=64,rh=4194304;function sp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function eb(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~a;s!==0?r=sp(s):(o&=i,o!==0&&(r=sp(o)))}else i=n&~a,i!==0?r=sp(i):o!==0&&(r=sp(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function em(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xi(t),e[t]=n}function aee(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=wp),U3=" ",V3=!1;function Pz(e,t){switch(e){case"keyup":return kee.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lz(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zu=!1;function Mee(e,t){switch(e){case"compositionend":return Lz(t);case"keypress":return t.which!==32?null:(V3=!0,U3);case"textInput":return e=t.data,e===U3&&V3?null:e;default:return null}}function Dee(e,t){if(zu)return e==="compositionend"||!N$&&Pz(e,t)?(e=Mz(),gv=_$=il=null,zu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=K3(n)}}function zz(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zz(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hz(){for(var e=window,t=Xv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xv(e.document)}return t}function k$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vee(e){var t=Hz(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zz(n.ownerDocument.documentElement,n)){if(r!==null&&k$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=r.end===void 0?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=Y3(n,o);var i=Y3(n,r);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hu=null,vT=null,Ip=null,bT=!1;function X3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bT||Hu==null||Hu!==Xv(r)||(r=Hu,"selectionStart"in r&&k$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ip&&ag(Ip,r)||(Ip=r,r=rb(vT,"onSelect"),0Wu||(e.current=ET[Wu],ET[Wu]=null,Wu--)}function lr(e,t){Wu++,ET[Wu]=e.current,e.current=t}var Nl={},Ma=jl(Nl),ro=jl(!1),$c=Nl;function xd(e,t){var n=e.type.contextTypes;if(!n)return Nl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ao(e){return e=e.childContextTypes,e!=null}function ob(){vr(ro),vr(Ma)}function rA(e,t,n){if(Ma.current!==Nl)throw Error(vt(168));lr(Ma,t),lr(ro,n)}function Zz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(vt(108,FJ(e)||"Unknown",a));return Rr({},n,r)}function ib(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nl,$c=Ma.current,lr(Ma,e),lr(ro,ro.current),!0}function aA(e,t,n){var r=e.stateNode;if(!r)throw Error(vt(169));n?(e=Zz(e,t,$c),r.__reactInternalMemoizedMergedChildContext=e,vr(ro),vr(Ma),lr(Ma,e)):vr(ro),lr(ro,n)}var ds=null,y0=!1,Bx=!1;function Qz(e){ds===null?ds=[e]:ds.push(e)}function nte(e){y0=!0,Qz(e)}function Fl(){if(!Bx&&ds!==null){Bx=!0;var e=0,t=qn;try{var n=ds;for(qn=1;e>=i,a-=i,ms=1<<32-xi(t)+a|n<T?(R=I,I=null):R=I.sibling;var _=g(S,I,y[T],C);if(_===null){I===null&&(I=R);break}e&&I&&_.alternate===null&&t(S,I),v=o(_,v,T),E===null?w=_:E.sibling=_,E=_,I=R}if(T===y.length)return n(S,I),xr&&ac(S,T),w;if(I===null){for(;TT?(R=I,I=null):R=I.sibling;var $=g(S,I,_.value,C);if($===null){I===null&&(I=R);break}e&&I&&$.alternate===null&&t(S,I),v=o($,v,T),E===null?w=$:E.sibling=$,E=$,I=R}if(_.done)return n(S,I),xr&&ac(S,T),w;if(I===null){for(;!_.done;T++,_=y.next())_=p(S,_.value,C),_!==null&&(v=o(_,v,T),E===null?w=_:E.sibling=_,E=_);return xr&&ac(S,T),w}for(I=r(S,I);!_.done;T++,_=y.next())_=m(I,S,T,_.value,C),_!==null&&(e&&_.alternate!==null&&I.delete(_.key===null?T:_.key),v=o(_,v,T),E===null?w=_:E.sibling=_,E=_);return e&&I.forEach(function(M){return t(S,M)}),xr&&ac(S,T),w}function x(S,v,y,C){if(typeof y=="object"&&y!==null&&y.type===Bu&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Jm:e:{for(var w=y.key,E=v;E!==null;){if(E.key===w){if(w=y.type,w===Bu){if(E.tag===7){n(S,E.sibling),v=a(E,y.props.children),v.return=S,S=v;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Js&&sA(w)===E.type){n(S,E.sibling),v=a(E,y.props),v.ref=jf(S,E,y),v.return=S,S=v;break e}n(S,E);break}else t(S,E);E=E.sibling}y.type===Bu?(v=xc(y.props.children,S.mode,C,y.key),v.return=S,S=v):(C=Cv(y.type,y.key,y.props,null,S.mode,C),C.ref=jf(S,v,y),C.return=S,S=C)}return i(S);case Fu:e:{for(E=y.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(S,v.sibling),v=a(v,y.children||[]),v.return=S,S=v;break e}else{n(S,v);break}else t(S,v);v=v.sibling}v=Kx(y,S.mode,C),v.return=S,S=v}return i(S);case Js:return E=y._init,x(S,v,E(y._payload),C)}if(ip(y))return h(S,v,y,C);if(Af(y))return b(S,v,y,C);uh(S,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(S,v.sibling),v=a(v,y),v.return=S,S=v):(n(S,v),v=qx(y,S.mode,C),v.return=S,S=v),i(S)):n(S,v)}return x}var Cd=n9(!0),r9=n9(!1),cb=jl(null),ub=null,Ku=null,P$=null;function L$(){P$=Ku=ub=null}function j$(e){var t=cb.current;vr(cb),e._currentValue=t}function RT(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ud(e,t){ub=e,P$=Ku=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(eo=!0),e.firstContext=null)}function Zo(e){var t=e._currentValue;if(P$!==e)if(e={context:e,memoizedValue:t,next:null},Ku===null){if(ub===null)throw Error(vt(308));Ku=e,ub.dependencies={lanes:0,firstContext:e}}else Ku=Ku.next=e;return t}var cc=null;function F$(e){cc===null?cc=[e]:cc.push(e)}function a9(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,F$(t)):(n.next=a.next,a.next=n),t.interleaved=n,Es(e,r)}function Es(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var el=!1;function B$(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function o9(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,kn&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Es(e,n)}return a=r.interleaved,a===null?(t.next=t,F$(r)):(t.next=a.next,a.next=t),r.interleaved=t,Es(e,n)}function hv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I$(e,n)}}function lA(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function db(e,t,n,r){var a=e.updateQueue;el=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(o!==null){var p=a.baseState;i=0,d=u=c=null,s=o;do{var g=s.lane,m=s.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,b=s;switch(g=t,m=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){p=h.call(m,p,g);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,g=typeof h=="function"?h.call(m,p,g):h,g==null)break e;p=Rr({},p,g);break e;case 2:el=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=a.effects,g===null?a.effects=[s]:g.push(s))}else m={eventTime:m,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=m,c=p):d=d.next=m,i|=g;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;g=s,s=g.next,g.next=null,a.lastBaseUpdate=g,a.shared.pending=null}}while(!0);if(d===null&&(c=p),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);kc|=i,e.lanes=i,e.memoizedState=p}}function cA(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Hx.transition;Hx.transition={};try{e(!1),t()}finally{qn=n,Hx.transition=r}}function C9(){return Qo().memoizedState}function ite(e,t,n){var r=Cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},w9(e))E9(t,n);else if(n=a9(e,t,n,r),n!==null){var a=Va();Si(n,e,r,a),I9(n,t,r)}}function ste(e,t,n){var r=Cl(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(w9(e))E9(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,Ti(s,i)){var c=t.interleaved;c===null?(a.next=a,F$(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=a9(e,t,a,r),n!==null&&(a=Va(),Si(n,e,r,a),I9(n,t,r))}}function w9(e){var t=e.alternate;return e===Tr||t!==null&&t===Tr}function E9(e,t){Tp=pb=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function I9(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I$(e,n)}}var gb={readContext:Zo,useCallback:Ta,useContext:Ta,useEffect:Ta,useImperativeHandle:Ta,useInsertionEffect:Ta,useLayoutEffect:Ta,useMemo:Ta,useReducer:Ta,useRef:Ta,useState:Ta,useDebugValue:Ta,useDeferredValue:Ta,useTransition:Ta,useMutableSource:Ta,useSyncExternalStore:Ta,useId:Ta,unstable_isNewReconciler:!1},lte={readContext:Zo,useCallback:function(e,t){return Bi().memoizedState=[e,t===void 0?null:t],e},useContext:Zo,useEffect:dA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bv(4194308,4,v9.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bv(4194308,4,e,t)},useInsertionEffect:function(e,t){return bv(4,2,e,t)},useMemo:function(e,t){var n=Bi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ite.bind(null,Tr,e),[r.memoizedState,e]},useRef:function(e){var t=Bi();return e={current:e},t.memoizedState=e},useState:uA,useDebugValue:K$,useDeferredValue:function(e){return Bi().memoizedState=e},useTransition:function(){var e=uA(!1),t=e[0];return e=ote.bind(null,e[1]),Bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Tr,a=Bi();if(xr){if(n===void 0)throw Error(vt(407));n=n()}else{if(n=t(),ua===null)throw Error(vt(349));Nc&30||c9(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,dA(d9.bind(null,r,o,e),[e]),r.flags|=2048,fg(9,u9.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Bi(),t=ua.identifierPrefix;if(xr){var n=hs,r=ms;n=(r&~(1<<32-xi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ug++,0")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{Rx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?op(e):""}function jJ(e){switch(e.tag){case 5:return op(e.type);case 16:return op("Lazy");case 13:return op("Suspense");case 19:return op("SuspenseList");case 0:case 2:case 15:return e=_x(e.type,!1),e;case 11:return e=_x(e.type.render,!1),e;case 1:return e=_x(e.type,!0),e;default:return""}}function rT(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bu:return"Fragment";case Fu:return"Portal";case eT:return"Profiler";case x$:return"StrictMode";case tT:return"Suspense";case nT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oz:return(e.displayName||"Context")+".Consumer";case az:return(e._context.displayName||"Context")+".Provider";case S$:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case w$:return t=e.displayName||null,t!==null?t:rT(e.type)||"Memo";case el:t=e._payload,e=e._init;try{return rT(e(t))}catch{}}return null}function FJ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rT(t);case 8:return t===x$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ol(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function BJ(e){var t=sz(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function th(e){e._valueTracker||(e._valueTracker=BJ(e))}function lz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function aT(e,t){var n=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function O3(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ol(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cz(e,t){t=t.checked,t!=null&&y$(e,"checked",t,!1)}function oT(e,t){cz(e,t);var n=Ol(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?iT(e,t.type,n):t.hasOwnProperty("defaultValue")&&iT(e,t.type,Ol(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function N3(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function iT(e,t,n){(t!=="number"||Zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ip=Array.isArray;function id(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zJ=["Webkit","ms","Moz","O"];Object.keys(wp).forEach(function(e){zJ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wp[t]=wp[e]})});function pz(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wp.hasOwnProperty(e)&&wp[e]?(""+t).trim():t+"px"}function gz(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=pz(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var HJ=Rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cT(e,t){if(t){if(HJ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(vt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(vt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(vt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(vt(62))}}function uT(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dT=null;function C$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fT=null,sd=null,ld=null;function M3(e){if(e=rm(e)){if(typeof fT!="function")throw Error(vt(280));var t=e.stateNode;t&&(t=x0(t),fT(e.stateNode,e.type,t))}}function mz(e){sd?ld?ld.push(e):ld=[e]:sd=e}function hz(){if(sd){var e=sd,t=ld;if(ld=sd=null,M3(e),t)for(e=0;e>>=0,e===0?32:31-(JJ(e)/eee|0)|0}var rh=64,ah=4194304;function sp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tb(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~a;s!==0?r=sp(s):(o&=i,o!==0&&(r=sp(o)))}else i=n&~a,i!==0?r=sp(i):o!==0&&(r=sp(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Si(t),e[t]=n}function aee(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ep),U3=" ",V3=!1;function Pz(e,t){switch(e){case"keyup":return kee.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lz(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zu=!1;function Mee(e,t){switch(e){case"compositionend":return Lz(t);case"keypress":return t.which!==32?null:(V3=!0,U3);case"textInput":return e=t.data,e===U3&&V3?null:e;default:return null}}function Dee(e,t){if(zu)return e==="compositionend"||!N$&&Pz(e,t)?(e=Mz(),hv=_$=sl=null,zu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=K3(n)}}function zz(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zz(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hz(){for(var e=window,t=Zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zv(e.document)}return t}function k$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vee(e){var t=Hz(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zz(n.ownerDocument.documentElement,n)){if(r!==null&&k$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=r.end===void 0?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=Y3(n,o);var i=Y3(n,r);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hu=null,bT=null,Tp=null,yT=!1;function X3(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yT||Hu==null||Hu!==Zv(r)||(r=Hu,"selectionStart"in r&&k$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tp&&og(Tp,r)||(Tp=r,r=ab(bT,"onSelect"),0Wu||(e.current=IT[Wu],IT[Wu]=null,Wu--)}function lr(e,t){Wu++,IT[Wu]=e.current,e.current=t}var Nl={},Ma=jl(Nl),ro=jl(!1),$c=Nl;function xd(e,t){var n=e.type.contextTypes;if(!n)return Nl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ao(e){return e=e.childContextTypes,e!=null}function ib(){vr(ro),vr(Ma)}function rA(e,t,n){if(Ma.current!==Nl)throw Error(vt(168));lr(Ma,t),lr(ro,n)}function Zz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(vt(108,FJ(e)||"Unknown",a));return Rr({},n,r)}function sb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nl,$c=Ma.current,lr(Ma,e),lr(ro,ro.current),!0}function aA(e,t,n){var r=e.stateNode;if(!r)throw Error(vt(169));n?(e=Zz(e,t,$c),r.__reactInternalMemoizedMergedChildContext=e,vr(ro),vr(Ma),lr(Ma,e)):vr(ro),lr(ro,n)}var ps=null,S0=!1,Hx=!1;function Qz(e){ps===null?ps=[e]:ps.push(e)}function nte(e){S0=!0,Qz(e)}function Fl(){if(!Hx&&ps!==null){Hx=!0;var e=0,t=qn;try{var n=ps;for(qn=1;e>=i,a-=i,vs=1<<32-Si(t)+a|n<T?(R=I,I=null):R=I.sibling;var _=g(S,I,y[T],w);if(_===null){I===null&&(I=R);break}e&&I&&_.alternate===null&&t(S,I),v=o(_,v,T),E===null?C=_:E.sibling=_,E=_,I=R}if(T===y.length)return n(S,I),xr&&ac(S,T),C;if(I===null){for(;TT?(R=I,I=null):R=I.sibling;var $=g(S,I,_.value,w);if($===null){I===null&&(I=R);break}e&&I&&$.alternate===null&&t(S,I),v=o($,v,T),E===null?C=$:E.sibling=$,E=$,I=R}if(_.done)return n(S,I),xr&&ac(S,T),C;if(I===null){for(;!_.done;T++,_=y.next())_=p(S,_.value,w),_!==null&&(v=o(_,v,T),E===null?C=_:E.sibling=_,E=_);return xr&&ac(S,T),C}for(I=r(S,I);!_.done;T++,_=y.next())_=m(I,S,T,_.value,w),_!==null&&(e&&_.alternate!==null&&I.delete(_.key===null?T:_.key),v=o(_,v,T),E===null?C=_:E.sibling=_,E=_);return e&&I.forEach(function(M){return t(S,M)}),xr&&ac(S,T),C}function x(S,v,y,w){if(typeof y=="object"&&y!==null&&y.type===Bu&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case eh:e:{for(var C=y.key,E=v;E!==null;){if(E.key===C){if(C=y.type,C===Bu){if(E.tag===7){n(S,E.sibling),v=a(E,y.props.children),v.return=S,S=v;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===el&&sA(C)===E.type){n(S,E.sibling),v=a(E,y.props),v.ref=jf(S,E,y),v.return=S,S=v;break e}n(S,E);break}else t(S,E);E=E.sibling}y.type===Bu?(v=xc(y.props.children,S.mode,w,y.key),v.return=S,S=v):(w=Ev(y.type,y.key,y.props,null,S.mode,w),w.ref=jf(S,v,y),w.return=S,S=w)}return i(S);case Fu:e:{for(E=y.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(S,v.sibling),v=a(v,y.children||[]),v.return=S,S=v;break e}else{n(S,v);break}else t(S,v);v=v.sibling}v=Xx(y,S.mode,w),v.return=S,S=v}return i(S);case el:return E=y._init,x(S,v,E(y._payload),w)}if(ip(y))return h(S,v,y,w);if(Af(y))return b(S,v,y,w);dh(S,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(S,v.sibling),v=a(v,y),v.return=S,S=v):(n(S,v),v=Yx(y,S.mode,w),v.return=S,S=v),i(S)):n(S,v)}return x}var wd=n9(!0),r9=n9(!1),ub=jl(null),db=null,Ku=null,P$=null;function L$(){P$=Ku=db=null}function j$(e){var t=ub.current;vr(ub),e._currentValue=t}function _T(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ud(e,t){db=e,P$=Ku=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(eo=!0),e.firstContext=null)}function Qo(e){var t=e._currentValue;if(P$!==e)if(e={context:e,memoizedValue:t,next:null},Ku===null){if(db===null)throw Error(vt(308));Ku=e,db.dependencies={lanes:0,firstContext:e}}else Ku=Ku.next=e;return t}var cc=null;function F$(e){cc===null?cc=[e]:cc.push(e)}function a9(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,F$(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ts(e,r)}function Ts(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tl=!1;function B$(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function o9(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ys(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,kn&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Ts(e,n)}return a=r.interleaved,a===null?(t.next=t,F$(r)):(t.next=a.next,a.next=t),r.interleaved=t,Ts(e,n)}function bv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I$(e,n)}}function lA(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fb(e,t,n,r){var a=e.updateQueue;tl=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(o!==null){var p=a.baseState;i=0,d=u=c=null,s=o;do{var g=s.lane,m=s.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,b=s;switch(g=t,m=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){p=h.call(m,p,g);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,g=typeof h=="function"?h.call(m,p,g):h,g==null)break e;p=Rr({},p,g);break e;case 2:tl=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=a.effects,g===null?a.effects=[s]:g.push(s))}else m={eventTime:m,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=m,c=p):d=d.next=m,i|=g;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;g=s,s=g.next,g.next=null,a.lastBaseUpdate=g,a.shared.pending=null}}while(!0);if(d===null&&(c=p),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);kc|=i,e.lanes=i,e.memoizedState=p}}function cA(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Vx.transition;Vx.transition={};try{e(!1),t()}finally{qn=n,Vx.transition=r}}function w9(){return Jo().memoizedState}function ite(e,t,n){var r=wl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},C9(e))E9(t,n);else if(n=a9(e,t,n,r),n!==null){var a=Va();wi(n,e,r,a),I9(n,t,r)}}function ste(e,t,n){var r=wl(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(C9(e))E9(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,Ri(s,i)){var c=t.interleaved;c===null?(a.next=a,F$(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=a9(e,t,a,r),n!==null&&(a=Va(),wi(n,e,r,a),I9(n,t,r))}}function C9(e){var t=e.alternate;return e===Tr||t!==null&&t===Tr}function E9(e,t){Rp=gb=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function I9(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I$(e,n)}}var mb={readContext:Qo,useCallback:Ra,useContext:Ra,useEffect:Ra,useImperativeHandle:Ra,useInsertionEffect:Ra,useLayoutEffect:Ra,useMemo:Ra,useReducer:Ra,useRef:Ra,useState:Ra,useDebugValue:Ra,useDeferredValue:Ra,useTransition:Ra,useMutableSource:Ra,useSyncExternalStore:Ra,useId:Ra,unstable_isNewReconciler:!1},lte={readContext:Qo,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:Qo,useEffect:dA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xv(4194308,4,v9.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xv(4194308,4,e,t)},useInsertionEffect:function(e,t){return xv(4,2,e,t)},useMemo:function(e,t){var n=zi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ite.bind(null,Tr,e),[r.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:uA,useDebugValue:K$,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=uA(!1),t=e[0];return e=ote.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Tr,a=zi();if(xr){if(n===void 0)throw Error(vt(407));n=n()}else{if(n=t(),da===null)throw Error(vt(349));Nc&30||c9(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,dA(d9.bind(null,r,o,e),[e]),r.flags|=2048,pg(9,u9.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=zi(),t=da.identifierPrefix;if(xr){var n=bs,r=vs;n=(r&~(1<<32-Si(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=dg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ui]=t,e[sg]=r,D9(e,t,!1,!1),t.stateNode=e;e:{switch(i=cT(n,r),n){case"dialog":gr("cancel",e),gr("close",e),a=r;break;case"iframe":case"object":case"embed":gr("load",e),a=r;break;case"video":case"audio":for(a=0;aId&&(t.flags|=128,r=!0,Ff(o,!1),t.lanes=4194304)}else{if(!r)if(e=fb(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ff(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!xr)return Ra(t),null}else 2*Pr()-o.renderingStartTime>Id&&n!==1073741824&&(t.flags|=128,r=!0,Ff(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Pr(),t.sibling=null,n=Ir.current,lr(Ir,r?n&1|2:n&1),t):(Ra(t),null);case 22:case 23:return eO(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bo&1073741824&&(Ra(t),t.subtreeFlags&6&&(t.flags|=8192)):Ra(t),null;case 24:return null;case 25:return null}throw Error(vt(156,t.tag))}function hte(e,t){switch(M$(t),t.tag){case 1:return ao(t.type)&&ob(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wd(),vr(ro),vr(Ma),U$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return H$(t),null;case 13:if(vr(Ir),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(vt(340));Sd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vr(Ir),null;case 4:return wd(),null;case 10:return j$(t.type._context),null;case 22:case 23:return eO(),null;case 24:return null;default:return null}}var fh=!1,Na=!1,vte=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function Yu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Nr(e,t,r)}else n.current=null}function PT(e,t,n){try{n()}catch(r){Nr(e,t,r)}}var CA=!1;function bte(e,t){if(yT=tb,e=Hz(),k$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var m;p!==n||a!==0&&p.nodeType!==3||(s=i+a),p!==o||r!==0&&p.nodeType!==3||(c=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(m=p.firstChild)!==null;)g=p,p=m;for(;;){if(p===e)break t;if(g===n&&++u===a&&(s=i),g===o&&++d===r&&(c=i),(m=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=m}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(xT={focusedElem:e,selectionRange:n},tb=!1,Lt=t;Lt!==null;)if(t=Lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Lt=e;else for(;Lt!==null;){t=Lt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,x=h.memoizedState,S=t.stateNode,v=S.getSnapshotBeforeUpdate(t.elementType===t.type?b:pi(t.type,b),x);S.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(vt(163))}}catch(C){Nr(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Lt=e;break}Lt=t.return}return h=CA,CA=!1,h}function Rp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&PT(t,n,o)}a=a.next}while(a!==r)}}function C0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function LT(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function j9(e){var t=e.alternate;t!==null&&(e.alternate=null,j9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[sg],delete t[wT],delete t[ete],delete t[tte])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function F9(e){return e.tag===5||e.tag===3||e.tag===4}function wA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F9(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ab));else if(r!==4&&(e=e.child,e!==null))for(jT(e,t,n),e=e.sibling;e!==null;)jT(e,t,n),e=e.sibling}function FT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(FT(e,t,n),e=e.sibling;e!==null;)FT(e,t,n),e=e.sibling}var va=null,gi=!1;function Hs(e,t,n){for(n=n.child;n!==null;)B9(e,t,n),n=n.sibling}function B9(e,t,n){if(qi&&typeof qi.onCommitFiberUnmount=="function")try{qi.onCommitFiberUnmount(g0,n)}catch{}switch(n.tag){case 5:Na||Yu(n,t);case 6:var r=va,a=gi;va=null,Hs(e,t,n),va=r,gi=a,va!==null&&(gi?(e=va,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):va.removeChild(n.stateNode));break;case 18:va!==null&&(gi?(e=va,n=n.stateNode,e.nodeType===8?Fx(e.parentNode,n):e.nodeType===1&&Fx(e,n),ng(e)):Fx(va,n.stateNode));break;case 4:r=va,a=gi,va=n.stateNode.containerInfo,gi=!0,Hs(e,t,n),va=r,gi=a;break;case 0:case 11:case 14:case 15:if(!Na&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&PT(n,t,i),a=a.next}while(a!==r)}Hs(e,t,n);break;case 1:if(!Na&&(Yu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nr(n,t,s)}Hs(e,t,n);break;case 21:Hs(e,t,n);break;case 22:n.mode&1?(Na=(r=Na)||n.memoizedState!==null,Hs(e,t,n),Na=r):Hs(e,t,n);break;default:Hs(e,t,n)}}function EA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vte),t.forEach(function(r){var a=Rte.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function li(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=i),r&=~o}if(r=a,r=Pr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xte(r/1960))-r,10e?16:e,sl===null)var r=!1;else{if(e=sl,sl=null,vb=0,kn&6)throw Error(vt(331));var a=kn;for(kn|=4,Lt=e.current;Lt!==null;){var o=Lt,i=o.child;if(Lt.flags&16){var s=o.deletions;if(s!==null){for(var c=0;cPr()-Q$?yc(e,0):Z$|=n),oo(e,t)}function K9(e,t){t===0&&(e.mode&1?(t=rh,rh<<=1,!(rh&130023424)&&(rh=4194304)):t=1);var n=Va();e=Es(e,t),e!==null&&(em(e,t,n),oo(e,n))}function Tte(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K9(e,n)}function Rte(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(vt(314))}r!==null&&r.delete(t),K9(e,n)}var Y9;Y9=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ro.current)eo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return eo=!1,gte(e,t,n);eo=!!(e.flags&131072)}else eo=!1,xr&&t.flags&1048576&&Jz(t,lb,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yv(e,t),e=t.pendingProps;var a=xd(t,Ma.current);ud(t,n),a=W$(null,t,r,e,a,n);var o=G$();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ao(r)?(o=!0,ib(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,B$(t),a.updater=S0,t.stateNode=a,a._reactInternals=t,$T(t,r,e,n),t=kT(null,t,r,!0,o,n)):(t.tag=0,xr&&o&&A$(t),za(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yv(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=$te(r),e=pi(r,e),a){case 0:t=NT(null,t,r,e,n);break e;case 1:t=yA(null,t,r,e,n);break e;case 11:t=vA(null,t,r,e,n);break e;case 14:t=bA(null,t,r,pi(r.type,e),n);break e}throw Error(vt(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),NT(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),yA(e,t,r,a,n);case 3:e:{if(k9(t),e===null)throw Error(vt(387));r=t.pendingProps,o=t.memoizedState,a=o.element,o9(e,t),db(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ed(Error(vt(423)),t),t=xA(e,t,r,n,a);break e}else if(r!==a){a=Ed(Error(vt(424)),t),t=xA(e,t,r,n,a);break e}else for(yo=yl(t.stateNode.containerInfo.firstChild),_o=t,xr=!0,bi=null,n=r9(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sd(),r===a){t=Is(e,t,n);break e}za(e,t,r,n)}t=t.child}return t;case 5:return i9(t),e===null&&TT(t),r=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,ST(r,a)?i=null:o!==null&&ST(r,o)&&(t.flags|=32),N9(e,t),za(e,t,i,n),t.child;case 6:return e===null&&TT(t),null;case 13:return A9(e,t,n);case 4:return z$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cd(t,null,r,n):za(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),vA(e,t,r,a,n);case 7:return za(e,t,t.pendingProps,n),t.child;case 8:return za(e,t,t.pendingProps.children,n),t.child;case 12:return za(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,lr(cb,r._currentValue),r._currentValue=i,o!==null)if(Ti(o.value,i)){if(o.children===a.children&&!ro.current){t=Is(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=vs(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),RT(o.return,n,t),s.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(vt(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),RT(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}za(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ud(t,n),a=Zo(a),r=r(a),t.flags|=1,za(e,t,r,n),t.child;case 14:return r=t.type,a=pi(r,t.pendingProps),a=pi(r.type,a),bA(e,t,r,a,n);case 15:return $9(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),yv(e,t),t.tag=1,ao(r)?(e=!0,ib(t)):e=!1,ud(t,n),T9(t,r,a),$T(t,r,a,n),kT(null,t,r,!0,e,n);case 19:return M9(e,t,n);case 22:return O9(e,t,n)}throw Error(vt(156,t.tag))};function X9(e,t){return wz(e,t)}function _te(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yo(e,t,n,r){return new _te(e,t,n,r)}function nO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $te(e){if(typeof e=="function")return nO(e)?1:0;if(e!=null){if(e=e.$$typeof,e===S$)return 11;if(e===C$)return 14}return 2}function wl(e,t){var n=e.alternate;return n===null?(n=Yo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cv(e,t,n,r,a,o){var i=2;if(r=e,typeof e=="function")nO(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Bu:return xc(n.children,a,o,t);case x$:i=8,a|=8;break;case JI:return e=Yo(12,n,t,a|2),e.elementType=JI,e.lanes=o,e;case eT:return e=Yo(13,n,t,a),e.elementType=eT,e.lanes=o,e;case tT:return e=Yo(19,n,t,a),e.elementType=tT,e.lanes=o,e;case iz:return E0(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case az:i=10;break e;case oz:i=9;break e;case S$:i=11;break e;case C$:i=14;break e;case Js:i=16,r=null;break e}throw Error(vt(130,e==null?e:typeof e,""))}return t=Yo(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function xc(e,t,n,r){return e=Yo(7,e,r,t),e.lanes=n,e}function E0(e,t,n,r){return e=Yo(22,e,r,t),e.elementType=iz,e.lanes=n,e.stateNode={isHidden:!1},e}function qx(e,t,n){return e=Yo(6,e,null,t),e.lanes=n,e}function Kx(e,t,n){return t=Yo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ote(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_x(0),this.expirationTimes=_x(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_x(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function rO(e,t,n,r,a,o,i,s,c){return e=new Ote(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Yo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},B$(o),e}function Nte(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eH)}catch(e){console.error(e)}}eH(),ez.exports=No;var Kr=ez.exports;const gg=Wa(Kr),Pte=f$({__proto__:null,default:gg},[Kr]);var kA=Kr;ZI.createRoot=kA.createRoot,ZI.hydrateRoot=kA.hydrateRoot;const Lte=(...e)=>{console!=null&&console.warn&&(Sc(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},AA={},VT=(...e)=>{Sc(e[0])&&AA[e[0]]||(Sc(e[0])&&(AA[e[0]]=new Date),Lte(...e))},tH=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},MA=(e,t,n)=>{e.loadNamespaces(t,tH(e,n))},DA=(e,t,n,r)=>{Sc(n)&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,tH(e,r))},jte=(e,t,n={})=>!t.languages||!t.languages.length?(VT("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),Sc=e=>typeof e=="string",Fte=e=>typeof e=="object"&&e!==null,Bte=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zte={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Hte=e=>zte[e],Ute=e=>e.replace(Bte,Hte);let WT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ute};const Vte=(e={})=>{WT={...WT,...e}},Wte=()=>WT;let nH;const Gte=e=>{nH=e},qte=()=>nH,Kte={type:"3rdParty",init(e){Vte(e.options.react),Gte(e)}},Yte=l.createContext();class Xte{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Zte=(e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current},rH=(e,t,n,r)=>e.getFixedT(t,n,r),Qte=(e,t,n,r)=>l.useCallback(rH(e,t,n,r),[e,t,n,r]),Nt=(e,t={})=>{var C,w,E,I;const{i18n:n}=t,{i18n:r,defaultNS:a}=l.useContext(Yte)||{},o=n||r||qte();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Xte),!o){VT("You will need to pass in an i18next instance by using initReactI18next");const T=(_,$)=>Sc($)?$:Fte($)&&Sc($.defaultValue)?$.defaultValue:Array.isArray(_)?_[_.length-1]:_,R=[T,{},!1];return R.t=T,R.i18n={},R.ready=!1,R}(C=o.options.react)!=null&&C.wait&&VT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...Wte(),...o.options.react,...t},{useSuspense:s,keyPrefix:c}=i;let u=a||((w=o.options)==null?void 0:w.defaultNS);u=Sc(u)?[u]:u||["translation"],(I=(E=o.reportNamespaces).addUsedNamespaces)==null||I.call(E,u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(T=>jte(T,o,i)),p=Qte(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),g=()=>p,m=()=>rH(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),[h,b]=l.useState(g);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const S=Zte(x),v=l.useRef(!0);l.useEffect(()=>{const{bindI18n:T,bindI18nStore:R}=i;v.current=!0,!d&&!s&&(t.lng?DA(o,t.lng,u,()=>{v.current&&b(m)}):MA(o,u,()=>{v.current&&b(m)})),d&&S&&S!==x&&v.current&&b(m);const _=()=>{v.current&&b(m)};return T&&(o==null||o.on(T,_)),R&&(o==null||o.store.on(R,_)),()=>{v.current=!1,o&&(T==null||T.split(" ").forEach($=>o.off($,_))),R&&o&&R.split(" ").forEach($=>o.store.off($,_))}},[o,x]),l.useEffect(()=>{v.current&&d&&b(g)},[o,c,d]);const y=[h,o,d];if(y.t=h,y.i18n=o,y.ready=d,d||!d&&!s)return y;throw new Promise(T=>{t.lng?DA(o,t.lng,u,()=>T()):MA(o,u,()=>T())})},un=e=>typeof e=="string",zf=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},PA=e=>e==null?"":""+e,Jte=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},ene=/###/g,LA=e=>e&&e.indexOf("###")>-1?e.replace(ene,"."):e,jA=e=>!e||un(e),Op=(e,t,n)=>{const r=un(t)?t.split("."):t;let a=0;for(;a{const{obj:r,k:a}=Op(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),s=Op(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=Op(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},tne=(e,t,n,r)=>{const{obj:a,k:o}=Op(e,t,Object);a[o]=a[o]||[],a[o].push(n)},xb=(e,t)=>{const{obj:n,k:r}=Op(e,t);if(n)return n[r]},nne=(e,t,n)=>{const r=xb(e,n);return r!==void 0?r:xb(t,n)},aH=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?un(e[r])||e[r]instanceof String||un(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):aH(e[r],t[r],n):e[r]=t[r]);return e},hu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var rne={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ane=e=>un(e)?e.replace(/[&<>"'\/]/g,t=>rne[t]):e;class one{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const ine=[" ",",","?","!",";"],sne=new one(20),lne=(e,t,n)=>{t=t||"",n=n||"";const r=ine.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=sne.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},GT=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o-1&&ce&&e.replace("_","-"),cne={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Cb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||cne,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{let[s,c]=i;for(let u=0;u{let[s,c]=i;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):un(r)&&o?s.push(...r.split(o)):s.push(r)));const c=xb(this.data,s);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),c||!i||!un(r)?c:GT(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),FA(this.data,s,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(un(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let c=xb(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?aH(c,r,o):c={...c,...r},FA(this.data,s,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var oH={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,a))}),t}};const zA={};class wb extends $0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Jte(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Wi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!lne(t,r,a);if(i&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(a)}return un(o)&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const C=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${C}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${C}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const p=this.resolve(t,n);let g=p&&p.res;const m=p&&p.usedKey||i,h=p&&p.exactUsedKey||i,b=Object.prototype.toString.apply(g),x=["[object Number]","[object Function]","[object RegExp]"],S=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!un(g)&&typeof g!="boolean"&&typeof g!="number";if(v&&g&&y&&x.indexOf(b)<0&&!(un(S)&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,{...n,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(p.res=C,p.usedParams=this.getUsedParamsDetails(n),p):C}if(o){const C=Array.isArray(g),w=C?[]:{},E=C?h:m;for(const I in g)if(Object.prototype.hasOwnProperty.call(g,I)){const T=`${E}${o}${I}`;w[I]=this.translate(T,{...n,joinArrays:!1,ns:s}),w[I]===T&&(w[I]=g[I])}g=w}}else if(v&&un(S)&&Array.isArray(g))g=g.join(S),g&&(g=this.extendTranslation(g,t,n,r));else{let C=!1,w=!1;const E=n.count!==void 0&&!un(n.count),I=wb.hasDefaultValue(n),T=E?this.pluralResolver.getSuffix(u,n.count,n):"",R=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${R}`]||n.defaultValue;!this.isValidLookup(g)&&I&&(C=!0,g=$),this.isValidLookup(g)||(w=!0,g=i);const P=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:g,D=I&&$!==g&&this.options.updateMissing;if(w||C||D){if(this.logger.log(D?"updateKey":"missingKey",u,c,i,D?$:g),o){const A=this.resolve(i,{...n,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let O=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let A=0;A{const F=I&&j!==g?j:P;this.options.missingKeyHandler?this.options.missingKeyHandler(A,c,L,F,D,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,c,L,F,D,n),this.emit("missingKey",A,c,L,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?O.forEach(A=>{const L=this.pluralResolver.getSuffixes(A,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(j=>{N([A],i+j,n[`defaultValue${j}`]||$)})}):N(O,i,$))}g=this.extendTranslation(g,t,n,p,r),w&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(w||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,C?g:void 0):g=this.options.parseMissingKeyHandler(g))}return a?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(t,n,r,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=un(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const g=t.match(this.interpolator.nestingRegexp);d=g&&g.length}let p=r.replace&&!un(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||a.usedLng,r),u){const g=t.match(this.interpolator.nestingRegexp),m=g&&g.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,s;return un(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;a=d;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const g=n.count!==void 0&&!un(n.count),m=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),h=n.context!==void 0&&(un(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(x=>{this.isValidLookup(r)||(s=x,!zA[`${b[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(zA[`${b[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(S=>{if(this.isValidLookup(r))return;i=S;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,S,x,n);else{let C;g&&(C=this.pluralResolver.getSuffix(S,n.count,n));const w=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(v.push(d+C),n.ordinal&&C.indexOf(E)===0&&v.push(d+C.replace(E,this.options.pluralSeparator)),m&&v.push(d+w)),h){const I=`${d}${this.options.contextSeparator}${n.context}`;v.push(I),g&&(v.push(I+C),n.ordinal&&C.indexOf(E)===0&&v.push(I+C.replace(E,this.options.pluralSeparator)),m&&v.push(I+w))}}let y;for(;y=v.pop();)this.isValidLookup(r)||(o=y,r=this.getResource(S,x,y,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!un(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Yx=e=>e.charAt(0).toUpperCase()+e.slice(1);class HA{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wi.create("languageUtils")}getScriptPartFromCode(t){if(t=Sb(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Sb(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(un(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let a=Intl.getCanonicalLocales(t)[0];if(a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a)return a}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(a=>a.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Yx(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Yx(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Yx(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),un(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return un(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):un(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let une=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],dne={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const fne=["v1","v2","v3"],pne=["v4"],UA={zero:0,one:1,two:2,few:3,many:4,other:5},gne=()=>{const e={};return une.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:dne[t.fc]}})}),e};class mne{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Wi.create("pluralResolver"),(!this.options.compatibilityJSON||pne.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=gne(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Sb(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:a});return this.pluralRulesCache[o]=i,i}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((a,o)=>UA[a]-UA[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):r.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!fne.includes(this.options.compatibilityJSON)}}const VA=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=nne(e,t,n);return!o&&a&&un(n)&&(o=GT(e,n,r),o===void 0&&(o=GT(t,n,r))),o},Xx=e=>e.replace(/\$/g,"$$$$");class hne{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Wi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:m,nestingSuffix:h,nestingSuffixEscaped:b,nestingOptionsSeparator:x,maxReplaces:S,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:ane,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?hu(o):i||"{{",this.suffix=s?hu(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=g?hu(g):m||hu("$t("),this.nestingSuffix=h?hu(h):b||hu(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=S||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let o,i,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const S=VA(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...a,...n,interpolationkey:m}):S}const h=m.split(this.formatSeparator),b=h.shift().trim(),x=h.join(this.formatSeparator).trim();return this.format(VA(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:b})};this.resetRegExp();const d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Xx(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Xx(this.escape(m)):Xx(m)}].forEach(m=>{for(s=0;o=m.regex.exec(t);){const h=o[1].trim();if(i=u(h),i===void 0)if(typeof d=="function"){const x=d(t,o,a);i=un(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,h))i="";else if(p){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),i="";else!un(i)&&!this.useRawValueToEscape&&(i=PA(i));const b=m.safeValue(i);if(t=t.replace(o[0],b),p?(m.regex.lastIndex+=i.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const p=c.split(new RegExp(`${d}[ ]*{`));let g=`{${p[1]}`;c=p[0],g=this.interpolate(g,i);const m=g.match(/'/g),h=g.match(/"/g);(m&&m.length%2===0&&!h||h.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),u&&(i={...u,...i})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${d}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&!un(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(p=>p.trim());a[1]=d.shift(),c=d,u=!0}if(o=n(s.call(this,a[1].trim(),i),i),o&&a[0]===t&&!un(o))return o;un(o)||(o=PA(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),u&&(o=c.reduce((d,p)=>this.format(d,p,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const vne=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[s,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},vu=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let s=t[i];return s||(s=e(Sb(r),a),t[i]=s),s(n)}};class bne{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Wi.create("formatter"),this.options=t,this.formats={number:vu((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:vu((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:vu((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:vu((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:vu((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=vu(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,c)=>{const{formatName:u,formatOptions:d}=vne(c);if(this.formats[u]){let p=s;try{const g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},m=g.locale||g.lng||a.locale||a.lng||r;p=this.formats[u](s,m,{...d,...a,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const yne=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class xne extends $0{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Wi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},s={},c={};return t.forEach(u=>{let d=!0;n.forEach(p=>{const g=`${u}|${p}`;!r.reload&&this.store.hasResourceBundle(u,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,d=!1,i[g]===void 0&&(i[g]=!0),o[g]===void 0&&(o[g]=!0),c[p]===void 0&&(c[p]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(c=>{tne(c.loaded,[o],i),yne(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(p=>{s[u][p]===void 0&&(s[u][p]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&d&&a{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();un(t)&&(t=this.languageUtils.toResolveHierarchy(t)),un(n)&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,s),this.loaded(t,i,s)})}saveMissing(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,a,c):d=u(t,n,r,a),d&&typeof d.then=="function"?d.then(p=>s(null,p)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,a,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const WA=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),un(e[1])&&(t.defaultValue=e[1]),un(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),GA=e=>(un(e.ns)&&(e.ns=[e.ns]),un(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),un(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),mh=()=>{},Sne=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class mg extends $0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=GA(t),this.services={},this.logger=Wi,this.modules={external:[]},Sne(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(un(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=WA();this.options={...a,...this.options,...GA(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Wi.init(o(this.modules.logger),this.options):Wi.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=bne);const p=new HA(this.options);this.store=new BA(this.options.resources,this.options);const g=this.services;g.logger=Wi,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new mne(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=o(d),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new hne(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new xne(o(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(m){for(var h=arguments.length,b=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=mh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=zf(),u=()=>{const d=(p,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(p,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mh;const a=un(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=zf();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=mh),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&oH.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=zf();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=un(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,r){var a=this;const o=function(i,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p`${c.keyPrefix}${g}${h}`):m=c.keyPrefix?`${c.keyPrefix}${g}${i}`:i,a.t(m,c)};return un(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=zf();return this.options.ns?(un(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=zf();un(t)&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new HA(WA());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new mg(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mh;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new mg(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new BA(this.store.data,a),o.services.resourceStore=o.store),o.translator=new wb(o.services,a),o.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d"u"?"undefined":qT(XMLHttpRequest))==="object"}function Cne(e){return!!e&&typeof e.then=="function"}function wne(e){return Cne(e)?e:Promise.resolve(e)}function Ene(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var KT={exports:{}},hh={exports:{}},qA;function Ine(){return qA||(qA=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Aa<"u"&&Aa,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(O){return O&&DataView.prototype.isPrototypeOf(O)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(O){return O&&d.indexOf(Object.prototype.toString.call(O))>-1};function g(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(O)||O==="")throw new TypeError('Invalid character in header field name: "'+O+'"');return O.toLowerCase()}function m(O){return typeof O!="string"&&(O=String(O)),O}function h(O){var k={next:function(){var N=O.shift();return{done:N===void 0,value:N}}};return c.iterable&&(k[Symbol.iterator]=function(){return k}),k}function b(O){this.map={},O instanceof b?O.forEach(function(k,N){this.append(N,k)},this):Array.isArray(O)?O.forEach(function(k){this.append(k[0],k[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(k){this.append(k,O[k])},this)}b.prototype.append=function(O,k){O=g(O),k=m(k);var N=this.map[O];this.map[O]=N?N+", "+k:k},b.prototype.delete=function(O){delete this.map[g(O)]},b.prototype.get=function(O){return O=g(O),this.has(O)?this.map[O]:null},b.prototype.has=function(O){return this.map.hasOwnProperty(g(O))},b.prototype.set=function(O,k){this.map[g(O)]=m(k)},b.prototype.forEach=function(O,k){for(var N in this.map)this.map.hasOwnProperty(N)&&O.call(k,this.map[N],N,this)},b.prototype.keys=function(){var O=[];return this.forEach(function(k,N){O.push(N)}),h(O)},b.prototype.values=function(){var O=[];return this.forEach(function(k){O.push(k)}),h(O)},b.prototype.entries=function(){var O=[];return this.forEach(function(k,N){O.push([N,k])}),h(O)},c.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function x(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function S(O){return new Promise(function(k,N){O.onload=function(){k(O.result)},O.onerror=function(){N(O.error)}})}function v(O){var k=new FileReader,N=S(k);return k.readAsArrayBuffer(O),N}function y(O){var k=new FileReader,N=S(k);return k.readAsText(O),N}function C(O){for(var k=new Uint8Array(O),N=new Array(k.length),A=0;A-1?k:O}function R(O,k){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');k=k||{};var N=k.body;if(O instanceof R){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,k.headers||(this.headers=new b(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,!N&&O._bodyInit!=null&&(N=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=k.credentials||this.credentials||"same-origin",(k.headers||!this.headers)&&(this.headers=new b(k.headers)),this.method=T(k.method||this.method||"GET"),this.mode=k.mode||this.mode||null,this.signal=k.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(k.cache==="no-store"||k.cache==="no-cache")){var A=/([?&])_=[^&]*/;if(A.test(this.url))this.url=this.url.replace(A,"$1_="+new Date().getTime());else{var L=/\?/;this.url+=(L.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function _(O){var k=new FormData;return O.trim().split("&").forEach(function(N){if(N){var A=N.split("="),L=A.shift().replace(/\+/g," "),j=A.join("=").replace(/\+/g," ");k.append(decodeURIComponent(L),decodeURIComponent(j))}}),k}function $(O){var k=new b,N=O.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(A){return A.indexOf(` -`)===0?A.substr(1,A.length):A}).forEach(function(A){var L=A.split(":"),j=L.shift().trim();if(j){var F=L.join(":").trim();k.append(j,F)}}),k}E.call(R.prototype);function M(O,k){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');k||(k={}),this.type="default",this.status=k.status===void 0?200:k.status,this.ok=this.status>=200&&this.status<300,this.statusText=k.statusText===void 0?"":""+k.statusText,this.headers=new b(k.headers),this.url=k.url||"",this._initBody(O)}E.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},M.error=function(){var O=new M(null,{status:0,statusText:""});return O.type="error",O};var P=[301,302,303,307,308];M.redirect=function(O,k){if(P.indexOf(k)===-1)throw new RangeError("Invalid status code");return new M(null,{status:k,headers:{location:O}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(k,N){this.message=k,this.name=N;var A=Error(k);this.stack=A.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function D(O,k){return new Promise(function(N,A){var L=new R(O,k);if(L.signal&&L.signal.aborted)return A(new i.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function F(){j.abort()}j.onload=function(){var z={status:j.status,statusText:j.statusText,headers:$(j.getAllResponseHeaders()||"")};z.url="responseURL"in j?j.responseURL:z.headers.get("X-Request-URL");var U="response"in j?j.response:j.responseText;setTimeout(function(){N(new M(U,z))},0)},j.onerror=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},j.ontimeout=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},j.onabort=function(){setTimeout(function(){A(new i.DOMException("Aborted","AbortError"))},0)};function B(z){try{return z===""&&s.location.href?s.location.href:z}catch{return z}}j.open(L.method,B(L.url),!0),L.credentials==="include"?j.withCredentials=!0:L.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&(c.blob?j.responseType="blob":c.arrayBuffer&&L.headers.get("Content-Type")&&L.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(j.responseType="arraybuffer")),k&&typeof k.headers=="object"&&!(k.headers instanceof b)?Object.getOwnPropertyNames(k.headers).forEach(function(z){j.setRequestHeader(z,m(k.headers[z]))}):L.headers.forEach(function(z,U){j.setRequestHeader(U,z)}),L.signal&&(L.signal.addEventListener("abort",F),j.onreadystatechange=function(){j.readyState===4&&L.signal.removeEventListener("abort",F)}),j.send(typeof L._bodyInit>"u"?null:L._bodyInit)})}return D.polyfill=!0,s.fetch||(s.fetch=D,s.Headers=b,s.Request=R,s.Response=M),i.Headers=b,i.Request=R,i.Response=M,i.fetch=D,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=n.fetch?n:r;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(hh,hh.exports)),hh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Aa<"u"&&Aa.fetch?n=Aa.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof Ene<"u"&&typeof window>"u"){var r=n||Ine();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(KT,KT.exports);var sH=KT.exports;const lH=Wa(sH),KA=f$({__proto__:null,default:lH},[sH]);function YA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XA(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=XA({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},QA?{}:i),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{ZA(n,s,a,c)}catch(u){if(!i||Object.keys(i).length===0||!u.message||u.message.indexOf("not implemented")<0)return a(u);try{Object.keys(i).forEach(function(d){delete s[d]}),ZA(n,s,a,c),QA=!0}catch(d){a(d)}}},One=function(t,n,r,a){r&&Mc(r)==="object"&&(r=YT("",r).slice(1)),t.queryStringParams&&(n=YT(n,t.queryStringParams));try{var o;hg?o=new hg:o=new Eb("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var s in i)o.setRequestHeader(s,i[s]);o.onreadystatechange=function(){o.readyState>3&&a(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},Nne=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},bs&&n.indexOf("file:")!==0)return $ne(t,n,r,a);if(iH()||typeof ActiveXObject=="function")return One(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function Td(e){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Td(e)}function JA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};kne(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Mne(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Zx(Zx(Zx({},Pne()),this.options||{}),a),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);Td(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,o,i){var s=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=wne(c),c.then(function(u){if(!u)return i(null,{});var d=s.services.interpolator.interpolate(u,{lng:n.join("+"),ns:a.join("+")});s.loadUrl(d,i,r,o)})}},{key:"loadUrl",value:function(n,r,a,o){var i=this,s=typeof a=="string"?[a]:a,c=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(s,c);this.options.request(this.options,n,u,function(d,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&d&&d.message){var g=d.message.toLowerCase(),m=["failed","fetch","network","load"].find(function(x){return g.indexOf(x)>-1});if(m)return r("failed loading "+n+": "+d.message,!0)}if(d)return r(d,!1);var h,b;try{typeof p.data=="string"?h=i.options.parse(p.data,a,o):h=p.data}catch{b="failed parsing "+n+" to json"}if(b)return r(b,!1);r(null,h)})}},{key:"create",value:function(n,r,a,o,i){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,o),u=0,d=[],p=[];n.forEach(function(g){var m=s.options.addPath;typeof s.options.addPath=="function"&&(m=s.options.addPath(g,r));var h=s.services.interpolator.interpolate(m,{lng:g,ns:r});s.options.request(s.options,h,c,function(b,x){u+=1,d.push(b),p.push(x),u===n.length&&typeof i=="function"&&i(d,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,o=r.languageUtils,i=r.logger,s=a.language;if(!(s&&s.toLowerCase()==="cimode")){var c=[],u=function(p){var g=o.toResolveHierarchy(p);g.forEach(function(m){c.indexOf(m)<0&&c.push(m)})};u(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),c.forEach(function(d){n.allOptions.ns.forEach(function(p){a.read(d,p,"read",null,null,function(g,m){g&&i.warn("loading namespace ".concat(p," for language ").concat(d," failed"),g),!g&&m&&i.log("loaded namespace ".concat(p," for language ").concat(d),m),a.loaded("".concat(d,"|").concat(p),g,m)})})})}}}])}();dH.type="backend";const{slice:Lne,forEach:jne}=[];function Fne(e){return jne.call(Lne.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const e4=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Bne=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!e4.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!e4.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},t4={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=Bne(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let s=0;s0&&i[s].substring(0,c)===t&&(n=i[s].substring(c+1))}}return n}};let Hf=null;const n4=()=>{if(Hf!==null)return Hf;try{Hf=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Hf=!1}return Hf};var Une={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&n4())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&n4()&&window.localStorage.setItem(n,e)}};let Uf=null;const r4=()=>{if(Uf!==null)return Uf;try{Uf=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Uf=!1}return Uf};var Vne={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&r4())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&r4()&&window.sessionStorage.setItem(n,e)}},Wne={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o0?t:void 0}},Gne={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},qne={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},Kne={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function Yne(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class fH{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Fne(n,this.options||{},Yne()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(zne),this.addDetector(Hne),this.addDetector(Une),this.addDetector(Vne),this.addDetector(Wne),this.addDetector(Gne),this.addDetector(qne),this.addDetector(Kne)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}fH.type="languageDetector";dr.use(dH).use(fH).use(Kte).init({supportedLngs:["en","de","fr","es"],fallbackLng:"en",ns:["teddycloud"],defaultNS:"teddycloud",debug:!1,backend:{queryStringParams:{v:"2023072701"},loadPath:"/web/translations/{{lng}}.json"},interpolation:{escapeValue:!1}});/** +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function qx(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function NT(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dte=typeof WeakMap=="function"?WeakMap:Map;function R9(e,t,n){n=ys(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vb||(vb=!0,zT=r),NT(e,t)},n}function _9(e,t,n){n=ys(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){NT(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){NT(e,t),typeof r!="function"&&(Sl===null?Sl=new Set([this]):Sl.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function gA(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dte;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Ite.bind(null,e,t,n),t.then(e,e))}function mA(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hA(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ys(-1,1),t.tag=2,xl(n,t,1))),n.lanes|=1),e)}var fte=Ms.ReactCurrentOwner,eo=!1;function za(e,t,n,r){t.child=e===null?r9(t,null,n,r):wd(t,e.child,n,r)}function vA(e,t,n,r,a){n=n.render;var o=t.ref;return ud(t,a),r=W$(e,t,n,r,o,a),n=G$(),e!==null&&!eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rs(e,t,a)):(xr&&n&&A$(t),t.flags|=1,za(e,t,r,a),t.child)}function bA(e,t,n,r,a){if(e===null){var o=n.type;return typeof o=="function"&&!nO(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$9(e,t,o,r,a)):(e=Ev(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:og,n(i,r)&&e.ref===t.ref)return Rs(e,t,a)}return t.flags|=1,e=Cl(o,r),e.ref=t.ref,e.return=t,t.child=e}function $9(e,t,n,r,a){if(e!==null){var o=e.memoizedProps;if(og(o,r)&&e.ref===t.ref)if(eo=!1,t.pendingProps=r=o,(e.lanes&a)!==0)e.flags&131072&&(eo=!0);else return t.lanes=e.lanes,Rs(e,t,a)}return kT(e,t,n,r,a)}function O9(e,t,n){var r=t.pendingProps,a=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},lr(Xu,bo),bo|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,lr(Xu,bo),bo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,lr(Xu,bo),bo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,lr(Xu,bo),bo|=r;return za(e,t,a,n),t.child}function N9(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kT(e,t,n,r,a){var o=ao(n)?$c:Ma.current;return o=xd(t,o),ud(t,a),n=W$(e,t,n,r,o,a),r=G$(),e!==null&&!eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rs(e,t,a)):(xr&&r&&A$(t),t.flags|=1,za(e,t,n,a),t.child)}function yA(e,t,n,r,a){if(ao(n)){var o=!0;sb(t)}else o=!1;if(ud(t,a),t.stateNode===null)Sv(e,t),T9(t,n,r),OT(t,n,r,a),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Qo(u):(u=ao(n)?$c:Ma.current,u=xd(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||c!==u)&&pA(t,i,r,u),tl=!1;var g=t.memoizedState;i.state=g,fb(t,r,i,a),c=t.memoizedState,s!==r||g!==c||ro.current||tl?(typeof d=="function"&&($T(t,n,d,r),c=t.memoizedState),(s=tl||fA(t,n,s,r,g,c,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,o9(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:gi(t.type,s),i.props=u,p=t.pendingProps,g=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Qo(c):(c=ao(n)?$c:Ma.current,c=xd(t,c));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==p||g!==c)&&pA(t,i,r,c),tl=!1,g=t.memoizedState,i.state=g,fb(t,r,i,a);var h=t.memoizedState;s!==p||g!==h||ro.current||tl?(typeof m=="function"&&($T(t,n,m,r),h=t.memoizedState),(u=tl||fA(t,n,u,r,g,h,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,h,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,h,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return AT(e,t,n,r,o,a)}function AT(e,t,n,r,a,o){N9(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return a&&aA(t,n,!1),Rs(e,t,o);r=t.stateNode,fte.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=wd(t,e.child,null,o),t.child=wd(t,null,s,o)):za(e,t,s,o),t.memoizedState=r.state,a&&aA(t,n,!0),t.child}function k9(e){var t=e.stateNode;t.pendingContext?rA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rA(e,t.context,!1),z$(e,t.containerInfo)}function xA(e,t,n,r,a){return Sd(),D$(a),t.flags|=256,za(e,t,n,r),t.child}var MT={dehydrated:null,treeContext:null,retryLane:0};function DT(e){return{baseLanes:e,cachePool:null,transitions:null}}function A9(e,t,n){var r=t.pendingProps,a=Ir.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),lr(Ir,a&1),e===null)return RT(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=T0(i,r,0,null),e=xc(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=DT(n),t.memoizedState=MT,e):Y$(t,i));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return pte(e,t,i,r,s,a,n);if(o){o=r.fallback,i=t.mode,a=e.child,s=a.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Cl(a,c),r.subtreeFlags=a.subtreeFlags&14680064),s!==null?o=Cl(s,o):(o=xc(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?DT(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=MT,r}return o=e.child,e=o.sibling,r=Cl(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Y$(e,t){return t=T0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fh(e,t,n,r){return r!==null&&D$(r),wd(t,e.child,null,n),e=Y$(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pte(e,t,n,r,a,o,i){if(n)return t.flags&256?(t.flags&=-257,r=qx(Error(vt(422))),fh(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=T0({mode:"visible",children:r.children},a,0,null),o=xc(o,a,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&wd(t,e.child,null,i),t.child.memoizedState=DT(i),t.memoizedState=MT,o);if(!(t.mode&1))return fh(e,t,i,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(vt(419)),r=qx(o,r,void 0),fh(e,t,i,r)}if(s=(i&e.childLanes)!==0,eo||s){if(r=da,r!==null){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Ts(e,a),wi(r,e,a,-1))}return tO(),r=qx(Error(vt(421))),fh(e,t,i,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Tte.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,yo=yl(a.nextSibling),_o=t,xr=!0,yi=null,e!==null&&(Wo[Go++]=vs,Wo[Go++]=bs,Wo[Go++]=Oc,vs=e.id,bs=e.overflow,Oc=t),t=Y$(t,r.children),t.flags|=4096,t)}function SA(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_T(e.return,t,n)}function Kx(e,t,n,r,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function M9(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(za(e,t,r.children,n),r=Ir.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&SA(e,n,t);else if(e.tag===19)SA(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(lr(Ir,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&pb(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Kx(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&pb(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Kx(t,!0,n,null,o);break;case"together":Kx(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(vt(153));if(t.child!==null){for(e=t.child,n=Cl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gte(e,t,n){switch(t.tag){case 3:k9(t),Sd();break;case 5:i9(t);break;case 1:ao(t.type)&&sb(t);break;case 4:z$(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;lr(ub,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(lr(Ir,Ir.current&1),t.flags|=128,null):n&t.child.childLanes?A9(e,t,n):(lr(Ir,Ir.current&1),e=Rs(e,t,n),e!==null?e.sibling:null);lr(Ir,Ir.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return M9(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),lr(Ir,Ir.current),r)break;return null;case 22:case 23:return t.lanes=0,O9(e,t,n)}return Rs(e,t,n)}var D9,PT,P9,L9;D9=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};PT=function(){};P9=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,uc(Yi.current);var o=null;switch(n){case"input":a=aT(e,a),r=aT(e,r),o=[];break;case"select":a=Rr({},a,{value:void 0}),r=Rr({},r,{value:void 0}),o=[];break;case"textarea":a=sT(e,a),r=sT(e,r),o=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ob)}cT(n,r);var i;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var s=a[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qp.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(s=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qp.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&gr("scroll",e),o||s===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};L9=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ff(e,t){if(!xr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _a(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mte(e,t,n){var r=t.pendingProps;switch(M$(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _a(t),null;case 1:return ao(t.type)&&ib(),_a(t),null;case 3:return r=t.stateNode,Cd(),vr(ro),vr(Ma),U$(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(uh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yi!==null&&(VT(yi),yi=null))),PT(e,t),_a(t),null;case 5:H$(t);var a=uc(ug.current);if(n=t.type,e!==null&&t.stateNode!=null)P9(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(vt(166));return _a(t),null}if(e=uc(Yi.current),uh(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Vi]=t,r[lg]=o,e=(t.mode&1)!==0,n){case"dialog":gr("cancel",r),gr("close",r);break;case"iframe":case"object":case"embed":gr("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Vi]=t,e[lg]=r,D9(e,t,!1,!1),t.stateNode=e;e:{switch(i=uT(n,r),n){case"dialog":gr("cancel",e),gr("close",e),a=r;break;case"iframe":case"object":case"embed":gr("load",e),a=r;break;case"video":case"audio":for(a=0;aId&&(t.flags|=128,r=!0,Ff(o,!1),t.lanes=4194304)}else{if(!r)if(e=pb(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ff(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!xr)return _a(t),null}else 2*Pr()-o.renderingStartTime>Id&&n!==1073741824&&(t.flags|=128,r=!0,Ff(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Pr(),t.sibling=null,n=Ir.current,lr(Ir,r?n&1|2:n&1),t):(_a(t),null);case 22:case 23:return eO(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bo&1073741824&&(_a(t),t.subtreeFlags&6&&(t.flags|=8192)):_a(t),null;case 24:return null;case 25:return null}throw Error(vt(156,t.tag))}function hte(e,t){switch(M$(t),t.tag){case 1:return ao(t.type)&&ib(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cd(),vr(ro),vr(Ma),U$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return H$(t),null;case 13:if(vr(Ir),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(vt(340));Sd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vr(Ir),null;case 4:return Cd(),null;case 10:return j$(t.type._context),null;case 22:case 23:return eO(),null;case 24:return null;default:return null}}var ph=!1,Na=!1,vte=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function Yu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Nr(e,t,r)}else n.current=null}function LT(e,t,n){try{n()}catch(r){Nr(e,t,r)}}var wA=!1;function bte(e,t){if(xT=nb,e=Hz(),k$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,p=e,g=null;t:for(;;){for(var m;p!==n||a!==0&&p.nodeType!==3||(s=i+a),p!==o||r!==0&&p.nodeType!==3||(c=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(m=p.firstChild)!==null;)g=p,p=m;for(;;){if(p===e)break t;if(g===n&&++u===a&&(s=i),g===o&&++d===r&&(c=i),(m=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=m}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ST={focusedElem:e,selectionRange:n},nb=!1,Lt=t;Lt!==null;)if(t=Lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Lt=e;else for(;Lt!==null;){t=Lt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,x=h.memoizedState,S=t.stateNode,v=S.getSnapshotBeforeUpdate(t.elementType===t.type?b:gi(t.type,b),x);S.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(vt(163))}}catch(w){Nr(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Lt=e;break}Lt=t.return}return h=wA,wA=!1,h}function _p(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&<(t,n,o)}a=a.next}while(a!==r)}}function E0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jT(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function j9(e){var t=e.alternate;t!==null&&(e.alternate=null,j9(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vi],delete t[lg],delete t[ET],delete t[ete],delete t[tte])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function F9(e){return e.tag===5||e.tag===3||e.tag===4}function CA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F9(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function FT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ob));else if(r!==4&&(e=e.child,e!==null))for(FT(e,t,n),e=e.sibling;e!==null;)FT(e,t,n),e=e.sibling}function BT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(BT(e,t,n),e=e.sibling;e!==null;)BT(e,t,n),e=e.sibling}var ba=null,mi=!1;function Us(e,t,n){for(n=n.child;n!==null;)B9(e,t,n),n=n.sibling}function B9(e,t,n){if(Ki&&typeof Ki.onCommitFiberUnmount=="function")try{Ki.onCommitFiberUnmount(h0,n)}catch{}switch(n.tag){case 5:Na||Yu(n,t);case 6:var r=ba,a=mi;ba=null,Us(e,t,n),ba=r,mi=a,ba!==null&&(mi?(e=ba,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ba.removeChild(n.stateNode));break;case 18:ba!==null&&(mi?(e=ba,n=n.stateNode,e.nodeType===8?zx(e.parentNode,n):e.nodeType===1&&zx(e,n),rg(e)):zx(ba,n.stateNode));break;case 4:r=ba,a=mi,ba=n.stateNode.containerInfo,mi=!0,Us(e,t,n),ba=r,mi=a;break;case 0:case 11:case 14:case 15:if(!Na&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&<(n,t,i),a=a.next}while(a!==r)}Us(e,t,n);break;case 1:if(!Na&&(Yu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nr(n,t,s)}Us(e,t,n);break;case 21:Us(e,t,n);break;case 22:n.mode&1?(Na=(r=Na)||n.memoizedState!==null,Us(e,t,n),Na=r):Us(e,t,n);break;default:Us(e,t,n)}}function EA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vte),t.forEach(function(r){var a=Rte.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function ci(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=i),r&=~o}if(r=a,r=Pr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xte(r/1960))-r,10e?16:e,ll===null)var r=!1;else{if(e=ll,ll=null,bb=0,kn&6)throw Error(vt(331));var a=kn;for(kn|=4,Lt=e.current;Lt!==null;){var o=Lt,i=o.child;if(Lt.flags&16){var s=o.deletions;if(s!==null){for(var c=0;cPr()-Q$?yc(e,0):Z$|=n),oo(e,t)}function K9(e,t){t===0&&(e.mode&1?(t=ah,ah<<=1,!(ah&130023424)&&(ah=4194304)):t=1);var n=Va();e=Ts(e,t),e!==null&&(tm(e,t,n),oo(e,n))}function Tte(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K9(e,n)}function Rte(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(vt(314))}r!==null&&r.delete(t),K9(e,n)}var Y9;Y9=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ro.current)eo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return eo=!1,gte(e,t,n);eo=!!(e.flags&131072)}else eo=!1,xr&&t.flags&1048576&&Jz(t,cb,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sv(e,t),e=t.pendingProps;var a=xd(t,Ma.current);ud(t,n),a=W$(null,t,r,e,a,n);var o=G$();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ao(r)?(o=!0,sb(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,B$(t),a.updater=C0,t.stateNode=a,a._reactInternals=t,OT(t,r,e,n),t=AT(null,t,r,!0,o,n)):(t.tag=0,xr&&o&&A$(t),za(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sv(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=$te(r),e=gi(r,e),a){case 0:t=kT(null,t,r,e,n);break e;case 1:t=yA(null,t,r,e,n);break e;case 11:t=vA(null,t,r,e,n);break e;case 14:t=bA(null,t,r,gi(r.type,e),n);break e}throw Error(vt(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gi(r,a),kT(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gi(r,a),yA(e,t,r,a,n);case 3:e:{if(k9(t),e===null)throw Error(vt(387));r=t.pendingProps,o=t.memoizedState,a=o.element,o9(e,t),fb(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ed(Error(vt(423)),t),t=xA(e,t,r,n,a);break e}else if(r!==a){a=Ed(Error(vt(424)),t),t=xA(e,t,r,n,a);break e}else for(yo=yl(t.stateNode.containerInfo.firstChild),_o=t,xr=!0,yi=null,n=r9(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sd(),r===a){t=Rs(e,t,n);break e}za(e,t,r,n)}t=t.child}return t;case 5:return i9(t),e===null&&RT(t),r=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,wT(r,a)?i=null:o!==null&&wT(r,o)&&(t.flags|=32),N9(e,t),za(e,t,i,n),t.child;case 6:return e===null&&RT(t),null;case 13:return A9(e,t,n);case 4:return z$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wd(t,null,r,n):za(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gi(r,a),vA(e,t,r,a,n);case 7:return za(e,t,t.pendingProps,n),t.child;case 8:return za(e,t,t.pendingProps.children,n),t.child;case 12:return za(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,lr(ub,r._currentValue),r._currentValue=i,o!==null)if(Ri(o.value,i)){if(o.children===a.children&&!ro.current){t=Rs(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=ys(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),_T(o.return,n,t),s.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(vt(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),_T(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}za(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,ud(t,n),a=Qo(a),r=r(a),t.flags|=1,za(e,t,r,n),t.child;case 14:return r=t.type,a=gi(r,t.pendingProps),a=gi(r.type,a),bA(e,t,r,a,n);case 15:return $9(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gi(r,a),Sv(e,t),t.tag=1,ao(r)?(e=!0,sb(t)):e=!1,ud(t,n),T9(t,r,a),OT(t,r,a,n),AT(null,t,r,!0,e,n);case 19:return M9(e,t,n);case 22:return O9(e,t,n)}throw Error(vt(156,t.tag))};function X9(e,t){return Cz(e,t)}function _te(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yo(e,t,n,r){return new _te(e,t,n,r)}function nO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $te(e){if(typeof e=="function")return nO(e)?1:0;if(e!=null){if(e=e.$$typeof,e===S$)return 11;if(e===w$)return 14}return 2}function Cl(e,t){var n=e.alternate;return n===null?(n=Yo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ev(e,t,n,r,a,o){var i=2;if(r=e,typeof e=="function")nO(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Bu:return xc(n.children,a,o,t);case x$:i=8,a|=8;break;case eT:return e=Yo(12,n,t,a|2),e.elementType=eT,e.lanes=o,e;case tT:return e=Yo(13,n,t,a),e.elementType=tT,e.lanes=o,e;case nT:return e=Yo(19,n,t,a),e.elementType=nT,e.lanes=o,e;case iz:return T0(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case az:i=10;break e;case oz:i=9;break e;case S$:i=11;break e;case w$:i=14;break e;case el:i=16,r=null;break e}throw Error(vt(130,e==null?e:typeof e,""))}return t=Yo(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function xc(e,t,n,r){return e=Yo(7,e,r,t),e.lanes=n,e}function T0(e,t,n,r){return e=Yo(22,e,r,t),e.elementType=iz,e.lanes=n,e.stateNode={isHidden:!1},e}function Yx(e,t,n){return e=Yo(6,e,null,t),e.lanes=n,e}function Xx(e,t,n){return t=Yo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ote(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ox(0),this.expirationTimes=Ox(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ox(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function rO(e,t,n,r,a,o,i,s,c){return e=new Ote(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Yo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},B$(o),e}function Nte(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eH)}catch(e){console.error(e)}}eH(),ez.exports=No;var Kr=ez.exports;const mg=Wa(Kr),Pte=f$({__proto__:null,default:mg},[Kr]);var kA=Kr;QI.createRoot=kA.createRoot,QI.hydrateRoot=kA.hydrateRoot;const Lte=(...e)=>{console!=null&&console.warn&&(Sc(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},AA={},WT=(...e)=>{Sc(e[0])&&AA[e[0]]||(Sc(e[0])&&(AA[e[0]]=new Date),Lte(...e))},tH=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},MA=(e,t,n)=>{e.loadNamespaces(t,tH(e,n))},DA=(e,t,n,r)=>{Sc(n)&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,tH(e,r))},jte=(e,t,n={})=>!t.languages||!t.languages.length?(WT("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),Sc=e=>typeof e=="string",Fte=e=>typeof e=="object"&&e!==null,Bte=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zte={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Hte=e=>zte[e],Ute=e=>e.replace(Bte,Hte);let GT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ute};const Vte=(e={})=>{GT={...GT,...e}},Wte=()=>GT;let nH;const Gte=e=>{nH=e},qte=()=>nH,Kte={type:"3rdParty",init(e){Vte(e.options.react),Gte(e)}},Yte=l.createContext();class Xte{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Zte=(e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current},rH=(e,t,n,r)=>e.getFixedT(t,n,r),Qte=(e,t,n,r)=>l.useCallback(rH(e,t,n,r),[e,t,n,r]),Nt=(e,t={})=>{var w,C,E,I;const{i18n:n}=t,{i18n:r,defaultNS:a}=l.useContext(Yte)||{},o=n||r||qte();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Xte),!o){WT("You will need to pass in an i18next instance by using initReactI18next");const T=(_,$)=>Sc($)?$:Fte($)&&Sc($.defaultValue)?$.defaultValue:Array.isArray(_)?_[_.length-1]:_,R=[T,{},!1];return R.t=T,R.i18n={},R.ready=!1,R}(w=o.options.react)!=null&&w.wait&&WT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...Wte(),...o.options.react,...t},{useSuspense:s,keyPrefix:c}=i;let u=a||((C=o.options)==null?void 0:C.defaultNS);u=Sc(u)?[u]:u||["translation"],(I=(E=o.reportNamespaces).addUsedNamespaces)==null||I.call(E,u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(T=>jte(T,o,i)),p=Qte(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),g=()=>p,m=()=>rH(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),[h,b]=l.useState(g);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const S=Zte(x),v=l.useRef(!0);l.useEffect(()=>{const{bindI18n:T,bindI18nStore:R}=i;v.current=!0,!d&&!s&&(t.lng?DA(o,t.lng,u,()=>{v.current&&b(m)}):MA(o,u,()=>{v.current&&b(m)})),d&&S&&S!==x&&v.current&&b(m);const _=()=>{v.current&&b(m)};return T&&(o==null||o.on(T,_)),R&&(o==null||o.store.on(R,_)),()=>{v.current=!1,o&&(T==null||T.split(" ").forEach($=>o.off($,_))),R&&o&&R.split(" ").forEach($=>o.store.off($,_))}},[o,x]),l.useEffect(()=>{v.current&&d&&b(g)},[o,c,d]);const y=[h,o,d];if(y.t=h,y.i18n=o,y.ready=d,d||!d&&!s)return y;throw new Promise(T=>{t.lng?DA(o,t.lng,u,()=>T()):MA(o,u,()=>T())})},un=e=>typeof e=="string",zf=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},PA=e=>e==null?"":""+e,Jte=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},ene=/###/g,LA=e=>e&&e.indexOf("###")>-1?e.replace(ene,"."):e,jA=e=>!e||un(e),Np=(e,t,n)=>{const r=un(t)?t.split("."):t;let a=0;for(;a{const{obj:r,k:a}=Np(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),s=Np(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=Np(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},tne=(e,t,n,r)=>{const{obj:a,k:o}=Np(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Sb=(e,t)=>{const{obj:n,k:r}=Np(e,t);if(n)return n[r]},nne=(e,t,n)=>{const r=Sb(e,n);return r!==void 0?r:Sb(t,n)},aH=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?un(e[r])||e[r]instanceof String||un(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):aH(e[r],t[r],n):e[r]=t[r]);return e},hu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var rne={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ane=e=>un(e)?e.replace(/[&<>"'\/]/g,t=>rne[t]):e;class one{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const ine=[" ",",","?","!",";"],sne=new one(20),lne=(e,t,n)=>{t=t||"",n=n||"";const r=ine.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=sne.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},qT=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o-1&&ce&&e.replace("_","-"),cne={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Cb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||cne,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{let[s,c]=i;for(let u=0;u{let[s,c]=i;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):un(r)&&o?s.push(...r.split(o)):s.push(r)));const c=Sb(this.data,s);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),c||!i||!un(r)?c:qT(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),FA(this.data,s,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(un(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let c=Sb(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?aH(c,r,o):c={...c,...r},FA(this.data,s,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var oH={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,a))}),t}};const zA={};class Eb extends N0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Jte(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!lne(t,r,a);if(i&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(a)}return un(o)&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${w}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${w}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const p=this.resolve(t,n);let g=p&&p.res;const m=p&&p.usedKey||i,h=p&&p.exactUsedKey||i,b=Object.prototype.toString.apply(g),x=["[object Number]","[object Function]","[object RegExp]"],S=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!un(g)&&typeof g!="boolean"&&typeof g!="number";if(v&&g&&y&&x.indexOf(b)<0&&!(un(S)&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,{...n,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(p.res=w,p.usedParams=this.getUsedParamsDetails(n),p):w}if(o){const w=Array.isArray(g),C=w?[]:{},E=w?h:m;for(const I in g)if(Object.prototype.hasOwnProperty.call(g,I)){const T=`${E}${o}${I}`;C[I]=this.translate(T,{...n,joinArrays:!1,ns:s}),C[I]===T&&(C[I]=g[I])}g=C}}else if(v&&un(S)&&Array.isArray(g))g=g.join(S),g&&(g=this.extendTranslation(g,t,n,r));else{let w=!1,C=!1;const E=n.count!==void 0&&!un(n.count),I=Eb.hasDefaultValue(n),T=E?this.pluralResolver.getSuffix(u,n.count,n):"",R=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${R}`]||n.defaultValue;!this.isValidLookup(g)&&I&&(w=!0,g=$),this.isValidLookup(g)||(C=!0,g=i);const P=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:g,D=I&&$!==g&&this.options.updateMissing;if(C||w||D){if(this.logger.log(D?"updateKey":"missingKey",u,c,i,D?$:g),o){const A=this.resolve(i,{...n,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let O=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let A=0;A{const F=I&&j!==g?j:P;this.options.missingKeyHandler?this.options.missingKeyHandler(A,c,L,F,D,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,c,L,F,D,n),this.emit("missingKey",A,c,L,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?O.forEach(A=>{const L=this.pluralResolver.getSuffixes(A,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(j=>{N([A],i+j,n[`defaultValue${j}`]||$)})}):N(O,i,$))}g=this.extendTranslation(g,t,n,p,r),C&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(C||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,w?g:void 0):g=this.options.parseMissingKeyHandler(g))}return a?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(t,n,r,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=un(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const g=t.match(this.interpolator.nestingRegexp);d=g&&g.length}let p=r.replace&&!un(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||a.usedLng,r),u){const g=t.match(this.interpolator.nestingRegexp),m=g&&g.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,s;return un(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;a=d;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const g=n.count!==void 0&&!un(n.count),m=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),h=n.context!==void 0&&(un(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(x=>{this.isValidLookup(r)||(s=x,!zA[`${b[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(zA[`${b[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(S=>{if(this.isValidLookup(r))return;i=S;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,S,x,n);else{let w;g&&(w=this.pluralResolver.getSuffix(S,n.count,n));const C=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(v.push(d+w),n.ordinal&&w.indexOf(E)===0&&v.push(d+w.replace(E,this.options.pluralSeparator)),m&&v.push(d+C)),h){const I=`${d}${this.options.contextSeparator}${n.context}`;v.push(I),g&&(v.push(I+w),n.ordinal&&w.indexOf(E)===0&&v.push(I+w.replace(E,this.options.pluralSeparator)),m&&v.push(I+C))}}let y;for(;y=v.pop();)this.isValidLookup(r)||(o=y,r=this.getResource(S,x,y,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!un(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Zx=e=>e.charAt(0).toUpperCase()+e.slice(1);class HA{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gi.create("languageUtils")}getScriptPartFromCode(t){if(t=wb(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=wb(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(un(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let a=Intl.getCanonicalLocales(t)[0];if(a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a)return a}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(a=>a.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zx(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zx(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Zx(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),un(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return un(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):un(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let une=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],dne={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const fne=["v1","v2","v3"],pne=["v4"],UA={zero:0,one:1,two:2,few:3,many:4,other:5},gne=()=>{const e={};return une.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:dne[t.fc]}})}),e};class mne{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Gi.create("pluralResolver"),(!this.options.compatibilityJSON||pne.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=gne(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=wb(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:a});return this.pluralRulesCache[o]=i,i}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((a,o)=>UA[a]-UA[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):r.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!fne.includes(this.options.compatibilityJSON)}}const VA=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=nne(e,t,n);return!o&&a&&un(n)&&(o=qT(e,n,r),o===void 0&&(o=qT(t,n,r))),o},Qx=e=>e.replace(/\$/g,"$$$$");class hne{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:m,nestingSuffix:h,nestingSuffixEscaped:b,nestingOptionsSeparator:x,maxReplaces:S,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:ane,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?hu(o):i||"{{",this.suffix=s?hu(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=g?hu(g):m||hu("$t("),this.nestingSuffix=h?hu(h):b||hu(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=S||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let o,i,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const S=VA(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...a,...n,interpolationkey:m}):S}const h=m.split(this.formatSeparator),b=h.shift().trim(),x=h.join(this.formatSeparator).trim();return this.format(VA(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:b})};this.resetRegExp();const d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Qx(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Qx(this.escape(m)):Qx(m)}].forEach(m=>{for(s=0;o=m.regex.exec(t);){const h=o[1].trim();if(i=u(h),i===void 0)if(typeof d=="function"){const x=d(t,o,a);i=un(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,h))i="";else if(p){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),i="";else!un(i)&&!this.useRawValueToEscape&&(i=PA(i));const b=m.safeValue(i);if(t=t.replace(o[0],b),p?(m.regex.lastIndex+=i.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const p=c.split(new RegExp(`${d}[ ]*{`));let g=`{${p[1]}`;c=p[0],g=this.interpolate(g,i);const m=g.match(/'/g),h=g.match(/"/g);(m&&m.length%2===0&&!h||h.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),u&&(i={...u,...i})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${d}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&!un(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(p=>p.trim());a[1]=d.shift(),c=d,u=!0}if(o=n(s.call(this,a[1].trim(),i),i),o&&a[0]===t&&!un(o))return o;un(o)||(o=PA(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),u&&(o=c.reduce((d,p)=>this.format(d,p,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const vne=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[s,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},vu=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let s=t[i];return s||(s=e(wb(r),a),t[i]=s),s(n)}};class bne{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Gi.create("formatter"),this.options=t,this.formats={number:vu((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:vu((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:vu((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:vu((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:vu((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=vu(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,c)=>{const{formatName:u,formatOptions:d}=vne(c);if(this.formats[u]){let p=s;try{const g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},m=g.locale||g.lng||a.locale||a.lng||r;p=this.formats[u](s,m,{...d,...a,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const yne=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class xne extends N0{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Gi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},s={},c={};return t.forEach(u=>{let d=!0;n.forEach(p=>{const g=`${u}|${p}`;!r.reload&&this.store.hasResourceBundle(u,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,d=!1,i[g]===void 0&&(i[g]=!0),o[g]===void 0&&(o[g]=!0),c[p]===void 0&&(c[p]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(c=>{tne(c.loaded,[o],i),yne(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(p=>{s[u][p]===void 0&&(s[u][p]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&d&&a{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();un(t)&&(t=this.languageUtils.toResolveHierarchy(t)),un(n)&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,s),this.loaded(t,i,s)})}saveMissing(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,a,c):d=u(t,n,r,a),d&&typeof d.then=="function"?d.then(p=>s(null,p)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,a,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const WA=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),un(e[1])&&(t.defaultValue=e[1]),un(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),GA=e=>(un(e.ns)&&(e.ns=[e.ns]),un(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),un(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),hh=()=>{},Sne=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class hg extends N0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=GA(t),this.services={},this.logger=Gi,this.modules={external:[]},Sne(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(un(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=WA();this.options={...a,...this.options,...GA(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Gi.init(o(this.modules.logger),this.options):Gi.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=bne);const p=new HA(this.options);this.store=new BA(this.options.resources,this.options);const g=this.services;g.logger=Gi,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new mne(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=o(d),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new hne(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new xne(o(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(m){for(var h=arguments.length,b=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=hh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=zf(),u=()=>{const d=(p,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(p,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh;const a=un(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=zf();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=hh),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&oH.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=zf();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=un(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,r){var a=this;const o=function(i,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p`${c.keyPrefix}${g}${h}`):m=c.keyPrefix?`${c.keyPrefix}${g}${i}`:i,a.t(m,c)};return un(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=zf();return this.options.ns?(un(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=zf();un(t)&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new HA(WA());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new hg(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new hg(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new BA(this.store.data,a),o.services.resourceStore=o.store),o.translator=new Eb(o.services,a),o.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d"u"?"undefined":KT(XMLHttpRequest))==="object"}function wne(e){return!!e&&typeof e.then=="function"}function Cne(e){return wne(e)?e:Promise.resolve(e)}function Ene(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var YT={exports:{}},vh={exports:{}},qA;function Ine(){return qA||(qA=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Aa<"u"&&Aa,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(O){return O&&DataView.prototype.isPrototypeOf(O)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(O){return O&&d.indexOf(Object.prototype.toString.call(O))>-1};function g(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(O)||O==="")throw new TypeError('Invalid character in header field name: "'+O+'"');return O.toLowerCase()}function m(O){return typeof O!="string"&&(O=String(O)),O}function h(O){var k={next:function(){var N=O.shift();return{done:N===void 0,value:N}}};return c.iterable&&(k[Symbol.iterator]=function(){return k}),k}function b(O){this.map={},O instanceof b?O.forEach(function(k,N){this.append(N,k)},this):Array.isArray(O)?O.forEach(function(k){this.append(k[0],k[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(k){this.append(k,O[k])},this)}b.prototype.append=function(O,k){O=g(O),k=m(k);var N=this.map[O];this.map[O]=N?N+", "+k:k},b.prototype.delete=function(O){delete this.map[g(O)]},b.prototype.get=function(O){return O=g(O),this.has(O)?this.map[O]:null},b.prototype.has=function(O){return this.map.hasOwnProperty(g(O))},b.prototype.set=function(O,k){this.map[g(O)]=m(k)},b.prototype.forEach=function(O,k){for(var N in this.map)this.map.hasOwnProperty(N)&&O.call(k,this.map[N],N,this)},b.prototype.keys=function(){var O=[];return this.forEach(function(k,N){O.push(N)}),h(O)},b.prototype.values=function(){var O=[];return this.forEach(function(k){O.push(k)}),h(O)},b.prototype.entries=function(){var O=[];return this.forEach(function(k,N){O.push([N,k])}),h(O)},c.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function x(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function S(O){return new Promise(function(k,N){O.onload=function(){k(O.result)},O.onerror=function(){N(O.error)}})}function v(O){var k=new FileReader,N=S(k);return k.readAsArrayBuffer(O),N}function y(O){var k=new FileReader,N=S(k);return k.readAsText(O),N}function w(O){for(var k=new Uint8Array(O),N=new Array(k.length),A=0;A-1?k:O}function R(O,k){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');k=k||{};var N=k.body;if(O instanceof R){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,k.headers||(this.headers=new b(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,!N&&O._bodyInit!=null&&(N=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=k.credentials||this.credentials||"same-origin",(k.headers||!this.headers)&&(this.headers=new b(k.headers)),this.method=T(k.method||this.method||"GET"),this.mode=k.mode||this.mode||null,this.signal=k.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(k.cache==="no-store"||k.cache==="no-cache")){var A=/([?&])_=[^&]*/;if(A.test(this.url))this.url=this.url.replace(A,"$1_="+new Date().getTime());else{var L=/\?/;this.url+=(L.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function _(O){var k=new FormData;return O.trim().split("&").forEach(function(N){if(N){var A=N.split("="),L=A.shift().replace(/\+/g," "),j=A.join("=").replace(/\+/g," ");k.append(decodeURIComponent(L),decodeURIComponent(j))}}),k}function $(O){var k=new b,N=O.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(A){return A.indexOf(` +`)===0?A.substr(1,A.length):A}).forEach(function(A){var L=A.split(":"),j=L.shift().trim();if(j){var F=L.join(":").trim();k.append(j,F)}}),k}E.call(R.prototype);function M(O,k){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');k||(k={}),this.type="default",this.status=k.status===void 0?200:k.status,this.ok=this.status>=200&&this.status<300,this.statusText=k.statusText===void 0?"":""+k.statusText,this.headers=new b(k.headers),this.url=k.url||"",this._initBody(O)}E.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},M.error=function(){var O=new M(null,{status:0,statusText:""});return O.type="error",O};var P=[301,302,303,307,308];M.redirect=function(O,k){if(P.indexOf(k)===-1)throw new RangeError("Invalid status code");return new M(null,{status:k,headers:{location:O}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(k,N){this.message=k,this.name=N;var A=Error(k);this.stack=A.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function D(O,k){return new Promise(function(N,A){var L=new R(O,k);if(L.signal&&L.signal.aborted)return A(new i.DOMException("Aborted","AbortError"));var j=new XMLHttpRequest;function F(){j.abort()}j.onload=function(){var z={status:j.status,statusText:j.statusText,headers:$(j.getAllResponseHeaders()||"")};z.url="responseURL"in j?j.responseURL:z.headers.get("X-Request-URL");var U="response"in j?j.response:j.responseText;setTimeout(function(){N(new M(U,z))},0)},j.onerror=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},j.ontimeout=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},j.onabort=function(){setTimeout(function(){A(new i.DOMException("Aborted","AbortError"))},0)};function B(z){try{return z===""&&s.location.href?s.location.href:z}catch{return z}}j.open(L.method,B(L.url),!0),L.credentials==="include"?j.withCredentials=!0:L.credentials==="omit"&&(j.withCredentials=!1),"responseType"in j&&(c.blob?j.responseType="blob":c.arrayBuffer&&L.headers.get("Content-Type")&&L.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(j.responseType="arraybuffer")),k&&typeof k.headers=="object"&&!(k.headers instanceof b)?Object.getOwnPropertyNames(k.headers).forEach(function(z){j.setRequestHeader(z,m(k.headers[z]))}):L.headers.forEach(function(z,U){j.setRequestHeader(U,z)}),L.signal&&(L.signal.addEventListener("abort",F),j.onreadystatechange=function(){j.readyState===4&&L.signal.removeEventListener("abort",F)}),j.send(typeof L._bodyInit>"u"?null:L._bodyInit)})}return D.polyfill=!0,s.fetch||(s.fetch=D,s.Headers=b,s.Request=R,s.Response=M),i.Headers=b,i.Request=R,i.Response=M,i.fetch=D,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=n.fetch?n:r;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(vh,vh.exports)),vh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Aa<"u"&&Aa.fetch?n=Aa.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof Ene<"u"&&typeof window>"u"){var r=n||Ine();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(YT,YT.exports);var sH=YT.exports;const lH=Wa(sH),KA=f$({__proto__:null,default:lH},[sH]);function YA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XA(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=XA({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},QA?{}:i),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{ZA(n,s,a,c)}catch(u){if(!i||Object.keys(i).length===0||!u.message||u.message.indexOf("not implemented")<0)return a(u);try{Object.keys(i).forEach(function(d){delete s[d]}),ZA(n,s,a,c),QA=!0}catch(d){a(d)}}},One=function(t,n,r,a){r&&Mc(r)==="object"&&(r=XT("",r).slice(1)),t.queryStringParams&&(n=XT(n,t.queryStringParams));try{var o;vg?o=new vg:o=new Ib("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var s in i)o.setRequestHeader(s,i[s]);o.onreadystatechange=function(){o.readyState>3&&a(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},Nne=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},xs&&n.indexOf("file:")!==0)return $ne(t,n,r,a);if(iH()||typeof ActiveXObject=="function")return One(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function Td(e){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Td(e)}function JA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jx(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};kne(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Mne(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Jx(Jx(Jx({},Pne()),this.options||{}),a),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);Td(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,o,i){var s=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=Cne(c),c.then(function(u){if(!u)return i(null,{});var d=s.services.interpolator.interpolate(u,{lng:n.join("+"),ns:a.join("+")});s.loadUrl(d,i,r,o)})}},{key:"loadUrl",value:function(n,r,a,o){var i=this,s=typeof a=="string"?[a]:a,c=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(s,c);this.options.request(this.options,n,u,function(d,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&d&&d.message){var g=d.message.toLowerCase(),m=["failed","fetch","network","load"].find(function(x){return g.indexOf(x)>-1});if(m)return r("failed loading "+n+": "+d.message,!0)}if(d)return r(d,!1);var h,b;try{typeof p.data=="string"?h=i.options.parse(p.data,a,o):h=p.data}catch{b="failed parsing "+n+" to json"}if(b)return r(b,!1);r(null,h)})}},{key:"create",value:function(n,r,a,o,i){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,o),u=0,d=[],p=[];n.forEach(function(g){var m=s.options.addPath;typeof s.options.addPath=="function"&&(m=s.options.addPath(g,r));var h=s.services.interpolator.interpolate(m,{lng:g,ns:r});s.options.request(s.options,h,c,function(b,x){u+=1,d.push(b),p.push(x),u===n.length&&typeof i=="function"&&i(d,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,o=r.languageUtils,i=r.logger,s=a.language;if(!(s&&s.toLowerCase()==="cimode")){var c=[],u=function(p){var g=o.toResolveHierarchy(p);g.forEach(function(m){c.indexOf(m)<0&&c.push(m)})};u(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),c.forEach(function(d){n.allOptions.ns.forEach(function(p){a.read(d,p,"read",null,null,function(g,m){g&&i.warn("loading namespace ".concat(p," for language ").concat(d," failed"),g),!g&&m&&i.log("loaded namespace ".concat(p," for language ").concat(d),m),a.loaded("".concat(d,"|").concat(p),g,m)})})})}}}])}();dH.type="backend";const{slice:Lne,forEach:jne}=[];function Fne(e){return jne.call(Lne.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const e4=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Bne=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!e4.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!e4.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},t4={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=Bne(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let s=0;s0&&i[s].substring(0,c)===t&&(n=i[s].substring(c+1))}}return n}};let Hf=null;const n4=()=>{if(Hf!==null)return Hf;try{Hf=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Hf=!1}return Hf};var Une={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&n4())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&n4()&&window.localStorage.setItem(n,e)}};let Uf=null;const r4=()=>{if(Uf!==null)return Uf;try{Uf=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Uf=!1}return Uf};var Vne={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&r4())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&r4()&&window.sessionStorage.setItem(n,e)}},Wne={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o0?t:void 0}},Gne={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},qne={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},Kne={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function Yne(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class fH{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Fne(n,this.options||{},Yne()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(zne),this.addDetector(Hne),this.addDetector(Une),this.addDetector(Vne),this.addDetector(Wne),this.addDetector(Gne),this.addDetector(qne),this.addDetector(Kne)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}fH.type="languageDetector";dr.use(dH).use(fH).use(Kte).init({supportedLngs:["en","de","fr","es"],fallbackLng:"en",ns:["teddycloud"],defaultNS:"teddycloud",debug:!1,backend:{queryStringParams:{v:"2023072701"},loadPath:"/web/translations/{{lng}}.json"},interpolation:{escapeValue:!1}});/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. @@ -48,7 +48,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function pH(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zne(){return Math.random().toString(36).substr(2,8)}function o4(e,t){return{usr:e.state,key:e.key,idx:t}}function XT(e,t,n,r){return n===void 0&&(n=null),vg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?tf(t):t,{state:n,key:t&&t.key||r||Zne()})}function Ib(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function tf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Qne(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=ll.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(vg({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function p(){s=ll.Pop;let x=d(),S=x==null?null:x-u;u=x,c&&c({action:s,location:b.location,delta:S})}function g(x,S){s=ll.Push;let v=XT(b.location,x,S);u=d()+1;let y=o4(v,u),C=b.createHref(v);try{i.pushState(y,"",C)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(C)}o&&c&&c({action:s,location:b.location,delta:1})}function m(x,S){s=ll.Replace;let v=XT(b.location,x,S);u=d();let y=o4(v,u),C=b.createHref(v);i.replaceState(y,"",C),o&&c&&c({action:s,location:b.location,delta:0})}function h(x){let S=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof x=="string"?x:Ib(x);return v=v.replace(/ $/,"%20"),Ur(S,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,S)}let b={get action(){return s},get location(){return e(a,i)},listen(x){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(a4,p),c=x,()=>{a.removeEventListener(a4,p),c=null}},createHref(x){return t(a,x)},createURL:h,encodeLocation(x){let S=h(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:m,go(x){return i.go(x)}};return b}var i4;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(i4||(i4={}));function Jne(e,t,n){return n===void 0&&(n="/"),ere(e,t,n,!1)}function ere(e,t,n,r){let a=typeof t=="string"?tf(t):t,o=sO(a.pathname||"/",n);if(o==null)return null;let i=gH(e);tre(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Ur(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=El([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Ur(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),gH(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:lre(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let c of mH(o.path))a(o,i,c)}),t}function mH(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=mH(r.join("/")),s=[];return s.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function tre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nre=/^:[\w-]+$/,rre=3,are=2,ore=1,ire=10,sre=-2,s4=e=>e==="*";function lre(e,t){let n=e.split("/"),r=n.length;return n.some(s4)&&(r+=sre),t&&(r+=are),n.filter(a=>!s4(a)).reduce((a,o)=>a+(nre.test(o)?rre:o===""?ore:ire),r)}function cre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function ure(e,t,n){let{routesMeta:r}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:g,isOptional:m}=d;if(g==="*"){let b=s[p]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const h=s[p];return m&&!h?u[g]=void 0:u[g]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function dre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pH(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function fre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pH(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function sO(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?tf(e):e;return{pathname:n?n.startsWith("/")?n:gre(n,t):t,search:vre(r),hash:bre(a)}}function gre(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Qx(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function mre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hH(e,t){let n=mre(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function vH(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=tf(e):(a=vg({},e),Ur(!a.pathname||!a.pathname.includes("?"),Qx("?","pathname","search",a)),Ur(!a.pathname||!a.pathname.includes("#"),Qx("#","pathname","hash",a)),Ur(!a.search||!a.search.includes("#"),Qx("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p-=1;a.pathname=g.join("/")}s=p>=0?t[p]:"/"}let c=pre(a,s),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const El=e=>e.join("/").replace(/\/\/+/g,"/"),hre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bH=["post","put","patch","delete"];new Set(bH);const xre=["get",...bH];new Set(xre);/** + */function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function pH(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Zne(){return Math.random().toString(36).substr(2,8)}function o4(e,t){return{usr:e.state,key:e.key,idx:t}}function ZT(e,t,n,r){return n===void 0&&(n=null),bg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?tf(t):t,{state:n,key:t&&t.key||r||Zne()})}function Tb(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function tf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Qne(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=cl.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(bg({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function p(){s=cl.Pop;let x=d(),S=x==null?null:x-u;u=x,c&&c({action:s,location:b.location,delta:S})}function g(x,S){s=cl.Push;let v=ZT(b.location,x,S);u=d()+1;let y=o4(v,u),w=b.createHref(v);try{i.pushState(y,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(w)}o&&c&&c({action:s,location:b.location,delta:1})}function m(x,S){s=cl.Replace;let v=ZT(b.location,x,S);u=d();let y=o4(v,u),w=b.createHref(v);i.replaceState(y,"",w),o&&c&&c({action:s,location:b.location,delta:0})}function h(x){let S=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof x=="string"?x:Tb(x);return v=v.replace(/ $/,"%20"),Ur(S,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,S)}let b={get action(){return s},get location(){return e(a,i)},listen(x){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(a4,p),c=x,()=>{a.removeEventListener(a4,p),c=null}},createHref(x){return t(a,x)},createURL:h,encodeLocation(x){let S=h(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:m,go(x){return i.go(x)}};return b}var i4;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(i4||(i4={}));function Jne(e,t,n){return n===void 0&&(n="/"),ere(e,t,n,!1)}function ere(e,t,n,r){let a=typeof t=="string"?tf(t):t,o=sO(a.pathname||"/",n);if(o==null)return null;let i=gH(e);tre(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Ur(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=El([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Ur(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),gH(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:lre(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let c of mH(o.path))a(o,i,c)}),t}function mH(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=mH(r.join("/")),s=[];return s.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function tre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nre=/^:[\w-]+$/,rre=3,are=2,ore=1,ire=10,sre=-2,s4=e=>e==="*";function lre(e,t){let n=e.split("/"),r=n.length;return n.some(s4)&&(r+=sre),t&&(r+=are),n.filter(a=>!s4(a)).reduce((a,o)=>a+(nre.test(o)?rre:o===""?ore:ire),r)}function cre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function ure(e,t,n){let{routesMeta:r}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:g,isOptional:m}=d;if(g==="*"){let b=s[p]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const h=s[p];return m&&!h?u[g]=void 0:u[g]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function dre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pH(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function fre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pH(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function sO(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?tf(e):e;return{pathname:n?n.startsWith("/")?n:gre(n,t):t,search:vre(r),hash:bre(a)}}function gre(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function eS(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function mre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hH(e,t){let n=mre(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function vH(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=tf(e):(a=bg({},e),Ur(!a.pathname||!a.pathname.includes("?"),eS("?","pathname","search",a)),Ur(!a.pathname||!a.pathname.includes("#"),eS("#","pathname","hash",a)),Ur(!a.search||!a.search.includes("#"),eS("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p-=1;a.pathname=g.join("/")}s=p>=0?t[p]:"/"}let c=pre(a,s),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const El=e=>e.join("/").replace(/\/\/+/g,"/"),hre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bH=["post","put","patch","delete"];new Set(bH);const xre=["get",...bH];new Set(xre);/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let p=vH(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:El([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,i,o,e])}function SH(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(Yc),{matches:a}=l.useContext(Xc),{pathname:o}=oi(),i=JSON.stringify(hH(a,r.v7_relativeSplatPath));return l.useMemo(()=>vH(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Ere(e,t){return Ire(e,t)}function Ire(e,t,n,r){am()||Ur(!1);let{navigator:a}=l.useContext(Yc),{matches:o}=l.useContext(Xc),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=oi(),d;if(t){var p;let x=typeof t=="string"?tf(t):t;c==="/"||(p=x.pathname)!=null&&p.startsWith(c)||Ur(!1),d=x}else d=u;let g=d.pathname||"/",m=g;if(c!=="/"){let x=c.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let h=Jne(e,{pathname:m}),b=Ore(h&&h.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:El([c,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:El([c,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&b?l.createElement(O0.Provider,{value:{location:bg({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ll.Pop}},b):b}function Tre(){let e=Mre(),t=yre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,null)}const Rre=l.createElement(Tre,null);class _re extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(Xc.Provider,{value:this.props.routeContext},l.createElement(yH.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $re(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(lO);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(Xc.Provider,{value:t},r)}function Ore(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(a=n)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);d>=0||Ur(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,g)=>{let m,h=!1,b=null,x=null;n&&(m=s&&p.route.id?s[p.route.id]:void 0,b=p.route.errorElement||Rre,c&&(u<0&&g===0?(h=!0,x=null):u===g&&(h=!0,x=p.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,g+1)),v=()=>{let y;return m?y=b:h?y=x:p.route.Component?y=l.createElement(p.route.Component,null):p.route.element?y=p.route.element:y=d,l.createElement($re,{match:p,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:y})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?l.createElement(_re,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:v(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):v()},null)}var CH=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(CH||{}),Tb=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Tb||{});function Nre(e){let t=l.useContext(lO);return t||Ur(!1),t}function kre(e){let t=l.useContext(Sre);return t||Ur(!1),t}function Are(e){let t=l.useContext(Xc);return t||Ur(!1),t}function wH(e){let t=Are(),n=t.matches[t.matches.length-1];return n.route.id||Ur(!1),n.route.id}function Mre(){var e;let t=l.useContext(yH),n=kre(Tb.UseRouteError),r=wH(Tb.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Dre(){let{router:e}=Nre(CH.UseNavigateStable),t=wH(Tb.UseNavigateStable),n=l.useRef(!1);return xH(()=>{n.current=!0}),l.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,bg({fromRouteId:t},o)))},[e,t])}function On(e){Ur(!1)}function Pre(e){let{basename:t="/",children:n=null,location:r,navigationType:a=ll.Pop,navigator:o,static:i=!1,future:s}=e;am()&&Ur(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:o,static:i,future:bg({v7_relativeSplatPath:!1},s)}),[c,s,o,i]);typeof r=="string"&&(r=tf(r));let{pathname:d="/",search:p="",hash:g="",state:m=null,key:h="default"}=r,b=l.useMemo(()=>{let x=sO(d,c);return x==null?null:{location:{pathname:x,search:p,hash:g,state:m,key:h},navigationType:a}},[c,d,p,g,m,h,a]);return b==null?null:l.createElement(Yc.Provider,{value:u},l.createElement(O0.Provider,{children:n,value:b}))}function Lre(e){let{children:t,location:n}=e;return Ere(ZT(t),n)}new Promise(()=>{});function ZT(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,ZT(r.props.children,o));return}r.type!==On&&Ur(!1),!r.props.index||!r.props.children||Ur(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=ZT(r.props.children,o)),n.push(i)}),n}/** + */function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let p=vH(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:El([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,i,o,e])}function SH(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(Yc),{matches:a}=l.useContext(Xc),{pathname:o}=ii(),i=JSON.stringify(hH(a,r.v7_relativeSplatPath));return l.useMemo(()=>vH(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Ere(e,t){return Ire(e,t)}function Ire(e,t,n,r){om()||Ur(!1);let{navigator:a}=l.useContext(Yc),{matches:o}=l.useContext(Xc),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=ii(),d;if(t){var p;let x=typeof t=="string"?tf(t):t;c==="/"||(p=x.pathname)!=null&&p.startsWith(c)||Ur(!1),d=x}else d=u;let g=d.pathname||"/",m=g;if(c!=="/"){let x=c.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let h=Jne(e,{pathname:m}),b=Ore(h&&h.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:El([c,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:El([c,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&b?l.createElement(k0.Provider,{value:{location:yg({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:cl.Pop}},b):b}function Tre(){let e=Mre(),t=yre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,null)}const Rre=l.createElement(Tre,null);class _re extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(Xc.Provider,{value:this.props.routeContext},l.createElement(yH.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $re(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(lO);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(Xc.Provider,{value:t},r)}function Ore(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(a=n)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);d>=0||Ur(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,p,g)=>{let m,h=!1,b=null,x=null;n&&(m=s&&p.route.id?s[p.route.id]:void 0,b=p.route.errorElement||Rre,c&&(u<0&&g===0?(h=!0,x=null):u===g&&(h=!0,x=p.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,g+1)),v=()=>{let y;return m?y=b:h?y=x:p.route.Component?y=l.createElement(p.route.Component,null):p.route.element?y=p.route.element:y=d,l.createElement($re,{match:p,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:y})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?l.createElement(_re,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:v(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):v()},null)}var wH=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wH||{}),Rb=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rb||{});function Nre(e){let t=l.useContext(lO);return t||Ur(!1),t}function kre(e){let t=l.useContext(Sre);return t||Ur(!1),t}function Are(e){let t=l.useContext(Xc);return t||Ur(!1),t}function CH(e){let t=Are(),n=t.matches[t.matches.length-1];return n.route.id||Ur(!1),n.route.id}function Mre(){var e;let t=l.useContext(yH),n=kre(Rb.UseRouteError),r=CH(Rb.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Dre(){let{router:e}=Nre(wH.UseNavigateStable),t=CH(Rb.UseNavigateStable),n=l.useRef(!1);return xH(()=>{n.current=!0}),l.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,yg({fromRouteId:t},o)))},[e,t])}function Nn(e){Ur(!1)}function Pre(e){let{basename:t="/",children:n=null,location:r,navigationType:a=cl.Pop,navigator:o,static:i=!1,future:s}=e;om()&&Ur(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:o,static:i,future:yg({v7_relativeSplatPath:!1},s)}),[c,s,o,i]);typeof r=="string"&&(r=tf(r));let{pathname:d="/",search:p="",hash:g="",state:m=null,key:h="default"}=r,b=l.useMemo(()=>{let x=sO(d,c);return x==null?null:{location:{pathname:x,search:p,hash:g,state:m,key:h},navigationType:a}},[c,d,p,g,m,h,a]);return b==null?null:l.createElement(Yc.Provider,{value:u},l.createElement(k0.Provider,{children:n,value:b}))}function Lre(e){let{children:t,location:n}=e;return Ere(QT(t),n)}new Promise(()=>{});function QT(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,QT(r.props.children,o));return}r.type!==Nn&&Ur(!1),!r.props.index||!r.props.children||Ur(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=QT(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. @@ -66,11 +66,11 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function Fre(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Bre(e,t){return e.button===0&&(!t||t==="_self")&&!Fre(e)}const zre=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hre="6";try{window.__reactRouterVersion=Hre}catch{}const Ure="startTransition",c4=Jg[Ure];function Vre(e){let{basename:t,children:n,future:r,window:a}=e,o=l.useRef();o.current==null&&(o.current=Xne({window:a,v5Compat:!0}));let i=o.current,[s,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=l.useCallback(p=>{u&&c4?c4(()=>c(p)):c(p)},[c,u]);return l.useLayoutEffect(()=>i.listen(d),[i,d]),l.createElement(Pre,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const Wre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ot=l.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:c,to:u,preventScrollReset:d,viewTransition:p}=t,g=jre(t,zre),{basename:m}=l.useContext(Yc),h,b=!1;if(typeof u=="string"&&Gre.test(u)&&(h=u,Wre))try{let y=new URL(window.location.href),C=u.startsWith("//")?new URL(y.protocol+u):new URL(u),w=sO(C.pathname,m);C.origin===y.origin&&w!=null?u=w+C.search+C.hash:b=!0}catch{}let x=Cre(u,{relative:a}),S=qre(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:a,viewTransition:p});function v(y){r&&r(y),y.defaultPrevented||S(y)}return l.createElement("a",QT({},g,{href:h||x,onClick:b||o?r:v,ref:n,target:c}))});var u4;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(u4||(u4={}));var d4;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(d4||(d4={}));function qre(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,c=Zc(),u=oi(),d=SH(e,{relative:i});return l.useCallback(p=>{if(Bre(p,n)){p.preventDefault();let g=r!==void 0?r:Ib(u)===Ib(d);c(e,{replace:g,state:a,preventScrollReset:o,relative:i,viewTransition:s})}},[u,c,d,r,a,n,e,o,i,s])}var EH={exports:{}};/*! + */function JT(){return JT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function Fre(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Bre(e,t){return e.button===0&&(!t||t==="_self")&&!Fre(e)}const zre=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hre="6";try{window.__reactRouterVersion=Hre}catch{}const Ure="startTransition",c4=em[Ure];function Vre(e){let{basename:t,children:n,future:r,window:a}=e,o=l.useRef();o.current==null&&(o.current=Xne({window:a,v5Compat:!0}));let i=o.current,[s,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=l.useCallback(p=>{u&&c4?c4(()=>c(p)):c(p)},[c,u]);return l.useLayoutEffect(()=>i.listen(d),[i,d]),l.createElement(Pre,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const Wre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,it=l.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:c,to:u,preventScrollReset:d,viewTransition:p}=t,g=jre(t,zre),{basename:m}=l.useContext(Yc),h,b=!1;if(typeof u=="string"&&Gre.test(u)&&(h=u,Wre))try{let y=new URL(window.location.href),w=u.startsWith("//")?new URL(y.protocol+u):new URL(u),C=sO(w.pathname,m);w.origin===y.origin&&C!=null?u=C+w.search+w.hash:b=!0}catch{}let x=wre(u,{relative:a}),S=qre(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:a,viewTransition:p});function v(y){r&&r(y),y.defaultPrevented||S(y)}return l.createElement("a",JT({},g,{href:h||x,onClick:b||o?r:v,ref:n,target:c}))});var u4;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(u4||(u4={}));var d4;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(d4||(d4={}));function qre(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,c=Zc(),u=ii(),d=SH(e,{relative:i});return l.useCallback(p=>{if(Bre(p,n)){p.preventDefault();let g=r!==void 0?r:Tb(u)===Tb(d);c(e,{replace:g,state:a,preventScrollReset:o,relative:i,viewTransition:s})}},[u,c,d,r,a,n,e,o,i,s])}var EH={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_r(r)):Np.isFragment(r)&&r.props?n=n.concat(_r(r.props.children,t)):n.push(r))}),n}var JT={},Zre=function(t){};function Qre(e,t){}function Jre(e,t){}function eae(){JT={}}function RH(e,t,n){!t&&!JT[n]&&(e(!1,n),JT[n]=!0)}function _n(e,t){RH(Qre,e,t)}function _H(e,t){RH(Jre,e,t)}_n.preMessage=Zre;_n.resetWarned=eae;_n.noteOnce=_H;function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function tae(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $H(e){var t=tae(e,"string");return mt(t)=="symbol"?t:t+""}function V(e,t,n){return(t=$H(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t=19;var tR=l.createContext(null);function rae(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(tR),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;a.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,c,u)},[n,o]);return l.createElement(tR.Provider,{value:i},t)}var OH=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!nR||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),cae?(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)},e.prototype.disconnect_=function(){!nR||!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)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=lae.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),NH=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Rd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new bae(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Rd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new yae(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),AH=typeof WeakMap<"u"?new WeakMap:new OH,MH=function(){function e(t){if(!(this instanceof e))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=uae.getInstance(),r=new xae(t,n,this);AH.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){MH.prototype[e]=function(){var t;return(t=AH.get(this))[e].apply(t,arguments)}});var Sae=function(){return typeof Rb.ResizeObserver<"u"?Rb.ResizeObserver:MH}(),cl=new Map;function Cae(e){e.forEach(function(t){var n,r=t.target;(n=cl.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var DH=new Sae(Cae);function wae(e,t){cl.has(e)||(cl.set(e,new Set),DH.observe(e)),cl.get(e).add(t)}function Eae(e,t){cl.has(e)&&(cl.get(e).delete(t),cl.get(e).size||(DH.unobserve(e),cl.delete(e)))}function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g4(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;m4+=1;var r=m4;function a(o){if(o===0)BH(r),t();else{var i=jH(function(){a(o-1)});pO.set(r,i)}}return a(n),r};Ht.cancel=function(e){var t=pO.get(e);return BH(e),FH(t)};function zH(e){if(Array.isArray(e))return e}function kae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function HH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e,t){return zH(e)||kae(e,t)||fO(e,t)||HH()}function Cg(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function da(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function aR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var h4="data-rc-order",v4="data-rc-priority",Aae="rc-util-key",oR=new Map;function UH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Aae}function U0(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Mae(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function gO(e){return Array.from((oR.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function VH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!da())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=Mae(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(h4,i),s&&o&&c.setAttribute(v4,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=U0(t),d=u.firstChild;if(r){if(s){var p=(t.styles||gO(u)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(h4)))return!1;var m=Number(g.getAttribute(v4)||0);return o>=m});if(p.length)return u.insertBefore(c,p[p.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function WH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=U0(t);return(t.styles||gO(n)).find(function(r){return r.getAttribute(UH(t))===e})}function wg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=WH(e,t);if(n){var r=U0(t);r.removeChild(n)}}function Dae(e,t){var n=oR.get(e);if(!n||!aR(document,n)){var r=VH("",t),a=r.parentNode;oR.set(e,a),e.removeChild(r)}}function ys(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=U0(n),a=gO(r),o=X(X({},n),{},{styles:a});Dae(r,o);var i=WH(t,o);if(i){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=VH(e,o);return d.setAttribute(UH(o),t),d}function Pae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function wt(e,t){if(e==null)return{};var n,r,a=Pae(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(_n(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.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 a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var p=le(u,2),g=p[1];return a.internalGet(d)[1]0,void 0),b4+=1}return er(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),Jx=new mO;function Eg(e){var t=Array.isArray(e)?e:[e];return Jx.has(t)||Jx.set(t,new GH(t)),Jx.get(t)}var zae=new WeakMap,eS={};function Hae(e,t){for(var n=zae,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=y4.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof GH?n+=a.id:a&&mt(a)==="object"?n+=Ap(a,t):n+=a}),t&&(n=Cg(n)),y4.set(e,n)),n}function x4(e,t){return Cg("".concat(t,"_").concat(Ap(e,!0)))}var sR=da();function G(e){return typeof e=="number"?"".concat(e,"px"):e}function $b(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=X(X({},r),{},V(V({},_d,t),Ci,n)),i=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var wv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},Uae=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=le(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},qH=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var s,c,u=le(i,2),d=u[0],p=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var g,m=wv(d,r==null?void 0:r.prefix);a[m]=typeof p=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[d])?"".concat(p,"px"):String(p),o[d]="var(".concat(m,")")}}),[o,Uae(a,n,{scope:r==null?void 0:r.scope})]},S4=da()?l.useLayoutEffect:l.useEffect,Yt=function(t,n){var r=l.useRef(!0);S4(function(){return t(r.current)},n),S4(function(){return r.current=!1,function(){r.current=!0}},[])},Cc=function(t,n){Yt(function(r){if(!r)return t()},n)},Vae=X({},Jg),C4=Vae.useInsertionEffect,Wae=function(t,n,r){l.useMemo(t,r),Yt(function(){return n(!0)},r)},Gae=C4?function(e,t,n){return C4(function(){return e(),t()},n)}:Wae,qae=X({},Jg),Kae=qae.useInsertionEffect,Yae=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Xae=function(){return function(t){t()}},Zae=typeof Kae<"u"?Yae:Xae;function hO(e,t,n,r,a){var o=l.useContext(V0),i=o.cache,s=[e].concat(Me(t)),c=iR(s),u=Zae([c]),d=function(h){i.opUpdate(c,function(b){var x=b||[void 0,void 0],S=le(x,2),v=S[0],y=v===void 0?0:v,C=S[1],w=C,E=w||n(),I=[y,E];return h?h(I):I})};l.useMemo(function(){d()},[c]);var p=i.opGet(c),g=p[1];return Gae(function(){a==null||a(g)},function(m){return d(function(h){var b=le(h,2),x=b[0],S=b[1];return m&&x===0&&(a==null||a(g)),[x+1,S]}),function(){i.opUpdate(c,function(h){var b=h||[],x=le(b,2),S=x[0],v=S===void 0?0:S,y=x[1],C=v-1;return C===0?(u(function(){(m||!i.opGet(c))&&(r==null||r(y,!1))}),null):[v-1,y]})}},[c]),g}var Qae={},Jae="css",sc=new Map;function eoe(e){sc.set(e,(sc.get(e)||0)+1)}function toe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_d,'="').concat(e,'"]'));n.forEach(function(r){if(r[ul]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var noe=0;function roe(e,t){sc.set(e,(sc.get(e)||0)-1);var n=Array.from(sc.keys()),r=n.filter(function(a){var o=sc.get(a)||0;return o<=0});n.length-r.length>noe&&r.forEach(function(a){toe(a,t),sc.delete(a)})}var KH=function(t,n,r,a){var o=r.getDerivativeToken(t),i=X(X({},o),n);return a&&(i=a(i)),i},YH="token";function aoe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(V0),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?Qae:c,d=n.formatToken,p=n.getComputedToken,g=n.cssVar,m=Hae(function(){return Object.assign.apply(Object,[{}].concat(Me(t)))},t),h=Ap(m),b=Ap(u),x=g?Ap(g):"",S=hO(YH,[s,e.id,h,b,x],function(){var v,y=p?p(m,u,e):KH(m,u,e,d),C=X({},y),w="";if(g){var E=qH(y,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),I=le(E,2);y=I[0],w=I[1]}var T=x4(y,s);y._tokenKey=T,C._tokenKey=x4(C,s);var R=(v=g==null?void 0:g.key)!==null&&v!==void 0?v:T;y._themeKey=R,eoe(R);var _="".concat(Jae,"-").concat(Cg(T));return y._hashId=_,[y,_,C,w,(g==null?void 0:g.key)||""]},function(v){roe(v[0]._themeKey,a)},function(v){var y=le(v,4),C=y[0],w=y[3];if(g&&w){var E=ys(w,Cg("css-variables-".concat(C._themeKey)),{mark:Ci,prepend:"queue",attachTo:o,priority:-999});E[ul]=a,E.setAttribute(_d,C._themeKey)}});return S}var ooe=function(t,n,r){var a=le(t,5),o=a[2],i=a[3],s=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},m=$b(i,s,d,g,u);return[p,d,m]},ioe={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},XH="comm",ZH="rule",QH="decl",soe="@import",loe="@keyframes",coe="@layer",JH=Math.abs,vO=String.fromCharCode;function eU(e){return e.trim()}function Ev(e,t,n){return e.replace(t,n)}function uoe(e,t,n){return e.indexOf(t,n)}function Ig(e,t){return e.charCodeAt(t)|0}function $d(e,t,n){return e.slice(t,n)}function zi(e){return e.length}function doe(e){return e.length}function vh(e,t){return t.push(e),e}var W0=1,Od=1,tU=0,ei=0,Br=0,nf="";function bO(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:W0,column:Od,length:i,return:"",siblings:s}}function foe(){return Br}function poe(){return Br=ei>0?Ig(nf,--ei):0,Od--,Br===10&&(Od=1,W0--),Br}function wi(){return Br=ei2||Tg(Br)>3?"":" "}function voe(e,t){for(;--t&&wi()&&!(Br<48||Br>102||Br>57&&Br<65||Br>70&&Br<97););return G0(e,Iv()+(t<6&&dl()==32&&wi()==32))}function lR(e){for(;wi();)switch(Br){case e:return ei;case 34:case 39:e!==34&&e!==39&&lR(Br);break;case 40:e===41&&lR(e);break;case 92:wi();break}return ei}function boe(e,t){for(;wi()&&e+Br!==57;)if(e+Br===84&&dl()===47)break;return"/*"+G0(t,ei-1)+"*"+vO(e===47?e:wi())}function yoe(e){for(;!Tg(dl());)wi();return G0(e,ei)}function xoe(e){return moe(Tv("",null,null,null,[""],e=goe(e),0,[0],e))}function Tv(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,p=i,g=0,m=0,h=0,b=1,x=1,S=1,v=0,y="",C=a,w=o,E=r,I=y;x;)switch(h=v,v=wi()){case 40:if(h!=108&&Ig(I,p-1)==58){uoe(I+=Ev(tS(v),"&","&\f"),"&\f",JH(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=tS(v);break;case 9:case 10:case 13:case 32:I+=hoe(h);break;case 92:I+=voe(Iv()-1,7);continue;case 47:switch(dl()){case 42:case 47:vh(Soe(boe(wi(),Iv()),t,n,c),c),(Tg(h||1)==5||Tg(dl()||1)==5)&&zi(I)&&$d(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:s[u++]=zi(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:S==-1&&(I=Ev(I,/\f/g,"")),m>0&&(zi(I)-p||b===0&&h===47)&&vh(m>32?E4(I+";",r,n,p-1,c):E4(Ev(I," ","")+";",r,n,p-2,c),c);break;case 59:I+=";";default:if(vh(E=w4(I,t,n,u,d,a,s,y,C=[],w=[],p,o),o),v===123)if(d===0)Tv(I,t,E,E,C,o,p,s,w);else switch(g===99&&Ig(I,3)===110?100:g){case 100:case 108:case 109:case 115:Tv(e,E,E,r&&vh(w4(e,E,E,0,0,a,s,y,a,C=[],p,w),w),a,w,p,s,r?C:w);break;default:Tv(I,E,E,E,[""],w,0,s,w)}}u=d=m=0,b=S=1,y=I="",p=i;break;case 58:p=1+zi(I),m=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&poe()==125)continue}switch(I+=vO(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(zi(I)-1)*S,S=1;break;case 64:dl()===45&&(I+=tS(wi())),g=dl(),d=p=zi(y=I+=yoe(Iv())),v++;break;case 45:h===45&&zi(I)==2&&(b=0)}}return o}function w4(e,t,n,r,a,o,i,s,c,u,d,p){for(var g=a-1,m=a===0?o:[""],h=doe(m),b=0,x=0,S=0;b0?m[v]+" "+y:Ev(y,/&\f/g,m[v])))&&(c[S++]=C);return bO(e,t,n,a===0?ZH:s,c,u,d,p)}function Soe(e,t,n,r){return bO(e,t,n,XH,vO(foe()),$d(e,2,-2),0,r)}function E4(e,t,n,r,a){return bO(e,t,n,QH,$d(e,0,r),$d(e,r+1,-1),r,a)}function cR(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,p=d===void 0?[]:d;n.linters;var g="",m={};function h(S){var v=S.getName(s);if(!m[v]){var y=e(S.style,n,{root:!1,parentSelectors:i}),C=le(y,1),w=C[0];m[v]="@keyframes ".concat(S.getName(s)).concat(w)}}function b(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(y){Array.isArray(y)?b(y,v):y&&v.push(y)}),v}var x=b(Array.isArray(t)?t:[t]);return x.forEach(function(S){var v=typeof S=="string"&&!a?{}:S;if(typeof v=="string")g+="".concat(v,` -`);else if(v._keyframe)h(v);else{var y=p.reduce(function(C,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,C))||C},v);Object.keys(y).forEach(function(C){var w=y[C];if(mt(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!Roe(w)){var E=!1,I=C.trim(),T=!1;(a||o)&&s?I.startsWith("@")?E=!0:I==="&"?I=T4("",s,u):I=T4(C,s,u):a&&!s&&(I==="&"||I==="")&&(I="",T=!0);var R=e(w,n,{root:T,injectHash:E,parentSelectors:[].concat(Me(i),[I])}),_=le(R,2),$=_[0],M=_[1];m=X(X({},m),M),g+="".concat(I).concat($)}else{let O=function(k,N){var A=k.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),L=N;!ioe[k]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),k==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(h(N),L=N.getName(s)),g+="".concat(A,":").concat(L,";")};var P,D=(P=w==null?void 0:w.value)!==null&&P!==void 0?P:w;mt(w)==="object"&&w!==null&&w!==void 0&&w[aU]&&Array.isArray(D)?D.forEach(function(k){O(C,k)}):O(C,D)}})}}),a?c&&(g="@layer ".concat(c.name," {").concat(g,"}"),c.dependencies&&(m["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(` -`))):g="{".concat(g,"}"),[g,m]};function oU(e,t){return Cg("".concat(e.join("%")).concat(t))}function $oe(){return null}var iU="style";function uR(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(V0),p=d.autoClear;d.mock;var g=d.defaultCache,m=d.hashPriority,h=d.container,b=d.ssrInline,x=d.transformers,S=d.linters,v=d.cache,y=d.layer,C=n._tokenKey,w=[C];y&&w.push("layer"),w.push.apply(w,Me(r));var E=sR,I=hO(iU,w,function(){var M=w.join("|");if(Eoe(M)){var P=Ioe(M),D=le(P,2),O=D[0],k=D[1];if(O)return[O,C,k,{},s,u]}var N=t(),A=_oe(N,{hashId:a,hashPriority:m,layer:y?o:void 0,path:r.join("-"),transformers:x,linters:S}),L=le(A,2),j=L[0],F=L[1],B=Rv(j),z=oU(w,B);return[B,C,z,F,s,u]},function(M,P){var D=le(M,3),O=D[2];(P||p)&&sR&&wg(O,{mark:Ci})},function(M){var P=le(M,4),D=P[0];P[1];var O=P[2],k=P[3];if(E&&D!==nU){var N={mark:Ci,prepend:y?!1:"queue",attachTo:h,priority:u},A=typeof i=="function"?i():i;A&&(N.csp={nonce:A});var L=[],j=[];Object.keys(k).forEach(function(B){B.startsWith("@layer")?L.push(B):j.push(B)}),L.forEach(function(B){ys(Rv(k[B]),"_layer-".concat(B),X(X({},N),{},{prepend:!0}))});var F=ys(D,O,N);F[ul]=v.instanceId,F.setAttribute(_d,C),j.forEach(function(B){ys(Rv(k[B]),"_effect-".concat(B),N)})}}),T=le(I,3),R=T[0],_=T[1],$=T[2];return function(M){var P;return!b||E||!g?P=l.createElement($oe,null):P=l.createElement("style",he({},V(V({},_d,_),Ci,$),{dangerouslySetInnerHTML:{__html:R}})),l.createElement(l.Fragment,null,P,M)}}var Ooe=function(t,n,r){var a=le(t,6),o=a[0],i=a[1],s=a[2],c=a[3],u=a[4],d=a[5],p=r||{},g=p.plain;if(u)return null;var m=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return m=$b(o,i,s,h,g),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var x=Rv(c[b]),S=$b(x,i,"_effect-".concat(b),h,g);b.startsWith("@layer")?m=S+m:m+=S}}),[d,s,m]},sU="cssVar",Noe=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(V0),p=d.cache.instanceId,g=d.container,m=s._tokenKey,h=[].concat(Me(t.path),[r,u,m]),b=hO(sU,h,function(){var x=n(),S=qH(x,r,{prefix:a,unitless:o,ignore:i,scope:u}),v=le(S,2),y=v[0],C=v[1],w=oU(h,C);return[y,C,w,r]},function(x){var S=le(x,3),v=S[2];sR&&wg(v,{mark:Ci})},function(x){var S=le(x,3),v=S[1],y=S[2];if(v){var C=ys(v,y,{mark:Ci,prepend:"queue",attachTo:g,priority:-999});C[ul]=p,C.setAttribute(_d,r)}});return b},koe=function(t,n,r){var a=le(t,4),o=a[1],i=a[2],s=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=$b(o,s,i,p,u);return[d,i,g]};V(V(V({},iU,Ooe),YH,ooe),sU,koe);var en=function(){function e(t,n){Jn(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n}return er(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function bu(e){return e.notSplit=!0,e}bu(["borderTop","borderBottom"]),bu(["borderTop"]),bu(["borderBottom"]),bu(["borderLeft","borderRight"]),bu(["borderLeft"]),bu(["borderRight"]);var yO=l.createContext({});function lU(e){return zH(e)||LH(e)||fO(e)||HH()}function xo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!xo(e,t.slice(0,-1))?e:cU(e,t,n,r)}function Aoe(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function R4(e){return Array.isArray(e)?[]:{}}var Moe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Zu(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Doe,e},uU=l.createContext(void 0);var dU={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"},Loe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},joe=X(X({},Loe),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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 fU={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ob={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"]},joe),timePickerLocale:Object.assign({},fU)},uo="${label} is not a valid ${type}",ti={locale:"en",Pagination:dU,DatePicker:Ob,TimePicker:fU,Calendar:Ob,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:uo,method:uo,array:uo,object:uo,number:uo,date:uo,boolean:uo,integer:uo,float:uo,regexp:uo,email:uo,url:uo,hex:uo},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 _v=Object.assign({},ti.Modal),$v=[];const _4=()=>$v.reduce((e,t)=>Object.assign(Object.assign({},e),t),ti.Modal);function Foe(e){if(e){const t=Object.assign({},e);return $v.push(t),_v=_4(),()=>{$v=$v.filter(n=>n!==t),_v=_4()}}_v=Object.assign({},ti.Modal)}function pU(){return _v}const xO=l.createContext(void 0),es=(e,t)=>{const n=l.useContext(xO),r=l.useMemo(()=>{var o;const i=t||ti[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?ti.locale:o},[n]);return[r,a]},Boe="internalMark",zoe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>Foe(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(xO.Provider,{value:a},n)};function Ca(e,t){Hoe(e)&&(e="100%");var n=Uoe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function bh(e){return Math.min(1,Math.max(0,e))}function Hoe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Uoe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gU(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function yh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dc(e){return e.length===1?"0"+e:String(e)}function Voe(e,t,n){return{r:Ca(e,255)*255,g:Ca(t,255)*255,b:Ca(n,255)*255}}function $4(e,t,n){e=Ca(e,255),t=Ca(t,255),n=Ca(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=s>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Woe(e,t,n){var r,a,o;if(e=Ca(e,360),t=Ca(t,100),n=Ca(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=nS(s,i,e+1/3),a=nS(s,i,e),o=nS(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function dR(e,t,n){e=Ca(e,255),t=Ca(t,255),n=Ca(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,c=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var pR={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Lu(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Qoe(e)),typeof e=="object"&&(as(e.r)&&as(e.g)&&as(e.b)?(t=Voe(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):as(e.h)&&as(e.s)&&as(e.v)?(r=yh(e.s),a=yh(e.v),t=Goe(e.h,r,a),i=!0,s="hsv"):as(e.h)&&as(e.s)&&as(e.l)&&(r=yh(e.s),o=yh(e.l),t=Woe(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=gU(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Xoe="[-\\+]?\\d+%?",Zoe="[-\\+]?\\d*\\.\\d+%?",fl="(?:".concat(Zoe,")|(?:").concat(Xoe,")"),rS="[\\s|\\(]+(".concat(fl,")[,|\\s]+(").concat(fl,")[,|\\s]+(").concat(fl,")\\s*\\)?"),aS="[\\s|\\(]+(".concat(fl,")[,|\\s]+(").concat(fl,")[,|\\s]+(").concat(fl,")[,|\\s]+(").concat(fl,")\\s*\\)?"),di={CSS_UNIT:new RegExp(fl),rgb:new RegExp("rgb"+rS),rgba:new RegExp("rgba"+aS),hsl:new RegExp("hsl"+rS),hsla:new RegExp("hsla"+aS),hsv:new RegExp("hsv"+rS),hsva:new RegExp("hsva"+aS),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Qoe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(pR[e])e=pR[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=di.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=di.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=di.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=di.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=di.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=di.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=di.hex8.exec(e),n?{r:go(n[1]),g:go(n[2]),b:go(n[3]),a:O4(n[4]),format:t?"name":"hex8"}:(n=di.hex6.exec(e),n?{r:go(n[1]),g:go(n[2]),b:go(n[3]),format:t?"name":"hex"}:(n=di.hex4.exec(e),n?{r:go(n[1]+n[1]),g:go(n[2]+n[2]),b:go(n[3]+n[3]),a:O4(n[4]+n[4]),format:t?"name":"hex8"}:(n=di.hex3.exec(e),n?{r:go(n[1]+n[1]),g:go(n[2]+n[2]),b:go(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function as(e){return!!di.CSS_UNIT.exec(String(e))}var sn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Yoe(t)),this.originalInput=t;var a=Lu(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=gU(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=dR(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=dR(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$4(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=$4(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),fR(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),qoe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ca(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ca(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+fR(this.r,this.g,this.b,!1),n=0,r=Object.entries(pR);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=bh(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=bh(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=bh(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=bh(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-xh*t:Math.round(e.h)+xh*t:r=n?Math.round(e.h)+xh*t:Math.round(e.h)-xh*t,r<0?r+=360:r>=360&&(r-=360),r}function M4(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-N4*t:t===hU?r=e.s+N4:r=e.s+Joe*t,r>1&&(r=1),n&&t===mU&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function D4(e,t,n){var r;return n?r=e.v+eie*t:r=e.v-tie*t,r>1&&(r=1),Number(r.toFixed(2))}function Pc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Lu(e),a=mU;a>0;a-=1){var o=k4(r),i=Sh(Lu({h:A4(o,a,!0),s:M4(o,a,!0),v:D4(o,a,!0)}));n.push(i)}n.push(Sh(r));for(var s=1;s<=hU;s+=1){var c=k4(r),u=Sh(Lu({h:A4(c,s),s:M4(c,s),v:D4(c,s)}));n.push(u)}return t.theme==="dark"?nie.map(function(d){var p=d.index,g=d.opacity,m=Sh(rie(Lu(t.backgroundColor||"#141414"),Lu(n[p]),g*100));return m}):n}var fd={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"},gR=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];gR.primary=gR[5];var mR=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];mR.primary=mR[5];var hR=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];hR.primary=hR[5];var Nb=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Nb.primary=Nb[5];var vR=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];vR.primary=vR[5];var bR=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];bR.primary=bR[5];var yR=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];yR.primary=yR[5];var xR=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];xR.primary=xR[5];var Nd=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Nd.primary=Nd[5];var SR=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];SR.primary=SR[5];var CR=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];CR.primary=CR[5];var wR=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];wR.primary=wR[5];var ER=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ER.primary=ER[5];var oS={red:gR,volcano:mR,orange:hR,gold:Nb,yellow:vR,lime:bR,green:yR,cyan:xR,blue:Nd,geekblue:SR,purple:CR,magenta:wR,grey:ER};const SO={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"},kd=Object.assign(Object.assign({},SO),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var cO=Symbol.for("react.element"),uO=Symbol.for("react.portal"),A0=Symbol.for("react.fragment"),M0=Symbol.for("react.strict_mode"),D0=Symbol.for("react.profiler"),P0=Symbol.for("react.provider"),L0=Symbol.for("react.context"),Yre=Symbol.for("react.server_context"),j0=Symbol.for("react.forward_ref"),F0=Symbol.for("react.suspense"),B0=Symbol.for("react.suspense_list"),z0=Symbol.for("react.memo"),H0=Symbol.for("react.lazy"),Xre=Symbol.for("react.offscreen"),TH;TH=Symbol.for("react.module.reference");function si(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cO:switch(e=e.type,e){case A0:case D0:case M0:case F0:case B0:return e;default:switch(e=e&&e.$$typeof,e){case Yre:case L0:case j0:case H0:case z0:case P0:return e;default:return t}}case uO:return t}}}Kn.ContextConsumer=L0;Kn.ContextProvider=P0;Kn.Element=cO;Kn.ForwardRef=j0;Kn.Fragment=A0;Kn.Lazy=H0;Kn.Memo=z0;Kn.Portal=uO;Kn.Profiler=D0;Kn.StrictMode=M0;Kn.Suspense=F0;Kn.SuspenseList=B0;Kn.isAsyncMode=function(){return!1};Kn.isConcurrentMode=function(){return!1};Kn.isContextConsumer=function(e){return si(e)===L0};Kn.isContextProvider=function(e){return si(e)===P0};Kn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cO};Kn.isForwardRef=function(e){return si(e)===j0};Kn.isFragment=function(e){return si(e)===A0};Kn.isLazy=function(e){return si(e)===H0};Kn.isMemo=function(e){return si(e)===z0};Kn.isPortal=function(e){return si(e)===uO};Kn.isProfiler=function(e){return si(e)===D0};Kn.isStrictMode=function(e){return si(e)===M0};Kn.isSuspense=function(e){return si(e)===F0};Kn.isSuspenseList=function(e){return si(e)===B0};Kn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===A0||e===D0||e===M0||e===F0||e===B0||e===Xre||typeof e=="object"&&e!==null&&(e.$$typeof===H0||e.$$typeof===z0||e.$$typeof===P0||e.$$typeof===L0||e.$$typeof===j0||e.$$typeof===TH||e.getModuleId!==void 0)};Kn.typeOf=si;IH.exports=Kn;var kp=IH.exports;function _r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_r(r)):kp.isFragment(r)&&r.props?n=n.concat(_r(r.props.children,t)):n.push(r))}),n}var eR={},Zre=function(t){};function Qre(e,t){}function Jre(e,t){}function eae(){eR={}}function RH(e,t,n){!t&&!eR[n]&&(e(!1,n),eR[n]=!0)}function $n(e,t){RH(Qre,e,t)}function _H(e,t){RH(Jre,e,t)}$n.preMessage=Zre;$n.resetWarned=eae;$n.noteOnce=_H;function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function tae(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $H(e){var t=tae(e,"string");return mt(t)=="symbol"?t:t+""}function V(e,t,n){return(t=$H(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t=19;var nR=l.createContext(null);function rae(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(nR),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;a.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,c,u)},[n,o]);return l.createElement(nR.Provider,{value:i},t)}var OH=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!rR||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),cae?(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)},e.prototype.disconnect_=function(){!rR||!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)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=lae.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),NH=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Rd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new bae(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Rd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new yae(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),AH=typeof WeakMap<"u"?new WeakMap:new OH,MH=function(){function e(t){if(!(this instanceof e))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=uae.getInstance(),r=new xae(t,n,this);AH.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){MH.prototype[e]=function(){var t;return(t=AH.get(this))[e].apply(t,arguments)}});var Sae=function(){return typeof _b.ResizeObserver<"u"?_b.ResizeObserver:MH}(),ul=new Map;function wae(e){e.forEach(function(t){var n,r=t.target;(n=ul.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var DH=new Sae(wae);function Cae(e,t){ul.has(e)||(ul.set(e,new Set),DH.observe(e)),ul.get(e).add(t)}function Eae(e,t){ul.has(e)&&(ul.get(e).delete(t),ul.get(e).size||(DH.unobserve(e),ul.delete(e)))}function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g4(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;m4+=1;var r=m4;function a(o){if(o===0)BH(r),t();else{var i=jH(function(){a(o-1)});pO.set(r,i)}}return a(n),r};Ut.cancel=function(e){var t=pO.get(e);return BH(e),FH(t)};function zH(e){if(Array.isArray(e))return e}function kae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function HH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(e,t){return zH(e)||kae(e,t)||fO(e,t)||HH()}function Cg(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function fa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var h4="data-rc-order",v4="data-rc-priority",Aae="rc-util-key",iR=new Map;function UH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Aae}function W0(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Mae(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function gO(e){return Array.from((iR.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function VH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!fa())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=Mae(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(h4,i),s&&o&&c.setAttribute(v4,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=W0(t),d=u.firstChild;if(r){if(s){var p=(t.styles||gO(u)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(h4)))return!1;var m=Number(g.getAttribute(v4)||0);return o>=m});if(p.length)return u.insertBefore(c,p[p.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function WH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=W0(t);return(t.styles||gO(n)).find(function(r){return r.getAttribute(UH(t))===e})}function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=WH(e,t);if(n){var r=W0(t);r.removeChild(n)}}function Dae(e,t){var n=iR.get(e);if(!n||!oR(document,n)){var r=VH("",t),a=r.parentNode;iR.set(e,a),e.removeChild(r)}}function Ss(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=W0(n),a=gO(r),o=X(X({},n),{},{styles:a});Dae(r,o);var i=WH(t,o);if(i){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=VH(e,o);return d.setAttribute(UH(o),t),d}function Pae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ct(e,t){if(e==null)return{};var n,r,a=Pae(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if($n(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.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 a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var p=ce(u,2),g=p[1];return a.internalGet(d)[1]0,void 0),b4+=1}return er(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),tS=new mO;function Ig(e){var t=Array.isArray(e)?e:[e];return tS.has(t)||tS.set(t,new GH(t)),tS.get(t)}var zae=new WeakMap,nS={};function Hae(e,t){for(var n=zae,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=y4.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof GH?n+=a.id:a&&mt(a)==="object"?n+=Mp(a,t):n+=a}),t&&(n=Cg(n)),y4.set(e,n)),n}function x4(e,t){return Cg("".concat(t,"_").concat(Mp(e,!0)))}var lR=fa();function G(e){return typeof e=="number"?"".concat(e,"px"):e}function Ob(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=X(X({},r),{},V(V({},_d,t),Ci,n)),i=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var Iv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},Uae=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=ce(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},qH=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var s,c,u=ce(i,2),d=u[0],p=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var g,m=Iv(d,r==null?void 0:r.prefix);a[m]=typeof p=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[d])?"".concat(p,"px"):String(p),o[d]="var(".concat(m,")")}}),[o,Uae(a,n,{scope:r==null?void 0:r.scope})]},S4=fa()?l.useLayoutEffect:l.useEffect,Yt=function(t,n){var r=l.useRef(!0);S4(function(){return t(r.current)},n),S4(function(){return r.current=!1,function(){r.current=!0}},[])},wc=function(t,n){Yt(function(r){if(!r)return t()},n)},Vae=X({},em),w4=Vae.useInsertionEffect,Wae=function(t,n,r){l.useMemo(t,r),Yt(function(){return n(!0)},r)},Gae=w4?function(e,t,n){return w4(function(){return e(),t()},n)}:Wae,qae=X({},em),Kae=qae.useInsertionEffect,Yae=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Xae=function(){return function(t){t()}},Zae=typeof Kae<"u"?Yae:Xae;function hO(e,t,n,r,a){var o=l.useContext(G0),i=o.cache,s=[e].concat(De(t)),c=sR(s),u=Zae([c]),d=function(h){i.opUpdate(c,function(b){var x=b||[void 0,void 0],S=ce(x,2),v=S[0],y=v===void 0?0:v,w=S[1],C=w,E=C||n(),I=[y,E];return h?h(I):I})};l.useMemo(function(){d()},[c]);var p=i.opGet(c),g=p[1];return Gae(function(){a==null||a(g)},function(m){return d(function(h){var b=ce(h,2),x=b[0],S=b[1];return m&&x===0&&(a==null||a(g)),[x+1,S]}),function(){i.opUpdate(c,function(h){var b=h||[],x=ce(b,2),S=x[0],v=S===void 0?0:S,y=x[1],w=v-1;return w===0?(u(function(){(m||!i.opGet(c))&&(r==null||r(y,!1))}),null):[v-1,y]})}},[c]),g}var Qae={},Jae="css",sc=new Map;function eoe(e){sc.set(e,(sc.get(e)||0)+1)}function toe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_d,'="').concat(e,'"]'));n.forEach(function(r){if(r[dl]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var noe=0;function roe(e,t){sc.set(e,(sc.get(e)||0)-1);var n=Array.from(sc.keys()),r=n.filter(function(a){var o=sc.get(a)||0;return o<=0});n.length-r.length>noe&&r.forEach(function(a){toe(a,t),sc.delete(a)})}var KH=function(t,n,r,a){var o=r.getDerivativeToken(t),i=X(X({},o),n);return a&&(i=a(i)),i},YH="token";function aoe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(G0),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?Qae:c,d=n.formatToken,p=n.getComputedToken,g=n.cssVar,m=Hae(function(){return Object.assign.apply(Object,[{}].concat(De(t)))},t),h=Mp(m),b=Mp(u),x=g?Mp(g):"",S=hO(YH,[s,e.id,h,b,x],function(){var v,y=p?p(m,u,e):KH(m,u,e,d),w=X({},y),C="";if(g){var E=qH(y,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),I=ce(E,2);y=I[0],C=I[1]}var T=x4(y,s);y._tokenKey=T,w._tokenKey=x4(w,s);var R=(v=g==null?void 0:g.key)!==null&&v!==void 0?v:T;y._themeKey=R,eoe(R);var _="".concat(Jae,"-").concat(Cg(T));return y._hashId=_,[y,_,w,C,(g==null?void 0:g.key)||""]},function(v){roe(v[0]._themeKey,a)},function(v){var y=ce(v,4),w=y[0],C=y[3];if(g&&C){var E=Ss(C,Cg("css-variables-".concat(w._themeKey)),{mark:Ci,prepend:"queue",attachTo:o,priority:-999});E[dl]=a,E.setAttribute(_d,w._themeKey)}});return S}var ooe=function(t,n,r){var a=ce(t,5),o=a[2],i=a[3],s=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},m=Ob(i,s,d,g,u);return[p,d,m]},ioe={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},XH="comm",ZH="rule",QH="decl",soe="@import",loe="@keyframes",coe="@layer",JH=Math.abs,vO=String.fromCharCode;function eU(e){return e.trim()}function Tv(e,t,n){return e.replace(t,n)}function uoe(e,t,n){return e.indexOf(t,n)}function Tg(e,t){return e.charCodeAt(t)|0}function $d(e,t,n){return e.slice(t,n)}function Hi(e){return e.length}function doe(e){return e.length}function bh(e,t){return t.push(e),e}var q0=1,Od=1,tU=0,ti=0,Br=0,nf="";function bO(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:q0,column:Od,length:i,return:"",siblings:s}}function foe(){return Br}function poe(){return Br=ti>0?Tg(nf,--ti):0,Od--,Br===10&&(Od=1,q0--),Br}function Ei(){return Br=ti2||Rg(Br)>3?"":" "}function voe(e,t){for(;--t&&Ei()&&!(Br<48||Br>102||Br>57&&Br<65||Br>70&&Br<97););return K0(e,Rv()+(t<6&&fl()==32&&Ei()==32))}function cR(e){for(;Ei();)switch(Br){case e:return ti;case 34:case 39:e!==34&&e!==39&&cR(Br);break;case 40:e===41&&cR(e);break;case 92:Ei();break}return ti}function boe(e,t){for(;Ei()&&e+Br!==57;)if(e+Br===84&&fl()===47)break;return"/*"+K0(t,ti-1)+"*"+vO(e===47?e:Ei())}function yoe(e){for(;!Rg(fl());)Ei();return K0(e,ti)}function xoe(e){return moe(_v("",null,null,null,[""],e=goe(e),0,[0],e))}function _v(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,p=i,g=0,m=0,h=0,b=1,x=1,S=1,v=0,y="",w=a,C=o,E=r,I=y;x;)switch(h=v,v=Ei()){case 40:if(h!=108&&Tg(I,p-1)==58){uoe(I+=Tv(rS(v),"&","&\f"),"&\f",JH(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=rS(v);break;case 9:case 10:case 13:case 32:I+=hoe(h);break;case 92:I+=voe(Rv()-1,7);continue;case 47:switch(fl()){case 42:case 47:bh(Soe(boe(Ei(),Rv()),t,n,c),c),(Rg(h||1)==5||Rg(fl()||1)==5)&&Hi(I)&&$d(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:s[u++]=Hi(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:S==-1&&(I=Tv(I,/\f/g,"")),m>0&&(Hi(I)-p||b===0&&h===47)&&bh(m>32?E4(I+";",r,n,p-1,c):E4(Tv(I," ","")+";",r,n,p-2,c),c);break;case 59:I+=";";default:if(bh(E=C4(I,t,n,u,d,a,s,y,w=[],C=[],p,o),o),v===123)if(d===0)_v(I,t,E,E,w,o,p,s,C);else switch(g===99&&Tg(I,3)===110?100:g){case 100:case 108:case 109:case 115:_v(e,E,E,r&&bh(C4(e,E,E,0,0,a,s,y,a,w=[],p,C),C),a,C,p,s,r?w:C);break;default:_v(I,E,E,E,[""],C,0,s,C)}}u=d=m=0,b=S=1,y=I="",p=i;break;case 58:p=1+Hi(I),m=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&poe()==125)continue}switch(I+=vO(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(Hi(I)-1)*S,S=1;break;case 64:fl()===45&&(I+=rS(Ei())),g=fl(),d=p=Hi(y=I+=yoe(Rv())),v++;break;case 45:h===45&&Hi(I)==2&&(b=0)}}return o}function C4(e,t,n,r,a,o,i,s,c,u,d,p){for(var g=a-1,m=a===0?o:[""],h=doe(m),b=0,x=0,S=0;b0?m[v]+" "+y:Tv(y,/&\f/g,m[v])))&&(c[S++]=w);return bO(e,t,n,a===0?ZH:s,c,u,d,p)}function Soe(e,t,n,r){return bO(e,t,n,XH,vO(foe()),$d(e,2,-2),0,r)}function E4(e,t,n,r,a){return bO(e,t,n,QH,$d(e,0,r),$d(e,r+1,-1),r,a)}function uR(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,p=d===void 0?[]:d;n.linters;var g="",m={};function h(S){var v=S.getName(s);if(!m[v]){var y=e(S.style,n,{root:!1,parentSelectors:i}),w=ce(y,1),C=w[0];m[v]="@keyframes ".concat(S.getName(s)).concat(C)}}function b(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(y){Array.isArray(y)?b(y,v):y&&v.push(y)}),v}var x=b(Array.isArray(t)?t:[t]);return x.forEach(function(S){var v=typeof S=="string"&&!a?{}:S;if(typeof v=="string")g+="".concat(v,` +`);else if(v._keyframe)h(v);else{var y=p.reduce(function(w,C){var E;return(C==null||(E=C.visit)===null||E===void 0?void 0:E.call(C,w))||w},v);Object.keys(y).forEach(function(w){var C=y[w];if(mt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!Roe(C)){var E=!1,I=w.trim(),T=!1;(a||o)&&s?I.startsWith("@")?E=!0:I==="&"?I=T4("",s,u):I=T4(w,s,u):a&&!s&&(I==="&"||I==="")&&(I="",T=!0);var R=e(C,n,{root:T,injectHash:E,parentSelectors:[].concat(De(i),[I])}),_=ce(R,2),$=_[0],M=_[1];m=X(X({},m),M),g+="".concat(I).concat($)}else{let O=function(k,N){var A=k.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),L=N;!ioe[k]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),k==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(h(N),L=N.getName(s)),g+="".concat(A,":").concat(L,";")};var P,D=(P=C==null?void 0:C.value)!==null&&P!==void 0?P:C;mt(C)==="object"&&C!==null&&C!==void 0&&C[aU]&&Array.isArray(D)?D.forEach(function(k){O(w,k)}):O(w,D)}})}}),a?c&&(g="@layer ".concat(c.name," {").concat(g,"}"),c.dependencies&&(m["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(` +`))):g="{".concat(g,"}"),[g,m]};function oU(e,t){return Cg("".concat(e.join("%")).concat(t))}function $oe(){return null}var iU="style";function dR(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(G0),p=d.autoClear;d.mock;var g=d.defaultCache,m=d.hashPriority,h=d.container,b=d.ssrInline,x=d.transformers,S=d.linters,v=d.cache,y=d.layer,w=n._tokenKey,C=[w];y&&C.push("layer"),C.push.apply(C,De(r));var E=lR,I=hO(iU,C,function(){var M=C.join("|");if(Eoe(M)){var P=Ioe(M),D=ce(P,2),O=D[0],k=D[1];if(O)return[O,w,k,{},s,u]}var N=t(),A=_oe(N,{hashId:a,hashPriority:m,layer:y?o:void 0,path:r.join("-"),transformers:x,linters:S}),L=ce(A,2),j=L[0],F=L[1],B=$v(j),z=oU(C,B);return[B,w,z,F,s,u]},function(M,P){var D=ce(M,3),O=D[2];(P||p)&&lR&&Eg(O,{mark:Ci})},function(M){var P=ce(M,4),D=P[0];P[1];var O=P[2],k=P[3];if(E&&D!==nU){var N={mark:Ci,prepend:y?!1:"queue",attachTo:h,priority:u},A=typeof i=="function"?i():i;A&&(N.csp={nonce:A});var L=[],j=[];Object.keys(k).forEach(function(B){B.startsWith("@layer")?L.push(B):j.push(B)}),L.forEach(function(B){Ss($v(k[B]),"_layer-".concat(B),X(X({},N),{},{prepend:!0}))});var F=Ss(D,O,N);F[dl]=v.instanceId,F.setAttribute(_d,w),j.forEach(function(B){Ss($v(k[B]),"_effect-".concat(B),N)})}}),T=ce(I,3),R=T[0],_=T[1],$=T[2];return function(M){var P;return!b||E||!g?P=l.createElement($oe,null):P=l.createElement("style",be({},V(V({},_d,_),Ci,$),{dangerouslySetInnerHTML:{__html:R}})),l.createElement(l.Fragment,null,P,M)}}var Ooe=function(t,n,r){var a=ce(t,6),o=a[0],i=a[1],s=a[2],c=a[3],u=a[4],d=a[5],p=r||{},g=p.plain;if(u)return null;var m=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return m=Ob(o,i,s,h,g),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var x=$v(c[b]),S=Ob(x,i,"_effect-".concat(b),h,g);b.startsWith("@layer")?m=S+m:m+=S}}),[d,s,m]},sU="cssVar",Noe=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(G0),p=d.cache.instanceId,g=d.container,m=s._tokenKey,h=[].concat(De(t.path),[r,u,m]),b=hO(sU,h,function(){var x=n(),S=qH(x,r,{prefix:a,unitless:o,ignore:i,scope:u}),v=ce(S,2),y=v[0],w=v[1],C=oU(h,w);return[y,w,C,r]},function(x){var S=ce(x,3),v=S[2];lR&&Eg(v,{mark:Ci})},function(x){var S=ce(x,3),v=S[1],y=S[2];if(v){var w=Ss(v,y,{mark:Ci,prepend:"queue",attachTo:g,priority:-999});w[dl]=p,w.setAttribute(_d,r)}});return b},koe=function(t,n,r){var a=ce(t,4),o=a[1],i=a[2],s=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=Ob(o,s,i,p,u);return[d,i,g]};V(V(V({},iU,Ooe),YH,ooe),sU,koe);var en=function(){function e(t,n){Jn(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n}return er(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function bu(e){return e.notSplit=!0,e}bu(["borderTop","borderBottom"]),bu(["borderTop"]),bu(["borderBottom"]),bu(["borderLeft","borderRight"]),bu(["borderLeft"]),bu(["borderRight"]);var yO=l.createContext({});function lU(e){return zH(e)||LH(e)||fO(e)||HH()}function xo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!xo(e,t.slice(0,-1))?e:cU(e,t,n,r)}function Aoe(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function R4(e){return Array.isArray(e)?[]:{}}var Moe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Zu(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Doe,e},uU=l.createContext(void 0);var dU={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"},Loe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},joe=X(X({},Loe),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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 fU={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nb={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"]},joe),timePickerLocale:Object.assign({},fU)},uo="${label} is not a valid ${type}",ni={locale:"en",Pagination:dU,DatePicker:Nb,TimePicker:fU,Calendar:Nb,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:uo,method:uo,array:uo,object:uo,number:uo,date:uo,boolean:uo,integer:uo,float:uo,regexp:uo,email:uo,url:uo,hex:uo},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 Ov=Object.assign({},ni.Modal),Nv=[];const _4=()=>Nv.reduce((e,t)=>Object.assign(Object.assign({},e),t),ni.Modal);function Foe(e){if(e){const t=Object.assign({},e);return Nv.push(t),Ov=_4(),()=>{Nv=Nv.filter(n=>n!==t),Ov=_4()}}Ov=Object.assign({},ni.Modal)}function pU(){return Ov}const xO=l.createContext(void 0),ns=(e,t)=>{const n=l.useContext(xO),r=l.useMemo(()=>{var o;const i=t||ni[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?ni.locale:o},[n]);return[r,a]},Boe="internalMark",zoe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>Foe(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(xO.Provider,{value:a},n)};function Ca(e,t){Hoe(e)&&(e="100%");var n=Uoe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function yh(e){return Math.min(1,Math.max(0,e))}function Hoe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Uoe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gU(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function xh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dc(e){return e.length===1?"0"+e:String(e)}function Voe(e,t,n){return{r:Ca(e,255)*255,g:Ca(t,255)*255,b:Ca(n,255)*255}}function $4(e,t,n){e=Ca(e,255),t=Ca(t,255),n=Ca(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=s>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Woe(e,t,n){var r,a,o;if(e=Ca(e,360),t=Ca(t,100),n=Ca(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=aS(s,i,e+1/3),a=aS(s,i,e),o=aS(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function fR(e,t,n){e=Ca(e,255),t=Ca(t,255),n=Ca(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,c=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var gR={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Lu(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Qoe(e)),typeof e=="object"&&(is(e.r)&&is(e.g)&&is(e.b)?(t=Voe(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):is(e.h)&&is(e.s)&&is(e.v)?(r=xh(e.s),a=xh(e.v),t=Goe(e.h,r,a),i=!0,s="hsv"):is(e.h)&&is(e.s)&&is(e.l)&&(r=xh(e.s),o=xh(e.l),t=Woe(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=gU(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Xoe="[-\\+]?\\d+%?",Zoe="[-\\+]?\\d*\\.\\d+%?",pl="(?:".concat(Zoe,")|(?:").concat(Xoe,")"),oS="[\\s|\\(]+(".concat(pl,")[,|\\s]+(").concat(pl,")[,|\\s]+(").concat(pl,")\\s*\\)?"),iS="[\\s|\\(]+(".concat(pl,")[,|\\s]+(").concat(pl,")[,|\\s]+(").concat(pl,")[,|\\s]+(").concat(pl,")\\s*\\)?"),fi={CSS_UNIT:new RegExp(pl),rgb:new RegExp("rgb"+oS),rgba:new RegExp("rgba"+iS),hsl:new RegExp("hsl"+oS),hsla:new RegExp("hsla"+iS),hsv:new RegExp("hsv"+oS),hsva:new RegExp("hsva"+iS),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Qoe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(gR[e])e=gR[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=fi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=fi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=fi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=fi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fi.hex8.exec(e),n?{r:go(n[1]),g:go(n[2]),b:go(n[3]),a:O4(n[4]),format:t?"name":"hex8"}:(n=fi.hex6.exec(e),n?{r:go(n[1]),g:go(n[2]),b:go(n[3]),format:t?"name":"hex"}:(n=fi.hex4.exec(e),n?{r:go(n[1]+n[1]),g:go(n[2]+n[2]),b:go(n[3]+n[3]),a:O4(n[4]+n[4]),format:t?"name":"hex8"}:(n=fi.hex3.exec(e),n?{r:go(n[1]+n[1]),g:go(n[2]+n[2]),b:go(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function is(e){return!!fi.CSS_UNIT.exec(String(e))}var sn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Yoe(t)),this.originalInput=t;var a=Lu(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=gU(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=fR(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=fR(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$4(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=$4(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),pR(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),qoe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ca(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ca(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+pR(this.r,this.g,this.b,!1),n=0,r=Object.entries(gR);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=yh(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=yh(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=yh(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=yh(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Sh*t:Math.round(e.h)+Sh*t:r=n?Math.round(e.h)+Sh*t:Math.round(e.h)-Sh*t,r<0?r+=360:r>=360&&(r-=360),r}function M4(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-N4*t:t===hU?r=e.s+N4:r=e.s+Joe*t,r>1&&(r=1),n&&t===mU&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function D4(e,t,n){var r;return n?r=e.v+eie*t:r=e.v-tie*t,r>1&&(r=1),Number(r.toFixed(2))}function Pc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Lu(e),a=mU;a>0;a-=1){var o=k4(r),i=wh(Lu({h:A4(o,a,!0),s:M4(o,a,!0),v:D4(o,a,!0)}));n.push(i)}n.push(wh(r));for(var s=1;s<=hU;s+=1){var c=k4(r),u=wh(Lu({h:A4(c,s),s:M4(c,s),v:D4(c,s)}));n.push(u)}return t.theme==="dark"?nie.map(function(d){var p=d.index,g=d.opacity,m=wh(rie(Lu(t.backgroundColor||"#141414"),Lu(n[p]),g*100));return m}):n}var fd={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"},mR=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];mR.primary=mR[5];var hR=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];hR.primary=hR[5];var vR=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vR.primary=vR[5];var kb=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];kb.primary=kb[5];var bR=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];bR.primary=bR[5];var yR=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];yR.primary=yR[5];var xR=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];xR.primary=xR[5];var SR=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];SR.primary=SR[5];var Nd=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Nd.primary=Nd[5];var wR=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];wR.primary=wR[5];var CR=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];CR.primary=CR[5];var ER=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ER.primary=ER[5];var IR=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];IR.primary=IR[5];var sS={red:mR,volcano:hR,orange:vR,gold:kb,yellow:bR,lime:yR,green:xR,cyan:SR,blue:Nd,geekblue:wR,purple:CR,magenta:ER,grey:IR};const SO={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"},kd=Object.assign(Object.assign({},SO),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'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});function vU(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,p=n(c),g=n(a),m=n(o),h=n(i),b=n(s),x=r(u,d),S=e.colorLink||e.colorInfo,v=n(S),y=new sn(h[1]).mix(new sn(h[3]),50).toHexString();return Object.assign(Object.assign({},x),{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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:y,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new sn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const aie=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function oie(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},aie(r))}const bU=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ov(e){return(e+8)/e}function iie(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ov(n)}))}const yU=e=>{const t=iie(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function sie(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Po=(e,t)=>new sn(e).setAlpha(t).toRgbString(),Vf=(e,t)=>new sn(e).darken(t).toHexString(),lie=e=>{const t=Pc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},cie=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Po(r,.88),colorTextSecondary:Po(r,.65),colorTextTertiary:Po(r,.45),colorTextQuaternary:Po(r,.25),colorFill:Po(r,.15),colorFillSecondary:Po(r,.06),colorFillTertiary:Po(r,.04),colorFillQuaternary:Po(r,.02),colorBgSolid:Po(r,1),colorBgSolidHover:Po(r,.75),colorBgSolidActive:Po(r,.95),colorBgLayout:Vf(n,4),colorBgContainer:Vf(n,0),colorBgElevated:Vf(n,0),colorBgSpotlight:Po(r,.85),colorBgBlur:"transparent",colorBorder:Vf(n,15),colorBorderSecondary:Vf(n,6)}};function om(e){fd.pink=fd.magenta,oS.pink=oS.magenta;const t=Object.keys(SO).map(n=>{const r=e[n]===fd[n]?oS[n]:Pc(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).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({},e),t),vU(e,{generateColorPalettes:lie,generateNeutralColorPalettes:cie})),yU(e.fontSize)),sie(e)),bU(e)),oie(e))}const xU=Eg(om),Rg={token:kd,override:{override:kd},hashed:!0},CO=de.createContext(Rg),_g="ant",wO="anticon",uie=["outlined","borderless","filled"],die=(e,t)=>t||(e?`${_g}-${e}`:_g),lt=l.createContext({getPrefixCls:die,iconPrefixCls:wO}),fie=`-ant-${Date.now()}-${Math.random()}`;function pie(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},a=(i,s)=>{const c=new sn(i),u=Pc(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new sn(t.primaryColor),s=Pc(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new sn(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` +'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});function vU(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,p=n(c),g=n(a),m=n(o),h=n(i),b=n(s),x=r(u,d),S=e.colorLink||e.colorInfo,v=n(S),y=new sn(h[1]).mix(new sn(h[3]),50).toHexString();return Object.assign(Object.assign({},x),{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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:y,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new sn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const aie=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function oie(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},aie(r))}const bU=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function kv(e){return(e+8)/e}function iie(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:kv(n)}))}const yU=e=>{const t=iie(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function sie(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Po=(e,t)=>new sn(e).setAlpha(t).toRgbString(),Vf=(e,t)=>new sn(e).darken(t).toHexString(),lie=e=>{const t=Pc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},cie=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Po(r,.88),colorTextSecondary:Po(r,.65),colorTextTertiary:Po(r,.45),colorTextQuaternary:Po(r,.25),colorFill:Po(r,.15),colorFillSecondary:Po(r,.06),colorFillTertiary:Po(r,.04),colorFillQuaternary:Po(r,.02),colorBgSolid:Po(r,1),colorBgSolidHover:Po(r,.75),colorBgSolidActive:Po(r,.95),colorBgLayout:Vf(n,4),colorBgContainer:Vf(n,0),colorBgElevated:Vf(n,0),colorBgSpotlight:Po(r,.85),colorBgBlur:"transparent",colorBorder:Vf(n,15),colorBorderSecondary:Vf(n,6)}};function im(e){fd.pink=fd.magenta,sS.pink=sS.magenta;const t=Object.keys(SO).map(n=>{const r=e[n]===fd[n]?sS[n]:Pc(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).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({},e),t),vU(e,{generateColorPalettes:lie,generateNeutralColorPalettes:cie})),yU(e.fontSize)),sie(e)),bU(e)),oie(e))}const xU=Ig(im),_g={token:kd,override:{override:kd},hashed:!0},wO=de.createContext(_g),$g="ant",CO="anticon",uie=["outlined","borderless","filled"],die=(e,t)=>t||(e?`${$g}-${e}`:$g),ut=l.createContext({getPrefixCls:die,iconPrefixCls:CO}),fie=`-ant-${Date.now()}-${Math.random()}`;function pie(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},a=(i,s)=>{const c=new sn(i),u=Pc(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new sn(t.primaryColor),s=Pc(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new sn(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` :root { ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` `)} } - `.trim()}function gie(e,t){const n=pie(e,t);da()&&ys(n,`${fie}-dynamic-theme`)}const fa=l.createContext(!1),EO=e=>{let{children:t,disabled:n}=e;const r=l.useContext(fa);return l.createElement(fa.Provider,{value:n??r},t)},Lc=l.createContext(void 0),mie=e=>{let{children:t,size:n}=e;const r=l.useContext(Lc);return l.createElement(Lc.Provider,{value:n||r},t)};function hie(){const e=l.useContext(fa),t=l.useContext(Lc);return{componentDisabled:e,componentSize:t}}var SU=er(function e(){Jn(this,e)}),CU="CALC_UNIT",vie=new RegExp(CU,"g");function iS(e){return typeof e=="number"?"".concat(e).concat(CU):e}var bie=function(e){so(n,e);var t=Ao(n);function n(r,a){var o;Jn(this,n),o=t.call(this),V(Ke(o),"result",""),V(Ke(o),"unitlessCssVar",void 0),V(Ke(o),"lowPriority",void 0);var i=mt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=iS(r):i==="string"&&(o.result=r),o}return er(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(iS(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(iS(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(vie,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(SU),yie=function(e){so(n,e);var t=Ao(n);function n(r){var a;return Jn(this,n),a=t.call(this),V(Ke(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return er(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(SU),xie=function(t,n){var r=t==="css"?bie:yie;return function(a){return new r(a,n)}},P4=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Gt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>Eie&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),B4=new Iie;function Tie(e,t){return de.useMemo(function(){var n=B4.get(t);if(n)return n;var r=e();return B4.set(t,r),r},t)}var Rie=function(){return{}};function _ie(e){var t=e.useCSP,n=t===void 0?Rie:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(g,m,h,b){var x=Array.isArray(g)?g[0]:g;function S(T){return"".concat(String(x)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var v=(b==null?void 0:b.unitless)||{},y=typeof s=="function"?s(g):{},C=X(X({},y),{},V({},S("zIndexPopup"),!0));Object.keys(v).forEach(function(T){C[S(T)]=v[T]});var w=X(X({},b),{},{unitless:C,prefixToken:S}),E=d(g,m,h,w),I=u(x,h,w);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,_=E(T,R),$=le(_,2),M=$[1],P=I(R),D=le(P,2),O=D[0],k=D[1];return[O,M,k]}}function u(g,m,h){var b=h.unitless,x=h.injectStyle,S=x===void 0?!0:x,v=h.prefixToken,y=h.ignore,C=function(I){var T=I.rootCls,R=I.cssVar,_=R===void 0?{}:R,$=r(),M=$.realToken;return Noe({path:[g],prefix:_.prefix,key:_.key,unitless:b,ignore:y,token:M,scope:T},function(){var P=F4(g,M,m),D=L4(g,M,P,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(P).forEach(function(O){D[v(O)]=D[O],delete D[O]}),D}),null},w=function(I){var T=r(),R=T.cssVar;return[function(_){return S&&R?de.createElement(de.Fragment,null,de.createElement(C,{rootCls:I,cssVar:R,component:g}),_):_},R==null?void 0:R.key]};return w}function d(g,m,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(g)?g:[g,g],S=le(x,1),v=S[0],y=x.join("-"),C=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,I=r(),T=I.theme,R=I.realToken,_=I.hashId,$=I.token,M=I.cssVar,P=a(),D=P.rootPrefixCls,O=P.iconPrefixCls,k=n(),N=M?"css":"js",A=Tie(function(){var U=new Set;return M&&Object.keys(b.unitless||{}).forEach(function(H){U.add(wv(H,M.prefix)),U.add(wv(H,P4(v,M.prefix)))}),xie(N,U)},[N,v,M==null?void 0:M.prefix]),L=wie(N),j=L.max,F=L.min,B={theme:T,token:$,hashId:_,nonce:function(){return k.nonce},clientOnly:b.clientOnly,layer:C,order:b.order||-999};uR(X(X({},B),{},{clientOnly:!1,path:["Shared",D]}),function(){return typeof o=="function"?o($):[]});var z=uR(X(X({},B),{},{path:[y,w,O]}),function(){if(b.injectStyle===!1)return[];var U=Cie($),H=U.token,Y=U.flush,K=F4(v,R,h),J=".".concat(w),ne=L4(v,R,K,{deprecatedTokens:b.deprecatedTokens});M&&K&&mt(K)==="object"&&Object.keys(K).forEach(function(Q){K[Q]="var(".concat(wv(Q,P4(v,M.prefix)),")")});var W=Ft(H,{componentCls:J,prefixCls:w,iconCls:".".concat(O),antCls:".".concat(D),calc:A,max:j,min:F},M?K:ne),q=m(W,{hashId:_,prefixCls:w,rootPrefixCls:D,iconPrefixCls:O});Y(v,ne);var Z=typeof i=="function"?i(W,w,E,b.resetFont):null;return[b.resetStyle===!1?null:Z,q]});return[z,_]}}function p(g,m,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=d(g,m,h,X({resetStyle:!1,order:-998},b)),S=function(y){var C=y.prefixCls,w=y.rootCls,E=w===void 0?C:w;return x(C,E),null};return S}return{genStyleHooks:c,genSubStyleComponent:p,genComponentStyleHook:d}}const $g=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],$ie="5.21.5";function lS(e){return e>=0&&e<=255}function Ch(e,t){const{r:n,g:r,b:a,a:o}=new sn(e).toRgb();if(o<1)return e;const{r:i,g:s,b:c}=new sn(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),p=Math.round((r-s*(1-u))/u),g=Math.round((a-c*(1-u))/u);if(lS(d)&&lS(p)&&lS(g))return new sn({r:d,g:p,b:g,a:Math.round(u*100)/100}).toRgbString()}return new sn({r:n,g:r,b:a,a:1}).toRgbString()}var Oie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[g]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,c=992,u=1200,d=1600;if(a.motion===!1){const g="0s";a.motionDurationFast=g,a.motionDurationMid=g,a.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ch(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Ch(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ch(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Ch(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` + `.trim()}function gie(e,t){const n=pie(e,t);fa()&&Ss(n,`${fie}-dynamic-theme`)}const pa=l.createContext(!1),EO=e=>{let{children:t,disabled:n}=e;const r=l.useContext(pa);return l.createElement(pa.Provider,{value:n??r},t)},Lc=l.createContext(void 0),mie=e=>{let{children:t,size:n}=e;const r=l.useContext(Lc);return l.createElement(Lc.Provider,{value:n||r},t)};function hie(){const e=l.useContext(pa),t=l.useContext(Lc);return{componentDisabled:e,componentSize:t}}var SU=er(function e(){Jn(this,e)}),wU="CALC_UNIT",vie=new RegExp(wU,"g");function lS(e){return typeof e=="number"?"".concat(e).concat(wU):e}var bie=function(e){so(n,e);var t=Ao(n);function n(r,a){var o;Jn(this,n),o=t.call(this),V(Ke(o),"result",""),V(Ke(o),"unitlessCssVar",void 0),V(Ke(o),"lowPriority",void 0);var i=mt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=lS(r):i==="string"&&(o.result=r),o}return er(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(lS(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(lS(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(vie,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(SU),yie=function(e){so(n,e);var t=Ao(n);function n(r){var a;return Jn(this,n),a=t.call(this),V(Ke(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return er(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(SU),xie=function(t,n){var r=t==="css"?bie:yie;return function(a){return new r(a,n)}},P4=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function qt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>Eie&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),B4=new Iie;function Tie(e,t){return de.useMemo(function(){var n=B4.get(t);if(n)return n;var r=e();return B4.set(t,r),r},t)}var Rie=function(){return{}};function _ie(e){var t=e.useCSP,n=t===void 0?Rie:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(g,m,h,b){var x=Array.isArray(g)?g[0]:g;function S(T){return"".concat(String(x)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var v=(b==null?void 0:b.unitless)||{},y=typeof s=="function"?s(g):{},w=X(X({},y),{},V({},S("zIndexPopup"),!0));Object.keys(v).forEach(function(T){w[S(T)]=v[T]});var C=X(X({},b),{},{unitless:w,prefixToken:S}),E=d(g,m,h,C),I=u(x,h,C);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,_=E(T,R),$=ce(_,2),M=$[1],P=I(R),D=ce(P,2),O=D[0],k=D[1];return[O,M,k]}}function u(g,m,h){var b=h.unitless,x=h.injectStyle,S=x===void 0?!0:x,v=h.prefixToken,y=h.ignore,w=function(I){var T=I.rootCls,R=I.cssVar,_=R===void 0?{}:R,$=r(),M=$.realToken;return Noe({path:[g],prefix:_.prefix,key:_.key,unitless:b,ignore:y,token:M,scope:T},function(){var P=F4(g,M,m),D=L4(g,M,P,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(P).forEach(function(O){D[v(O)]=D[O],delete D[O]}),D}),null},C=function(I){var T=r(),R=T.cssVar;return[function(_){return S&&R?de.createElement(de.Fragment,null,de.createElement(w,{rootCls:I,cssVar:R,component:g}),_):_},R==null?void 0:R.key]};return C}function d(g,m,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(g)?g:[g,g],S=ce(x,1),v=S[0],y=x.join("-"),w=e.layer||{name:"antd"};return function(C){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,I=r(),T=I.theme,R=I.realToken,_=I.hashId,$=I.token,M=I.cssVar,P=a(),D=P.rootPrefixCls,O=P.iconPrefixCls,k=n(),N=M?"css":"js",A=Tie(function(){var U=new Set;return M&&Object.keys(b.unitless||{}).forEach(function(H){U.add(Iv(H,M.prefix)),U.add(Iv(H,P4(v,M.prefix)))}),xie(N,U)},[N,v,M==null?void 0:M.prefix]),L=Cie(N),j=L.max,F=L.min,B={theme:T,token:$,hashId:_,nonce:function(){return k.nonce},clientOnly:b.clientOnly,layer:w,order:b.order||-999};dR(X(X({},B),{},{clientOnly:!1,path:["Shared",D]}),function(){return typeof o=="function"?o($):[]});var z=dR(X(X({},B),{},{path:[y,C,O]}),function(){if(b.injectStyle===!1)return[];var U=wie($),H=U.token,K=U.flush,Y=F4(v,R,h),ee=".".concat(C),ae=L4(v,R,Y,{deprecatedTokens:b.deprecatedTokens});M&&Y&&mt(Y)==="object"&&Object.keys(Y).forEach(function(Q){Y[Q]="var(".concat(Iv(Q,P4(v,M.prefix)),")")});var W=Bt(H,{componentCls:ee,prefixCls:C,iconCls:".".concat(O),antCls:".".concat(D),calc:A,max:j,min:F},M?Y:ae),q=m(W,{hashId:_,prefixCls:C,rootPrefixCls:D,iconPrefixCls:O});K(v,ae);var Z=typeof i=="function"?i(W,C,E,b.resetFont):null;return[b.resetStyle===!1?null:Z,q]});return[z,_]}}function p(g,m,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=d(g,m,h,X({resetStyle:!1,order:-998},b)),S=function(y){var w=y.prefixCls,C=y.rootCls,E=C===void 0?w:C;return x(w,E),null};return S}return{genStyleHooks:c,genSubStyleComponent:p,genComponentStyleHook:d}}const Og=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],$ie="5.21.5";function uS(e){return e>=0&&e<=255}function Ch(e,t){const{r:n,g:r,b:a,a:o}=new sn(e).toRgb();if(o<1)return e;const{r:i,g:s,b:c}=new sn(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),p=Math.round((r-s*(1-u))/u),g=Math.round((a-c*(1-u))/u);if(uS(d)&&uS(p)&&uS(g))return new sn({r:d,g:p,b:g,a:Math.round(u*100)/100}).toRgbString()}return new sn({r:n,g:r,b:a,a:1}).toRgbString()}var Oie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[g]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,c=992,u=1200,d=1600;if(a.motion===!1){const g="0s";a.motionDurationFast=g,a.motionDurationMid=g,a.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Ch(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Ch(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Ch(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Ch(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -121,7 +121,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,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 z4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=z4(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=IO(i),o&&Object.entries(o).forEach(s=>{let[c,u]=s;const{theme:d}=u,p=z4(u,["theme"]);let g=p;d&&(g=IU(Object.assign(Object.assign({},i),p),{override:p},d)),i[c]=g}),i};function ta(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=de.useContext(CO),o=`${$ie}-${t||""}`,i=n||xU,[s,c,u]=aoe(i,[kd,e],{salt:o,override:r,getComputedToken:IU,formatToken:IO,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:EU,ignore:Nie,preserve:kie}});return[i,u,t?c:"",s,a]}const Oo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},an=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},rf=()=>({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"}}),_i=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Aie=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Mie=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Ts=e=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ni=e=>({"&:focus-visible":Object.assign({},Ts(e))}),TO=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ni(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),TU=(e,t)=>{const[n,r]=ta();return uR({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},rf()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:on,genComponentStyleHook:Die,genSubStyleComponent:Qc}=_ie({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(lt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=ta();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=l.useContext(lt);return TU(t,e),e??{}},getResetStyles:e=>[{"&":Aie(e)}],getCommonStyle:Mie,getCompUnitless:()=>EU});function q0(e,t){return $g.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Pie=Object.assign({},Jg),{useId:H4}=Pie,Lie=()=>"",jie=typeof H4>"u"?Lie:H4;function Fie(e,t,n){var r;zl();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},Rg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Rg.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=jie();return Bl(()=>{var s,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(g=>{u[g]=Object.assign(Object.assign({},u[g]),e.components[g])});const d=`css-var-${i.replace(/:/g,"")}`,p=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:p})},[a,o],(s,c)=>s.some((u,d)=>{const p=c[d];return!Jo(u,p,!0)}))}var Bie=["children"],RU=l.createContext({});function zie(e){var t=e.children,n=wt(e,Bie);return l.createElement(RU.Provider,{value:n},t)}var Hie=function(e){so(n,e);var t=Ao(n);function n(){return Jn(this,n),t.apply(this,arguments)}return er(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function Uie(e){var t=l.useReducer(function(s){return s+1},0),n=le(t,2),r=n[1],a=l.useRef(e),o=Gt(function(){return a.current}),i=Gt(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var Ys="none",wh="appear",Eh="enter",Ih="leave",U4="none",hi="prepare",Qu="start",Ju="active",RO="end",_U="prepared";function V4(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Vie(e,t){var n={animationend:V4("Animation","AnimationEnd"),transitionend:V4("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Wie=Vie(da(),typeof window<"u"?window:{}),$U={};if(da()){var Gie=document.createElement("div");$U=Gie.style}var Th={};function OU(e){if(Th[e])return Th[e];var t=Wie[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ht(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Yie=[hi,Qu,Ju,RO],Xie=[hi,_U],DU=!1,Zie=!0;function PU(e){return e===Ju||e===RO}const Qie=function(e,t,n){var r=jc(U4),a=le(r,2),o=a[0],i=a[1],s=Kie(),c=le(s,2),u=c[0],d=c[1];function p(){i(hi,!0)}var g=t?Xie:Yie;return MU(function(){if(o!==U4&&o!==RO){var m=g.indexOf(o),h=g[m+1],b=n(o);b===DU?i(h,!0):h&&u(function(x){function S(){x.isCanceled()||i(h,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),l.useEffect(function(){return function(){d()}},[]),[p,o]};function Jie(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,p=r.motionLeaveImmediately,g=r.onAppearPrepare,m=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,x=r.onEnterStart,S=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,I=r.onLeaveEnd,T=r.onVisibleChanged,R=jc(),_=le(R,2),$=_[0],M=_[1],P=Uie(Ys),D=le(P,2),O=D[0],k=D[1],N=jc(null),A=le(N,2),L=A[0],j=A[1],F=O(),B=l.useRef(!1),z=l.useRef(null);function U(){return n()}var H=l.useRef(!1);function Y(){k(Ys),j(null,!0)}var K=Gt(function(pe){var me=O();if(me!==Ys){var re=U();if(!(pe&&!pe.deadline&&pe.target!==re)){var ce=H.current,ge;me===wh&&ce?ge=w==null?void 0:w(re,pe):me===Eh&&ce?ge=E==null?void 0:E(re,pe):me===Ih&&ce&&(ge=I==null?void 0:I(re,pe)),ce&&ge!==!1&&Y()}}}),J=qie(K),ne=le(J,1),W=ne[0],q=function(me){switch(me){case wh:return V(V(V({},hi,g),Qu,b),Ju,v);case Eh:return V(V(V({},hi,m),Qu,x),Ju,y);case Ih:return V(V(V({},hi,h),Qu,S),Ju,C);default:return{}}},Z=l.useMemo(function(){return q(F)},[F]),Q=Qie(F,!e,function(pe){if(pe===hi){var me=Z[hi];return me?me(U()):DU}if(se in Z){var re;j(((re=Z[se])===null||re===void 0?void 0:re.call(Z,U(),null))||null)}return se===Ju&&F!==Ys&&(W(U()),d>0&&(clearTimeout(z.current),z.current=setTimeout(function(){K({deadline:!0})},d))),se===_U&&Y(),Zie}),ee=le(Q,2),oe=ee[0],se=ee[1],fe=PU(se);H.current=fe,MU(function(){M(t);var pe=B.current;B.current=!0;var me;!pe&&t&&s&&(me=wh),pe&&t&&o&&(me=Eh),(pe&&!t&&u||!pe&&p&&!t&&u)&&(me=Ih);var re=q(me);me&&(e||re[hi])?(k(me),oe()):k(Ys)},[t]),l.useEffect(function(){(F===wh&&!s||F===Eh&&!o||F===Ih&&!u)&&k(Ys)},[s,o,u]),l.useEffect(function(){return function(){B.current=!1,clearTimeout(z.current)}},[]);var te=l.useRef(!1);l.useEffect(function(){$&&(te.current=!0),$!==void 0&&F===Ys&&((te.current||$)&&(T==null||T($)),te.current=!0)},[$,F]);var ie=L;return Z[hi]&&se===Qu&&(ie=X({transition:"none"},ie)),[F,se,ie,$??t]}function ese(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,p=a.children,g=a.motionName,m=a.leavedClassName,h=a.eventProps,b=l.useContext(RU),x=b.motion,S=n(a,x),v=l.useRef(),y=l.useRef();function C(){try{return v.current instanceof HTMLElement?v.current:kp(y.current)}catch{return null}}var w=Jie(S,s,C,a),E=le(w,4),I=E[0],T=E[1],R=E[2],_=E[3],$=l.useRef(_);_&&($.current=!0);var M=l.useCallback(function(L){v.current=L,xg(o,L)},[o]),P,D=X(X({},h),{},{visible:s});if(!p)P=null;else if(I===Ys)_?P=p(X({},D),M):!u&&$.current&&m?P=p(X(X({},D),{},{className:m}),M):d||!u&&!m?P=p(X(X({},D),{},{style:{display:"none"}}),M):P=null;else{var O;T===hi?O="prepare":PU(T)?O="active":T===Qu&&(O="start");var k=q4(g,"".concat(I,"-").concat(O));P=p(X(X({},D),{},{className:ae(q4(g,I),V(V({},k,k&&O),g,typeof g=="string")),style:R}),M)}if(l.isValidElement(P)&&Ri(P)){var N=P,A=N.ref;A||(P=l.cloneElement(P,{ref:M}))}return l.createElement(Hie,{ref:y},P)});return r.displayName="CSSMotion",r}const Qr=ese(AU);var TR="add",RR="keep",_R="remove",cS="removed";function tse(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function $R(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(tse)}function nse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=$R(e),i=$R(t);o.forEach(function(u){for(var d=!1,p=r;p1});return c.forEach(function(u){n=n.filter(function(d){var p=d.key,g=d.status;return p!==u||g!==_R}),n.forEach(function(d){d.key===u&&(d.status=RR)})}),n}var rse=["component","children","onVisibleChanged","onAllRemoved"],ase=["status"],ose=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ise(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,n=function(r){so(o,r);var a=Ao(o);function o(){var i;Jn(this,o);for(var s=arguments.length,c=new Array(s),u=0;unull;var cse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const pse=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(kb=t),n!==void 0&&(LU=n),"holderRender"in e&&(FU=a),r&&(fse(r)?gie(Nv(),r):jU=r)},BU=()=>({getPrefixCls:(e,t)=>t||(e?`${Nv()}-${e}`:Nv()),getIconPrefixCls:dse,getRootPrefixCls:()=>kb||Nv(),getTheme:()=>jU,holderRender:FU}),gse=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:c,direction:u,space:d,splitter:p,virtual:g,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:x,parentContext:S,iconPrefixCls:v,theme:y,componentDisabled:C,segmented:w,statistic:E,spin:I,calendar:T,carousel:R,cascader:_,collapse:$,typography:M,checkbox:P,descriptions:D,divider:O,drawer:k,skeleton:N,steps:A,image:L,layout:j,list:F,mentions:B,modal:z,progress:U,result:H,slider:Y,breadcrumb:K,menu:J,pagination:ne,input:W,textArea:q,empty:Z,badge:Q,radio:ee,rate:oe,switch:se,transfer:fe,avatar:te,message:ie,tag:pe,table:me,card:re,tabs:ce,timeline:ge,timePicker:ye,upload:Ee,notification:Ne,tree:_e,colorPicker:Pe,datePicker:Le,rangePicker:Ve,flex:je,wave:De,dropdown:Se,warning:Oe,tour:Re,floatButtonGroup:Ce,variant:xe,inputNumber:$e,treeSelect:Fe}=e,be=l.useCallback((qe,Ye)=>{const{prefixCls:at}=e;if(Ye)return Ye;const ut=at||S.getPrefixCls("");return qe?`${ut}-${qe}`:ut},[S.getPrefixCls,e.prefixCls]),ue=v||S.iconPrefixCls||wO,Ie=n||S.csp;TU(ue,Ie);const We=Fie(y,S.theme,{prefixCls:be("")}),He={csp:Ie,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||x,direction:u,space:d,splitter:p,virtual:g,popupMatchSelectWidth:h??m,popupOverflow:b,getPrefixCls:be,iconPrefixCls:ue,theme:We,segmented:w,statistic:E,spin:I,calendar:T,carousel:R,cascader:_,collapse:$,typography:M,checkbox:P,descriptions:D,divider:O,drawer:k,skeleton:N,steps:A,image:L,input:W,textArea:q,layout:j,list:F,mentions:B,modal:z,progress:U,result:H,slider:Y,breadcrumb:K,menu:J,pagination:ne,empty:Z,badge:Q,radio:ee,rate:oe,switch:se,transfer:fe,avatar:te,message:ie,tag:pe,table:me,card:re,tabs:ce,timeline:ge,timePicker:ye,upload:Ee,notification:Ne,tree:_e,colorPicker:Pe,datePicker:Le,rangePicker:Ve,flex:je,wave:De,dropdown:Se,warning:Oe,tour:Re,floatButtonGroup:Ce,variant:xe,inputNumber:$e,treeSelect:Fe},Be=Object.assign({},S);Object.keys(He).forEach(qe=>{He[qe]!==void 0&&(Be[qe]=He[qe])}),use.forEach(qe=>{const Ye=e[qe];Ye&&(Be[qe]=Ye)}),typeof r<"u"&&(Be.button=Object.assign({autoInsertSpace:r},Be.button));const ke=Bl(()=>Be,Be,(qe,Ye)=>{const at=Object.keys(qe),ut=Object.keys(Ye);return at.length!==ut.length||at.some(Ct=>qe[Ct]!==Ye[Ct])}),Ae=l.useMemo(()=>({prefixCls:ue,csp:Ie}),[ue,Ie]);let Ue=l.createElement(l.Fragment,null,l.createElement(lse,{dropdownMatchSelectWidth:m}),t);const ct=l.useMemo(()=>{var qe,Ye,at,ut;return Zu(((qe=ti.Form)===null||qe===void 0?void 0:qe.defaultValidateMessages)||{},((at=(Ye=ke.locale)===null||Ye===void 0?void 0:Ye.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((ut=ke.form)===null||ut===void 0?void 0:ut.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ke,i==null?void 0:i.validateMessages]);Object.keys(ct).length>0&&(Ue=l.createElement(uU.Provider,{value:ct},Ue)),s&&(Ue=l.createElement(zoe,{locale:s,_ANT_MARK__:Boe},Ue)),(ue||Ie)&&(Ue=l.createElement(yO.Provider,{value:Ae},Ue)),c&&(Ue=l.createElement(mie,{size:c},Ue)),Ue=l.createElement(sse,null,Ue);const rt=l.useMemo(()=>{const qe=We||{},{algorithm:Ye,token:at,components:ut,cssVar:Ct}=qe,kt=cse(qe,["algorithm","token","components","cssVar"]),xt=Ye&&(!Array.isArray(Ye)||Ye.length>0)?Eg(Ye):xU,et={};Object.entries(ut||{}).forEach(bt=>{let[Ot,ht]=bt;const it=Object.assign({},ht);"algorithm"in it&&(it.algorithm===!0?it.theme=xt:(Array.isArray(it.algorithm)||typeof it.algorithm=="function")&&(it.theme=Eg(it.algorithm)),delete it.algorithm),et[Ot]=it});const tt=Object.assign(Object.assign({},kd),at);return Object.assign(Object.assign({},kt),{theme:xt,token:tt,components:et,override:Object.assign({override:tt},et),cssVar:Ct})},[We]);return y&&(Ue=l.createElement(CO.Provider,{value:rt},Ue)),ke.warning&&(Ue=l.createElement(Poe.Provider,{value:ke.warning},Ue)),C!==void 0&&(Ue=l.createElement(EO,{disabled:C},Ue)),l.createElement(lt.Provider,{value:ke},Ue)},ki=e=>{const t=l.useContext(lt),n=l.useContext(xO);return l.createElement(gse,Object.assign({parentContext:t,legacyLocale:n},e))};ki.ConfigContext=lt;ki.SizeContext=Lc;ki.config=pse;ki.useConfig=hie;Object.defineProperty(ki,"SizeContext",{get:()=>Lc});var mse={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 zU(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function hse(e){return zU(e)instanceof ShadowRoot}function Ab(e){return hse(e)?zU(e):null}function vse(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function bse(e,t){_n(e,"[@ant-design/icons] ".concat(t))}function K4(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function Y4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[vse(n)]=r}return t},{})}function OR(e,t,n){return n?de.createElement(e.tag,X(X({key:t},Y4(e.attrs)),n),(e.children||[]).map(function(r,a){return OR(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):de.createElement(e.tag,X({key:t},Y4(e.attrs)),(e.children||[]).map(function(r,a){return OR(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function HU(e){return Pc(e)[0]}function UU(e){return e?Array.isArray(e)?e:[e]:[]}var yse=` + `,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 z4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=z4(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=IO(i),o&&Object.entries(o).forEach(s=>{let[c,u]=s;const{theme:d}=u,p=z4(u,["theme"]);let g=p;d&&(g=IU(Object.assign(Object.assign({},i),p),{override:p},d)),i[c]=g}),i};function ta(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=de.useContext(wO),o=`${$ie}-${t||""}`,i=n||xU,[s,c,u]=aoe(i,[kd,e],{salt:o,override:r,getComputedToken:IU,formatToken:IO,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:EU,ignore:Nie,preserve:kie}});return[i,u,t?c:"",s,a]}const Oo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},an=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},rf=()=>({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"}}),$i=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Aie=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Mie=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},_s=e=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ri=e=>({"&:focus-visible":Object.assign({},_s(e))}),TO=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},ri(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),TU=(e,t)=>{const[n,r]=ta();return dR({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},rf()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:on,genComponentStyleHook:Die,genSubStyleComponent:Qc}=_ie({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(ut);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=ta();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=l.useContext(ut);return TU(t,e),e??{}},getResetStyles:e=>[{"&":Aie(e)}],getCommonStyle:Mie,getCompUnitless:()=>EU});function Y0(e,t){return Og.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const Pie=Object.assign({},em),{useId:H4}=Pie,Lie=()=>"",jie=typeof H4>"u"?Lie:H4;function Fie(e,t,n){var r;zl();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},_g),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:_g.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=jie();return Bl(()=>{var s,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(g=>{u[g]=Object.assign(Object.assign({},u[g]),e.components[g])});const d=`css-var-${i.replace(/:/g,"")}`,p=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:p})},[a,o],(s,c)=>s.some((u,d)=>{const p=c[d];return!ei(u,p,!0)}))}var Bie=["children"],RU=l.createContext({});function zie(e){var t=e.children,n=Ct(e,Bie);return l.createElement(RU.Provider,{value:n},t)}var Hie=function(e){so(n,e);var t=Ao(n);function n(){return Jn(this,n),t.apply(this,arguments)}return er(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function Uie(e){var t=l.useReducer(function(s){return s+1},0),n=ce(t,2),r=n[1],a=l.useRef(e),o=qt(function(){return a.current}),i=qt(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var Xs="none",Eh="appear",Ih="enter",Th="leave",U4="none",vi="prepare",Qu="start",Ju="active",RO="end",_U="prepared";function V4(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Vie(e,t){var n={animationend:V4("Animation","AnimationEnd"),transitionend:V4("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Wie=Vie(fa(),typeof window<"u"?window:{}),$U={};if(fa()){var Gie=document.createElement("div");$U=Gie.style}var Rh={};function OU(e){if(Rh[e])return Rh[e];var t=Wie[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ut(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Yie=[vi,Qu,Ju,RO],Xie=[vi,_U],DU=!1,Zie=!0;function PU(e){return e===Ju||e===RO}const Qie=function(e,t,n){var r=jc(U4),a=ce(r,2),o=a[0],i=a[1],s=Kie(),c=ce(s,2),u=c[0],d=c[1];function p(){i(vi,!0)}var g=t?Xie:Yie;return MU(function(){if(o!==U4&&o!==RO){var m=g.indexOf(o),h=g[m+1],b=n(o);b===DU?i(h,!0):h&&u(function(x){function S(){x.isCanceled()||i(h,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),l.useEffect(function(){return function(){d()}},[]),[p,o]};function Jie(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,p=r.motionLeaveImmediately,g=r.onAppearPrepare,m=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,x=r.onEnterStart,S=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,I=r.onLeaveEnd,T=r.onVisibleChanged,R=jc(),_=ce(R,2),$=_[0],M=_[1],P=Uie(Xs),D=ce(P,2),O=D[0],k=D[1],N=jc(null),A=ce(N,2),L=A[0],j=A[1],F=O(),B=l.useRef(!1),z=l.useRef(null);function U(){return n()}var H=l.useRef(!1);function K(){k(Xs),j(null,!0)}var Y=qt(function(pe){var he=O();if(he!==Xs){var re=U();if(!(pe&&!pe.deadline&&pe.target!==re)){var ue=H.current,me;he===Eh&&ue?me=C==null?void 0:C(re,pe):he===Ih&&ue?me=E==null?void 0:E(re,pe):he===Th&&ue&&(me=I==null?void 0:I(re,pe)),ue&&me!==!1&&K()}}}),ee=qie(Y),ae=ce(ee,1),W=ae[0],q=function(he){switch(he){case Eh:return V(V(V({},vi,g),Qu,b),Ju,v);case Ih:return V(V(V({},vi,m),Qu,x),Ju,y);case Th:return V(V(V({},vi,h),Qu,S),Ju,w);default:return{}}},Z=l.useMemo(function(){return q(F)},[F]),Q=Qie(F,!e,function(pe){if(pe===vi){var he=Z[vi];return he?he(U()):DU}if(le in Z){var re;j(((re=Z[le])===null||re===void 0?void 0:re.call(Z,U(),null))||null)}return le===Ju&&F!==Xs&&(W(U()),d>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Y({deadline:!0})},d))),le===_U&&K(),Zie}),J=ce(Q,2),ie=J[0],le=J[1],fe=PU(le);H.current=fe,MU(function(){M(t);var pe=B.current;B.current=!0;var he;!pe&&t&&s&&(he=Eh),pe&&t&&o&&(he=Ih),(pe&&!t&&u||!pe&&p&&!t&&u)&&(he=Th);var re=q(he);he&&(e||re[vi])?(k(he),ie()):k(Xs)},[t]),l.useEffect(function(){(F===Eh&&!s||F===Ih&&!o||F===Th&&!u)&&k(Xs)},[s,o,u]),l.useEffect(function(){return function(){B.current=!1,clearTimeout(z.current)}},[]);var te=l.useRef(!1);l.useEffect(function(){$&&(te.current=!0),$!==void 0&&F===Xs&&((te.current||$)&&(T==null||T($)),te.current=!0)},[$,F]);var se=L;return Z[vi]&&le===Qu&&(se=X({transition:"none"},se)),[F,le,se,$??t]}function ese(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,p=a.children,g=a.motionName,m=a.leavedClassName,h=a.eventProps,b=l.useContext(RU),x=b.motion,S=n(a,x),v=l.useRef(),y=l.useRef();function w(){try{return v.current instanceof HTMLElement?v.current:Ap(y.current)}catch{return null}}var C=Jie(S,s,w,a),E=ce(C,4),I=E[0],T=E[1],R=E[2],_=E[3],$=l.useRef(_);_&&($.current=!0);var M=l.useCallback(function(L){v.current=L,Sg(o,L)},[o]),P,D=X(X({},h),{},{visible:s});if(!p)P=null;else if(I===Xs)_?P=p(X({},D),M):!u&&$.current&&m?P=p(X(X({},D),{},{className:m}),M):d||!u&&!m?P=p(X(X({},D),{},{style:{display:"none"}}),M):P=null;else{var O;T===vi?O="prepare":PU(T)?O="active":T===Qu&&(O="start");var k=q4(g,"".concat(I,"-").concat(O));P=p(X(X({},D),{},{className:oe(q4(g,I),V(V({},k,k&&O),g,typeof g=="string")),style:R}),M)}if(l.isValidElement(P)&&_i(P)){var N=P,A=N.ref;A||(P=l.cloneElement(P,{ref:M}))}return l.createElement(Hie,{ref:y},P)});return r.displayName="CSSMotion",r}const Qr=ese(AU);var RR="add",_R="keep",$R="remove",dS="removed";function tse(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},X(X({},t),{},{key:String(t.key)})}function OR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(tse)}function nse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=OR(e),i=OR(t);o.forEach(function(u){for(var d=!1,p=r;p1});return c.forEach(function(u){n=n.filter(function(d){var p=d.key,g=d.status;return p!==u||g!==$R}),n.forEach(function(d){d.key===u&&(d.status=_R)})}),n}var rse=["component","children","onVisibleChanged","onAllRemoved"],ase=["status"],ose=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ise(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,n=function(r){so(o,r);var a=Ao(o);function o(){var i;Jn(this,o);for(var s=arguments.length,c=new Array(s),u=0;unull;var cse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const pse=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Ab=t),n!==void 0&&(LU=n),"holderRender"in e&&(FU=a),r&&(fse(r)?gie(Av(),r):jU=r)},BU=()=>({getPrefixCls:(e,t)=>t||(e?`${Av()}-${e}`:Av()),getIconPrefixCls:dse,getRootPrefixCls:()=>Ab||Av(),getTheme:()=>jU,holderRender:FU}),gse=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:c,direction:u,space:d,splitter:p,virtual:g,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:x,parentContext:S,iconPrefixCls:v,theme:y,componentDisabled:w,segmented:C,statistic:E,spin:I,calendar:T,carousel:R,cascader:_,collapse:$,typography:M,checkbox:P,descriptions:D,divider:O,drawer:k,skeleton:N,steps:A,image:L,layout:j,list:F,mentions:B,modal:z,progress:U,result:H,slider:K,breadcrumb:Y,menu:ee,pagination:ae,input:W,textArea:q,empty:Z,badge:Q,radio:J,rate:ie,switch:le,transfer:fe,avatar:te,message:se,tag:pe,table:he,card:re,tabs:ue,timeline:me,timePicker:xe,upload:Ee,notification:ke,tree:$e,colorPicker:Le,datePicker:je,rangePicker:He,flex:Be,wave:Pe,dropdown:Se,warning:Ne,tour:Te,floatButtonGroup:we,variant:Me,inputNumber:Ge,treeSelect:st}=e,ge=l.useCallback((We,qe)=>{const{prefixCls:Qe}=e;if(qe)return qe;const ot=Qe||S.getPrefixCls("");return We?`${ot}-${We}`:ot},[S.getPrefixCls,e.prefixCls]),ne=v||S.iconPrefixCls||CO,ve=n||S.csp;TU(ne,ve);const _e=Fie(y,S.theme,{prefixCls:ge("")}),ze={csp:ve,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||x,direction:u,space:d,splitter:p,virtual:g,popupMatchSelectWidth:h??m,popupOverflow:b,getPrefixCls:ge,iconPrefixCls:ne,theme:_e,segmented:C,statistic:E,spin:I,calendar:T,carousel:R,cascader:_,collapse:$,typography:M,checkbox:P,descriptions:D,divider:O,drawer:k,skeleton:N,steps:A,image:L,input:W,textArea:q,layout:j,list:F,mentions:B,modal:z,progress:U,result:H,slider:K,breadcrumb:Y,menu:ee,pagination:ae,empty:Z,badge:Q,radio:J,rate:ie,switch:le,transfer:fe,avatar:te,message:se,tag:pe,table:he,card:re,tabs:ue,timeline:me,timePicker:xe,upload:Ee,notification:ke,tree:$e,colorPicker:Le,datePicker:je,rangePicker:He,flex:Be,wave:Pe,dropdown:Se,warning:Ne,tour:Te,floatButtonGroup:we,variant:Me,inputNumber:Ge,treeSelect:st},Ue=Object.assign({},S);Object.keys(ze).forEach(We=>{ze[We]!==void 0&&(Ue[We]=ze[We])}),use.forEach(We=>{const qe=e[We];qe&&(Ue[We]=qe)}),typeof r<"u"&&(Ue.button=Object.assign({autoInsertSpace:r},Ue.button));const Ae=Bl(()=>Ue,Ue,(We,qe)=>{const Qe=Object.keys(We),ot=Object.keys(qe);return Qe.length!==ot.length||Qe.some(wt=>We[wt]!==qe[wt])}),Oe=l.useMemo(()=>({prefixCls:ne,csp:ve}),[ne,ve]);let Re=l.createElement(l.Fragment,null,l.createElement(lse,{dropdownMatchSelectWidth:m}),t);const at=l.useMemo(()=>{var We,qe,Qe,ot;return Zu(((We=ni.Form)===null||We===void 0?void 0:We.defaultValidateMessages)||{},((Qe=(qe=Ae.locale)===null||qe===void 0?void 0:qe.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((ot=Ae.form)===null||ot===void 0?void 0:ot.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[Ae,i==null?void 0:i.validateMessages]);Object.keys(at).length>0&&(Re=l.createElement(uU.Provider,{value:at},Re)),s&&(Re=l.createElement(zoe,{locale:s,_ANT_MARK__:Boe},Re)),(ne||ve)&&(Re=l.createElement(yO.Provider,{value:Oe},Re)),c&&(Re=l.createElement(mie,{size:c},Re)),Re=l.createElement(sse,null,Re);const Ye=l.useMemo(()=>{const We=_e||{},{algorithm:qe,token:Qe,components:ot,cssVar:wt}=We,kt=cse(We,["algorithm","token","components","cssVar"]),xt=qe&&(!Array.isArray(qe)||qe.length>0)?Ig(qe):xU,nt={};Object.entries(ot||{}).forEach(bt=>{let[Ot,ht]=bt;const lt=Object.assign({},ht);"algorithm"in lt&&(lt.algorithm===!0?lt.theme=xt:(Array.isArray(lt.algorithm)||typeof lt.algorithm=="function")&&(lt.theme=Ig(lt.algorithm)),delete lt.algorithm),nt[Ot]=lt});const rt=Object.assign(Object.assign({},kd),Qe);return Object.assign(Object.assign({},kt),{theme:xt,token:rt,components:nt,override:Object.assign({override:rt},nt),cssVar:wt})},[_e]);return y&&(Re=l.createElement(wO.Provider,{value:Ye},Re)),Ae.warning&&(Re=l.createElement(Poe.Provider,{value:Ae.warning},Re)),w!==void 0&&(Re=l.createElement(EO,{disabled:w},Re)),l.createElement(ut.Provider,{value:Ae},Re)},Ai=e=>{const t=l.useContext(ut),n=l.useContext(xO);return l.createElement(gse,Object.assign({parentContext:t,legacyLocale:n},e))};Ai.ConfigContext=ut;Ai.SizeContext=Lc;Ai.config=pse;Ai.useConfig=hie;Object.defineProperty(Ai,"SizeContext",{get:()=>Lc});var mse={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 zU(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function hse(e){return zU(e)instanceof ShadowRoot}function Mb(e){return hse(e)?zU(e):null}function vse(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function bse(e,t){$n(e,"[@ant-design/icons] ".concat(t))}function K4(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function Y4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[vse(n)]=r}return t},{})}function NR(e,t,n){return n?de.createElement(e.tag,X(X({key:t},Y4(e.attrs)),n),(e.children||[]).map(function(r,a){return NR(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):de.createElement(e.tag,X({key:t},Y4(e.attrs)),(e.children||[]).map(function(r,a){return NR(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function HU(e){return Pc(e)[0]}function UU(e){return e?Array.isArray(e)?e:[e]:[]}var yse=` .anticon { display: inline-flex; align-items: center; @@ -176,7 +176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,xse=function(t){var n=l.useContext(yO),r=n.csp,a=n.prefixCls,o=yse;a&&(o=o.replace(/anticon/g,a)),l.useEffect(function(){var i=t.current,s=Ab(i);ys(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Sse=["icon","className","onClick","style","primaryColor","secondaryColor"],Mp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Cse(e){var t=e.primaryColor,n=e.secondaryColor;Mp.primaryColor=t,Mp.secondaryColor=n||HU(t),Mp.calculated=!!n}function wse(){return X({},Mp)}var af=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,c=wt(t,Sse),u=l.useRef(),d=Mp;if(i&&(d={primaryColor:i,secondaryColor:s||HU(i)}),xse(u),bse(K4(n),"icon should be icon definiton, but got ".concat(n)),!K4(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=X(X({},p),{},{icon:p.icon(d.primaryColor,d.secondaryColor)})),OR(p.icon,"svg-".concat(p.name),X(X({className:r,onClick:a,style:o,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};af.displayName="IconReact";af.getTwoToneColors=wse;af.setTwoToneColors=Cse;function VU(e){var t=UU(e),n=le(t,2),r=n[0],a=n[1];return af.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Ese(){var e=af.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ise=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];VU(Nd.primary);var Qe=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=wt(e,Ise),d=l.useContext(yO),p=d.prefixCls,g=p===void 0?"anticon":p,m=d.rootClassName,h=ae(m,g,V(V({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&s&&(b=-1);var x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=UU(c),v=le(S,2),y=v[0],C=v[1];return l.createElement("span",he({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:s,className:h}),l.createElement(af,{icon:r,primaryColor:y,secondaryColor:C,style:x}))});Qe.displayName="AntdIcon";Qe.getTwoToneColor=Ese;Qe.setTwoToneColor=VU;var Tse=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:mse}))},of=l.forwardRef(Tse),Rse={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"},_se=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Rse}))},Hl=l.forwardRef(_se),$se={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"},Ose=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:$se}))},pa=l.forwardRef(Ose),Nse={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"},kse=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Nse}))},im=l.forwardRef(kse),Ase={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"},Mse=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Ase}))},K0=l.forwardRef(Mse),Dse=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`,xse=function(t){var n=l.useContext(yO),r=n.csp,a=n.prefixCls,o=yse;a&&(o=o.replace(/anticon/g,a)),l.useEffect(function(){var i=t.current,s=Mb(i);Ss(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},Sse=["icon","className","onClick","style","primaryColor","secondaryColor"],Dp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function wse(e){var t=e.primaryColor,n=e.secondaryColor;Dp.primaryColor=t,Dp.secondaryColor=n||HU(t),Dp.calculated=!!n}function Cse(){return X({},Dp)}var af=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,c=Ct(t,Sse),u=l.useRef(),d=Dp;if(i&&(d={primaryColor:i,secondaryColor:s||HU(i)}),xse(u),bse(K4(n),"icon should be icon definiton, but got ".concat(n)),!K4(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=X(X({},p),{},{icon:p.icon(d.primaryColor,d.secondaryColor)})),NR(p.icon,"svg-".concat(p.name),X(X({className:r,onClick:a,style:o,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};af.displayName="IconReact";af.getTwoToneColors=Cse;af.setTwoToneColors=wse;function VU(e){var t=UU(e),n=ce(t,2),r=n[0],a=n[1];return af.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Ese(){var e=af.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ise=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];VU(Nd.primary);var Je=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=Ct(e,Ise),d=l.useContext(yO),p=d.prefixCls,g=p===void 0?"anticon":p,m=d.rootClassName,h=oe(m,g,V(V({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&s&&(b=-1);var x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=UU(c),v=ce(S,2),y=v[0],w=v[1];return l.createElement("span",be({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:s,className:h}),l.createElement(af,{icon:r,primaryColor:y,secondaryColor:w,style:x}))});Je.displayName="AntdIcon";Je.getTwoToneColor=Ese;Je.setTwoToneColor=VU;var Tse=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:mse}))},of=l.forwardRef(Tse),Rse={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"},_se=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Rse}))},Hl=l.forwardRef(_se),$se={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"},Ose=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:$se}))},ga=l.forwardRef(Ose),Nse={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"},kse=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Nse}))},sm=l.forwardRef(kse),Ase={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"},Mse=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Ase}))},X0=l.forwardRef(Mse),Dse=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -193,107 +193,107 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Lse="".concat(Dse," ").concat(Pse).split(/[\s\n]+/),jse="aria-",Fse="data-";function X4(e,t){return e.indexOf(t)===0}function ur(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=X({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||X4(a,jse))||n.data&&X4(a,Fse)||n.attr&&Lse.includes(a))&&(r[a]=e[a])}),r}function WU(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const $O=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function $r(e,t){return $O(e,e,t)}const Rh=(e,t,n,r,a)=>({background:e,border:`${G(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Bse=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:p,colorTextHeading:g,withDescriptionPadding:m,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:g},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Lse="".concat(Dse," ").concat(Pse).split(/[\s\n]+/),jse="aria-",Fse="data-";function X4(e,t){return e.indexOf(t)===0}function ur(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=X({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||X4(a,jse))||n.data&&X4(a,Fse)||n.attr&&Lse.includes(a))&&(r[a]=e[a])}),r}function WU(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const $O=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function $r(e,t){return $O(e,e,t)}const _h=(e,t,n,r,a)=>({background:e,border:`${G(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Bse=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:p,colorTextHeading:g,withDescriptionPadding:m,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:g},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, - margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:g,fontSize:i},[`${t}-description`]:{display:"block",color:p}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},zse=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:p,colorInfoBorder:g,colorInfoBg:m}=e;return{[t]:{"&-success":Rh(a,r,n,e,t),"&-info":Rh(m,g,p,e,t),"&-warning":Rh(s,i,o,e,t),"&-error":Object.assign(Object.assign({},Rh(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Hse=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:G(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:s}}}}},Use=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Vse=on("Alert",e=>[Bse(e),zse(e),Hse(e)],Use);var Z4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=Wse[r]||null;return t?$O(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ae(`${n}-icon`,{[t.props.className]:t.props.className})})):l.createElement(a,{className:`${n}-icon`})},qse=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?l.createElement(pa,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},GU=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:p,afterClose:g,showIcon:m,closable:h,closeText:b,closeIcon:x,action:S,id:v}=e,y=Z4(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,w]=l.useState(!1),E=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:I,direction:T,alert:R}=l.useContext(lt),_=I("alert",r),[$,M,P]=Vse(_),D=B=>{var z;w(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},O=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),k=l.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:x!==!1&&x!==null&&x!==void 0?!0:!!(R!=null&&R.closable),[b,x,h,R==null?void 0:R.closable]),N=o&&m===void 0?!0:m,A=ae(_,`${_}-${O}`,{[`${_}-with-description`]:!!n,[`${_}-no-icon`]:!N,[`${_}-banner`]:!!o,[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,i,s,P,M),L=ur(y,{aria:!0,data:!0}),j=l.useMemo(()=>{var B,z;return typeof h=="object"&&h.closeIcon?h.closeIcon:b||(x!==void 0?x:typeof(R==null?void 0:R.closable)=="object"&&(!((B=R==null?void 0:R.closable)===null||B===void 0)&&B.closeIcon)?(z=R==null?void 0:R.closable)===null||z===void 0?void 0:z.closeIcon:R==null?void 0:R.closeIcon)},[x,h,b,R==null?void 0:R.closeIcon]),F=l.useMemo(()=>{const B=h??(R==null?void 0:R.closable);return typeof B=="object"?Z4(B,["closeIcon"]):{}},[h,R==null?void 0:R.closable]);return $(l.createElement(Qr,{visible:!C,motionName:`${_}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:g},(B,z)=>{let{className:U,style:H}=B;return l.createElement("div",Object.assign({id:v,ref:ga(E,z),"data-show":!C,className:ae(A,U),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),H),onMouseEnter:u,onMouseLeave:d,onClick:p,role:"alert"},L),N?l.createElement(Gse,{description:n,icon:e.icon,prefixCls:_,type:O}):null,l.createElement("div",{className:`${_}-content`},a?l.createElement("div",{className:`${_}-message`},a):null,n?l.createElement("div",{className:`${_}-description`},n):null),S?l.createElement("div",{className:`${_}-action`},S):null,l.createElement(qse,{isClosable:k,prefixCls:_,closeIcon:j,handleClose:D,ariaProps:F}))}))});function Kse(e,t,n){return t=Dc(t),PH(e,H0()?Reflect.construct(t,n||[],Dc(e).constructor):t.apply(e,n))}let Yse=function(e){function t(){var n;return Jn(this,t),n=Kse(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return so(t,e),er(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,p=typeof a>"u"?u:a;return s?l.createElement(GU,{id:o,type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},p)}):i}}])}(l.Component);const Cn=GU;Cn.ErrorBoundary=Yse;const Q4=e=>typeof e=="object"&&e!=null&&e.nodeType===1,J4=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",uS=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&s>=n?o-e-r:i>t&&sn?i-t+a:0,Xse=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},eM=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,p=typeof u=="function"?u:k=>k!==u;if(!Q4(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,m=[];let h=e;for(;Q4(h)&&p(h);){if(h=Xse(h),h===g){m.push(h);break}h!=null&&h===document.body&&uS(h)&&!uS(document.documentElement)||h!=null&&uS(h,d)&&m.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,x=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:S,scrollY:v}=window,{height:y,width:C,top:w,right:E,bottom:I,left:T}=e.getBoundingClientRect(),{top:R,right:_,bottom:$,left:M}=(k=>{const N=window.getComputedStyle(k);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?w-R:s==="end"?I+$:w+y/2-R+$,D=c==="center"?T+C/2-M+_:c==="end"?E+_:T-M;const O=[];for(let k=0;k=0&&T>=0&&I<=x&&E<=b&&w>=j&&I<=B&&T>=z&&E<=F)return O;const U=getComputedStyle(N),H=parseInt(U.borderLeftWidth,10),Y=parseInt(U.borderTopWidth,10),K=parseInt(U.borderRightWidth,10),J=parseInt(U.borderBottomWidth,10);let ne=0,W=0;const q="offsetWidth"in N?N.offsetWidth-N.clientWidth-H-K:0,Z="offsetHeight"in N?N.offsetHeight-N.clientHeight-Y-J:0,Q="offsetWidth"in N?N.offsetWidth===0?0:L/N.offsetWidth:0,ee="offsetHeight"in N?N.offsetHeight===0?0:A/N.offsetHeight:0;if(g===N)ne=s==="start"?P:s==="end"?P-x:s==="nearest"?_h(v,v+x,x,Y,J,v+P,v+P+y,y):P-x/2,W=c==="start"?D:c==="center"?D-b/2:c==="end"?D-b:_h(S,S+b,b,H,K,S+D,S+D+C,C),ne=Math.max(0,ne+v),W=Math.max(0,W+S);else{ne=s==="start"?P-j-Y:s==="end"?P-B+J+Z:s==="nearest"?_h(j,B,A,Y,J+Z,P,P+y,y):P-(j+A/2)+Z/2,W=c==="start"?D-z-H:c==="center"?D-(z+L/2)+q/2:c==="end"?D-F+K+q:_h(z,F,L,H,K+q,D,D+C,C);const{scrollLeft:oe,scrollTop:se}=N;ne=ee===0?0:Math.max(0,Math.min(se+ne/ee,N.scrollHeight-A/ee+Z)),W=Q===0?0:Math.max(0,Math.min(oe+W/Q,N.scrollWidth-L/Q+q)),P+=se-ne,D+=oe-W}O.push({el:N,top:ne,left:W})}return O},Zse=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Qse(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(eM(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of eM(e,Zse(t))){const s=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:s,left:c,behavior:r})}}function NR(e){return e!=null&&e===e.window}const Jse=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return NR(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!NR(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function ele(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function tle(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=Jse(o),s=Date.now(),c=()=>{const d=Date.now()-s,p=ele(d>a?a:d,i,e,a);NR(o)?o.scrollTo(window.pageXOffset,p):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=p:o.scrollTop=p,d{const[,,,,t]=ta();return t?`${e}-css-var`:""};var ze={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ze.F1&&n<=ze.F12)return!1;switch(n){case ze.ALT:case ze.CAPS_LOCK:case ze.CONTEXT_MENU:case ze.CTRL:case ze.DOWN:case ze.END:case ze.ESC:case ze.HOME:case ze.INSERT:case ze.LEFT:case ze.MAC_FF_META:case ze.META:case ze.NUMLOCK:case ze.NUM_CENTER:case ze.PAGE_DOWN:case ze.PAGE_UP:case ze.PAUSE:case ze.PRINT_SCREEN:case ze.RIGHT:case ze.SHIFT:case ze.UP:case ze.WIN_KEY:case ze.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ze.ZERO&&t<=ze.NINE||t>=ze.NUM_ZERO&&t<=ze.NUM_MULTIPLY||t>=ze.A&&t<=ze.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ze.SPACE:case ze.QUESTION_MARK:case ze.NUM_PLUS:case ze.NUM_MINUS:case ze.NUM_PERIOD:case ze.NUM_DIVISION:case ze.SEMICOLON:case ze.DASH:case ze.EQUALS:case ze.COMMA:case ze.PERIOD:case ze.SLASH:case ze.APOSTROPHE:case ze.SINGLE_QUOTE:case ze.OPEN_SQUARE_BRACKET:case ze.BACKSLASH:case ze.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qU=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,p=e.content,g=e.closable,m=e.closeIcon,h=m===void 0?"x":m,b=e.props,x=e.onClick,S=e.onNoticeClose,v=e.times,y=e.hovering,C=l.useState(!1),w=le(C,2),E=w[0],I=w[1],T=l.useState(0),R=le(T,2),_=R[0],$=R[1],M=l.useState(0),P=le(M,2),D=P[0],O=P[1],k=y||E,N=i>0&&s,A=function(){S(d)},L=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===ze.ENTER)&&A()};l.useEffect(function(){if(!k&&i>0){var U=Date.now()-D,H=setTimeout(function(){A()},i*1e3-D);return function(){u&&clearTimeout(H),O(Date.now()-U)}}},[i,k,v]),l.useEffect(function(){if(!k&&N&&(u||D===0)){var U=performance.now(),H,Y=function K(){cancelAnimationFrame(H),H=requestAnimationFrame(function(J){var ne=J+D-U,W=Math.min(ne/(i*1e3),1);$(W*100),W<1&&K()})};return Y(),function(){u&&cancelAnimationFrame(H)}}},[i,D,k,N,v]);var j=l.useMemo(function(){return mt(g)==="object"&&g!==null?g:g?{closeIcon:h}:{}},[g,h]),F=ur(j,!0),B=100-(!_||_<0?0:_>100?100:_),z="".concat(n,"-notice");return l.createElement("div",he({},b,{ref:t,className:ae(z,a,V({},"".concat(z,"-closable"),g)),style:r,onMouseEnter:function(H){var Y;I(!0),b==null||(Y=b.onMouseEnter)===null||Y===void 0||Y.call(b,H)},onMouseLeave:function(H){var Y;I(!1),b==null||(Y=b.onMouseLeave)===null||Y===void 0||Y.call(b,H)},onClick:x}),l.createElement("div",{className:"".concat(z,"-content")},p),g&&l.createElement("a",he({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:L,"aria-label":"Close"},F,{onClick:function(H){H.preventDefault(),H.stopPropagation(),A()}}),j.closeIcon),N&&l.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:B},B+"%"))}),KU=de.createContext({}),nle=function(t){var n=t.children,r=t.classNames;return de.createElement(KU.Provider,{value:{classNames:r}},n)},tM=8,nM=3,rM=16,rle=function(t){var n={offset:tM,threshold:nM,gap:rM};if(t&&mt(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:tM,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:nM,n.gap=(o=t.gap)!==null&&o!==void 0?o:rM}return[!!t,n]},ale=["className","style","classNames","styles"],ole=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,p=l.useContext(KU),g=p.classNames,m=l.useRef({}),h=l.useState(null),b=le(h,2),x=b[0],S=b[1],v=l.useState([]),y=le(v,2),C=y[0],w=y[1],E=n.map(function(k){return{config:k,key:String(k.key)}}),I=rle(d),T=le(I,2),R=T[0],_=T[1],$=_.offset,M=_.threshold,P=_.gap,D=R&&(C.length>0||E.length<=M),O=typeof s=="function"?s(r):s;return l.useEffect(function(){R&&C.length>1&&w(function(k){return k.filter(function(N){return E.some(function(A){var L=A.key;return N===L})})})},[C,E,R]),l.useEffect(function(){var k;if(R&&m.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key]){var N;S(m.current[(N=E[E.length-1])===null||N===void 0?void 0:N.key])}},[E,R]),de.createElement(_O,he({key:r,className:ae(a,"".concat(a,"-").concat(r),g==null?void 0:g.list,o,V(V({},"".concat(a,"-stack"),!!R),"".concat(a,"-stack-expanded"),D)),style:i,keys:E,motionAppear:!0},O,{onAllRemoved:function(){c(r)}}),function(k,N){var A=k.config,L=k.className,j=k.style,F=k.index,B=A,z=B.key,U=B.times,H=String(z),Y=A,K=Y.className,J=Y.style,ne=Y.classNames,W=Y.styles,q=wt(Y,ale),Z=E.findIndex(function(ge){return ge.key===H}),Q={};if(R){var ee=E.length-1-(Z>-1?Z:F-1),oe=r==="top"||r==="bottom"?"-50%":"0";if(ee>0){var se,fe,te;Q.height=D?(se=m.current[H])===null||se===void 0?void 0:se.offsetHeight:x==null?void 0:x.offsetHeight;for(var ie=0,pe=0;pe-1?m.current[H]=ye:delete m.current[H]},prefixCls:a,classNames:ne,styles:W,className:ae(K,g==null?void 0:g.notice),style:J,times:U,key:z,eventKey:z,onNoticeClose:u,hovering:R&&C.length>0})))})},ile=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,p=e.renderNotifications,g=l.useState([]),m=le(g,2),h=m[0],b=m[1],x=function(R){var _,$=h.find(function(M){return M.key===R});$==null||(_=$.onClose)===null||_===void 0||_.call($),b(function(M){return M.filter(function(P){return P.key!==R})})};l.useImperativeHandle(t,function(){return{open:function(R){b(function(_){var $=Me(_),M=$.findIndex(function(O){return O.key===R.key}),P=X({},R);if(M>=0){var D;P.times=(((D=_[M])===null||D===void 0?void 0:D.times)||0)+1,$[M]=P}else P.times=0,$.push(P);return i>0&&$.length>i&&($=$.slice(-i)),$})},close:function(R){x(R)},destroy:function(){b([])}}});var S=l.useState({}),v=le(S,2),y=v[0],C=v[1];l.useEffect(function(){var T={};h.forEach(function(R){var _=R.placement,$=_===void 0?"topRight":_;$&&(T[$]=T[$]||[],T[$].push(R))}),Object.keys(y).forEach(function(R){T[R]=T[R]||[]}),C(T)},[h]);var w=function(R){C(function(_){var $=X({},_),M=$[R]||[];return M.length||delete $[R],$})},E=l.useRef(!1);if(l.useEffect(function(){Object.keys(y).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[y]),!a)return null;var I=Object.keys(y);return Kr.createPortal(l.createElement(l.Fragment,null,I.map(function(T){var R=y[T],_=l.createElement(ole,{key:T,configList:R,placement:T,prefixCls:r,className:s==null?void 0:s(T),style:c==null?void 0:c(T),motion:o,onNoticeClose:x,onAllNoticeRemoved:w,stack:d});return p?p(_,{prefixCls:r,key:T}):_})),a)}),sle=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],lle=function(){return document.body},aM=0;function cle(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?lle:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,p=wt(e,sle),g=l.useState(),m=le(g,2),h=m[0],b=m[1],x=l.useRef(),S=l.createElement(ile,{container:h,ref:x,prefixCls:a,motion:r,maxCount:o,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),v=l.useState([]),y=le(v,2),C=y[0],w=y[1],E=l.useMemo(function(){return{open:function(T){var R=cle(p,T);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(aM),aM+=1),w(function(_){return[].concat(Me(_),[{type:"open",config:R}])})},close:function(T){w(function(R){return[].concat(Me(R),[{type:"close",key:T}])})},destroy:function(){w(function(T){return[].concat(Me(T),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){b(n())}),l.useEffect(function(){x.current&&C.length&&(C.forEach(function(I){switch(I.type){case"open":x.current.open(I.config);break;case"close":x.current.close(I.key);break;case"destroy":x.current.destroy();break}}),w(function(I){return I.filter(function(T){return!C.includes(T)})}))},[C]),[E,S]}var dle={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"},fle=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:dle}))},Zi=l.forwardRef(fle);const sm=de.createContext(void 0),Xs=100,ple=10,YU=Xs*ple,XU={Modal:Xs,Drawer:Xs,Popover:Xs,Popconfirm:Xs,Tooltip:Xs,Tour:Xs,FloatButton:Xs},gle={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function mle(e){return e in XU}const Ai=(e,t)=>{const[,n]=ta(),r=de.useContext(sm),a=mle(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+XU[e]:i+=gle[e],o=[r===void 0?t:i,i]}return o};function hle(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(Me(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]}function rr(){rr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(k,N,A){k[N]=A.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(k,N,A){return Object.defineProperty(k,N,{value:A,enumerable:!0,configurable:!0,writable:!0}),k[N]}try{u({},"")}catch{u=function(A,L,j){return A[L]=j}}function d(k,N,A,L){var j=N&&N.prototype instanceof S?N:S,F=Object.create(j.prototype),B=new D(L||[]);return a(F,"_invoke",{value:_(k,A,B)}),F}function p(k,N,A){try{return{type:"normal",arg:k.call(N,A)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var g="suspendedStart",m="suspendedYield",h="executing",b="completed",x={};function S(){}function v(){}function y(){}var C={};u(C,i,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(O([])));E&&E!==n&&r.call(E,i)&&(C=E);var I=y.prototype=S.prototype=Object.create(C);function T(k){["next","throw","return"].forEach(function(N){u(k,N,function(A){return this._invoke(N,A)})})}function R(k,N){function A(j,F,B,z){var U=p(k[j],k,F);if(U.type!=="throw"){var H=U.arg,Y=H.value;return Y&&mt(Y)=="object"&&r.call(Y,"__await")?N.resolve(Y.__await).then(function(K){A("next",K,B,z)},function(K){A("throw",K,B,z)}):N.resolve(Y).then(function(K){H.value=K,B(H)},function(K){return A("throw",K,B,z)})}z(U.arg)}var L;a(this,"_invoke",{value:function(F,B){function z(){return new N(function(U,H){A(F,B,U,H)})}return L=L?L.then(z,z):z()}})}function _(k,N,A){var L=g;return function(j,F){if(L===h)throw Error("Generator is already running");if(L===b){if(j==="throw")throw F;return{value:e,done:!0}}for(A.method=j,A.arg=F;;){var B=A.delegate;if(B){var z=$(B,A);if(z){if(z===x)continue;return z}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(L===g)throw L=b,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);L=h;var U=p(k,N,A);if(U.type==="normal"){if(L=A.done?b:m,U.arg===x)continue;return{value:U.arg,done:A.done}}U.type==="throw"&&(L=b,A.method="throw",A.arg=U.arg)}}}function $(k,N){var A=N.method,L=k.iterator[A];if(L===e)return N.delegate=null,A==="throw"&&k.iterator.return&&(N.method="return",N.arg=e,$(k,N),N.method==="throw")||A!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+A+"' method")),x;var j=p(L,k.iterator,N.arg);if(j.type==="throw")return N.method="throw",N.arg=j.arg,N.delegate=null,x;var F=j.arg;return F?F.done?(N[k.resultName]=F.value,N.next=k.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,x):F:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,x)}function M(k){var N={tryLoc:k[0]};1 in k&&(N.catchLoc=k[1]),2 in k&&(N.finallyLoc=k[2],N.afterLoc=k[3]),this.tryEntries.push(N)}function P(k){var N=k.completion||{};N.type="normal",delete N.arg,k.completion=N}function D(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(M,this),this.reset(!0)}function O(k){if(k||k===""){var N=k[i];if(N)return N.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var A=-1,L=function j(){for(;++A=0;--j){var F=this.tryEntries[j],B=F.completion;if(F.tryLoc==="root")return L("end");if(F.tryLoc<=this.prev){var z=r.call(F,"catchLoc"),U=r.call(F,"finallyLoc");if(z&&U){if(this.prev=0;--L){var j=this.tryEntries[L];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev=0;--A){var L=this.tryEntries[A];if(L.finallyLoc===N)return this.complete(L.completion,L.afterLoc),P(L),x}},catch:function(N){for(var A=this.tryEntries.length-1;A>=0;--A){var L=this.tryEntries[A];if(L.tryLoc===N){var j=L.completion;if(j.type==="throw"){var F=j.arg;P(L)}return F}}throw Error("illegal catch attempt")},delegateYield:function(N,A,L){return this.delegate={iterator:O(N),resultName:A,nextLoc:L},this.method==="next"&&(this.arg=e),x}},t}function oM(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function So(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){oM(o,r,a,i,s,"next",c)}function s(c){oM(o,r,a,i,s,"throw",c)}i(void 0)})}}var lm=X({},Pte),vle=lm.version,ble=lm.render,yle=lm.unmountComponentAtNode,Y0;try{var xle=Number((vle||"").split(".")[0]);xle>=18&&(Y0=lm.createRoot)}catch{}function iM(e){var t=lm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var Mb="__rc_react_root__";function Sle(e,t){iM(!0);var n=t[Mb]||Y0(t);iM(!1),n.render(e),t[Mb]=n}function Cle(e,t){ble(e,t)}function OO(e,t){if(Y0){Sle(e,t);return}Cle(e,t)}function wle(e){return kR.apply(this,arguments)}function kR(){return kR=So(rr().mark(function e(t){return rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Mb])===null||a===void 0||a.unmount(),delete t[Mb]}));case 1:case"end":return r.stop()}},e)})),kR.apply(this,arguments)}function Ele(e){yle(e)}function ZU(e){return AR.apply(this,arguments)}function AR(){return AR=So(rr().mark(function e(t){return rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Y0===void 0){r.next=2;break}return r.abrupt("return",wle(t));case 2:Ele(t);case 3:case"end":return r.stop()}},e)})),AR.apply(this,arguments)}const dS=()=>({height:0,opacity:0}),sM=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ile=e=>({height:e?e.offsetHeight:0}),fS=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ad=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:_g}-motion-collapse`,onAppearStart:dS,onEnterStart:dS,onAppearActive:sM,onEnterActive:sM,onLeaveStart:Ile,onLeaveActive:dS,onAppearEnd:fS,onEnterEnd:fS,onLeaveEnd:fS,motionDeadline:500}},Da=(e,t,n)=>n!==void 0?n:`${e}-${t}`,sf=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Tle=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{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 ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Rle=Die("Wave",e=>[Tle(e)]),X0=`${_g}-wave-target`;function pS(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function _le(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return pS(t)?t:pS(n)?n:pS(r)?r:null}function gS(e){return Number.isNaN(e)?0:e}const $le=e=>{const{className:t,target:n,component:r}=e,a=l.useRef(null),[o,i]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[p,g]=l.useState(0),[m,h]=l.useState(0),[b,x]=l.useState(0),[S,v]=l.useState(!1),y={left:u,top:p,width:m,height:b,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(y["--wave-color"]=o);function C(){const E=getComputedStyle(n);i(_le(n));const I=E.position==="static",{borderLeftWidth:T,borderTopWidth:R}=E;d(I?n.offsetLeft:gS(-parseFloat(T))),g(I?n.offsetTop:gS(-parseFloat(R))),h(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:$,borderBottomLeftRadius:M,borderBottomRightRadius:P}=E;c([_,$,P,M].map(D=>gS(parseFloat(D))))}if(l.useEffect(()=>{if(n){const E=Ht(()=>{C(),v(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(C),I.observe(n)),()=>{Ht.cancel(E),I==null||I.disconnect()}}},[]),!S)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(X0));return l.createElement(Qr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,I)=>{var T;if(I.deadline||I.propertyName==="opacity"){const R=(T=a.current)===null||T===void 0?void 0:T.parentElement;ZU(R).then(()=>{R==null||R.remove()})}return!1}},(E,I)=>{let{className:T}=E;return l.createElement("div",{ref:ga(a,I),className:ae(t,T,{"wave-quick":w}),style:y})})},Ole=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),OO(l.createElement($le,Object.assign({},t,{target:e})),a)},Nle=(e,t,n)=>{const{wave:r}=l.useContext(lt),[,a,o]=ta(),i=Gt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const p=d.querySelector(`.${X0}`)||d,{showEffect:g}=r||{};(g||Ole)(p,{className:t,token:a,component:n,event:u,hashId:o})}),s=l.useRef();return u=>{Ht.cancel(s.current),s.current=Ht(()=>{i(u)})}},cm=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(lt),o=l.useRef(null),i=a("wave"),[,s]=Rle(i),c=Nle(o,ae(i,s),r);if(de.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const p=g=>{!sf(g.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(g)};return d.addEventListener("click",p,!0),()=>{d.removeEventListener("click",p,!0)}},[n]),!de.isValidElement(t))return t??null;const u=Ri(t)?ga(t.ref,o):o;return $r(t,{ref:u})},Lr=e=>{const t=de.useContext(Lc);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},kle=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ale=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{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"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Mle=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},QU=on("Space",e=>{const t=Ft(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ale(t),Mle(t),kle(t)]},()=>({}),{resetStyle:!1});var JU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(Z0),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return ae(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Dle=e=>{let{children:t}=e;return l.createElement(Z0.Provider,{value:null},t)},Ple=e=>{var{children:t}=e,n=JU(e,["children"]);return l.createElement(Z0.Provider,{value:n},t)},Lle=e=>{const{getPrefixCls:t,direction:n}=l.useContext(lt),{size:r,direction:a,block:o,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=JU(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=Lr(y=>r??y),g=t("space-compact",i),[m,h]=QU(g),b=ae(g,h,{[`${g}-rtl`]:n==="rtl",[`${g}-block`]:o,[`${g}-vertical`]:a==="vertical"},s,c),x=l.useContext(Z0),S=_r(u),v=l.useMemo(()=>S.map((y,C)=>{const w=(y==null?void 0:y.key)||`${g}-item-${C}`;return l.createElement(Ple,{key:w,compactSize:p,compactDirection:a,isFirstItem:C===0&&(!x||(x==null?void 0:x.isFirstItem)),isLastItem:C===S.length-1&&(!x||(x==null?void 0:x.isLastItem))},y)}),[r,S,x]);return S.length===0?null:m(l.createElement("div",Object.assign({className:b},d),v))};var jle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=l.useContext(lt),{prefixCls:r,size:a,className:o}=e,i=jle(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=ta();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}const d=ae(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},o,c);return l.createElement(eV.Provider,{value:a},l.createElement("div",Object.assign({},i,{className:d})))},lM=/^[\u4E00-\u9FA5]{2}$/,MR=lM.test.bind(lM);function tV(e){return e==="danger"?{danger:!0}:{type:e}}function cM(e){return typeof e=="string"}function mS(e){return e==="text"||e==="link"}function Ble(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&cM(e.type)&&MR(e.props.children)?$r(e,{children:e.props.children.split("").join(n)}):cM(e)?MR(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):WU(e)?de.createElement("span",null,e):e}function zle(e,t){let n=!1;const r=[];return de.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${a}`}else r.push(a);n=i}),de.Children.map(r,a=>Ble(a,t))}const nV=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=ae(`${o}-icon`,n);return de.createElement("span",{ref:t,className:i,style:r},a)}),uM=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=ae(`${n}-loading-icon`,r);return de.createElement(nV,{prefixCls:n,className:i,style:a,ref:t},de.createElement(Zi,{className:o}))}),hS=()=>({width:0,opacity:0,transform:"scale(0)"}),vS=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Hle=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,i=!!n;return r?de.createElement(uM,{prefixCls:t,className:a,style:o}):de.createElement(Qr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:hS,onAppearActive:vS,onEnterStart:hS,onEnterActive:vS,onLeaveStart:vS,onLeaveActive:hS},(s,c)=>{let{className:u,style:d}=s;return de.createElement(uM,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:c,iconClassName:u})})},dM=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ule=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},dM(`${t}-primary`,a),dM(`${t}-danger`,o)]}},ra=Math.round;function bS(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const fM=(e,t,n)=>n===0?e:e/100;function Wf(e,t){const n=t||255;return e>n?n:e<0?0:e}class Q0{constructor(t){V(this,"isValid",!0),V(this,"r",0),V(this,"g",0),V(this,"b",0),V(this,"a",1),V(this,"_h",void 0),V(this,"_s",void 0),V(this,"_l",void 0),V(this,"_v",void 0),V(this,"_max",void 0),V(this,"_min",void 0),V(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let o=function(i){return a.startsWith(i)};var r=o;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):o("rgb")?this.fromRgbString(a):o("hsl")?this.fromHslString(a):(o("hsv")||o("hsb"))&&this.fromHsvString(a)}else if(t instanceof Q0)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Wf(t.r),this.g=Wf(t.g),this.b=Wf(t.b),this.a=typeof t.a=="number"?Wf(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ra(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/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(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=s=>(r[s]-this[s])*a+this[s],i={r:ra(o("r")),g:ra(o("g")),b:ra(o("b")),a:ra(o("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>ra((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ra(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ra(this.getSaturation()*100),r=ra(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${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(t,n,r){const a=this.clone();return a[t]=Wf(n,r),a}_c(t){return new this.constructor(t)}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(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],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:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const g=ra(r*255);this.r=g,this.g=g,this.b=g}let o=0,i=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,i=d):c>=1&&c<2?(o=d,i=u):c>=2&&c<3?(i=u,s=d):c>=3&&c<4?(i=d,s=u):c>=4&&c<5?(o=d,s=u):c>=5&&c<6&&(o=u,s=d);const p=r-u/2;this.r=ra((o+p)*255),this.g=ra((i+p)*255),this.b=ra((s+p)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=ra(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const i=t/60,s=Math.floor(i),c=i-s,u=ra(r*(1-n)*255),d=ra(r*(1-n*c)*255),p=ra(r*(1-n*(1-c))*255);switch(s){case 0:this.g=p,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=p;break;case 3:this.r=u,this.g=d;break;case 4:this.r=p,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=bS(t,fM);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=bS(t,fM);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=bS(t,(r,a)=>a.includes("%")?ra(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Vle=["b"],Wle=["v"],yS=function(t){return Math.round(Number(t||0))},Gle=function(t){if(t instanceof Q0)return t;if(t&&mt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=wt(n,Vle);return X(X({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Og=function(e){so(n,e);var t=Ao(n);function n(r){return Jn(this,n),t.call(this,Gle(r))}return er(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=yS(a.s*100),i=yS(a.b*100),s=yS(a.h),c=a.a,u="hsb(".concat(s,", ").concat(o,"%, ").concat(i,"%)"),d="hsba(".concat(s,", ").concat(o,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,i=wt(a,Wle);return X(X({},i),{},{b:o,a:this.a})}}]),n}(Q0),qle=function(t){return t instanceof Og?t:new Og(t)};qle("#1677ff");const Kle=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Yle=(e,t)=>e?Kle(e,t):"";let Xle=function(){function e(t){Jn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(a=>{let{color:o,percent:i}=a;return{color:new e(o),percent:i}}),this.metaColor=new Og(this.colors[0].color.metaColor)):this.metaColor=new Og(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return er(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Yle(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(a=>`${a.color.toRgbString()} ${a.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,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var Zle={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"},Qle=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Zle}))},io=l.forwardRef(Qle),rV=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,s=e.isActive,c=e.role,u=e.classNames,d=e.styles,p=de.useState(s||r),g=le(p,2),m=g[0],h=g[1];return de.useEffect(function(){(r||s)&&h(!0)},[r,s]),m?de.createElement("div",{ref:t,className:ae("".concat(n,"-content"),V(V({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),a),style:o,role:c},de.createElement("div",{className:ae("".concat(n,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},i)):null});rV.displayName="PanelContent";var Jle=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],aV=de.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,p=e.styles,g=p===void 0?{}:p,m=e.prefixCls,h=e.collapsible,b=e.accordion,x=e.panelKey,S=e.extra,v=e.header,y=e.expandIcon,C=e.openMotion,w=e.destroyInactivePanel,E=e.children,I=wt(e,Jle),T=h==="disabled",R=h==="header",_=h==="icon",$=S!=null&&typeof S!="boolean",M=function(){i==null||i(x)},P=function(L){(L.key==="Enter"||L.keyCode===ze.ENTER||L.which===ze.ENTER)&&M()},D=typeof y=="function"?y(e):de.createElement("i",{className:"arrow"});D&&(D=de.createElement("div",{className:"".concat(m,"-expand-icon"),onClick:["header","icon"].includes(h)?M:void 0},D));var O=ae(V(V(V({},"".concat(m,"-item"),!0),"".concat(m,"-item-active"),o),"".concat(m,"-item-disabled"),T),c),k=ae(a,V(V(V({},"".concat(m,"-header"),!0),"".concat(m,"-header-collapsible-only"),R),"".concat(m,"-icon-collapsible-only"),_),d.header),N={className:k,"aria-expanded":o,"aria-disabled":T,onKeyDown:P,style:g.header};return!R&&!_&&(N.onClick=M,N.role=b?"tab":"button",N.tabIndex=T?-1:0),de.createElement("div",he({},I,{ref:t,className:O}),de.createElement("div",N,r&&D,de.createElement("span",{className:"".concat(m,"-header-text"),onClick:h==="header"?M:void 0},v),$&&de.createElement("div",{className:"".concat(m,"-extra")},S)),de.createElement(Qr,he({visible:o,leavedClassName:"".concat(m,"-content-hidden")},C,{forceRender:s,removeOnLeave:w}),function(A,L){var j=A.className,F=A.style;return de.createElement(rV,{ref:L,prefixCls:m,className:j,classNames:d,style:F,styles:g,isActive:o,forceRender:s,role:b?"tabpanel":void 0},E)}))}),ece=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],tce=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(p,g){var m=p.children,h=p.label,b=p.key,x=p.collapsible,S=p.onItemClick,v=p.destroyInactivePanel,y=wt(p,ece),C=String(b??g),w=x??o,E=v??i,I=function(_){w!=="disabled"&&(s(_),S==null||S(_))},T=!1;return a?T=c[0]===C:T=c.indexOf(C)>-1,de.createElement(aV,he({},y,{prefixCls:r,key:C,panelKey:C,isActive:T,accordion:a,openMotion:u,expandIcon:d,header:h,collapsible:w,onItemClick:I,destroyInactivePanel:E}),m)})},nce=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,p=r.expandIcon,g=t.key||String(n),m=t.props,h=m.header,b=m.headerClass,x=m.destroyInactivePanel,S=m.collapsible,v=m.onItemClick,y=!1;o?y=u[0]===g:y=u.indexOf(g)>-1;var C=S??i,w=function(T){C!=="disabled"&&(c(T),v==null||v(T))},E={key:g,panelKey:g,header:h,headerClass:b,isActive:y,prefixCls:a,destroyInactivePanel:x??s,openMotion:d,accordion:o,children:t.props.children,onItemClick:w,expandIcon:p,collapsible:C};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(I){typeof E[I]>"u"&&delete E[I]}),de.cloneElement(t,E))};function rce(e,t,n){return Array.isArray(e)?tce(e,n):_r(t).map(function(r,a){return nce(r,a,n)})}function ace(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var oce=de.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,p=e.openMotion,g=e.expandIcon,m=e.activeKey,h=e.defaultActiveKey,b=e.onChange,x=e.items,S=ae(r,c),v=fn([],{value:m,onChange:function(R){return b==null?void 0:b(R)},defaultValue:h,postState:ace}),y=le(v,2),C=y[0],w=y[1],E=function(R){return w(function(){if(s)return C[0]===R?[]:[R];var _=C.indexOf(R),$=_>-1;return $?C.filter(function(M){return M!==R}):[].concat(Me(C),[R])})};_n(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var I=rce(x,u,{prefixCls:r,accordion:s,openMotion:p,expandIcon:g,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:C});return de.createElement("div",he({ref:t,className:S,style:i,role:s?"tablist":void 0},ur(e,{aria:!0,data:!0})),I)});const NO=Object.assign(oce,{Panel:aV});NO.Panel;const ice=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(lt),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),s=ae({[`${i}-no-arrow`]:!o},a);return l.createElement(NO.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),um=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:g,fontSize:i},[`${t}-description`]:{display:"block",color:p}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},zse=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:p,colorInfoBorder:g,colorInfoBg:m}=e;return{[t]:{"&-success":_h(a,r,n,e,t),"&-info":_h(m,g,p,e,t),"&-warning":_h(s,i,o,e,t),"&-error":Object.assign(Object.assign({},_h(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Hse=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:G(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:s}}}}},Use=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Vse=on("Alert",e=>[Bse(e),zse(e),Hse(e)],Use);var Z4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=Wse[r]||null;return t?$O(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:oe(`${n}-icon`,{[t.props.className]:t.props.className})})):l.createElement(a,{className:`${n}-icon`})},qse=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?l.createElement(ga,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},GU=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:p,afterClose:g,showIcon:m,closable:h,closeText:b,closeIcon:x,action:S,id:v}=e,y=Z4(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,C]=l.useState(!1),E=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:I,direction:T,alert:R}=l.useContext(ut),_=I("alert",r),[$,M,P]=Vse(_),D=B=>{var z;C(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},O=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),k=l.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:x!==!1&&x!==null&&x!==void 0?!0:!!(R!=null&&R.closable),[b,x,h,R==null?void 0:R.closable]),N=o&&m===void 0?!0:m,A=oe(_,`${_}-${O}`,{[`${_}-with-description`]:!!n,[`${_}-no-icon`]:!N,[`${_}-banner`]:!!o,[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,i,s,P,M),L=ur(y,{aria:!0,data:!0}),j=l.useMemo(()=>{var B,z;return typeof h=="object"&&h.closeIcon?h.closeIcon:b||(x!==void 0?x:typeof(R==null?void 0:R.closable)=="object"&&(!((B=R==null?void 0:R.closable)===null||B===void 0)&&B.closeIcon)?(z=R==null?void 0:R.closable)===null||z===void 0?void 0:z.closeIcon:R==null?void 0:R.closeIcon)},[x,h,b,R==null?void 0:R.closeIcon]),F=l.useMemo(()=>{const B=h??(R==null?void 0:R.closable);return typeof B=="object"?Z4(B,["closeIcon"]):{}},[h,R==null?void 0:R.closable]);return $(l.createElement(Qr,{visible:!w,motionName:`${_}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:g},(B,z)=>{let{className:U,style:H}=B;return l.createElement("div",Object.assign({id:v,ref:ma(E,z),"data-show":!w,className:oe(A,U),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),H),onMouseEnter:u,onMouseLeave:d,onClick:p,role:"alert"},L),N?l.createElement(Gse,{description:n,icon:e.icon,prefixCls:_,type:O}):null,l.createElement("div",{className:`${_}-content`},a?l.createElement("div",{className:`${_}-message`},a):null,n?l.createElement("div",{className:`${_}-description`},n):null),S?l.createElement("div",{className:`${_}-action`},S):null,l.createElement(qse,{isClosable:k,prefixCls:_,closeIcon:j,handleClose:D,ariaProps:F}))}))});function Kse(e,t,n){return t=Dc(t),PH(e,V0()?Reflect.construct(t,n||[],Dc(e).constructor):t.apply(e,n))}let Yse=function(e){function t(){var n;return Jn(this,t),n=Kse(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return so(t,e),er(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,p=typeof a>"u"?u:a;return s?l.createElement(GU,{id:o,type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},p)}):i}}])}(l.Component);const Sn=GU;Sn.ErrorBoundary=Yse;const Q4=e=>typeof e=="object"&&e!=null&&e.nodeType===1,J4=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",fS=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&s>=n?o-e-r:i>t&&sn?i-t+a:0,Xse=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},eM=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,p=typeof u=="function"?u:k=>k!==u;if(!Q4(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,m=[];let h=e;for(;Q4(h)&&p(h);){if(h=Xse(h),h===g){m.push(h);break}h!=null&&h===document.body&&fS(h)&&!fS(document.documentElement)||h!=null&&fS(h,d)&&m.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,x=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:S,scrollY:v}=window,{height:y,width:w,top:C,right:E,bottom:I,left:T}=e.getBoundingClientRect(),{top:R,right:_,bottom:$,left:M}=(k=>{const N=window.getComputedStyle(k);return{top:parseFloat(N.scrollMarginTop)||0,right:parseFloat(N.scrollMarginRight)||0,bottom:parseFloat(N.scrollMarginBottom)||0,left:parseFloat(N.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?C-R:s==="end"?I+$:C+y/2-R+$,D=c==="center"?T+w/2-M+_:c==="end"?E+_:T-M;const O=[];for(let k=0;k=0&&T>=0&&I<=x&&E<=b&&C>=j&&I<=B&&T>=z&&E<=F)return O;const U=getComputedStyle(N),H=parseInt(U.borderLeftWidth,10),K=parseInt(U.borderTopWidth,10),Y=parseInt(U.borderRightWidth,10),ee=parseInt(U.borderBottomWidth,10);let ae=0,W=0;const q="offsetWidth"in N?N.offsetWidth-N.clientWidth-H-Y:0,Z="offsetHeight"in N?N.offsetHeight-N.clientHeight-K-ee:0,Q="offsetWidth"in N?N.offsetWidth===0?0:L/N.offsetWidth:0,J="offsetHeight"in N?N.offsetHeight===0?0:A/N.offsetHeight:0;if(g===N)ae=s==="start"?P:s==="end"?P-x:s==="nearest"?$h(v,v+x,x,K,ee,v+P,v+P+y,y):P-x/2,W=c==="start"?D:c==="center"?D-b/2:c==="end"?D-b:$h(S,S+b,b,H,Y,S+D,S+D+w,w),ae=Math.max(0,ae+v),W=Math.max(0,W+S);else{ae=s==="start"?P-j-K:s==="end"?P-B+ee+Z:s==="nearest"?$h(j,B,A,K,ee+Z,P,P+y,y):P-(j+A/2)+Z/2,W=c==="start"?D-z-H:c==="center"?D-(z+L/2)+q/2:c==="end"?D-F+Y+q:$h(z,F,L,H,Y+q,D,D+w,w);const{scrollLeft:ie,scrollTop:le}=N;ae=J===0?0:Math.max(0,Math.min(le+ae/J,N.scrollHeight-A/J+Z)),W=Q===0?0:Math.max(0,Math.min(ie+W/Q,N.scrollWidth-L/Q+q)),P+=le-ae,D+=ie-W}O.push({el:N,top:ae,left:W})}return O},Zse=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Qse(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(eM(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of eM(e,Zse(t))){const s=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:s,left:c,behavior:r})}}function kR(e){return e!=null&&e===e.window}const Jse=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return kR(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!kR(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function ele(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function tle(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=Jse(o),s=Date.now(),c=()=>{const d=Date.now()-s,p=ele(d>a?a:d,i,e,a);kR(o)?o.scrollTo(window.pageXOffset,p):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=p:o.scrollTop=p,d{const[,,,,t]=ta();return t?`${e}-css-var`:""};var Fe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Fe.F1&&n<=Fe.F12)return!1;switch(n){case Fe.ALT:case Fe.CAPS_LOCK:case Fe.CONTEXT_MENU:case Fe.CTRL:case Fe.DOWN:case Fe.END:case Fe.ESC:case Fe.HOME:case Fe.INSERT:case Fe.LEFT:case Fe.MAC_FF_META:case Fe.META:case Fe.NUMLOCK:case Fe.NUM_CENTER:case Fe.PAGE_DOWN:case Fe.PAGE_UP:case Fe.PAUSE:case Fe.PRINT_SCREEN:case Fe.RIGHT:case Fe.SHIFT:case Fe.UP:case Fe.WIN_KEY:case Fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Fe.ZERO&&t<=Fe.NINE||t>=Fe.NUM_ZERO&&t<=Fe.NUM_MULTIPLY||t>=Fe.A&&t<=Fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Fe.SPACE:case Fe.QUESTION_MARK:case Fe.NUM_PLUS:case Fe.NUM_MINUS:case Fe.NUM_PERIOD:case Fe.NUM_DIVISION:case Fe.SEMICOLON:case Fe.DASH:case Fe.EQUALS:case Fe.COMMA:case Fe.PERIOD:case Fe.SLASH:case Fe.APOSTROPHE:case Fe.SINGLE_QUOTE:case Fe.OPEN_SQUARE_BRACKET:case Fe.BACKSLASH:case Fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qU=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,p=e.content,g=e.closable,m=e.closeIcon,h=m===void 0?"x":m,b=e.props,x=e.onClick,S=e.onNoticeClose,v=e.times,y=e.hovering,w=l.useState(!1),C=ce(w,2),E=C[0],I=C[1],T=l.useState(0),R=ce(T,2),_=R[0],$=R[1],M=l.useState(0),P=ce(M,2),D=P[0],O=P[1],k=y||E,N=i>0&&s,A=function(){S(d)},L=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===Fe.ENTER)&&A()};l.useEffect(function(){if(!k&&i>0){var U=Date.now()-D,H=setTimeout(function(){A()},i*1e3-D);return function(){u&&clearTimeout(H),O(Date.now()-U)}}},[i,k,v]),l.useEffect(function(){if(!k&&N&&(u||D===0)){var U=performance.now(),H,K=function Y(){cancelAnimationFrame(H),H=requestAnimationFrame(function(ee){var ae=ee+D-U,W=Math.min(ae/(i*1e3),1);$(W*100),W<1&&Y()})};return K(),function(){u&&cancelAnimationFrame(H)}}},[i,D,k,N,v]);var j=l.useMemo(function(){return mt(g)==="object"&&g!==null?g:g?{closeIcon:h}:{}},[g,h]),F=ur(j,!0),B=100-(!_||_<0?0:_>100?100:_),z="".concat(n,"-notice");return l.createElement("div",be({},b,{ref:t,className:oe(z,a,V({},"".concat(z,"-closable"),g)),style:r,onMouseEnter:function(H){var K;I(!0),b==null||(K=b.onMouseEnter)===null||K===void 0||K.call(b,H)},onMouseLeave:function(H){var K;I(!1),b==null||(K=b.onMouseLeave)===null||K===void 0||K.call(b,H)},onClick:x}),l.createElement("div",{className:"".concat(z,"-content")},p),g&&l.createElement("a",be({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:L,"aria-label":"Close"},F,{onClick:function(H){H.preventDefault(),H.stopPropagation(),A()}}),j.closeIcon),N&&l.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:B},B+"%"))}),KU=de.createContext({}),nle=function(t){var n=t.children,r=t.classNames;return de.createElement(KU.Provider,{value:{classNames:r}},n)},tM=8,nM=3,rM=16,rle=function(t){var n={offset:tM,threshold:nM,gap:rM};if(t&&mt(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:tM,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:nM,n.gap=(o=t.gap)!==null&&o!==void 0?o:rM}return[!!t,n]},ale=["className","style","classNames","styles"],ole=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,p=l.useContext(KU),g=p.classNames,m=l.useRef({}),h=l.useState(null),b=ce(h,2),x=b[0],S=b[1],v=l.useState([]),y=ce(v,2),w=y[0],C=y[1],E=n.map(function(k){return{config:k,key:String(k.key)}}),I=rle(d),T=ce(I,2),R=T[0],_=T[1],$=_.offset,M=_.threshold,P=_.gap,D=R&&(w.length>0||E.length<=M),O=typeof s=="function"?s(r):s;return l.useEffect(function(){R&&w.length>1&&C(function(k){return k.filter(function(N){return E.some(function(A){var L=A.key;return N===L})})})},[w,E,R]),l.useEffect(function(){var k;if(R&&m.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key]){var N;S(m.current[(N=E[E.length-1])===null||N===void 0?void 0:N.key])}},[E,R]),de.createElement(_O,be({key:r,className:oe(a,"".concat(a,"-").concat(r),g==null?void 0:g.list,o,V(V({},"".concat(a,"-stack"),!!R),"".concat(a,"-stack-expanded"),D)),style:i,keys:E,motionAppear:!0},O,{onAllRemoved:function(){c(r)}}),function(k,N){var A=k.config,L=k.className,j=k.style,F=k.index,B=A,z=B.key,U=B.times,H=String(z),K=A,Y=K.className,ee=K.style,ae=K.classNames,W=K.styles,q=Ct(K,ale),Z=E.findIndex(function(me){return me.key===H}),Q={};if(R){var J=E.length-1-(Z>-1?Z:F-1),ie=r==="top"||r==="bottom"?"-50%":"0";if(J>0){var le,fe,te;Q.height=D?(le=m.current[H])===null||le===void 0?void 0:le.offsetHeight:x==null?void 0:x.offsetHeight;for(var se=0,pe=0;pe-1?m.current[H]=xe:delete m.current[H]},prefixCls:a,classNames:ae,styles:W,className:oe(Y,g==null?void 0:g.notice),style:ee,times:U,key:z,eventKey:z,onNoticeClose:u,hovering:R&&w.length>0})))})},ile=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,p=e.renderNotifications,g=l.useState([]),m=ce(g,2),h=m[0],b=m[1],x=function(R){var _,$=h.find(function(M){return M.key===R});$==null||(_=$.onClose)===null||_===void 0||_.call($),b(function(M){return M.filter(function(P){return P.key!==R})})};l.useImperativeHandle(t,function(){return{open:function(R){b(function(_){var $=De(_),M=$.findIndex(function(O){return O.key===R.key}),P=X({},R);if(M>=0){var D;P.times=(((D=_[M])===null||D===void 0?void 0:D.times)||0)+1,$[M]=P}else P.times=0,$.push(P);return i>0&&$.length>i&&($=$.slice(-i)),$})},close:function(R){x(R)},destroy:function(){b([])}}});var S=l.useState({}),v=ce(S,2),y=v[0],w=v[1];l.useEffect(function(){var T={};h.forEach(function(R){var _=R.placement,$=_===void 0?"topRight":_;$&&(T[$]=T[$]||[],T[$].push(R))}),Object.keys(y).forEach(function(R){T[R]=T[R]||[]}),w(T)},[h]);var C=function(R){w(function(_){var $=X({},_),M=$[R]||[];return M.length||delete $[R],$})},E=l.useRef(!1);if(l.useEffect(function(){Object.keys(y).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[y]),!a)return null;var I=Object.keys(y);return Kr.createPortal(l.createElement(l.Fragment,null,I.map(function(T){var R=y[T],_=l.createElement(ole,{key:T,configList:R,placement:T,prefixCls:r,className:s==null?void 0:s(T),style:c==null?void 0:c(T),motion:o,onNoticeClose:x,onAllNoticeRemoved:C,stack:d});return p?p(_,{prefixCls:r,key:T}):_})),a)}),sle=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],lle=function(){return document.body},aM=0;function cle(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?lle:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,p=Ct(e,sle),g=l.useState(),m=ce(g,2),h=m[0],b=m[1],x=l.useRef(),S=l.createElement(ile,{container:h,ref:x,prefixCls:a,motion:r,maxCount:o,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),v=l.useState([]),y=ce(v,2),w=y[0],C=y[1],E=l.useMemo(function(){return{open:function(T){var R=cle(p,T);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(aM),aM+=1),C(function(_){return[].concat(De(_),[{type:"open",config:R}])})},close:function(T){C(function(R){return[].concat(De(R),[{type:"close",key:T}])})},destroy:function(){C(function(T){return[].concat(De(T),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){b(n())}),l.useEffect(function(){x.current&&w.length&&(w.forEach(function(I){switch(I.type){case"open":x.current.open(I.config);break;case"close":x.current.close(I.key);break;case"destroy":x.current.destroy();break}}),C(function(I){return I.filter(function(T){return!w.includes(T)})}))},[w]),[E,S]}var dle={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"},fle=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:dle}))},Qi=l.forwardRef(fle);const lm=de.createContext(void 0),Zs=100,ple=10,YU=Zs*ple,XU={Modal:Zs,Drawer:Zs,Popover:Zs,Popconfirm:Zs,Tooltip:Zs,Tour:Zs,FloatButton:Zs},gle={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function mle(e){return e in XU}const Mi=(e,t)=>{const[,n]=ta(),r=de.useContext(lm),a=mle(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+XU[e]:i+=gle[e],o=[r===void 0?t:i,i]}return o};function hle(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(De(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]}function rr(){rr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(k,N,A){k[N]=A.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(k,N,A){return Object.defineProperty(k,N,{value:A,enumerable:!0,configurable:!0,writable:!0}),k[N]}try{u({},"")}catch{u=function(A,L,j){return A[L]=j}}function d(k,N,A,L){var j=N&&N.prototype instanceof S?N:S,F=Object.create(j.prototype),B=new D(L||[]);return a(F,"_invoke",{value:_(k,A,B)}),F}function p(k,N,A){try{return{type:"normal",arg:k.call(N,A)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var g="suspendedStart",m="suspendedYield",h="executing",b="completed",x={};function S(){}function v(){}function y(){}var w={};u(w,i,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(O([])));E&&E!==n&&r.call(E,i)&&(w=E);var I=y.prototype=S.prototype=Object.create(w);function T(k){["next","throw","return"].forEach(function(N){u(k,N,function(A){return this._invoke(N,A)})})}function R(k,N){function A(j,F,B,z){var U=p(k[j],k,F);if(U.type!=="throw"){var H=U.arg,K=H.value;return K&&mt(K)=="object"&&r.call(K,"__await")?N.resolve(K.__await).then(function(Y){A("next",Y,B,z)},function(Y){A("throw",Y,B,z)}):N.resolve(K).then(function(Y){H.value=Y,B(H)},function(Y){return A("throw",Y,B,z)})}z(U.arg)}var L;a(this,"_invoke",{value:function(F,B){function z(){return new N(function(U,H){A(F,B,U,H)})}return L=L?L.then(z,z):z()}})}function _(k,N,A){var L=g;return function(j,F){if(L===h)throw Error("Generator is already running");if(L===b){if(j==="throw")throw F;return{value:e,done:!0}}for(A.method=j,A.arg=F;;){var B=A.delegate;if(B){var z=$(B,A);if(z){if(z===x)continue;return z}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(L===g)throw L=b,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);L=h;var U=p(k,N,A);if(U.type==="normal"){if(L=A.done?b:m,U.arg===x)continue;return{value:U.arg,done:A.done}}U.type==="throw"&&(L=b,A.method="throw",A.arg=U.arg)}}}function $(k,N){var A=N.method,L=k.iterator[A];if(L===e)return N.delegate=null,A==="throw"&&k.iterator.return&&(N.method="return",N.arg=e,$(k,N),N.method==="throw")||A!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+A+"' method")),x;var j=p(L,k.iterator,N.arg);if(j.type==="throw")return N.method="throw",N.arg=j.arg,N.delegate=null,x;var F=j.arg;return F?F.done?(N[k.resultName]=F.value,N.next=k.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,x):F:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,x)}function M(k){var N={tryLoc:k[0]};1 in k&&(N.catchLoc=k[1]),2 in k&&(N.finallyLoc=k[2],N.afterLoc=k[3]),this.tryEntries.push(N)}function P(k){var N=k.completion||{};N.type="normal",delete N.arg,k.completion=N}function D(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(M,this),this.reset(!0)}function O(k){if(k||k===""){var N=k[i];if(N)return N.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var A=-1,L=function j(){for(;++A=0;--j){var F=this.tryEntries[j],B=F.completion;if(F.tryLoc==="root")return L("end");if(F.tryLoc<=this.prev){var z=r.call(F,"catchLoc"),U=r.call(F,"finallyLoc");if(z&&U){if(this.prev=0;--L){var j=this.tryEntries[L];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev=0;--A){var L=this.tryEntries[A];if(L.finallyLoc===N)return this.complete(L.completion,L.afterLoc),P(L),x}},catch:function(N){for(var A=this.tryEntries.length-1;A>=0;--A){var L=this.tryEntries[A];if(L.tryLoc===N){var j=L.completion;if(j.type==="throw"){var F=j.arg;P(L)}return F}}throw Error("illegal catch attempt")},delegateYield:function(N,A,L){return this.delegate={iterator:O(N),resultName:A,nextLoc:L},this.method==="next"&&(this.arg=e),x}},t}function oM(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function So(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){oM(o,r,a,i,s,"next",c)}function s(c){oM(o,r,a,i,s,"throw",c)}i(void 0)})}}var cm=X({},Pte),vle=cm.version,ble=cm.render,yle=cm.unmountComponentAtNode,Z0;try{var xle=Number((vle||"").split(".")[0]);xle>=18&&(Z0=cm.createRoot)}catch{}function iM(e){var t=cm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var Db="__rc_react_root__";function Sle(e,t){iM(!0);var n=t[Db]||Z0(t);iM(!1),n.render(e),t[Db]=n}function wle(e,t){ble(e,t)}function OO(e,t){if(Z0){Sle(e,t);return}wle(e,t)}function Cle(e){return AR.apply(this,arguments)}function AR(){return AR=So(rr().mark(function e(t){return rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Db])===null||a===void 0||a.unmount(),delete t[Db]}));case 1:case"end":return r.stop()}},e)})),AR.apply(this,arguments)}function Ele(e){yle(e)}function ZU(e){return MR.apply(this,arguments)}function MR(){return MR=So(rr().mark(function e(t){return rr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Z0===void 0){r.next=2;break}return r.abrupt("return",Cle(t));case 2:Ele(t);case 3:case"end":return r.stop()}},e)})),MR.apply(this,arguments)}const pS=()=>({height:0,opacity:0}),sM=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ile=e=>({height:e?e.offsetHeight:0}),gS=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ad=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:$g}-motion-collapse`,onAppearStart:pS,onEnterStart:pS,onAppearActive:sM,onEnterActive:sM,onLeaveStart:Ile,onLeaveActive:pS,onAppearEnd:gS,onEnterEnd:gS,onLeaveEnd:gS,motionDeadline:500}},Da=(e,t,n)=>n!==void 0?n:`${e}-${t}`,sf=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},Tle=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{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 ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Rle=Die("Wave",e=>[Tle(e)]),Q0=`${$g}-wave-target`;function mS(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function _le(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return mS(t)?t:mS(n)?n:mS(r)?r:null}function hS(e){return Number.isNaN(e)?0:e}const $le=e=>{const{className:t,target:n,component:r}=e,a=l.useRef(null),[o,i]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[p,g]=l.useState(0),[m,h]=l.useState(0),[b,x]=l.useState(0),[S,v]=l.useState(!1),y={left:u,top:p,width:m,height:b,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(y["--wave-color"]=o);function w(){const E=getComputedStyle(n);i(_le(n));const I=E.position==="static",{borderLeftWidth:T,borderTopWidth:R}=E;d(I?n.offsetLeft:hS(-parseFloat(T))),g(I?n.offsetTop:hS(-parseFloat(R))),h(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:$,borderBottomLeftRadius:M,borderBottomRightRadius:P}=E;c([_,$,P,M].map(D=>hS(parseFloat(D))))}if(l.useEffect(()=>{if(n){const E=Ut(()=>{w(),v(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(w),I.observe(n)),()=>{Ut.cancel(E),I==null||I.disconnect()}}},[]),!S)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Q0));return l.createElement(Qr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,I)=>{var T;if(I.deadline||I.propertyName==="opacity"){const R=(T=a.current)===null||T===void 0?void 0:T.parentElement;ZU(R).then(()=>{R==null||R.remove()})}return!1}},(E,I)=>{let{className:T}=E;return l.createElement("div",{ref:ma(a,I),className:oe(t,T,{"wave-quick":C}),style:y})})},Ole=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),OO(l.createElement($le,Object.assign({},t,{target:e})),a)},Nle=(e,t,n)=>{const{wave:r}=l.useContext(ut),[,a,o]=ta(),i=qt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const p=d.querySelector(`.${Q0}`)||d,{showEffect:g}=r||{};(g||Ole)(p,{className:t,token:a,component:n,event:u,hashId:o})}),s=l.useRef();return u=>{Ut.cancel(s.current),s.current=Ut(()=>{i(u)})}},um=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(ut),o=l.useRef(null),i=a("wave"),[,s]=Rle(i),c=Nle(o,oe(i,s),r);if(de.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const p=g=>{!sf(g.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(g)};return d.addEventListener("click",p,!0),()=>{d.removeEventListener("click",p,!0)}},[n]),!de.isValidElement(t))return t??null;const u=_i(t)?ma(t.ref,o):o;return $r(t,{ref:u})},Lr=e=>{const t=de.useContext(Lc);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},kle=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ale=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{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"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Mle=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},QU=on("Space",e=>{const t=Bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ale(t),Mle(t),kle(t)]},()=>({}),{resetStyle:!1});var JU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(J0),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return oe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Dle=e=>{let{children:t}=e;return l.createElement(J0.Provider,{value:null},t)},Ple=e=>{var{children:t}=e,n=JU(e,["children"]);return l.createElement(J0.Provider,{value:n},t)},Lle=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ut),{size:r,direction:a,block:o,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=JU(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=Lr(y=>r??y),g=t("space-compact",i),[m,h]=QU(g),b=oe(g,h,{[`${g}-rtl`]:n==="rtl",[`${g}-block`]:o,[`${g}-vertical`]:a==="vertical"},s,c),x=l.useContext(J0),S=_r(u),v=l.useMemo(()=>S.map((y,w)=>{const C=(y==null?void 0:y.key)||`${g}-item-${w}`;return l.createElement(Ple,{key:C,compactSize:p,compactDirection:a,isFirstItem:w===0&&(!x||(x==null?void 0:x.isFirstItem)),isLastItem:w===S.length-1&&(!x||(x==null?void 0:x.isLastItem))},y)}),[r,S,x]);return S.length===0?null:m(l.createElement("div",Object.assign({className:b},d),v))};var jle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=l.useContext(ut),{prefixCls:r,size:a,className:o}=e,i=jle(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=ta();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}const d=oe(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},o,c);return l.createElement(eV.Provider,{value:a},l.createElement("div",Object.assign({},i,{className:d})))},lM=/^[\u4E00-\u9FA5]{2}$/,DR=lM.test.bind(lM);function tV(e){return e==="danger"?{danger:!0}:{type:e}}function cM(e){return typeof e=="string"}function vS(e){return e==="text"||e==="link"}function Ble(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&cM(e.type)&&DR(e.props.children)?$r(e,{children:e.props.children.split("").join(n)}):cM(e)?DR(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):WU(e)?de.createElement("span",null,e):e}function zle(e,t){let n=!1;const r=[];return de.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${a}`}else r.push(a);n=i}),de.Children.map(r,a=>Ble(a,t))}const nV=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=oe(`${o}-icon`,n);return de.createElement("span",{ref:t,className:i,style:r},a)}),uM=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=oe(`${n}-loading-icon`,r);return de.createElement(nV,{prefixCls:n,className:i,style:a,ref:t},de.createElement(Qi,{className:o}))}),bS=()=>({width:0,opacity:0,transform:"scale(0)"}),yS=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Hle=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,i=!!n;return r?de.createElement(uM,{prefixCls:t,className:a,style:o}):de.createElement(Qr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:bS,onAppearActive:yS,onEnterStart:bS,onEnterActive:yS,onLeaveStart:yS,onLeaveActive:bS},(s,c)=>{let{className:u,style:d}=s;return de.createElement(uM,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:c,iconClassName:u})})},dM=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ule=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},dM(`${t}-primary`,a),dM(`${t}-danger`,o)]}},ra=Math.round;function xS(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const fM=(e,t,n)=>n===0?e:e/100;function Wf(e,t){const n=t||255;return e>n?n:e<0?0:e}class ey{constructor(t){V(this,"isValid",!0),V(this,"r",0),V(this,"g",0),V(this,"b",0),V(this,"a",1),V(this,"_h",void 0),V(this,"_s",void 0),V(this,"_l",void 0),V(this,"_v",void 0),V(this,"_max",void 0),V(this,"_min",void 0),V(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let o=function(i){return a.startsWith(i)};var r=o;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):o("rgb")?this.fromRgbString(a):o("hsl")?this.fromHslString(a):(o("hsv")||o("hsb"))&&this.fromHsvString(a)}else if(t instanceof ey)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Wf(t.r),this.g=Wf(t.g),this.b=Wf(t.b),this.a=typeof t.a=="number"?Wf(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ra(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/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(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=s=>(r[s]-this[s])*a+this[s],i={r:ra(o("r")),g:ra(o("g")),b:ra(o("b")),a:ra(o("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>ra((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ra(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ra(this.getSaturation()*100),r=ra(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${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(t,n,r){const a=this.clone();return a[t]=Wf(n,r),a}_c(t){return new this.constructor(t)}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(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],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:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const g=ra(r*255);this.r=g,this.g=g,this.b=g}let o=0,i=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,i=d):c>=1&&c<2?(o=d,i=u):c>=2&&c<3?(i=u,s=d):c>=3&&c<4?(i=d,s=u):c>=4&&c<5?(o=d,s=u):c>=5&&c<6&&(o=u,s=d);const p=r-u/2;this.r=ra((o+p)*255),this.g=ra((i+p)*255),this.b=ra((s+p)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=ra(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const i=t/60,s=Math.floor(i),c=i-s,u=ra(r*(1-n)*255),d=ra(r*(1-n*c)*255),p=ra(r*(1-n*(1-c))*255);switch(s){case 0:this.g=p,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=p;break;case 3:this.r=u,this.g=d;break;case 4:this.r=p,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=xS(t,fM);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=xS(t,fM);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=xS(t,(r,a)=>a.includes("%")?ra(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Vle=["b"],Wle=["v"],SS=function(t){return Math.round(Number(t||0))},Gle=function(t){if(t instanceof ey)return t;if(t&&mt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Ct(n,Vle);return X(X({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Ng=function(e){so(n,e);var t=Ao(n);function n(r){return Jn(this,n),t.call(this,Gle(r))}return er(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=SS(a.s*100),i=SS(a.b*100),s=SS(a.h),c=a.a,u="hsb(".concat(s,", ").concat(o,"%, ").concat(i,"%)"),d="hsba(".concat(s,", ").concat(o,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,i=Ct(a,Wle);return X(X({},i),{},{b:o,a:this.a})}}]),n}(ey),qle=function(t){return t instanceof Ng?t:new Ng(t)};qle("#1677ff");const Kle=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Yle=(e,t)=>e?Kle(e,t):"";let Xle=function(){function e(t){Jn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(a=>{let{color:o,percent:i}=a;return{color:new e(o),percent:i}}),this.metaColor=new Ng(this.colors[0].color.metaColor)):this.metaColor=new Ng(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return er(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Yle(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(a=>`${a.color.toRgbString()} ${a.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,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var Zle={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"},Qle=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Zle}))},io=l.forwardRef(Qle),rV=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,s=e.isActive,c=e.role,u=e.classNames,d=e.styles,p=de.useState(s||r),g=ce(p,2),m=g[0],h=g[1];return de.useEffect(function(){(r||s)&&h(!0)},[r,s]),m?de.createElement("div",{ref:t,className:oe("".concat(n,"-content"),V(V({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),a),style:o,role:c},de.createElement("div",{className:oe("".concat(n,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},i)):null});rV.displayName="PanelContent";var Jle=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],aV=de.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,p=e.styles,g=p===void 0?{}:p,m=e.prefixCls,h=e.collapsible,b=e.accordion,x=e.panelKey,S=e.extra,v=e.header,y=e.expandIcon,w=e.openMotion,C=e.destroyInactivePanel,E=e.children,I=Ct(e,Jle),T=h==="disabled",R=h==="header",_=h==="icon",$=S!=null&&typeof S!="boolean",M=function(){i==null||i(x)},P=function(L){(L.key==="Enter"||L.keyCode===Fe.ENTER||L.which===Fe.ENTER)&&M()},D=typeof y=="function"?y(e):de.createElement("i",{className:"arrow"});D&&(D=de.createElement("div",{className:"".concat(m,"-expand-icon"),onClick:["header","icon"].includes(h)?M:void 0},D));var O=oe(V(V(V({},"".concat(m,"-item"),!0),"".concat(m,"-item-active"),o),"".concat(m,"-item-disabled"),T),c),k=oe(a,V(V(V({},"".concat(m,"-header"),!0),"".concat(m,"-header-collapsible-only"),R),"".concat(m,"-icon-collapsible-only"),_),d.header),N={className:k,"aria-expanded":o,"aria-disabled":T,onKeyDown:P,style:g.header};return!R&&!_&&(N.onClick=M,N.role=b?"tab":"button",N.tabIndex=T?-1:0),de.createElement("div",be({},I,{ref:t,className:O}),de.createElement("div",N,r&&D,de.createElement("span",{className:"".concat(m,"-header-text"),onClick:h==="header"?M:void 0},v),$&&de.createElement("div",{className:"".concat(m,"-extra")},S)),de.createElement(Qr,be({visible:o,leavedClassName:"".concat(m,"-content-hidden")},w,{forceRender:s,removeOnLeave:C}),function(A,L){var j=A.className,F=A.style;return de.createElement(rV,{ref:L,prefixCls:m,className:j,classNames:d,style:F,styles:g,isActive:o,forceRender:s,role:b?"tabpanel":void 0},E)}))}),ece=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],tce=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(p,g){var m=p.children,h=p.label,b=p.key,x=p.collapsible,S=p.onItemClick,v=p.destroyInactivePanel,y=Ct(p,ece),w=String(b??g),C=x??o,E=v??i,I=function(_){C!=="disabled"&&(s(_),S==null||S(_))},T=!1;return a?T=c[0]===w:T=c.indexOf(w)>-1,de.createElement(aV,be({},y,{prefixCls:r,key:w,panelKey:w,isActive:T,accordion:a,openMotion:u,expandIcon:d,header:h,collapsible:C,onItemClick:I,destroyInactivePanel:E}),m)})},nce=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,p=r.expandIcon,g=t.key||String(n),m=t.props,h=m.header,b=m.headerClass,x=m.destroyInactivePanel,S=m.collapsible,v=m.onItemClick,y=!1;o?y=u[0]===g:y=u.indexOf(g)>-1;var w=S??i,C=function(T){w!=="disabled"&&(c(T),v==null||v(T))},E={key:g,panelKey:g,header:h,headerClass:b,isActive:y,prefixCls:a,destroyInactivePanel:x??s,openMotion:d,accordion:o,children:t.props.children,onItemClick:C,expandIcon:p,collapsible:w};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(I){typeof E[I]>"u"&&delete E[I]}),de.cloneElement(t,E))};function rce(e,t,n){return Array.isArray(e)?tce(e,n):_r(t).map(function(r,a){return nce(r,a,n)})}function ace(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var oce=de.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,p=e.openMotion,g=e.expandIcon,m=e.activeKey,h=e.defaultActiveKey,b=e.onChange,x=e.items,S=oe(r,c),v=fn([],{value:m,onChange:function(R){return b==null?void 0:b(R)},defaultValue:h,postState:ace}),y=ce(v,2),w=y[0],C=y[1],E=function(R){return C(function(){if(s)return w[0]===R?[]:[R];var _=w.indexOf(R),$=_>-1;return $?w.filter(function(M){return M!==R}):[].concat(De(w),[R])})};$n(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var I=rce(x,u,{prefixCls:r,accordion:s,openMotion:p,expandIcon:g,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:w});return de.createElement("div",be({ref:t,className:S,style:i,role:s?"tablist":void 0},ur(e,{aria:!0,data:!0})),I)});const NO=Object.assign(oce,{Panel:aV});NO.Panel;const ice=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(ut),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),s=oe({[`${i}-no-arrow`]:!o},a);return l.createElement(NO.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),dm=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),sce=e=>({animationDuration:e,animationFillMode:"both"}),lce=e=>({animationDuration:e,animationFillMode:"both"}),J0=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),sce=e=>({animationDuration:e,animationFillMode:"both"}),lce=e=>({animationDuration:e,animationFillMode:"both"}),ty=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${o}${e}-enter, ${o}${e}-appear `]:Object.assign(Object.assign({},sce(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},lce(r)),{animationPlayState:"paused"}),[` ${o}${e}-enter${e}-enter-active, ${o}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},cce=new en("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),uce=new en("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),kO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[J0(r,cce,uce,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},cce=new en("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),uce=new en("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),kO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[ty(r,cce,uce,e.motionDurationMid,t),{[` ${a}${r}-enter, ${a}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},dce=new en("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fce=new en("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),pce=new en("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gce=new en("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mce=new en("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hce=new en("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),vce=new en("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bce=new en("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),yce={"move-up":{inKeyframes:vce,outKeyframes:bce},"move-down":{inKeyframes:dce,outKeyframes:fce},"move-left":{inKeyframes:pce,outKeyframes:gce},"move-right":{inKeyframes:mce,outKeyframes:hce}},Md=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=yce[t];return[J0(r,a,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},dce=new en("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fce=new en("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),pce=new en("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gce=new en("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mce=new en("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hce=new en("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),vce=new en("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bce=new en("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),yce={"move-up":{inKeyframes:vce,outKeyframes:bce},"move-down":{inKeyframes:dce,outKeyframes:fce},"move-left":{inKeyframes:pce,outKeyframes:gce},"move-right":{inKeyframes:mce,outKeyframes:hce}},Md=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=yce[t];return[ty(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ey=new en("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ty=new en("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ny=new en("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ry=new en("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xce=new en("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Sce=new en("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Cce=new en("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),wce=new en("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ece={"slide-up":{inKeyframes:ey,outKeyframes:ty},"slide-down":{inKeyframes:ny,outKeyframes:ry},"slide-left":{inKeyframes:xce,outKeyframes:Sce},"slide-right":{inKeyframes:Cce,outKeyframes:wce}},Qi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Ece[t];return[J0(r,a,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ny=new en("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ry=new en("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ay=new en("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),oy=new en("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xce=new en("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Sce=new en("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wce=new en("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Cce=new en("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ece={"slide-up":{inKeyframes:ny,outKeyframes:ry},"slide-down":{inKeyframes:ay,outKeyframes:oy},"slide-left":{inKeyframes:xce,outKeyframes:Sce},"slide-right":{inKeyframes:wce,outKeyframes:Cce}},Ji=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Ece[t];return[ty(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},AO=new en("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ice=new en("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),pM=new en("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gM=new en("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Tce=new en("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Rce=new en("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_ce=new en("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$ce=new en("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Oce=new en("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Nce=new en("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kce=new en("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ace=new en("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Mce={zoom:{inKeyframes:AO,outKeyframes:Ice},"zoom-big":{inKeyframes:pM,outKeyframes:gM},"zoom-big-fast":{inKeyframes:pM,outKeyframes:gM},"zoom-left":{inKeyframes:_ce,outKeyframes:$ce},"zoom-right":{inKeyframes:Oce,outKeyframes:Nce},"zoom-up":{inKeyframes:Tce,outKeyframes:Rce},"zoom-down":{inKeyframes:kce,outKeyframes:Ace}},lf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Mce[t];return[J0(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},AO=new en("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ice=new en("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),pM=new en("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gM=new en("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Tce=new en("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Rce=new en("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_ce=new en("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$ce=new en("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Oce=new en("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Nce=new en("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kce=new en("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ace=new en("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Mce={zoom:{inKeyframes:AO,outKeyframes:Ice},"zoom-big":{inKeyframes:pM,outKeyframes:gM},"zoom-big-fast":{inKeyframes:pM,outKeyframes:gM},"zoom-left":{inKeyframes:_ce,outKeyframes:$ce},"zoom-right":{inKeyframes:Oce,outKeyframes:Nce},"zoom-up":{inKeyframes:Tce,outKeyframes:Rce},"zoom-down":{inKeyframes:kce,outKeyframes:Ace}},lf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Mce[t];return[ty(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dce=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:p,colorText:g,colorTextHeading:m,colorTextDisabled:h,fontSizeLG:b,lineHeight:x,lineHeightLG:S,marginSM:v,paddingSM:y,paddingLG:C,paddingXS:w,motionDurationSlow:E,fontSizeIcon:I,contentPadding:T,fontHeight:R,fontHeightLG:_}=e,$=`${G(u)} ${d} ${p}`;return{[t]:Object.assign(Object.assign({},an(e)),{backgroundColor:a,border:$,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dce=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:p,colorText:g,colorTextHeading:m,colorTextDisabled:h,fontSizeLG:b,lineHeight:x,lineHeightLG:S,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:C,motionDurationSlow:E,fontSizeIcon:I,contentPadding:T,fontHeight:R,fontHeightLG:_}=e,$=`${G(u)} ${d} ${p}`;return{[t]:Object.assign(Object.assign({},an(e)),{backgroundColor:a,border:$,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${G(c)} ${G(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:m,lineHeight:x,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},rf()),{fontSize:I,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:g,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:S,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:_,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${G(c)} ${G(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},Pce=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Lce=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${G(c)} ${G(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:m,lineHeight:x,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},rf()),{fontSize:I,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:g,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:S,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:_,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${G(c)} ${G(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},Pce=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Lce=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},jce=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Fce=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Bce=on("Collapse",e=>{const t=Ft(e,{collapseHeaderPaddingSM:`${G(e.paddingXS)} ${G(e.paddingSM)}`,collapseHeaderPaddingLG:`${G(e.padding)} ${G(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Dce(t),Lce(t),jce(t),Pce(t),um(t)]},Fce),zce=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=l.useContext(lt),{prefixCls:o,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:g="start",children:m,expandIcon:h}=e,b=Lr($=>{var M;return(M=p??$)!==null&&M!==void 0?M:"middle"}),x=n("collapse",o),S=n(),[v,y,C]=Bce(x),w=l.useMemo(()=>g==="left"?"start":g==="right"?"end":g,[g]),E=h??(a==null?void 0:a.expandIcon),I=l.useCallback(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof E=="function"?E($):l.createElement(io,{rotate:$.isActive?90:void 0,"aria-label":$.isActive?"expanded":"collapsed"});return $r(M,()=>{var P;return{className:ae((P=M==null?void 0:M.props)===null||P===void 0?void 0:P.className,`${x}-arrow`)}})},[E,x]),T=ae(`${x}-icon-position-${w}`,{[`${x}-borderless`]:!u,[`${x}-rtl`]:r==="rtl",[`${x}-ghost`]:!!d,[`${x}-${b}`]:b!=="middle"},a==null?void 0:a.className,i,s,y,C),R=Object.assign(Object.assign({},Ad(S)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),_=l.useMemo(()=>m?_r(m).map(($,M)=>{var P,D;if(!((P=$.props)===null||P===void 0)&&P.disabled){const O=(D=$.key)!==null&&D!==void 0?D:String(M),{disabled:k,collapsible:N}=$.props,A=Object.assign(Object.assign({},Mn($.props,["disabled"])),{key:O,collapsible:N??(k?"disabled":void 0)});return $r($,A)}return $}):null,[m]);return v(l.createElement(NO,Object.assign({ref:t,openMotion:R},Mn(e,["rootClassName"]),{expandIcon:I,prefixCls:x,className:T,style:Object.assign(Object.assign({},a==null?void 0:a.style),c)}),_))}),Rs=Object.assign(zce,{Panel:ice}),Hce=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new Og(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:n*.299+r*.587+a*.114>192},oV=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Ft(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},iV=e=>{var t,n,r,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:Ov(s),p=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Ov(c),g=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Ov(u),m=Hce(new Xle(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:p,contentLineHeightLG:g,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*g)/2-e.lineWidth,0)}},Uce=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ni(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},sV=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Vce=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Wce=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Gce=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),MO=(e,t,n,r,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},sV(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),qce=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Gce(e))}),Kce=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ay=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Kce:qce;return Object.assign(Object.assign({},o(e)),sV(e.componentCls,t,n))},DO=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ay(e,r,a))}),PO=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ay(e,r,a))}),LO=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),jO=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ay(e,n,r))}),Dd=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ay(e,r,a,n))}),Yce=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},DO(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),LO(e)),jO(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Dd(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),MO(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Xce=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},PO(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),LO(e)),jO(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Dd(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),MO(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Zce=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},DO(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),PO(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),LO(e)),jO(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Dd(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Dd(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),MO(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Qce=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:Yce(e),[`${t}-color-primary`]:Xce(e),[`${t}-color-dangerous`]:Zce(e)}},Jce=e=>Object.assign(Object.assign(Object.assign(Object.assign({},PO(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Dd(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),DO(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Dd(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),FO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${G(u)} ${G(s)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Vce(e)},{[`${n}${n}-round${t}`]:Wce(e)}]},eue=e=>{const t=Ft(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return FO(t,e.componentCls)},tue=e=>{const t=Ft(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return FO(t,`${e.componentCls}-sm`)},nue=e=>{const t=Ft(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return FO(t,`${e.componentCls}-lg`)},rue=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},aue=on("Button",e=>{const t=oV(e);return[Uce(t),eue(t),tue(t),nue(t),rue(t),Qce(t),Jce(t),Ule(t)]},iV,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function oue(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function iue(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function dm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},oue(e,r,t)),iue(n,r,t))}}function sue(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function lue(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function cue(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},sue(e,t)),lue(e.componentCls,t))}}const uue=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${G(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${G(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},due=Qc(["Button","compact"],e=>{const t=oV(e);return[dm(t),cue(t),uue(t)]},iV);var fue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o;const{loading:i=!1,prefixCls:s,color:c,variant:u,type:d,danger:p=!1,shape:g="default",size:m,styles:h,disabled:b,className:x,rootClassName:S,children:v,icon:y,iconPosition:C="start",ghost:w=!1,block:E=!1,htmlType:I="button",classNames:T,style:R={},autoInsertSpace:_}=e,$=fue(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),M=d||"default",[P,D]=l.useMemo(()=>{if(c&&u)return[c,u];const Ve=gue[M]||[];return p?["danger",Ve[1]]:Ve},[d,c,u,p]),k=P==="danger"?"dangerous":P,{getPrefixCls:N,direction:A,button:L}=l.useContext(lt),j=(n=_??(L==null?void 0:L.autoInsertSpace))!==null&&n!==void 0?n:!0,F=N("btn",s),[B,z,U]=aue(F),H=l.useContext(fa),Y=b??H,K=l.useContext(eV),J=l.useMemo(()=>pue(i),[i]),[ne,W]=l.useState(J.loading),[q,Z]=l.useState(!1),ee=ga(t,l.createRef()),oe=l.Children.count(v)===1&&!y&&!mS(D);l.useEffect(()=>{let Ve=null;J.delay>0?Ve=setTimeout(()=>{Ve=null,W(!0)},J.delay):W(J.loading);function je(){Ve&&(clearTimeout(Ve),Ve=null)}return je},[J]),l.useEffect(()=>{if(!ee||!ee.current||!j)return;const Ve=ee.current.textContent;oe&&MR(Ve)?q||Z(!0):q&&Z(!1)},[ee]);const se=de.useCallback(Ve=>{var je;if(ne||Y){Ve.preventDefault();return}(je=e.onClick)===null||je===void 0||je.call(e,Ve)},[e.onClick,ne,Y]),{compactSize:fe,compactItemClassnames:te}=Ds(F,A),ie={large:"lg",small:"sm",middle:void 0},pe=Lr(Ve=>{var je,De;return(De=(je=m??fe)!==null&&je!==void 0?je:K)!==null&&De!==void 0?De:Ve}),me=pe&&(r=ie[pe])!==null&&r!==void 0?r:"",re=ne?"loading":y,ce=Mn($,["navigate"]),ge=ae(F,z,U,{[`${F}-${g}`]:g!=="default"&&g,[`${F}-${M}`]:M,[`${F}-dangerous`]:p,[`${F}-color-${k}`]:k,[`${F}-variant-${D}`]:D,[`${F}-${me}`]:me,[`${F}-icon-only`]:!v&&v!==0&&!!re,[`${F}-background-ghost`]:w&&!mS(D),[`${F}-loading`]:ne,[`${F}-two-chinese-chars`]:q&&j&&!ne,[`${F}-block`]:E,[`${F}-rtl`]:A==="rtl",[`${F}-icon-end`]:C==="end"},te,x,S,L==null?void 0:L.className),ye=Object.assign(Object.assign({},L==null?void 0:L.style),R),Ee=ae(T==null?void 0:T.icon,(a=L==null?void 0:L.classNames)===null||a===void 0?void 0:a.icon),Ne=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),((o=L==null?void 0:L.styles)===null||o===void 0?void 0:o.icon)||{}),_e=y&&!ne?de.createElement(nV,{prefixCls:F,className:Ee,style:Ne},y):de.createElement(Hle,{existIcon:!!y,prefixCls:F,loading:ne}),Pe=v||v===0?zle(v,oe&&j):null;if(ce.href!==void 0)return B(de.createElement("a",Object.assign({},ce,{className:ae(ge,{[`${F}-disabled`]:Y}),href:Y?void 0:ce.href,style:ye,onClick:se,ref:ee,tabIndex:Y?-1:0}),_e,Pe));let Le=de.createElement("button",Object.assign({},$,{type:I,className:ge,style:ye,onClick:se,disabled:Y,ref:ee}),_e,Pe,!!te&&de.createElement(due,{key:"compact",prefixCls:F}));return mS(D)||(Le=de.createElement(cm,{component:"Button",disabled:ne},Le)),B(Le)}),nt=mue;nt.Group=Fle;nt.__ANT_BUTTON=!0;function xS(e){return!!(e!=null&&e.then)}const lV=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=l.useRef(!1),g=l.useRef(null),[m,h]=jc(!1),b=function(){o==null||o.apply(void 0,arguments)};l.useEffect(()=>{let v=null;return i&&(v=setTimeout(()=>{var y;(y=g.current)===null||y===void 0||y.focus()})),()=>{v&&clearTimeout(v)}},[]);const x=v=>{xS(v)&&(h(!0),v.then(function(){h(!1,!0),b.apply(void 0,arguments),p.current=!1},y=>{if(h(!1,!0),p.current=!1,!(c!=null&&c()))return Promise.reject(y)}))},S=v=>{if(p.current)return;if(p.current=!0,!d){b();return}let y;if(s){if(y=d(v),u&&!xS(y)){p.current=!1,b(v);return}}else if(d.length)y=d(o),p.current=!1;else if(y=d(),!xS(y)){b();return}x(y)};return l.createElement(nt,Object.assign({},tV(t),{onClick:S,loading:m,prefixCls:r},a,{ref:g}),n)},fm=de.createContext({}),{Provider:cV}=fm,mM=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:s,onConfirm:c}=l.useContext(fm);return a?de.createElement(lV,{isSilent:r,actionFn:s,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},hM=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:s,onOk:c}=l.useContext(fm);return de.createElement(lV,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var uV=l.createContext(null),vM=[];function hue(e,t){var n=l.useState(function(){if(!da())return null;var h=document.createElement("div");return h}),r=le(n,1),a=r[0],o=l.useRef(!1),i=l.useContext(uV),s=l.useState(vM),c=le(s,2),u=c[0],d=c[1],p=i||(o.current?void 0:function(h){d(function(b){var x=[h].concat(Me(b));return x})});function g(){a.parentElement||document.body.appendChild(a),o.current=!0}function m(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return Yt(function(){return e?i?i(g):g():m(),m},[e]),Yt(function(){u.length&&(u.forEach(function(h){return h()}),d(vM))},[u]),[a,p]}var SS;function dV(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",p=u?"height: ".concat(s.height,";"):"";ys(` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},jce=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Fce=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Bce=on("Collapse",e=>{const t=Bt(e,{collapseHeaderPaddingSM:`${G(e.paddingXS)} ${G(e.paddingSM)}`,collapseHeaderPaddingLG:`${G(e.padding)} ${G(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Dce(t),Lce(t),jce(t),Pce(t),dm(t)]},Fce),zce=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=l.useContext(ut),{prefixCls:o,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:p,expandIconPosition:g="start",children:m,expandIcon:h}=e,b=Lr($=>{var M;return(M=p??$)!==null&&M!==void 0?M:"middle"}),x=n("collapse",o),S=n(),[v,y,w]=Bce(x),C=l.useMemo(()=>g==="left"?"start":g==="right"?"end":g,[g]),E=h??(a==null?void 0:a.expandIcon),I=l.useCallback(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof E=="function"?E($):l.createElement(io,{rotate:$.isActive?90:void 0,"aria-label":$.isActive?"expanded":"collapsed"});return $r(M,()=>{var P;return{className:oe((P=M==null?void 0:M.props)===null||P===void 0?void 0:P.className,`${x}-arrow`)}})},[E,x]),T=oe(`${x}-icon-position-${C}`,{[`${x}-borderless`]:!u,[`${x}-rtl`]:r==="rtl",[`${x}-ghost`]:!!d,[`${x}-${b}`]:b!=="middle"},a==null?void 0:a.className,i,s,y,w),R=Object.assign(Object.assign({},Ad(S)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),_=l.useMemo(()=>m?_r(m).map(($,M)=>{var P,D;if(!((P=$.props)===null||P===void 0)&&P.disabled){const O=(D=$.key)!==null&&D!==void 0?D:String(M),{disabled:k,collapsible:N}=$.props,A=Object.assign(Object.assign({},Mn($.props,["disabled"])),{key:O,collapsible:N??(k?"disabled":void 0)});return $r($,A)}return $}):null,[m]);return v(l.createElement(NO,Object.assign({ref:t,openMotion:R},Mn(e,["rootClassName"]),{expandIcon:I,prefixCls:x,className:T,style:Object.assign(Object.assign({},a==null?void 0:a.style),c)}),_))}),$s=Object.assign(zce,{Panel:ice}),Hce=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new Ng(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:n*.299+r*.587+a*.114>192},oV=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Bt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},iV=e=>{var t,n,r,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:kv(s),p=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:kv(c),g=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:kv(u),m=Hce(new Xle(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:p,contentLineHeightLG:g,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*g)/2-e.lineWidth,0)}},Uce=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ri(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},sV=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Vce=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Wce=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Gce=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),MO=(e,t,n,r,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},sV(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),qce=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Gce(e))}),Kce=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),iy=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Kce:qce;return Object.assign(Object.assign({},o(e)),sV(e.componentCls,t,n))},DO=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},iy(e,r,a))}),PO=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},iy(e,r,a))}),LO=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),jO=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},iy(e,n,r))}),Dd=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},iy(e,r,a,n))}),Yce=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},DO(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),LO(e)),jO(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Dd(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),MO(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Xce=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},PO(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),LO(e)),jO(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Dd(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),MO(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Zce=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},DO(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),PO(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),LO(e)),jO(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Dd(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Dd(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),MO(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Qce=e=>{const{componentCls:t}=e;return{[`${t}-color-default`]:Yce(e),[`${t}-color-primary`]:Xce(e),[`${t}-color-dangerous`]:Zce(e)}},Jce=e=>Object.assign(Object.assign(Object.assign(Object.assign({},PO(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Dd(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),DO(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Dd(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),FO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${G(u)} ${G(s)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Vce(e)},{[`${n}${n}-round${t}`]:Wce(e)}]},eue=e=>{const t=Bt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return FO(t,e.componentCls)},tue=e=>{const t=Bt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return FO(t,`${e.componentCls}-sm`)},nue=e=>{const t=Bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return FO(t,`${e.componentCls}-lg`)},rue=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},aue=on("Button",e=>{const t=oV(e);return[Uce(t),eue(t),tue(t),nue(t),rue(t),Qce(t),Jce(t),Ule(t)]},iV,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function oue(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function iue(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},oue(e,r,t)),iue(n,r,t))}}function sue(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function lue(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function cue(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},sue(e,t)),lue(e.componentCls,t))}}const uue=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${G(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${G(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},due=Qc(["Button","compact"],e=>{const t=oV(e);return[fm(t),cue(t),uue(t)]},iV);var fue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o;const{loading:i=!1,prefixCls:s,color:c,variant:u,type:d,danger:p=!1,shape:g="default",size:m,styles:h,disabled:b,className:x,rootClassName:S,children:v,icon:y,iconPosition:w="start",ghost:C=!1,block:E=!1,htmlType:I="button",classNames:T,style:R={},autoInsertSpace:_}=e,$=fue(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),M=d||"default",[P,D]=l.useMemo(()=>{if(c&&u)return[c,u];const He=gue[M]||[];return p?["danger",He[1]]:He},[d,c,u,p]),k=P==="danger"?"dangerous":P,{getPrefixCls:N,direction:A,button:L}=l.useContext(ut),j=(n=_??(L==null?void 0:L.autoInsertSpace))!==null&&n!==void 0?n:!0,F=N("btn",s),[B,z,U]=aue(F),H=l.useContext(pa),K=b??H,Y=l.useContext(eV),ee=l.useMemo(()=>pue(i),[i]),[ae,W]=l.useState(ee.loading),[q,Z]=l.useState(!1),J=ma(t,l.createRef()),ie=l.Children.count(v)===1&&!y&&!vS(D);l.useEffect(()=>{let He=null;ee.delay>0?He=setTimeout(()=>{He=null,W(!0)},ee.delay):W(ee.loading);function Be(){He&&(clearTimeout(He),He=null)}return Be},[ee]),l.useEffect(()=>{if(!J||!J.current||!j)return;const He=J.current.textContent;ie&&DR(He)?q||Z(!0):q&&Z(!1)},[J]);const le=de.useCallback(He=>{var Be;if(ae||K){He.preventDefault();return}(Be=e.onClick)===null||Be===void 0||Be.call(e,He)},[e.onClick,ae,K]),{compactSize:fe,compactItemClassnames:te}=Ps(F,A),se={large:"lg",small:"sm",middle:void 0},pe=Lr(He=>{var Be,Pe;return(Pe=(Be=m??fe)!==null&&Be!==void 0?Be:Y)!==null&&Pe!==void 0?Pe:He}),he=pe&&(r=se[pe])!==null&&r!==void 0?r:"",re=ae?"loading":y,ue=Mn($,["navigate"]),me=oe(F,z,U,{[`${F}-${g}`]:g!=="default"&&g,[`${F}-${M}`]:M,[`${F}-dangerous`]:p,[`${F}-color-${k}`]:k,[`${F}-variant-${D}`]:D,[`${F}-${he}`]:he,[`${F}-icon-only`]:!v&&v!==0&&!!re,[`${F}-background-ghost`]:C&&!vS(D),[`${F}-loading`]:ae,[`${F}-two-chinese-chars`]:q&&j&&!ae,[`${F}-block`]:E,[`${F}-rtl`]:A==="rtl",[`${F}-icon-end`]:w==="end"},te,x,S,L==null?void 0:L.className),xe=Object.assign(Object.assign({},L==null?void 0:L.style),R),Ee=oe(T==null?void 0:T.icon,(a=L==null?void 0:L.classNames)===null||a===void 0?void 0:a.icon),ke=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),((o=L==null?void 0:L.styles)===null||o===void 0?void 0:o.icon)||{}),$e=y&&!ae?de.createElement(nV,{prefixCls:F,className:Ee,style:ke},y):de.createElement(Hle,{existIcon:!!y,prefixCls:F,loading:ae}),Le=v||v===0?zle(v,ie&&j):null;if(ue.href!==void 0)return B(de.createElement("a",Object.assign({},ue,{className:oe(me,{[`${F}-disabled`]:K}),href:K?void 0:ue.href,style:xe,onClick:le,ref:J,tabIndex:K?-1:0}),$e,Le));let je=de.createElement("button",Object.assign({},$,{type:I,className:me,style:xe,onClick:le,disabled:K,ref:J}),$e,Le,!!te&&de.createElement(due,{key:"compact",prefixCls:F}));return vS(D)||(je=de.createElement(um,{component:"Button",disabled:ae},je)),B(je)}),tt=mue;tt.Group=Fle;tt.__ANT_BUTTON=!0;function wS(e){return!!(e!=null&&e.then)}const lV=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,p=l.useRef(!1),g=l.useRef(null),[m,h]=jc(!1),b=function(){o==null||o.apply(void 0,arguments)};l.useEffect(()=>{let v=null;return i&&(v=setTimeout(()=>{var y;(y=g.current)===null||y===void 0||y.focus()})),()=>{v&&clearTimeout(v)}},[]);const x=v=>{wS(v)&&(h(!0),v.then(function(){h(!1,!0),b.apply(void 0,arguments),p.current=!1},y=>{if(h(!1,!0),p.current=!1,!(c!=null&&c()))return Promise.reject(y)}))},S=v=>{if(p.current)return;if(p.current=!0,!d){b();return}let y;if(s){if(y=d(v),u&&!wS(y)){p.current=!1,b(v);return}}else if(d.length)y=d(o),p.current=!1;else if(y=d(),!wS(y)){b();return}x(y)};return l.createElement(tt,Object.assign({},tV(t),{onClick:S,loading:m,prefixCls:r},a,{ref:g}),n)},pm=de.createContext({}),{Provider:cV}=pm,mM=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:s,onConfirm:c}=l.useContext(pm);return a?de.createElement(lV,{isSilent:r,actionFn:s,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},hM=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:s,onOk:c}=l.useContext(pm);return de.createElement(lV,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var uV=l.createContext(null),vM=[];function hue(e,t){var n=l.useState(function(){if(!fa())return null;var h=document.createElement("div");return h}),r=ce(n,1),a=r[0],o=l.useRef(!1),i=l.useContext(uV),s=l.useState(vM),c=ce(s,2),u=c[0],d=c[1],p=i||(o.current?void 0:function(h){d(function(b){var x=[h].concat(De(b));return x})});function g(){a.parentElement||document.body.appendChild(a),o.current=!0}function m(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return Yt(function(){return e?i?i(g):g():m(),m},[e]),Yt(function(){u.length&&(u.forEach(function(h){return h()}),d(vM))},[u]),[a,p]}var CS;function dV(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",p=u?"height: ".concat(s.height,";"):"";Ss(` #`.concat(t,`::-webkit-scrollbar { `).concat(d,` `).concat(p,` -}`),t)}catch(h){console.error(h),a=c,o=u}}document.body.appendChild(n);var g=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,m=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),wg(t),{width:g,height:m}}function bM(e){return typeof document>"u"?0:(SS===void 0&&(SS=dV()),SS.width)}function DR(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:dV(e)}function vue(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var bue="rc-util-locker-".concat(Date.now()),yM=0;function yue(e){var t=!!e,n=l.useState(function(){return yM+=1,"".concat(bue,"_").concat(yM)}),r=le(n,1),a=r[0];Yt(function(){if(t){var o=DR(document.body).width,i=vue();ys(` +}`),t)}catch(h){console.error(h),a=c,o=u}}document.body.appendChild(n);var g=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,m=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Eg(t),{width:g,height:m}}function bM(e){return typeof document>"u"?0:(CS===void 0&&(CS=dV()),CS.width)}function PR(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:dV(e)}function vue(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var bue="rc-util-locker-".concat(Date.now()),yM=0;function yue(e){var t=!!e,n=l.useState(function(){return yM+=1,"".concat(bue,"_").concat(yM)}),r=ce(n,1),a=r[0];Yt(function(){if(t){var o=PR(document.body).width,i=vue();Ss(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",` -}`),a)}else wg(a);return function(){wg(a)}},[t,a])}var xue=!1;function Sue(e){return xue}var xM=function(t){return t===!1?!1:!da()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},pm=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,c=l.useState(n),u=le(c,2),d=u[0],p=u[1],g=d||n;l.useEffect(function(){(i||n)&&p(n)},[n,i]);var m=l.useState(function(){return xM(a)}),h=le(m,2),b=h[0],x=h[1];l.useEffect(function(){var $=xM(a);x($??null)});var S=hue(g&&!b),v=le(S,2),y=v[0],C=v[1],w=b??y;yue(r&&n&&da()&&(w===y||w===document.body));var E=null;if(s&&Ri(s)&&t){var I=s;E=I.ref}var T=Ms(E,t);if(!g||!da()||b===void 0)return null;var R=w===!1||Sue(),_=s;return t&&(_=l.cloneElement(s,{ref:T})),l.createElement(uV.Provider,{value:C},R?_:Kr.createPortal(_,w))}),fV=l.createContext({});function Cue(){var e=X({},Jg);return e.useId}var SM=0,CM=Cue();const pV=CM?function(t){var n=CM();return t||n}:function(t){var n=l.useState("ssr-id"),r=le(n,2),a=r[0],o=r[1];return l.useEffect(function(){var i=SM;SM+=1,o("rc_unique_".concat(i))},[]),t||a};function wM(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function EM(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function wue(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=EM(a),n.top+=EM(a,!0),n}const Eue=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Iue={width:0,height:0,overflow:"hidden",outline:"none"},Tue={outline:"none"},gV=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,p=e.children,g=e.bodyStyle,m=e.bodyProps,h=e.modalRender,b=e.onMouseDown,x=e.onMouseUp,S=e.holderRef,v=e.visible,y=e.forceRender,C=e.width,w=e.height,E=e.classNames,I=e.styles,T=de.useContext(fV),R=T.panel,_=Ms(S,R),$=l.useRef(),M=l.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var B;(B=$.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var z=document,U=z.activeElement;B&&U===M.current?$.current.focus({preventScroll:!0}):!B&&U===$.current&&M.current.focus({preventScroll:!0})}}});var P={};C!==void 0&&(P.width=C),w!==void 0&&(P.height=w);var D=s?de.createElement("div",{className:ae("".concat(n,"-footer"),E==null?void 0:E.footer),style:X({},I==null?void 0:I.footer)},s):null,O=o?de.createElement("div",{className:ae("".concat(n,"-header"),E==null?void 0:E.header),style:X({},I==null?void 0:I.header)},de.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,k=l.useMemo(function(){return mt(c)==="object"&&c!==null?c:c?{closeIcon:u??de.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),N=ur(k,!0),A=mt(c)==="object"&&c.disabled,L=c?de.createElement("button",he({type:"button",onClick:d,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:A}),k.closeIcon):null,j=de.createElement("div",{className:ae("".concat(n,"-content"),E==null?void 0:E.content),style:I==null?void 0:I.content},L,O,de.createElement("div",he({className:ae("".concat(n,"-body"),E==null?void 0:E.body),style:X(X({},g),I==null?void 0:I.body)},m),p),D);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:_,style:X(X({},a),P),className:ae(n,r),onMouseDown:b,onMouseUp:x},de.createElement("div",{ref:$,tabIndex:0,style:Tue},de.createElement(Eue,{shouldUpdate:v||y},h?h(j):j)),de.createElement("div",{tabIndex:0,ref:M,style:Iue}))}),mV=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,g=e.mousePosition,m=l.useRef(),h=l.useState(),b=le(h,2),x=b[0],S=b[1],v={};x&&(v.transformOrigin=x);function y(){var C=wue(m.current);S(g&&(g.x||g.y)?"".concat(g.x-C.left,"px ").concat(g.y-C.top,"px"):"")}return l.createElement(Qr,{visible:i,onVisibleChanged:p,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:u,removeOnLeave:c,ref:m},function(C,w){var E=C.className,I=C.style;return l.createElement(gV,he({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:w,style:X(X(X({},I),a),v),className:ae(o,E)}))})});mV.displayName="Content";var Rue=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,s=t.className;return l.createElement(Qr,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,p=c.style;return l.createElement("div",he({ref:u,style:X(X({},p),r),className:ae("".concat(n,"-mask"),d,s)},o))})},_ue=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,p=t.wrapStyle,g=t.wrapClassName,m=t.wrapProps,h=t.onClose,b=t.afterOpenChange,x=t.afterClose,S=t.transitionName,v=t.animation,y=t.closable,C=y===void 0?!0:y,w=t.mask,E=w===void 0?!0:w,I=t.maskTransitionName,T=t.maskAnimation,R=t.maskClosable,_=R===void 0?!0:R,$=t.maskStyle,M=t.maskProps,P=t.rootClassName,D=t.classNames,O=t.styles,k=l.useRef(),N=l.useRef(),A=l.useRef(),L=l.useState(i),j=le(L,2),F=j[0],B=j[1],z=pV();function U(){aR(N.current,document.activeElement)||(k.current=document.activeElement)}function H(){if(!aR(N.current,document.activeElement)){var oe;(oe=A.current)===null||oe===void 0||oe.focus()}}function Y(oe){if(oe)H();else{if(B(!1),E&&k.current&&d){try{k.current.focus({preventScroll:!0})}catch{}k.current=null}F&&(x==null||x())}b==null||b(oe)}function K(oe){h==null||h(oe)}var J=l.useRef(!1),ne=l.useRef(),W=function(){clearTimeout(ne.current),J.current=!0},q=function(){ne.current=setTimeout(function(){J.current=!1})},Z=null;_&&(Z=function(se){J.current?J.current=!1:N.current===se.target&&K(se)});function Q(oe){if(c&&oe.keyCode===ze.ESC){oe.stopPropagation(),K(oe);return}i&&oe.keyCode===ze.TAB&&A.current.changeActive(!oe.shiftKey)}l.useEffect(function(){i&&(B(!0),U())},[i]),l.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var ee=X(X(X({zIndex:a},p),O==null?void 0:O.wrapper),{},{display:F?null:"none"});return l.createElement("div",he({className:ae("".concat(r,"-root"),P)},ur(t,{data:!0})),l.createElement(Rue,{prefixCls:r,visible:E&&i,motionName:wM(r,I,T),style:X(X({zIndex:a},$),O==null?void 0:O.mask),maskProps:M,className:D==null?void 0:D.mask}),l.createElement("div",he({tabIndex:-1,onKeyDown:Q,className:ae("".concat(r,"-wrap"),g,D==null?void 0:D.wrapper),ref:N,onClick:Z,style:ee},m),l.createElement(mV,he({},t,{onMouseDown:W,onMouseUp:q,ref:A,closable:C,ariaId:z,prefixCls:r,visible:i&&F,onClose:K,onVisibleChanged:Y,motionName:wM(r,S,v)}))))},BO=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=le(u,2),p=d[0],g=d[1],m=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&g(!0)},[n]),!a&&i&&!p?null:l.createElement(fV.Provider,{value:m},l.createElement(pm,{open:n||a||p,autoDestroy:!1,getContainer:r,autoLock:n||p},l.createElement(_ue,he({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),g(!1)}}))))};BO.displayName="Dialog";var fc="RC_FORM_INTERNAL_HOOKS",Zn=function(){_n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Fc=l.createContext({getFieldValue:Zn,getFieldsValue:Zn,getFieldError:Zn,getFieldWarning:Zn,getFieldsError:Zn,isFieldsTouched:Zn,isFieldTouched:Zn,isFieldValidating:Zn,isFieldsValidating:Zn,resetFields:Zn,setFields:Zn,setFieldValue:Zn,setFieldsValue:Zn,validateFields:Zn,submit:Zn,getInternalHooks:function(){return Zn(),{dispatch:Zn,initEntityValue:Zn,registerField:Zn,useSubscribe:Zn,setInitialValues:Zn,destroyForm:Zn,setCallbacks:Zn,registerWatch:Zn,getFields:Zn,setValidateMessages:Zn,setPreserve:Zn,getInitialValue:Zn}}}),Ng=l.createContext(null);function PR(e){return e==null?[]:Array.isArray(e)?e:[e]}function $ue(e){return e&&!!e._init}function LR(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var jR=LR();function Oue(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Nue(e,t,n){if(H0())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Sg(a,n.prototype),a}function FR(e){var t=typeof Map=="function"?new Map:void 0;return FR=function(r){if(r===null||!Oue(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Nue(r,arguments,Dc(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Sg(a,r)},FR(e)}var kue=/%[sdj%]/g,Aue=function(){};function BR(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Mue(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Jr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Mue(t)&&typeof e=="string"&&!e)}function Due(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,Me(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function IM(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,st.max?a.push(Co(o.messages[p].max,t.fullField,t.max)):s&&c&&(dt.max)&&a.push(Co(o.messages[p].range,t.fullField,t.min,t.max))},hV=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Jr(n,i||t.type))&&a.push(Co(o.messages.required,t.fullField))},$h;const Uue=function(){if($h)return $h;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\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}",a=["(?:".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}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var p="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",m=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",x="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',C="(?:".concat(p,"|www\\.)").concat(g,"(?:localhost|").concat(m,"|").concat(h,"|").concat(b).concat(x).concat(S,")").concat(v).concat(y);return $h=new RegExp("(?:^".concat(C,"$)"),"i"),$h};var $M={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},cp={integer:function(t){return cp.number(t)&&parseInt(t,10)===t},float:function(t){return cp.number(t)&&!cp.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return mt(t)==="object"&&!cp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($M.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Uue())},hex:function(t){return typeof t=="string"&&!!t.match($M.hex)}},Vue=function(t,n,r,a,o){if(t.required&&n===void 0){hV(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?cp[s](n)||a.push(Co(o.messages.types[s],t.fullField,t.type)):s&&mt(n)!==t.type&&a.push(Co(o.messages.types[s],t.fullField,t.type))},Wue=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Co(o.messages.whitespace,t.fullField))};const wn={required:hV,whitespace:Wue,type:Vue,range:Hue,enum:Bue,pattern:zue};var Gue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o)}r(i)},que=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();wn.required(t,n,a,i,o,"array"),n!=null&&(wn.type(t,n,a,i,o),wn.range(t,n,a,i,o))}r(i)},Kue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),n!==void 0&&wn.type(t,n,a,i,o)}r(i)},Yue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n,"date")&&!t.required)return r();if(wn.required(t,n,a,i,o),!Jr(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),wn.type(t,c,a,i,o),c&&wn.range(t,c.getTime(),a,i,o)}}r(i)},Xue="enum",Zue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),n!==void 0&&wn[Xue](t,n,a,i,o)}r(i)},Que=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),n!==void 0&&(wn.type(t,n,a,i,o),wn.range(t,n,a,i,o))}r(i)},Jue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),n!==void 0&&(wn.type(t,n,a,i,o),wn.range(t,n,a,i,o))}r(i)},ede=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),n!==void 0&&wn.type(t,n,a,i,o)}r(i)},tde=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),n!==void 0&&(wn.type(t,n,a,i,o),wn.range(t,n,a,i,o))}r(i)},nde=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),n!==void 0&&wn.type(t,n,a,i,o)}r(i)},rde=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n,"string")&&!t.required)return r();wn.required(t,n,a,i,o),Jr(n,"string")||wn.pattern(t,n,a,i,o)}r(i)},ade=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();wn.required(t,n,a,i,o),Jr(n)||wn.type(t,n,a,i,o)}r(i)},ode=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":mt(n);wn.required(t,n,a,i,o,s),r(i)},ide=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n,"string")&&!t.required)return r();wn.required(t,n,a,i,o,"string"),Jr(n,"string")||(wn.type(t,n,a,i,o),wn.range(t,n,a,i,o),wn.pattern(t,n,a,i,o),t.whitespace===!0&&wn.whitespace(t,n,a,i,o))}r(i)},CS=function(t,n,r,a,o){var i=t.type,s=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Jr(n,i)&&!t.required)return r();wn.required(t,n,a,s,o,i),Jr(n,i)||wn.type(t,n,a,s,o)}r(s)};const Dp={string:ide,method:ede,number:tde,boolean:Kue,regexp:ade,integer:Jue,float:Que,array:que,object:nde,enum:Zue,pattern:rde,date:Yue,url:CS,hex:CS,email:CS,required:ode,any:Gue};var gm=function(){function e(t){Jn(this,e),V(this,"rules",null),V(this,"_messages",jR),this.define(t)}return er(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=_M(LR(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var b=[],x={};function S(y){if(Array.isArray(y)){var C;b=(C=b).concat.apply(C,Me(y))}else b.push(y)}for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(I)?I:[I];!s.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&x.message!==void 0&&(T=[].concat(x.message));var R=T.map(RM(x,i));if(s.first&&R.length)return m[x.field]=1,b(R);if(!S)b(R);else{if(x.required&&!h.value)return x.message!==void 0?R=[].concat(x.message).map(RM(x,i)):s.error&&(R=[s.error(x,Co(s.messages.required,x.field))]),b(R);var _={};x.defaultField&&Object.keys(h.value).map(function(P){_[P]=x.defaultField}),_=X(X({},_),h.rule.fields);var $={};Object.keys(_).forEach(function(P){var D=_[P],O=Array.isArray(D)?D:[D];$[P]=O.map(v.bind(null,P))});var M=new e($);M.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),M.validate(h.value,h.rule.options||s,function(P){var D=[];R&&R.length&&D.push.apply(D,Me(R)),P&&P.length&&D.push.apply(D,Me(P)),b(D.length?D:null)})}}var C;if(x.asyncValidator)C=x.asyncValidator(x,h.value,y,h.source,s);else if(x.validator){try{C=x.validator(x,h.value,y,h.source,s)}catch(I){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,I),s.suppressValidatorError||setTimeout(function(){throw I},0),y(I.message)}C===!0?y():C===!1?y(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||"".concat(x.fullField||x.field," fails")):C instanceof Array?y(C):C instanceof Error&&y(C.message)}C&&C.then&&C.then(function(){return y()},function(I){return y(I)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Dp.hasOwnProperty(n.type))throw new Error(Co("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),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Dp.required:Dp[this.getType(n)]||void 0}}]),e}();V(gm,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Dp[t]=n});V(gm,"warning",Aue);V(gm,"messages",jR);V(gm,"validators",Dp);var fo="'${name}' is not a valid ${type}",vV={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:fo,method:fo,array:fo,object:fo,number:fo,date:fo,boolean:fo,integer:fo,float:fo,regexp:fo,email:fo,url:fo,hex:fo},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}"}},OM=gm;function sde(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var NM="CODE_LOGIC_ERROR";function zR(e,t,n,r,a){return HR.apply(this,arguments)}function HR(){return HR=So(rr().mark(function e(t,n,r,a,o){var i,s,c,u,d,p,g,m,h;return rr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return i=X({},r),delete i.ruleIndex,OM.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(NM)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new OM(V({},t,[i])),d=Zu(vV,a.validateMessages),u.messages(d),p=[],x.prev=10,x.next=13,Promise.resolve(u.validate(V({},t,n),X({},a)));case 13:x.next=18;break;case 15:x.prev=15,x.t0=x.catch(10),x.t0.errors&&(p=x.t0.errors.map(function(S,v){var y=S.message,C=y===NM?d.default:y;return l.isValidElement(C)?l.cloneElement(C,{key:"error_".concat(v)}):C}));case 18:if(!(!p.length&&c)){x.next=23;break}return x.next=21,Promise.all(n.map(function(S,v){return zR("".concat(t,".").concat(v),S,c,a,o)}));case 21:return g=x.sent,x.abrupt("return",g.reduce(function(S,v){return[].concat(Me(S),Me(v))},[]));case 23:return m=X(X({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=p.map(function(S){return typeof S=="string"?sde(S,m):S}),x.abrupt("return",h);case 26:case"end":return x.stop()}},e,null,[[10,15]])})),HR.apply(this,arguments)}function lde(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(d,p){var g=d.validator,m=X(X({},d),{},{ruleIndex:p});return g&&(m.validator=function(h,b,x){var S=!1,v=function(){for(var w=arguments.length,E=new Array(w),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return bV(t,r,n)})}function bV(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function dde(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Me(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function fde(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function AM(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Me(e.slice(0,n)),[a],Me(e.slice(n,t)),Me(e.slice(t+1,r))):o<0?[].concat(Me(e.slice(0,t)),Me(e.slice(t+1,n+1)),[a],Me(e.slice(n+1,r))):e}var pde=["name"],Lo=[];function wS(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var zO=function(e){so(n,e);var t=Ao(n);function n(r){var a;if(Jn(this,n),a=t.call(this,r),V(Ke(a),"state",{resetCount:0}),V(Ke(a),"cancelRegisterFunc",null),V(Ke(a),"mounted",!1),V(Ke(a),"touched",!1),V(Ke(a),"dirty",!1),V(Ke(a),"validatePromise",void 0),V(Ke(a),"prevValidating",void 0),V(Ke(a),"errors",Lo),V(Ke(a),"warnings",Lo),V(Ke(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,p=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,Dr(p)),a.cancelRegisterFunc=null}),V(Ke(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,p=d.prefixName,g=p===void 0?[]:p;return u!==void 0?[].concat(Me(g),Me(u)):[]}),V(Ke(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,p=c.fieldContext;return d.map(function(g){return typeof g=="function"?g(p):g})}),V(Ke(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),V(Ke(a),"metaCache",null),V(Ke(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=X(X({},a.getMeta()),{},{destroy:c});Jo(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),V(Ke(a),"onStoreChange",function(c,u,d){var p=a.props,g=p.shouldUpdate,m=p.dependencies,h=m===void 0?[]:m,b=p.onReset,x=d.store,S=a.getNamePath(),v=a.getValue(c),y=a.getValue(x),C=u&&pd(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!Jo(v,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Lo,a.warnings=Lo,a.triggerMetaEvent()),d.type){case"reset":if(!u||C){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Lo,a.warnings=Lo,a.triggerMetaEvent(),b==null||b(),a.refresh();return}break;case"remove":{if(g&&wS(g,c,x,v,y,d)){a.reRender();return}break}case"setField":{var w=d.data;if(C){"touched"in w&&(a.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(a.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(a.errors=w.errors||Lo),"warnings"in w&&(a.warnings=w.warnings||Lo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in w&&pd(u,S,!0)){a.reRender();return}if(g&&!S.length&&wS(g,c,x,v,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map(Dr);if(E.some(function(I){return pd(d.relatedFields,I)})){a.reRender();return}break}default:if(C||(!h.length||S.length||g)&&wS(g,c,x,v,y,d)){a.reRender();return}break}g===!0&&a.reRender()}),V(Ke(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),p=c||{},g=p.triggerName,m=p.validateOnly,h=m===void 0?!1:m,b=Promise.resolve().then(So(rr().mark(function x(){var S,v,y,C,w,E,I;return rr().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(S=a.props,v=S.validateFirst,y=v===void 0?!1:v,C=S.messageVariables,w=S.validateDebounce,E=a.getRules(),g&&(E=E.filter(function(_){return _}).filter(function(_){var $=_.validateTrigger;if(!$)return!0;var M=PR($);return M.includes(g)})),!(w&&g)){R.next=10;break}return R.next=8,new Promise(function(_){setTimeout(_,w)});case 8:if(a.validatePromise===b){R.next=10;break}return R.abrupt("return",[]);case 10:return I=lde(u,d,E,c,y,C),I.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lo;if(a.validatePromise===b){var $;a.validatePromise=null;var M=[],P=[];($=_.forEach)===null||$===void 0||$.call(_,function(D){var O=D.rule.warningOnly,k=D.errors,N=k===void 0?Lo:k;O?P.push.apply(P,Me(N)):M.push.apply(M,Me(N))}),a.errors=M,a.warnings=P,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",I);case 13:case"end":return R.stop()}},x)})));return h||(a.validatePromise=b,a.dirty=!0,a.errors=Lo,a.warnings=Lo,a.triggerMetaEvent(),a.reRender()),b}),V(Ke(a),"isFieldValidating",function(){return!!a.validatePromise}),V(Ke(a),"isFieldTouched",function(){return a.touched}),V(Ke(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(fc),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),V(Ke(a),"getErrors",function(){return a.errors}),V(Ke(a),"getWarnings",function(){return a.warnings}),V(Ke(a),"isListField",function(){return a.props.isListField}),V(Ke(a),"isList",function(){return a.props.isList}),V(Ke(a),"isPreserve",function(){return a.props.preserve}),V(Ke(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),V(Ke(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return X(X({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=_r(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),V(Ke(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return xo(c||u(!0),d)}),V(Ke(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,p=u.trigger,g=u.validateTrigger,m=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,x=u.getValueProps,S=u.fieldContext,v=g!==void 0?g:S.validateTrigger,y=a.getNamePath(),C=S.getInternalHooks,w=S.getFieldsValue,E=C(fc),I=E.dispatch,T=a.getValue(),R=x||function(D){return V({},b,D)},_=c[p],$=d!==void 0?R(T):{},M=X(X({},c),$);M[p]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var D,O=arguments.length,k=new Array(O),N=0;N=0&&_<=$.length?(d.keys=[].concat(Me(d.keys.slice(0,_)),[d.id],Me(d.keys.slice(_))),y([].concat(Me($.slice(0,_)),[R],Me($.slice(_))))):(d.keys=[].concat(Me(d.keys),[d.id]),y([].concat(Me($),[R]))),d.id+=1},remove:function(R){var _=w(),$=new Set(Array.isArray(R)?R:[R]);$.size<=0||(d.keys=d.keys.filter(function(M,P){return!$.has(P)}),y(_.filter(function(M,P){return!$.has(P)})))},move:function(R,_){if(R!==_){var $=w();R<0||R>=$.length||_<0||_>=$.length||(d.keys=AM(d.keys,R,_),y(AM($,R,_)))}}},I=v||[];return Array.isArray(I)||(I=[]),r(I.map(function(T,R){var _=d.keys[R];return _===void 0&&(d.keys[R]=d.id,_=d.keys[R],d.id+=1),{name:R,key:_,isListField:!0}}),E,x)})))}function gde(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var xV="__@field_split__";function ES(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(xV)}var xu=function(){function e(){Jn(this,e),V(this,"kvs",new Map)}return er(e,[{key:"set",value:function(n,r){this.kvs.set(ES(n),r)}},{key:"get",value:function(n){return this.kvs.get(ES(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ES(n))}},{key:"map",value:function(n){return Me(this.kvs.entries()).map(function(r){var a=le(r,2),o=a[0],i=a[1],s=o.split(xV);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=le(u,3),p=d[1],g=d[2];return p==="number"?Number(g):g}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),mde=["name"],hde=er(function e(t){var n=this;Jn(this,e),V(this,"formHooked",!1),V(this,"forceRootUpdate",void 0),V(this,"subscribable",!0),V(this,"store",{}),V(this,"fieldEntities",[]),V(this,"initialValues",{}),V(this,"callbacks",{}),V(this,"validateMessages",null),V(this,"preserve",null),V(this,"lastValidatePromise",null),V(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}}),V(this,"getInternalHooks",function(r){return r===fc?(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}):(_n(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),V(this,"useSubscribe",function(r){n.subscribable=r}),V(this,"prevWithoutPreserves",null),V(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Zu(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;i=mi(i,c,xo(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),V(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new xu;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),V(this,"getInitialValue",function(r){var a=xo(n.initialValues,r);return r.length?Zu(a):a}),V(this,"setCallbacks",function(r){n.callbacks=r}),V(this,"setValidateMessages",function(r){n.validateMessages=r}),V(this,"setPreserve",function(r){n.preserve=r}),V(this,"watchList",[]),V(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),V(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),V(this,"timeoutId",null),V(this,"warningUnhooked",function(){}),V(this,"updateStore",function(r){n.store=r}),V(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),V(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new xu;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),V(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Dr(o);return a.get(i)||{INVALIDATE_NAME_PATH:Dr(o)}})}),V(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&mt(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var p,g,m="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!o&&(p=(g=d).isListField)!==null&&p!==void 0&&p.call(g))return;if(!i)u.push(m);else{var x="getMeta"in d?d.getMeta():null;i(x)&&u.push(m)}}),kM(n.store,u.map(Dr))}),V(this,"getFieldValue",function(r){n.warningUnhooked();var a=Dr(r);return xo(n.store,a)}),V(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Dr(r[i]),errors:[],warnings:[]}})}),V(this,"getFieldError",function(r){n.warningUnhooked();var a=Dr(r),o=n.getFieldsError([a])[0];return o.errors}),V(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Dr(r),o=n.getFieldsError([a])[0];return o.warnings}),V(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new xu,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var p=a.get(d)||new Set;p.add({entity:c,value:u}),a.set(d,p)}});var i=function(u){u.forEach(function(d){var p=d.props.initialValue;if(p!==void 0){var g=d.getNamePath(),m=n.getInitialValue(g);if(m!==void 0)_n(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var h=a.get(g);if(h&&h.size>1)_n(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(g),x=d.isListField();!x&&(!r.skipExist||b===void 0)&&n.updateStore(mi(n.store,g,Me(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=s).push.apply(d,Me(Me(u).map(function(p){return p.entity})))}})):s=o,i(s)}),V(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Zu(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Dr);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(mi(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),V(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,c=wt(i,mde),u=Dr(s);o.push(u),"value"in c&&n.updateStore(mi(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),V(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),c=X(X({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),V(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=xo(n.store,o);i===void 0&&n.updateStore(mi(n.store,o,a))}}),V(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),V(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(p){return!bV(p.getNamePath(),a)})){var d=n.store;n.updateStore(mi(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),V(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),V(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=X(X({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),V(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Me(o))}),o}),V(this,"updateValue",function(r,a){var o=Dr(r),i=n.store;n.updateStore(mi(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=kM(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Me(s)))}),V(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Zu(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),V(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),V(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new xu;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var p=Dr(d);i.update(p,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(c),g})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(p){if(!a.has(p)){a.add(p);var g=p.getNamePath();p.isFieldDirty()&&g.length&&(o.push(g),c(g))}})};return s(r),o}),V(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new xu;a.forEach(function(u){var d=u.name,p=u.errors;s.set(d,p)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return pd(r,d)});c.length&&o(c,i)}}),V(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,c=s?o.map(Dr):[],u=[],d=String(Date.now()),p=new Set,g=i||{},m=g.recursive,h=g.dirty;n.getFieldEntities(!0).forEach(function(v){if(s||c.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(h&&!v.isFieldDirty())){var y=v.getNamePath();if(p.add(y.join(d)),!s||pd(c,y,m)){var C=v.validateRules(X({validateMessages:X(X({},vV),n.validateMessages)},i));u.push(C.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(w){var E,I=[],T=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(R){var _=R.rule.warningOnly,$=R.errors;_?T.push.apply(T,Me($)):I.push.apply(I,Me($))}),I.length?Promise.reject({name:y,errors:I,warnings:T}):{name:y,errors:I,warnings:T}}))}}});var b=gde(u);n.lastValidatePromise=b,b.catch(function(v){return v}).then(function(v){var y=v.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,v)});var x=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(v){var y=v.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:y,outOfDate:n.lastValidatePromise!==b})});x.catch(function(v){return v});var S=c.filter(function(v){return p.has(v.join(d))});return n.triggerOnFieldsChange(S),x}),V(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function UO(e){var t=l.useRef(),n=l.useState({}),r=le(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new hde(o);t.current=i.getForm()}return[t.current]}var WR=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),SV=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=l.useContext(WR),s=l.useRef({});return l.createElement(WR.Provider,{value:X(X({},i),{},{validateMessages:X(X({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=X(X({},s.current),{},V({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=X({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},vde=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],bde=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,p=t.validateMessages,g=t.validateTrigger,m=g===void 0?"onChange":g,h=t.onValuesChange,b=t.onFieldsChange,x=t.onFinish,S=t.onFinishFailed,v=t.clearOnDestroy,y=wt(t,vde),C=l.useRef(null),w=l.useContext(WR),E=UO(i),I=le(E,1),T=I[0],R=T.getInternalHooks(fc),_=R.useSubscribe,$=R.setInitialValues,M=R.setCallbacks,P=R.setValidateMessages,D=R.setPreserve,O=R.destroyForm;l.useImperativeHandle(n,function(){return X(X({},T),{},{nativeElement:C.current})}),l.useEffect(function(){return w.registerForm(r,T),function(){w.unregisterForm(r)}},[w,T,r]),P(X(X({},w.validateMessages),p)),M({onValuesChange:h,onFieldsChange:function(U){if(w.triggerFormChange(r,U),b){for(var H=arguments.length,Y=new Array(H>1?H-1:0),K=1;K{}}),wV=l.createContext(null),EV=e=>{const t=Mn(e,["prefixCls"]);return l.createElement(SV,Object.assign({},t))},VO=l.createContext({prefixCls:""}),ea=l.createContext({}),xde=e=>{let{children:t,status:n,override:r}=e;const a=l.useContext(ea),o=l.useMemo(()=>{const i=Object.assign({},a);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,a]);return l.createElement(ea.Provider,{value:o},t)},IV=l.createContext(void 0),Ji=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=de.createElement(xde,{override:!0,status:!0},a)),t&&(a=de.createElement(Dle,null,a)),a};function Pd(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function DM(e){const{closable:t,closeIcon:n}=e||{};return de.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function PM(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const Sde={};function WO(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sde;const r=DM(e),a=DM(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,i=de.useMemo(()=>Object.assign({closeIcon:de.createElement(pa,null)},n),[n]),s=de.useMemo(()=>r===!1?!1:r?PM(i,a,r):a===!1?!1:a?PM(i,a):i.closable?i:!1,[r,a,i]);return de.useMemo(()=>{if(s===!1)return[!1,null,o];const{closeIconRender:c}=i,{closeIcon:u}=s;let d=u;if(d!=null){c&&(d=c(u));const p=ur(s,!0);Object.keys(p).length&&(d=de.isValidElement(d)?de.cloneElement(d,p):de.createElement("span",Object.assign({},p),d))}return[!0,d,o]},[s,i])}var TV=function(t){if(da()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},Cde=function(t,n){if(!TV(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function GR(e,t){return!Array.isArray(e)&&t!==void 0?Cde(e,t):TV(e)}const wde=()=>da()&&window.document.documentElement,oy=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=ae({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ae({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:ae(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},Ede=new en("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),iy=e=>({height:e,lineHeight:G(e)}),gd=e=>Object.assign({width:e},iy(e)),Ide=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ede,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),IS=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},iy(e)),Tde=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},gd(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},gd(a)),[`${t}${t}-sm`]:Object.assign({},gd(o))}},Rde=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},IS(t,s)),[`${r}-lg`]:Object.assign({},IS(a,s)),[`${r}-sm`]:Object.assign({},IS(o,s))}},LM=e=>Object.assign({width:e},iy(e)),_de=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},LM(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},LM(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},TS=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},RS=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},iy(e)),$de=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},RS(r,s))},TS(e,r,n)),{[`${n}-lg`]:Object.assign({},RS(a,s))}),TS(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},RS(o,s))}),TS(e,o,`${n}-sm`))},Ode=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:p,padding:g,marginSM:m,borderRadius:h,titleHeight:b,blockRadius:x,paragraphLiHeight:S,controlHeightXS:v,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},gd(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},gd(u)),[`${n}-sm`]:Object.assign({},gd(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:p,borderRadius:x,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:p,borderRadius:x,"+ li":{marginBlockStart:v}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$de(e)),Tde(e)),Rde(e)),_de(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),a)}else Eg(a);return function(){Eg(a)}},[t,a])}var xue=!1;function Sue(e){return xue}var xM=function(t){return t===!1?!1:!fa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},gm=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,c=l.useState(n),u=ce(c,2),d=u[0],p=u[1],g=d||n;l.useEffect(function(){(i||n)&&p(n)},[n,i]);var m=l.useState(function(){return xM(a)}),h=ce(m,2),b=h[0],x=h[1];l.useEffect(function(){var $=xM(a);x($??null)});var S=hue(g&&!b),v=ce(S,2),y=v[0],w=v[1],C=b??y;yue(r&&n&&fa()&&(C===y||C===document.body));var E=null;if(s&&_i(s)&&t){var I=s;E=I.ref}var T=Ds(E,t);if(!g||!fa()||b===void 0)return null;var R=C===!1||Sue(),_=s;return t&&(_=l.cloneElement(s,{ref:T})),l.createElement(uV.Provider,{value:w},R?_:Kr.createPortal(_,C))}),fV=l.createContext({});function wue(){var e=X({},em);return e.useId}var SM=0,wM=wue();const pV=wM?function(t){var n=wM();return t||n}:function(t){var n=l.useState("ssr-id"),r=ce(n,2),a=r[0],o=r[1];return l.useEffect(function(){var i=SM;SM+=1,o("rc_unique_".concat(i))},[]),t||a};function CM(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function EM(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function Cue(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=EM(a),n.top+=EM(a,!0),n}const Eue=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Iue={width:0,height:0,overflow:"hidden",outline:"none"},Tue={outline:"none"},gV=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,p=e.children,g=e.bodyStyle,m=e.bodyProps,h=e.modalRender,b=e.onMouseDown,x=e.onMouseUp,S=e.holderRef,v=e.visible,y=e.forceRender,w=e.width,C=e.height,E=e.classNames,I=e.styles,T=de.useContext(fV),R=T.panel,_=Ds(S,R),$=l.useRef(),M=l.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var B;(B=$.current)===null||B===void 0||B.focus({preventScroll:!0})},changeActive:function(B){var z=document,U=z.activeElement;B&&U===M.current?$.current.focus({preventScroll:!0}):!B&&U===$.current&&M.current.focus({preventScroll:!0})}}});var P={};w!==void 0&&(P.width=w),C!==void 0&&(P.height=C);var D=s?de.createElement("div",{className:oe("".concat(n,"-footer"),E==null?void 0:E.footer),style:X({},I==null?void 0:I.footer)},s):null,O=o?de.createElement("div",{className:oe("".concat(n,"-header"),E==null?void 0:E.header),style:X({},I==null?void 0:I.header)},de.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,k=l.useMemo(function(){return mt(c)==="object"&&c!==null?c:c?{closeIcon:u??de.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),N=ur(k,!0),A=mt(c)==="object"&&c.disabled,L=c?de.createElement("button",be({type:"button",onClick:d,"aria-label":"Close"},N,{className:"".concat(n,"-close"),disabled:A}),k.closeIcon):null,j=de.createElement("div",{className:oe("".concat(n,"-content"),E==null?void 0:E.content),style:I==null?void 0:I.content},L,O,de.createElement("div",be({className:oe("".concat(n,"-body"),E==null?void 0:E.body),style:X(X({},g),I==null?void 0:I.body)},m),p),D);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:_,style:X(X({},a),P),className:oe(n,r),onMouseDown:b,onMouseUp:x},de.createElement("div",{ref:$,tabIndex:0,style:Tue},de.createElement(Eue,{shouldUpdate:v||y},h?h(j):j)),de.createElement("div",{tabIndex:0,ref:M,style:Iue}))}),mV=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,g=e.mousePosition,m=l.useRef(),h=l.useState(),b=ce(h,2),x=b[0],S=b[1],v={};x&&(v.transformOrigin=x);function y(){var w=Cue(m.current);S(g&&(g.x||g.y)?"".concat(g.x-w.left,"px ").concat(g.y-w.top,"px"):"")}return l.createElement(Qr,{visible:i,onVisibleChanged:p,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:u,removeOnLeave:c,ref:m},function(w,C){var E=w.className,I=w.style;return l.createElement(gV,be({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:C,style:X(X(X({},I),a),v),className:oe(o,E)}))})});mV.displayName="Content";var Rue=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,s=t.className;return l.createElement(Qr,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,p=c.style;return l.createElement("div",be({ref:u,style:X(X({},p),r),className:oe("".concat(n,"-mask"),d,s)},o))})},_ue=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,p=t.wrapStyle,g=t.wrapClassName,m=t.wrapProps,h=t.onClose,b=t.afterOpenChange,x=t.afterClose,S=t.transitionName,v=t.animation,y=t.closable,w=y===void 0?!0:y,C=t.mask,E=C===void 0?!0:C,I=t.maskTransitionName,T=t.maskAnimation,R=t.maskClosable,_=R===void 0?!0:R,$=t.maskStyle,M=t.maskProps,P=t.rootClassName,D=t.classNames,O=t.styles,k=l.useRef(),N=l.useRef(),A=l.useRef(),L=l.useState(i),j=ce(L,2),F=j[0],B=j[1],z=pV();function U(){oR(N.current,document.activeElement)||(k.current=document.activeElement)}function H(){if(!oR(N.current,document.activeElement)){var ie;(ie=A.current)===null||ie===void 0||ie.focus()}}function K(ie){if(ie)H();else{if(B(!1),E&&k.current&&d){try{k.current.focus({preventScroll:!0})}catch{}k.current=null}F&&(x==null||x())}b==null||b(ie)}function Y(ie){h==null||h(ie)}var ee=l.useRef(!1),ae=l.useRef(),W=function(){clearTimeout(ae.current),ee.current=!0},q=function(){ae.current=setTimeout(function(){ee.current=!1})},Z=null;_&&(Z=function(le){ee.current?ee.current=!1:N.current===le.target&&Y(le)});function Q(ie){if(c&&ie.keyCode===Fe.ESC){ie.stopPropagation(),Y(ie);return}i&&ie.keyCode===Fe.TAB&&A.current.changeActive(!ie.shiftKey)}l.useEffect(function(){i&&(B(!0),U())},[i]),l.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var J=X(X(X({zIndex:a},p),O==null?void 0:O.wrapper),{},{display:F?null:"none"});return l.createElement("div",be({className:oe("".concat(r,"-root"),P)},ur(t,{data:!0})),l.createElement(Rue,{prefixCls:r,visible:E&&i,motionName:CM(r,I,T),style:X(X({zIndex:a},$),O==null?void 0:O.mask),maskProps:M,className:D==null?void 0:D.mask}),l.createElement("div",be({tabIndex:-1,onKeyDown:Q,className:oe("".concat(r,"-wrap"),g,D==null?void 0:D.wrapper),ref:N,onClick:Z,style:J},m),l.createElement(mV,be({},t,{onMouseDown:W,onMouseUp:q,ref:A,closable:w,ariaId:z,prefixCls:r,visible:i&&F,onClose:Y,onVisibleChanged:K,motionName:CM(r,S,v)}))))},BO=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=ce(u,2),p=d[0],g=d[1],m=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&g(!0)},[n]),!a&&i&&!p?null:l.createElement(fV.Provider,{value:m},l.createElement(gm,{open:n||a||p,autoDestroy:!1,getContainer:r,autoLock:n||p},l.createElement(_ue,be({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),g(!1)}}))))};BO.displayName="Dialog";var fc="RC_FORM_INTERNAL_HOOKS",Zn=function(){$n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Fc=l.createContext({getFieldValue:Zn,getFieldsValue:Zn,getFieldError:Zn,getFieldWarning:Zn,getFieldsError:Zn,isFieldsTouched:Zn,isFieldTouched:Zn,isFieldValidating:Zn,isFieldsValidating:Zn,resetFields:Zn,setFields:Zn,setFieldValue:Zn,setFieldsValue:Zn,validateFields:Zn,submit:Zn,getInternalHooks:function(){return Zn(),{dispatch:Zn,initEntityValue:Zn,registerField:Zn,useSubscribe:Zn,setInitialValues:Zn,destroyForm:Zn,setCallbacks:Zn,registerWatch:Zn,getFields:Zn,setValidateMessages:Zn,setPreserve:Zn,getInitialValue:Zn}}}),kg=l.createContext(null);function LR(e){return e==null?[]:Array.isArray(e)?e:[e]}function $ue(e){return e&&!!e._init}function jR(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var FR=jR();function Oue(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Nue(e,t,n){if(V0())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&wg(a,n.prototype),a}function BR(e){var t=typeof Map=="function"?new Map:void 0;return BR=function(r){if(r===null||!Oue(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Nue(r,arguments,Dc(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),wg(a,r)},BR(e)}var kue=/%[sdj%]/g,Aue=function(){};function zR(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function wo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Mue(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Jr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Mue(t)&&typeof e=="string"&&!e)}function Due(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,De(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function IM(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,st.max?a.push(wo(o.messages[p].max,t.fullField,t.max)):s&&c&&(dt.max)&&a.push(wo(o.messages[p].range,t.fullField,t.min,t.max))},hV=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Jr(n,i||t.type))&&a.push(wo(o.messages.required,t.fullField))},Oh;const Uue=function(){if(Oh)return Oh;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\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}",a=["(?:".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}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var p="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",m=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",x="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',w="(?:".concat(p,"|www\\.)").concat(g,"(?:localhost|").concat(m,"|").concat(h,"|").concat(b).concat(x).concat(S,")").concat(v).concat(y);return Oh=new RegExp("(?:^".concat(w,"$)"),"i"),Oh};var $M={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},cp={integer:function(t){return cp.number(t)&&parseInt(t,10)===t},float:function(t){return cp.number(t)&&!cp.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return mt(t)==="object"&&!cp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($M.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Uue())},hex:function(t){return typeof t=="string"&&!!t.match($M.hex)}},Vue=function(t,n,r,a,o){if(t.required&&n===void 0){hV(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?cp[s](n)||a.push(wo(o.messages.types[s],t.fullField,t.type)):s&&mt(n)!==t.type&&a.push(wo(o.messages.types[s],t.fullField,t.type))},Wue=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(wo(o.messages.whitespace,t.fullField))};const En={required:hV,whitespace:Wue,type:Vue,range:Hue,enum:Bue,pattern:zue};var Gue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o)}r(i)},que=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();En.required(t,n,a,i,o,"array"),n!=null&&(En.type(t,n,a,i,o),En.range(t,n,a,i,o))}r(i)},Kue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),n!==void 0&&En.type(t,n,a,i,o)}r(i)},Yue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n,"date")&&!t.required)return r();if(En.required(t,n,a,i,o),!Jr(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),En.type(t,c,a,i,o),c&&En.range(t,c.getTime(),a,i,o)}}r(i)},Xue="enum",Zue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),n!==void 0&&En[Xue](t,n,a,i,o)}r(i)},Que=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),n!==void 0&&(En.type(t,n,a,i,o),En.range(t,n,a,i,o))}r(i)},Jue=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),n!==void 0&&(En.type(t,n,a,i,o),En.range(t,n,a,i,o))}r(i)},ede=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),n!==void 0&&En.type(t,n,a,i,o)}r(i)},tde=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),n!==void 0&&(En.type(t,n,a,i,o),En.range(t,n,a,i,o))}r(i)},nde=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),n!==void 0&&En.type(t,n,a,i,o)}r(i)},rde=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n,"string")&&!t.required)return r();En.required(t,n,a,i,o),Jr(n,"string")||En.pattern(t,n,a,i,o)}r(i)},ade=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n)&&!t.required)return r();En.required(t,n,a,i,o),Jr(n)||En.type(t,n,a,i,o)}r(i)},ode=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":mt(n);En.required(t,n,a,i,o,s),r(i)},ide=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Jr(n,"string")&&!t.required)return r();En.required(t,n,a,i,o,"string"),Jr(n,"string")||(En.type(t,n,a,i,o),En.range(t,n,a,i,o),En.pattern(t,n,a,i,o),t.whitespace===!0&&En.whitespace(t,n,a,i,o))}r(i)},ES=function(t,n,r,a,o){var i=t.type,s=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Jr(n,i)&&!t.required)return r();En.required(t,n,a,s,o,i),Jr(n,i)||En.type(t,n,a,s,o)}r(s)};const Pp={string:ide,method:ede,number:tde,boolean:Kue,regexp:ade,integer:Jue,float:Que,array:que,object:nde,enum:Zue,pattern:rde,date:Yue,url:ES,hex:ES,email:ES,required:ode,any:Gue};var mm=function(){function e(t){Jn(this,e),V(this,"rules",null),V(this,"_messages",FR),this.define(t)}return er(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=_M(jR(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var b=[],x={};function S(y){if(Array.isArray(y)){var w;b=(w=b).concat.apply(w,De(y))}else b.push(y)}for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(I)?I:[I];!s.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&x.message!==void 0&&(T=[].concat(x.message));var R=T.map(RM(x,i));if(s.first&&R.length)return m[x.field]=1,b(R);if(!S)b(R);else{if(x.required&&!h.value)return x.message!==void 0?R=[].concat(x.message).map(RM(x,i)):s.error&&(R=[s.error(x,wo(s.messages.required,x.field))]),b(R);var _={};x.defaultField&&Object.keys(h.value).map(function(P){_[P]=x.defaultField}),_=X(X({},_),h.rule.fields);var $={};Object.keys(_).forEach(function(P){var D=_[P],O=Array.isArray(D)?D:[D];$[P]=O.map(v.bind(null,P))});var M=new e($);M.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),M.validate(h.value,h.rule.options||s,function(P){var D=[];R&&R.length&&D.push.apply(D,De(R)),P&&P.length&&D.push.apply(D,De(P)),b(D.length?D:null)})}}var w;if(x.asyncValidator)w=x.asyncValidator(x,h.value,y,h.source,s);else if(x.validator){try{w=x.validator(x,h.value,y,h.source,s)}catch(I){var C,E;(C=(E=console).error)===null||C===void 0||C.call(E,I),s.suppressValidatorError||setTimeout(function(){throw I},0),y(I.message)}w===!0?y():w===!1?y(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||"".concat(x.fullField||x.field," fails")):w instanceof Array?y(w):w instanceof Error&&y(w.message)}w&&w.then&&w.then(function(){return y()},function(I){return y(I)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Pp.hasOwnProperty(n.type))throw new Error(wo("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),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Pp.required:Pp[this.getType(n)]||void 0}}]),e}();V(mm,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Pp[t]=n});V(mm,"warning",Aue);V(mm,"messages",FR);V(mm,"validators",Pp);var fo="'${name}' is not a valid ${type}",vV={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:fo,method:fo,array:fo,object:fo,number:fo,date:fo,boolean:fo,integer:fo,float:fo,regexp:fo,email:fo,url:fo,hex:fo},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}"}},OM=mm;function sde(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var NM="CODE_LOGIC_ERROR";function HR(e,t,n,r,a){return UR.apply(this,arguments)}function UR(){return UR=So(rr().mark(function e(t,n,r,a,o){var i,s,c,u,d,p,g,m,h;return rr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return i=X({},r),delete i.ruleIndex,OM.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(NM)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new OM(V({},t,[i])),d=Zu(vV,a.validateMessages),u.messages(d),p=[],x.prev=10,x.next=13,Promise.resolve(u.validate(V({},t,n),X({},a)));case 13:x.next=18;break;case 15:x.prev=15,x.t0=x.catch(10),x.t0.errors&&(p=x.t0.errors.map(function(S,v){var y=S.message,w=y===NM?d.default:y;return l.isValidElement(w)?l.cloneElement(w,{key:"error_".concat(v)}):w}));case 18:if(!(!p.length&&c)){x.next=23;break}return x.next=21,Promise.all(n.map(function(S,v){return HR("".concat(t,".").concat(v),S,c,a,o)}));case 21:return g=x.sent,x.abrupt("return",g.reduce(function(S,v){return[].concat(De(S),De(v))},[]));case 23:return m=X(X({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=p.map(function(S){return typeof S=="string"?sde(S,m):S}),x.abrupt("return",h);case 26:case"end":return x.stop()}},e,null,[[10,15]])})),UR.apply(this,arguments)}function lde(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(d,p){var g=d.validator,m=X(X({},d),{},{ruleIndex:p});return g&&(m.validator=function(h,b,x){var S=!1,v=function(){for(var C=arguments.length,E=new Array(C),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return bV(t,r,n)})}function bV(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function dde(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return De(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function fde(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function AM(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(De(e.slice(0,n)),[a],De(e.slice(n,t)),De(e.slice(t+1,r))):o<0?[].concat(De(e.slice(0,t)),De(e.slice(t+1,n+1)),[a],De(e.slice(n+1,r))):e}var pde=["name"],Lo=[];function IS(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var zO=function(e){so(n,e);var t=Ao(n);function n(r){var a;if(Jn(this,n),a=t.call(this,r),V(Ke(a),"state",{resetCount:0}),V(Ke(a),"cancelRegisterFunc",null),V(Ke(a),"mounted",!1),V(Ke(a),"touched",!1),V(Ke(a),"dirty",!1),V(Ke(a),"validatePromise",void 0),V(Ke(a),"prevValidating",void 0),V(Ke(a),"errors",Lo),V(Ke(a),"warnings",Lo),V(Ke(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,p=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,Dr(p)),a.cancelRegisterFunc=null}),V(Ke(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,p=d.prefixName,g=p===void 0?[]:p;return u!==void 0?[].concat(De(g),De(u)):[]}),V(Ke(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,p=c.fieldContext;return d.map(function(g){return typeof g=="function"?g(p):g})}),V(Ke(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),V(Ke(a),"metaCache",null),V(Ke(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=X(X({},a.getMeta()),{},{destroy:c});ei(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),V(Ke(a),"onStoreChange",function(c,u,d){var p=a.props,g=p.shouldUpdate,m=p.dependencies,h=m===void 0?[]:m,b=p.onReset,x=d.store,S=a.getNamePath(),v=a.getValue(c),y=a.getValue(x),w=u&&pd(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ei(v,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Lo,a.warnings=Lo,a.triggerMetaEvent()),d.type){case"reset":if(!u||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Lo,a.warnings=Lo,a.triggerMetaEvent(),b==null||b(),a.refresh();return}break;case"remove":{if(g&&IS(g,c,x,v,y,d)){a.reRender();return}break}case"setField":{var C=d.data;if(w){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||Lo),"warnings"in C&&(a.warnings=C.warnings||Lo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&pd(u,S,!0)){a.reRender();return}if(g&&!S.length&&IS(g,c,x,v,y,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map(Dr);if(E.some(function(I){return pd(d.relatedFields,I)})){a.reRender();return}break}default:if(w||(!h.length||S.length||g)&&IS(g,c,x,v,y,d)){a.reRender();return}break}g===!0&&a.reRender()}),V(Ke(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),p=c||{},g=p.triggerName,m=p.validateOnly,h=m===void 0?!1:m,b=Promise.resolve().then(So(rr().mark(function x(){var S,v,y,w,C,E,I;return rr().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(S=a.props,v=S.validateFirst,y=v===void 0?!1:v,w=S.messageVariables,C=S.validateDebounce,E=a.getRules(),g&&(E=E.filter(function(_){return _}).filter(function(_){var $=_.validateTrigger;if(!$)return!0;var M=LR($);return M.includes(g)})),!(C&&g)){R.next=10;break}return R.next=8,new Promise(function(_){setTimeout(_,C)});case 8:if(a.validatePromise===b){R.next=10;break}return R.abrupt("return",[]);case 10:return I=lde(u,d,E,c,y,w),I.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lo;if(a.validatePromise===b){var $;a.validatePromise=null;var M=[],P=[];($=_.forEach)===null||$===void 0||$.call(_,function(D){var O=D.rule.warningOnly,k=D.errors,N=k===void 0?Lo:k;O?P.push.apply(P,De(N)):M.push.apply(M,De(N))}),a.errors=M,a.warnings=P,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",I);case 13:case"end":return R.stop()}},x)})));return h||(a.validatePromise=b,a.dirty=!0,a.errors=Lo,a.warnings=Lo,a.triggerMetaEvent(),a.reRender()),b}),V(Ke(a),"isFieldValidating",function(){return!!a.validatePromise}),V(Ke(a),"isFieldTouched",function(){return a.touched}),V(Ke(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(fc),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),V(Ke(a),"getErrors",function(){return a.errors}),V(Ke(a),"getWarnings",function(){return a.warnings}),V(Ke(a),"isListField",function(){return a.props.isListField}),V(Ke(a),"isList",function(){return a.props.isList}),V(Ke(a),"isPreserve",function(){return a.props.preserve}),V(Ke(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),V(Ke(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return X(X({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=_r(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),V(Ke(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return xo(c||u(!0),d)}),V(Ke(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,p=u.trigger,g=u.validateTrigger,m=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,x=u.getValueProps,S=u.fieldContext,v=g!==void 0?g:S.validateTrigger,y=a.getNamePath(),w=S.getInternalHooks,C=S.getFieldsValue,E=w(fc),I=E.dispatch,T=a.getValue(),R=x||function(D){return V({},b,D)},_=c[p],$=d!==void 0?R(T):{},M=X(X({},c),$);M[p]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var D,O=arguments.length,k=new Array(O),N=0;N=0&&_<=$.length?(d.keys=[].concat(De(d.keys.slice(0,_)),[d.id],De(d.keys.slice(_))),y([].concat(De($.slice(0,_)),[R],De($.slice(_))))):(d.keys=[].concat(De(d.keys),[d.id]),y([].concat(De($),[R]))),d.id+=1},remove:function(R){var _=C(),$=new Set(Array.isArray(R)?R:[R]);$.size<=0||(d.keys=d.keys.filter(function(M,P){return!$.has(P)}),y(_.filter(function(M,P){return!$.has(P)})))},move:function(R,_){if(R!==_){var $=C();R<0||R>=$.length||_<0||_>=$.length||(d.keys=AM(d.keys,R,_),y(AM($,R,_)))}}},I=v||[];return Array.isArray(I)||(I=[]),r(I.map(function(T,R){var _=d.keys[R];return _===void 0&&(d.keys[R]=d.id,_=d.keys[R],d.id+=1),{name:R,key:_,isListField:!0}}),E,x)})))}function gde(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var xV="__@field_split__";function TS(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(xV)}var xu=function(){function e(){Jn(this,e),V(this,"kvs",new Map)}return er(e,[{key:"set",value:function(n,r){this.kvs.set(TS(n),r)}},{key:"get",value:function(n){return this.kvs.get(TS(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(TS(n))}},{key:"map",value:function(n){return De(this.kvs.entries()).map(function(r){var a=ce(r,2),o=a[0],i=a[1],s=o.split(xV);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ce(u,3),p=d[1],g=d[2];return p==="number"?Number(g):g}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),mde=["name"],hde=er(function e(t){var n=this;Jn(this,e),V(this,"formHooked",!1),V(this,"forceRootUpdate",void 0),V(this,"subscribable",!0),V(this,"store",{}),V(this,"fieldEntities",[]),V(this,"initialValues",{}),V(this,"callbacks",{}),V(this,"validateMessages",null),V(this,"preserve",null),V(this,"lastValidatePromise",null),V(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}}),V(this,"getInternalHooks",function(r){return r===fc?(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}):($n(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),V(this,"useSubscribe",function(r){n.subscribable=r}),V(this,"prevWithoutPreserves",null),V(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Zu(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;i=hi(i,c,xo(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),V(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new xu;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),V(this,"getInitialValue",function(r){var a=xo(n.initialValues,r);return r.length?Zu(a):a}),V(this,"setCallbacks",function(r){n.callbacks=r}),V(this,"setValidateMessages",function(r){n.validateMessages=r}),V(this,"setPreserve",function(r){n.preserve=r}),V(this,"watchList",[]),V(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),V(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),V(this,"timeoutId",null),V(this,"warningUnhooked",function(){}),V(this,"updateStore",function(r){n.store=r}),V(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),V(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new xu;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),V(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Dr(o);return a.get(i)||{INVALIDATE_NAME_PATH:Dr(o)}})}),V(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&mt(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var p,g,m="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!o&&(p=(g=d).isListField)!==null&&p!==void 0&&p.call(g))return;if(!i)u.push(m);else{var x="getMeta"in d?d.getMeta():null;i(x)&&u.push(m)}}),kM(n.store,u.map(Dr))}),V(this,"getFieldValue",function(r){n.warningUnhooked();var a=Dr(r);return xo(n.store,a)}),V(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Dr(r[i]),errors:[],warnings:[]}})}),V(this,"getFieldError",function(r){n.warningUnhooked();var a=Dr(r),o=n.getFieldsError([a])[0];return o.errors}),V(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Dr(r),o=n.getFieldsError([a])[0];return o.warnings}),V(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new xu,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var p=a.get(d)||new Set;p.add({entity:c,value:u}),a.set(d,p)}});var i=function(u){u.forEach(function(d){var p=d.props.initialValue;if(p!==void 0){var g=d.getNamePath(),m=n.getInitialValue(g);if(m!==void 0)$n(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var h=a.get(g);if(h&&h.size>1)$n(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(g),x=d.isListField();!x&&(!r.skipExist||b===void 0)&&n.updateStore(hi(n.store,g,De(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=s).push.apply(d,De(De(u).map(function(p){return p.entity})))}})):s=o,i(s)}),V(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Zu(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Dr);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(hi(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),V(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,c=Ct(i,mde),u=Dr(s);o.push(u),"value"in c&&n.updateStore(hi(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),V(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),c=X(X({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),V(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=xo(n.store,o);i===void 0&&n.updateStore(hi(n.store,o,a))}}),V(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),V(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(p){return!bV(p.getNamePath(),a)})){var d=n.store;n.updateStore(hi(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),V(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),V(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=X(X({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),V(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(De(o))}),o}),V(this,"updateValue",function(r,a){var o=Dr(r),i=n.store;n.updateStore(hi(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=kM(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(De(s)))}),V(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Zu(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),V(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),V(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new xu;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var p=Dr(d);i.update(p,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(c),g})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(p){if(!a.has(p)){a.add(p);var g=p.getNamePath();p.isFieldDirty()&&g.length&&(o.push(g),c(g))}})};return s(r),o}),V(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new xu;a.forEach(function(u){var d=u.name,p=u.errors;s.set(d,p)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return pd(r,d)});c.length&&o(c,i)}}),V(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,c=s?o.map(Dr):[],u=[],d=String(Date.now()),p=new Set,g=i||{},m=g.recursive,h=g.dirty;n.getFieldEntities(!0).forEach(function(v){if(s||c.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(h&&!v.isFieldDirty())){var y=v.getNamePath();if(p.add(y.join(d)),!s||pd(c,y,m)){var w=v.validateRules(X({validateMessages:X(X({},vV),n.validateMessages)},i));u.push(w.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(C){var E,I=[],T=[];return(E=C.forEach)===null||E===void 0||E.call(C,function(R){var _=R.rule.warningOnly,$=R.errors;_?T.push.apply(T,De($)):I.push.apply(I,De($))}),I.length?Promise.reject({name:y,errors:I,warnings:T}):{name:y,errors:I,warnings:T}}))}}});var b=gde(u);n.lastValidatePromise=b,b.catch(function(v){return v}).then(function(v){var y=v.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,v)});var x=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(v){var y=v.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:y,outOfDate:n.lastValidatePromise!==b})});x.catch(function(v){return v});var S=c.filter(function(v){return p.has(v.join(d))});return n.triggerOnFieldsChange(S),x}),V(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function UO(e){var t=l.useRef(),n=l.useState({}),r=ce(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new hde(o);t.current=i.getForm()}return[t.current]}var GR=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),SV=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=l.useContext(GR),s=l.useRef({});return l.createElement(GR.Provider,{value:X(X({},i),{},{validateMessages:X(X({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=X(X({},s.current),{},V({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=X({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},vde=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],bde=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,p=t.validateMessages,g=t.validateTrigger,m=g===void 0?"onChange":g,h=t.onValuesChange,b=t.onFieldsChange,x=t.onFinish,S=t.onFinishFailed,v=t.clearOnDestroy,y=Ct(t,vde),w=l.useRef(null),C=l.useContext(GR),E=UO(i),I=ce(E,1),T=I[0],R=T.getInternalHooks(fc),_=R.useSubscribe,$=R.setInitialValues,M=R.setCallbacks,P=R.setValidateMessages,D=R.setPreserve,O=R.destroyForm;l.useImperativeHandle(n,function(){return X(X({},T),{},{nativeElement:w.current})}),l.useEffect(function(){return C.registerForm(r,T),function(){C.unregisterForm(r)}},[C,T,r]),P(X(X({},C.validateMessages),p)),M({onValuesChange:h,onFieldsChange:function(U){if(C.triggerFormChange(r,U),b){for(var H=arguments.length,K=new Array(H>1?H-1:0),Y=1;Y{}}),CV=l.createContext(null),EV=e=>{const t=Mn(e,["prefixCls"]);return l.createElement(SV,Object.assign({},t))},VO=l.createContext({prefixCls:""}),ea=l.createContext({}),xde=e=>{let{children:t,status:n,override:r}=e;const a=l.useContext(ea),o=l.useMemo(()=>{const i=Object.assign({},a);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,a]);return l.createElement(ea.Provider,{value:o},t)},IV=l.createContext(void 0),es=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=de.createElement(xde,{override:!0,status:!0},a)),t&&(a=de.createElement(Dle,null,a)),a};function Pd(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function DM(e){const{closable:t,closeIcon:n}=e||{};return de.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function PM(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const Sde={};function WO(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sde;const r=DM(e),a=DM(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,i=de.useMemo(()=>Object.assign({closeIcon:de.createElement(ga,null)},n),[n]),s=de.useMemo(()=>r===!1?!1:r?PM(i,a,r):a===!1?!1:a?PM(i,a):i.closable?i:!1,[r,a,i]);return de.useMemo(()=>{if(s===!1)return[!1,null,o];const{closeIconRender:c}=i,{closeIcon:u}=s;let d=u;if(d!=null){c&&(d=c(u));const p=ur(s,!0);Object.keys(p).length&&(d=de.isValidElement(d)?de.cloneElement(d,p):de.createElement("span",Object.assign({},p),d))}return[!0,d,o]},[s,i])}var TV=function(t){if(fa()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},wde=function(t,n){if(!TV(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function qR(e,t){return!Array.isArray(e)&&t!==void 0?wde(e,t):TV(e)}const Cde=()=>fa()&&window.document.documentElement,sy=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=oe({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=oe({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:oe(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},Ede=new en("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ly=e=>({height:e,lineHeight:G(e)}),gd=e=>Object.assign({width:e},ly(e)),Ide=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ede,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),RS=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},ly(e)),Tde=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},gd(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},gd(a)),[`${t}${t}-sm`]:Object.assign({},gd(o))}},Rde=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},RS(t,s)),[`${r}-lg`]:Object.assign({},RS(a,s)),[`${r}-sm`]:Object.assign({},RS(o,s))}},LM=e=>Object.assign({width:e},ly(e)),_de=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},LM(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},LM(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},_S=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},$S=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},ly(e)),$de=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},$S(r,s))},_S(e,r,n)),{[`${n}-lg`]:Object.assign({},$S(a,s))}),_S(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},$S(o,s))}),_S(e,o,`${n}-sm`))},Ode=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:p,padding:g,marginSM:m,borderRadius:h,titleHeight:b,blockRadius:x,paragraphLiHeight:S,controlHeightXS:v,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},gd(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},gd(u)),[`${n}-sm`]:Object.assign({},gd(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:p,borderRadius:x,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:p,borderRadius:x,"+ li":{marginBlockStart:v}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${a}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},$de(e)),Tde(e)),Rde(e)),_de(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${a} > li, ${n}, ${o}, ${i}, ${s} - `]:Object.assign({},Ide(e))}}},Nde=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},uf=on("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Ft(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ode(r)]},Nde,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),kde=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(lt),c=s("skeleton",t),[u,d,p]=uf(c),g=Mn(e,["prefixCls","className"]),m=ae(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,p);return u(l.createElement("div",{className:m},l.createElement(oy,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},g))))},Ade=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(lt),c=s("skeleton",t),[u,d,p]=uf(c),g=Mn(e,["prefixCls"]),m=ae(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,p);return u(l.createElement("div",{className:m},l.createElement(oy,Object.assign({prefixCls:`${c}-button`,size:i},g))))},Mde="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",Dde=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=l.useContext(lt),s=i("skeleton",t),[c,u,d]=uf(s),p=ae(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(l.createElement("div",{className:p},l.createElement("div",{className:ae(`${s}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:Mde,className:`${s}-image-path`})))))},Pde=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=l.useContext(lt),c=s("skeleton",t),[u,d,p]=uf(c),g=Mn(e,["prefixCls"]),m=ae(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,p);return u(l.createElement("div",{className:m},l.createElement(oy,Object.assign({prefixCls:`${c}-input`,size:i},g))))},Lde=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:s}=l.useContext(lt),c=s("skeleton",t),[u,d,p]=uf(c),g=ae(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,p);return u(l.createElement("div",{className:g},l.createElement("div",{className:ae(`${c}-image`,n),style:a},i)))},jde=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Fde=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,o=Me(new Array(a)).map((i,s)=>l.createElement("li",{key:s,style:{width:jde(s,e)}}));return l.createElement("ul",{className:ae(t,n),style:r},o)},Bde=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return l.createElement("h3",{className:ae(t,n),style:Object.assign({width:r},a)})};function _S(e){return e&&typeof e=="object"?e:{}}function zde(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Hde(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Ude(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ul=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:g,direction:m,skeleton:h}=l.useContext(lt),b=g("skeleton",t),[x,S,v]=uf(b);if(n||!("loading"in e)){const y=!!s,C=!!c,w=!!u;let E;if(y){const R=Object.assign(Object.assign({prefixCls:`${b}-avatar`},zde(C,w)),_S(s));E=l.createElement("div",{className:`${b}-header`},l.createElement(oy,Object.assign({},R)))}let I;if(C||w){let R;if(C){const $=Object.assign(Object.assign({prefixCls:`${b}-title`},Hde(y,w)),_S(c));R=l.createElement(Bde,Object.assign({},$))}let _;if(w){const $=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},Ude(y,C)),_S(u));_=l.createElement(Fde,Object.assign({},$))}I=l.createElement("div",{className:`${b}-content`},R,_)}const T=ae(b,{[`${b}-with-avatar`]:y,[`${b}-active`]:d,[`${b}-rtl`]:m==="rtl",[`${b}-round`]:p},h==null?void 0:h.className,r,a,S,v);return x(l.createElement("div",{className:T,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,I))}return i??null};Ul.Button=Ade;Ul.Avatar=kde;Ul.Input=Pde;Ul.Image=Dde;Ul.Node=Lde;function jM(){}const Vde=l.createContext({add:jM,remove:jM});function RV(e){const t=l.useContext(Vde),n=l.useRef();return Gt(a=>{if(a){const o=e?a.querySelector(e):a;t.add(o),n.current=o}else t.remove(n.current)})}const FM=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(fm);return de.createElement(nt,Object.assign({onClick:n},e),t)},BM=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(fm);return de.createElement(nt,Object.assign({},tV(n),{loading:e,onClick:a},t),r)};function _V(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(pa,{className:`${e}-close-icon`}))}const $V=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=es("Modal",pU()),p=t||(d==null?void 0:d.okText),g=r||(d==null?void 0:d.cancelText),m={confirmLoading:a,okButtonProps:s,cancelButtonProps:c,okTextLocale:p,cancelTextLocale:g,okType:n,onOk:o,onCancel:i},h=de.useMemo(()=>m,Me(Object.values(m)));let b;return typeof u=="function"||typeof u>"u"?(b=de.createElement(de.Fragment,null,de.createElement(FM,null),de.createElement(BM,null)),typeof u=="function"&&(b=u(b,{OkBtn:BM,CancelBtn:FM})),b=de.createElement(cV,{value:h},b)):b=u,de.createElement(EO,{disabled:!1},b)};function zM(e){return{position:e,inset:0}}const OV=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},zM("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},zM("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:kO(e)}]},Wde=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${G(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},an(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${G(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:G(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ni(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${G(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:Object.assign({},Ide(e))}}},Nde=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},uf=on("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Bt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ode(r)]},Nde,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),kde=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(ut),c=s("skeleton",t),[u,d,p]=uf(c),g=Mn(e,["prefixCls","className"]),m=oe(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,p);return u(l.createElement("div",{className:m},l.createElement(sy,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},g))))},Ade=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(ut),c=s("skeleton",t),[u,d,p]=uf(c),g=Mn(e,["prefixCls"]),m=oe(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,p);return u(l.createElement("div",{className:m},l.createElement(sy,Object.assign({prefixCls:`${c}-button`,size:i},g))))},Mde="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",Dde=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=l.useContext(ut),s=i("skeleton",t),[c,u,d]=uf(s),p=oe(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(l.createElement("div",{className:p},l.createElement("div",{className:oe(`${s}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:Mde,className:`${s}-image-path`})))))},Pde=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=l.useContext(ut),c=s("skeleton",t),[u,d,p]=uf(c),g=Mn(e,["prefixCls"]),m=oe(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,p);return u(l.createElement("div",{className:m},l.createElement(sy,Object.assign({prefixCls:`${c}-input`,size:i},g))))},Lde=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:s}=l.useContext(ut),c=s("skeleton",t),[u,d,p]=uf(c),g=oe(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,p);return u(l.createElement("div",{className:g},l.createElement("div",{className:oe(`${c}-image`,n),style:a},i)))},jde=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Fde=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,o=De(new Array(a)).map((i,s)=>l.createElement("li",{key:s,style:{width:jde(s,e)}}));return l.createElement("ul",{className:oe(t,n),style:r},o)},Bde=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return l.createElement("h3",{className:oe(t,n),style:Object.assign({width:r},a)})};function OS(e){return e&&typeof e=="object"?e:{}}function zde(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Hde(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Ude(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ul=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:p}=e,{getPrefixCls:g,direction:m,skeleton:h}=l.useContext(ut),b=g("skeleton",t),[x,S,v]=uf(b);if(n||!("loading"in e)){const y=!!s,w=!!c,C=!!u;let E;if(y){const R=Object.assign(Object.assign({prefixCls:`${b}-avatar`},zde(w,C)),OS(s));E=l.createElement("div",{className:`${b}-header`},l.createElement(sy,Object.assign({},R)))}let I;if(w||C){let R;if(w){const $=Object.assign(Object.assign({prefixCls:`${b}-title`},Hde(y,C)),OS(c));R=l.createElement(Bde,Object.assign({},$))}let _;if(C){const $=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},Ude(y,w)),OS(u));_=l.createElement(Fde,Object.assign({},$))}I=l.createElement("div",{className:`${b}-content`},R,_)}const T=oe(b,{[`${b}-with-avatar`]:y,[`${b}-active`]:d,[`${b}-rtl`]:m==="rtl",[`${b}-round`]:p},h==null?void 0:h.className,r,a,S,v);return x(l.createElement("div",{className:T,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,I))}return i??null};Ul.Button=Ade;Ul.Avatar=kde;Ul.Input=Pde;Ul.Image=Dde;Ul.Node=Lde;function jM(){}const Vde=l.createContext({add:jM,remove:jM});function RV(e){const t=l.useContext(Vde),n=l.useRef();return qt(a=>{if(a){const o=e?a.querySelector(e):a;t.add(o),n.current=o}else t.remove(n.current)})}const FM=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(pm);return de.createElement(tt,Object.assign({onClick:n},e),t)},BM=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(pm);return de.createElement(tt,Object.assign({},tV(n),{loading:e,onClick:a},t),r)};function _V(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(ga,{className:`${e}-close-icon`}))}const $V=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=ns("Modal",pU()),p=t||(d==null?void 0:d.okText),g=r||(d==null?void 0:d.cancelText),m={confirmLoading:a,okButtonProps:s,cancelButtonProps:c,okTextLocale:p,cancelTextLocale:g,okType:n,onOk:o,onCancel:i},h=de.useMemo(()=>m,De(Object.values(m)));let b;return typeof u=="function"||typeof u>"u"?(b=de.createElement(de.Fragment,null,de.createElement(FM,null),de.createElement(BM,null)),typeof u=="function"&&(b=u(b,{OkBtn:BM,CancelBtn:FM})),b=de.createElement(cV,{value:h},b)):b=u,de.createElement(EO,{disabled:!1},b)};function zM(e){return{position:e,inset:0}}const OV=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},zM("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},zM("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:kO(e)}]},Wde=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${G(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},an(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${G(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:G(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},ri(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${G(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Gde=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},NV=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Ft(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},kV=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${G(e.padding)} ${G(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${G(e.paddingXS)} ${G(e.padding)}`:0,footerBorderTop:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${G(e.padding*2)} ${G(e.padding*2)} ${G(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),AV=on("Modal",e=>{const t=NV(e);return[Wde(t),Gde(t),OV(t),lf(t,"zoom")]},kV,{unitless:{titleLineHeight:!0}});var qde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{qR={x:e.pageX,y:e.pageY},setTimeout(()=>{qR=null},100)};wde()&&document.documentElement.addEventListener("click",Kde,!0);const MV=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:o}=l.useContext(lt),i=z=>{const{onCancel:U}=e;U==null||U(z)},s=z=>{const{onOk:U}=e;U==null||U(z)},{prefixCls:c,className:u,rootClassName:d,open:p,wrapClassName:g,centered:m,getContainer:h,focusTriggerAfterClose:b=!0,style:x,visible:S,width:v=520,footer:y,classNames:C,styles:w,children:E,loading:I}=e,T=qde(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),R=r("modal",c),_=r(),$=ar(R),[M,P,D]=AV(R,$),O=ae(g,{[`${R}-centered`]:!!m,[`${R}-wrap-rtl`]:a==="rtl"}),k=y!==null&&!I?l.createElement($V,Object.assign({},e,{onOk:s,onCancel:i})):null,[N,A,L]=WO(Pd(e),Pd(o),{closable:!0,closeIcon:l.createElement(pa,{className:`${R}-close-icon`}),closeIconRender:z=>_V(R,z)}),j=RV(`.${R}-content`),[F,B]=Ai("Modal",T.zIndex);return M(l.createElement(Ji,{form:!0,space:!0},l.createElement(sm.Provider,{value:B},l.createElement(BO,Object.assign({width:v},T,{zIndex:F,getContainer:h===void 0?n:h,prefixCls:R,rootClassName:ae(P,d,D,$),footer:k,visible:p??S,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:qR,onClose:i,closable:N&&{disabled:L,closeIcon:A},closeIcon:A,focusTriggerAfterClose:b,transitionName:Da(_,"zoom",e.transitionName),maskTransitionName:Da(_,"fade",e.maskTransitionName),className:ae(P,u,o==null?void 0:o.className),style:Object.assign(Object.assign({},o==null?void 0:o.style),x),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),C),{wrapper:ae(O,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),w),panelRef:j}),I?l.createElement(Ul,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):E))))},Yde=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},_i()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${G(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Xde=Qc(["Modal","confirm"],e=>{const t=NV(e);return[Yde(t)]},kV,{order:-1e3});var Zde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);av,Me(Object.values(v))),C=l.createElement(l.Fragment,null,l.createElement(mM,null),l.createElement(hM,null)),w=e.title!==void 0&&e.title!==null,E=`${o}-body`;return l.createElement("div",{className:`${o}-body-wrapper`},l.createElement("div",{className:ae(E,{[`${E}-has-title`]:w})},p,l.createElement("div",{className:`${o}-paragraph`},w&&l.createElement("span",{className:`${o}-title`},e.title),l.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(cV,{value:y},l.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(C,{OkBtn:hM,CancelBtn:mM}):C)):c,l.createElement(Xde,{prefixCls:t}))}const Qde=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:o,centered:i,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:g,bodyStyle:m,closable:h=!1,closeIcon:b,modalRender:x,focusTriggerAfterClose:S,onConfirm:v,styles:y}=e,C=`${d}-confirm`,w=e.width||416,E=e.style||{},I=e.mask===void 0?!0:e.mask,T=e.maskClosable===void 0?!1:e.maskClosable,R=ae(C,`${C}-${e.type}`,{[`${C}-rtl`]:u==="rtl"},e.className),[,_]=ta(),$=l.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+YU,[n,_]);return l.createElement(MV,{prefixCls:d,className:R,wrapClassName:ae({[`${C}-centered`]:!!e.centered},p),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},open:a,title:"",footer:null,transitionName:Da(g||"","zoom",e.transitionName),maskTransitionName:Da(g||"","fade",e.maskTransitionName),mask:I,maskClosable:T,style:E,styles:Object.assign({body:m,mask:c},y),width:w,zIndex:$,afterClose:r,keyboard:o,centered:i,getContainer:s,closable:h,closeIcon:b,modalRender:x,focusTriggerAfterClose:S},l.createElement(DV,Object.assign({},e,{confirmPrefixCls:C})))},PV=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(ki,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(Qde,Object.assign({},e)))},pc=[];let LV="";function jV(){return LV}const Jde=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=pU(),s=l.useContext(lt),c=jV()||s.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),de.createElement(PV,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function mm(e){const t=BU(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),a;function o(){for(var u,d=arguments.length,p=new Array(d),g=0;gb==null?void 0:b.triggerCancel)){var h;(u=e.onCancel)===null||u===void 0||(h=u).call.apply(h,[e,()=>{}].concat(Me(p.slice(1))))}for(let b=0;b{const d=t.getPrefixCls(void 0,jV()),p=t.getIconPrefixCls(),g=t.getTheme(),m=de.createElement(Jde,Object.assign({},u));OO(de.createElement(ki,{prefixCls:d,iconPrefixCls:p,theme:g},t.holderRender?t.holderRender(m):m),n)})}function s(){for(var u=arguments.length,d=new Array(u),p=0;p{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),pc.push(s),{destroy:s,update:c}}function FV(e){return Object.assign(Object.assign({},e),{type:"warning"})}function BV(e){return Object.assign(Object.assign({},e),{type:"info"})}function zV(e){return Object.assign(Object.assign({},e),{type:"success"})}function HV(e){return Object.assign(Object.assign({},e),{type:"error"})}function UV(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function efe(e){let{rootPrefixCls:t}=e;LV=t}var tfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=tfe(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(a),{direction:d,getPrefixCls:p}=l.useContext(lt),g=p("modal"),m=p(),h=()=>{var v;r(),(v=c.afterClose)===null||v===void 0||v.call(c)},b=function(){var v;s(!1);for(var y=arguments.length,C=new Array(y),w=0;wT==null?void 0:T.triggerCancel)){var I;(v=c.onCancel)===null||v===void 0||(I=v).call.apply(I,[c,()=>{}].concat(Me(C.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:b,update:v=>{u(y=>Object.assign(Object.assign({},y),v))}}));const x=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=es("Modal",ti.Modal);return l.createElement(PV,Object.assign({prefixCls:g,rootPrefixCls:m},c,{close:b,open:i,afterClose:h,okText:c.okText||(x?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||d,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},o))},rfe=l.forwardRef(nfe);let HM=0;const afe=l.memo(l.forwardRef((e,t)=>{const[n,r]=hle();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function ofe(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(Me(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(o=>function(s){var c;HM+=1;const u=l.createRef();let d;const p=new Promise(x=>{d=x});let g=!1,m;const h=l.createElement(rfe,{key:`modal-${HM}`,config:o(s),ref:u,afterClose:()=>{m==null||m()},isSilent:()=>g,onConfirm:x=>{d(x)}});return m=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),m&&pc.push(m),{destroy:()=>{function x(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?x():n(S=>[].concat(Me(S),[x]))},update:x=>{function S(){var v;(v=u.current)===null||v===void 0||v.update(x)}u.current?S():n(v=>[].concat(Me(v),[S]))},then:x=>(g=!0,p.then(x))}},[]);return[l.useMemo(()=>({info:r(BV),success:r(zV),error:r(HV),warning:r(FV),confirm:r(UV)}),[]),l.createElement(afe,{key:"modal-holder",ref:e})]}const ife=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,o=new en("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new en("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new en("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new en("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},sfe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],lfe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},cfe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[lfe[t]]:{value:0,_skip_check_:!0}}}}},ufe=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},dfe=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},ufe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},dfe(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},sfe.map(n=>cfe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},VV=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:o,borderRadiusLG:i,colorSuccess:s,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:p,notificationBg:g,notificationPadding:m,notificationMarginEdge:h,notificationProgressBg:b,notificationProgressHeight:x,fontSize:S,lineHeight:v,width:y,notificationIconSize:C,colorText:w}=e,E=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:g,borderRadius:i,boxShadow:r,[E]:{padding:m,width:y,maxWidth:`calc(100vw - ${G(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:v,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:p,fontSize:a,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:S,color:w},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:a},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:S},[`${E}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},ni(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${G(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:x,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:i,background:b}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},pfe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:o}=e,i=`${t}-notice`,s=new en("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},an(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},VV(e))}}]},WV=e=>({zIndexPopup:e.zIndexPopupBase+YU+50,width:384}),GV=e=>{const t=e.paddingMD,n=e.paddingLG;return Ft(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},qV=on("Notification",e=>{const t=GV(e);return[pfe(t),ife(t),ffe(t)]},WV),gfe=Qc(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=GV(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},VV(n)),{width:n.width,maxWidth:`calc(100vw - ${G(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},WV);var mfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,type:r,message:a,description:o,btn:i,role:s="alert"}=e;let c=null;return n?c=l.createElement("span",{className:`${t}-icon`},n):r&&(c=l.createElement(hfe[r]||null,{className:ae(`${t}-icon`,`${t}-icon-${r}`)})),l.createElement("div",{className:ae({[`${t}-with-icon`]:c}),role:s},c,l.createElement("div",{className:`${t}-message`},a),l.createElement("div",{className:`${t}-description`},o),i&&l.createElement("div",{className:`${t}-btn`},i))},vfe=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:o,description:i,btn:s,closable:c=!0,closeIcon:u,className:d}=e,p=mfe(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:g}=l.useContext(lt),m=t||g("notification"),h=`${m}-notice`,b=ar(m),[x,S,v]=qV(m,b);return x(l.createElement("div",{className:ae(`${h}-pure-panel`,S,n,v,b)},l.createElement(gfe,{prefixCls:m}),l.createElement(qU,Object.assign({},p,{prefixCls:m,eventKey:"pure",duration:null,closable:c,className:ae({notificationClassName:d}),closeIcon:GO(m,u),content:l.createElement(KV,{prefixCls:h,icon:r,type:a,message:o,description:i,btn:s})}))))};function bfe(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function yfe(e){return{motionName:`${e}-fade`}}var xfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=ar(n),[a,o,i]=qV(n,r);return a(de.createElement(nle,{classNames:{list:ae(o,i,r)}},t))},Efe=(e,t)=>{let{prefixCls:n,key:r}=t;return de.createElement(wfe,{prefixCls:n,key:r},e)},Ife=de.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:i,rtl:s,onAllRemoved:c,stack:u,duration:d,pauseOnHover:p=!0,showProgress:g}=e,{getPrefixCls:m,getPopupContainer:h,notification:b,direction:x}=l.useContext(lt),[,S]=ta(),v=a||m("notification"),y=T=>bfe(T,n??UM,r??UM),C=()=>ae({[`${v}-rtl`]:s??x==="rtl"}),w=()=>yfe(v),[E,I]=ule({prefixCls:v,style:y,className:C,motion:w,closable:!0,closeIcon:GO(v),duration:d??Sfe,getContainer:()=>(o==null?void 0:o())||(h==null?void 0:h())||document.body,maxCount:i,pauseOnHover:p,showProgress:g,onAllRemoved:c,renderNotifications:Efe,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:S.margin}});return de.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:v,notification:b})),I});function YV(e){const t=de.useRef(null);return zl(),[de.useMemo(()=>{const r=s=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:p}=t.current,g=`${d}-notice`,{message:m,description:h,icon:b,type:x,btn:S,className:v,style:y,role:C="alert",closeIcon:w,closable:E}=s,I=xfe(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=GO(g,typeof w<"u"?w:p==null?void 0:p.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:Cfe},I),{content:de.createElement(KV,{prefixCls:g,icon:b,type:x,message:m,description:h,btn:S,role:C}),className:ae(x&&`${g}-${x}`,v,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),y),closeIcon:T,closable:E??!!T}))},o={open:r,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=c=>r(Object.assign(Object.assign({},c),{type:s}))}),o},[]),de.createElement(Ife,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Tfe(e){return YV(e)}const Rfe=de.createContext({});function XV(e){return t=>l.createElement(ki,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const hm=(e,t,n,r)=>XV(o=>{const{prefixCls:i,style:s}=o,c=l.useRef(null),[u,d]=l.useState(0),[p,g]=l.useState(0),[m,h]=fn(!1,{value:o.open}),{getPrefixCls:b}=l.useContext(lt),x=b(t||"select",i);l.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(w=>{const E=w[0].target;d(E.offsetHeight+8),g(E.offsetWidth)}),C=setInterval(()=>{var w;const E=n?`.${n(x)}`:`.${x}-dropdown`,I=(w=c.current)===null||w===void 0?void 0:w.querySelector(E);I&&(clearInterval(C),y.observe(I))},10);return()=>{clearInterval(C),y.disconnect()}}},[]);let S=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});r&&(S=r(S));const v={paddingBottom:u,position:"relative",minWidth:p};return l.createElement("div",{ref:c,style:v},l.createElement(e,Object.assign({},S)))}),sy=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=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(e)||/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(e==null?void 0:e.substr(0,4))};var ly=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:ae(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},_fe=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=de.useMemo(function(){if(mt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=de.useMemo(function(){return!!(!i&&a&&(r.length||s)&&!(c==="combobox"&&s===""))},[a,i,r.length,s,c]);return{allowClear:d,clearIcon:de.createElement(ly,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},ZV=l.createContext(null);function QV(){return l.useContext(ZV)}function $fe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=le(t,2),r=n[0],a=n[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,s,i]}function JV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Ofe(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(i){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Nfe(e){return![ze.ESC,ze.SHIFT,ze.BACKSPACE,ze.TAB,ze.WIN_KEY,ze.ALT,ze.META,ze.WIN_KEY_RIGHT,ze.CTRL,ze.SEMICOLON,ze.EQUALS,ze.CAPS_LOCK,ze.CONTEXT_MENU,ze.F1,ze.F2,ze.F3,ze.F4,ze.F5,ze.F6,ze.F7,ze.F8,ze.F9,ze.F10,ze.F11,ze.F12].includes(e)}var kfe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Su=void 0;function Afe(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,p=e.style,g=e.children,m=e.display,h=e.order,b=e.component,x=b===void 0?"div":b,S=wt(e,kfe),v=i&&!m;function y(T){c(u,T)}l.useEffect(function(){return function(){y(null)}},[]);var C=o&&a!==Su?o(a):g,w;r||(w={opacity:v?0:1,height:v?0:Su,overflowY:v?"hidden":Su,order:i?h:Su,pointerEvents:v?"none":Su,position:v?"absolute":Su});var E={};v&&(E["aria-hidden"]=!0);var I=l.createElement(x,he({className:ae(!r&&n,d),style:X(X({},w),p)},E,S,{ref:t}),C);return i&&(I=l.createElement(Sa,{onResize:function(R){var _=R.offsetWidth;y(_)},disabled:s},I)),I}var Pp=l.forwardRef(Afe);Pp.displayName="Item";function Mfe(e){if(typeof MessageChannel>"u")Ht(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Dfe(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Mfe(function(){Kr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Gf(e,t){var n=l.useState(t),r=le(n,2),a=r[0],o=r[1],i=Gt(function(s){e(function(){o(s)})});return[a,i]}var Db=de.createContext(null),Pfe=["component"],Lfe=["className"],jfe=["className"],Ffe=function(t,n){var r=l.useContext(Db);if(!r){var a=t.component,o=a===void 0?"div":a,i=wt(t,Pfe);return l.createElement(o,he({},i,{ref:n}))}var s=r.className,c=wt(r,Lfe),u=t.className,d=wt(t,jfe);return l.createElement(Db.Provider,{value:null},l.createElement(Pp,he({ref:n,className:ae(s,u)},c,d)))},eW=l.forwardRef(Ffe);eW.displayName="RawItem";var Bfe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],tW="responsive",nW="invalidate";function zfe(e){return"+ ".concat(e.length," ...")}function Hfe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,p=e.ssr,g=e.style,m=e.className,h=e.maxCount,b=e.renderRest,x=e.renderRawRest,S=e.suffix,v=e.component,y=v===void 0?"div":v,C=e.itemComponent,w=e.onVisibleChange,E=wt(e,Bfe),I=p==="full",T=Dfe(),R=Gf(T,null),_=le(R,2),$=_[0],M=_[1],P=$||0,D=Gf(T,new Map),O=le(D,2),k=O[0],N=O[1],A=Gf(T,0),L=le(A,2),j=L[0],F=L[1],B=Gf(T,0),z=le(B,2),U=z[0],H=z[1],Y=Gf(T,0),K=le(Y,2),J=K[0],ne=K[1],W=l.useState(null),q=le(W,2),Z=q[0],Q=q[1],ee=l.useState(null),oe=le(ee,2),se=oe[0],fe=oe[1],te=l.useMemo(function(){return se===null&&I?Number.MAX_SAFE_INTEGER:se||0},[se,$]),ie=l.useState(!1),pe=le(ie,2),me=pe[0],re=pe[1],ce="".concat(r,"-item"),ge=Math.max(j,U),ye=h===tW,Ee=o.length&&ye,Ne=h===nW,_e=Ee||typeof h=="number"&&o.length>h,Pe=l.useMemo(function(){var ke=o;return Ee?$===null&&I?ke=o:ke=o.slice(0,Math.min(o.length,P/d)):typeof h=="number"&&(ke=o.slice(0,h)),ke},[o,d,$,h,Ee]),Le=l.useMemo(function(){return Ee?o.slice(te+1):o.slice(Pe.length)},[o,Pe,Ee,te]),Ve=l.useCallback(function(ke,Ae){var Ue;return typeof c=="function"?c(ke):(Ue=c&&(ke==null?void 0:ke[c]))!==null&&Ue!==void 0?Ue:Ae},[c]),je=l.useCallback(i||function(ke){return ke},[i]);function De(ke,Ae,Ue){se===ke&&(Ae===void 0||Ae===Z)||(fe(ke),Ue||(re(keP){De(ct-1,ke-rt-J+U);break}}S&&xe(0)+J>P&&Q(null)}},[P,k,U,J,Ve,Pe]);var $e=me&&!!Le.length,Fe={};Z!==null&&Ee&&(Fe={position:"absolute",left:Z,top:0});var be={prefixCls:ce,responsive:Ee,component:C,invalidate:Ne},ue=s?function(ke,Ae){var Ue=Ve(ke,Ae);return l.createElement(Db.Provider,{key:Ue,value:X(X({},be),{},{order:Ae,item:ke,itemKey:Ue,registerSize:Oe,display:Ae<=te})},s(ke,Ae))}:function(ke,Ae){var Ue=Ve(ke,Ae);return l.createElement(Pp,he({},be,{order:Ae,key:Ue,item:ke,renderItem:je,itemKey:Ue,registerSize:Oe,display:Ae<=te}))},Ie,We={order:$e?te:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:Re,display:$e};if(x)x&&(Ie=l.createElement(Db.Provider,{value:X(X({},be),We)},x(Le)));else{var He=b||zfe;Ie=l.createElement(Pp,he({},be,We),typeof He=="function"?He(Le):He)}var Be=l.createElement(y,he({className:ae(!Ne&&r,m),style:g,ref:t},E),Pe.map(ue),_e?Ie:null,S&&l.createElement(Pp,he({},be,{responsive:ye,responsiveDisabled:!Ee,order:te,className:"".concat(ce,"-suffix"),registerSize:Ce,display:!0,style:Fe}),S));return ye&&(Be=l.createElement(Sa,{onResize:Se,disabled:!Ee},Be)),Be}var Ei=l.forwardRef(Hfe);Ei.displayName="Overflow";Ei.Item=eW;Ei.RESPONSIVE=tW;Ei.INVALIDATE=nW;var Ufe=function(t,n){var r,a=t.prefixCls,o=t.id,i=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,p=t.editable,g=t.activeDescendantId,m=t.value,h=t.maxLength,b=t.onKeyDown,x=t.onMouseDown,S=t.onChange,v=t.onPaste,y=t.onCompositionStart,C=t.onCompositionEnd,w=t.open,E=t.attrs,I=i||l.createElement("input",null),T=I,R=T.ref,_=T.props,$=_.onKeyDown,M=_.onChange,P=_.onMouseDown,D=_.onCompositionStart,O=_.onCompositionEnd,k=_.style;return"maxLength"in I.props,I=l.cloneElement(I,X(X(X({type:"search"},_),{},{id:o,ref:ga(n,R),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:ae("".concat(a,"-selection-search-input"),(r=I)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?g:void 0},E),{},{value:p?m:"",maxLength:h,readOnly:!p,unselectable:p?null:"on",style:X(X({},k),{},{opacity:p?null:0}),onKeyDown:function(A){b(A),$&&$(A)},onMouseDown:function(A){x(A),P&&P(A)},onChange:function(A){S(A),M&&M(A)},onCompositionStart:function(A){y(A),D&&D(A)},onCompositionEnd:function(A){C(A),O&&O(A)},onPaste:v})),I},rW=l.forwardRef(Ufe);function aW(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Vfe=typeof window<"u"&&window.document&&window.document.documentElement,Wfe=Vfe;function Gfe(e){return e!=null}function qfe(e){return!e&&e!==0}function VM(e){return["string","number"].includes(mt(e))}function oW(e){var t=void 0;return e&&(VM(e.title)?t=e.title.toString():VM(e.label)&&(t=e.label.toString())),t}function Kfe(e,t){Wfe?l.useLayoutEffect(e,t):l.useEffect(e,t)}function Yfe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var WM=function(t){t.preventDefault(),t.stopPropagation()},Xfe=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,p=t.mode,g=t.showSearch,m=t.autoFocus,h=t.autoComplete,b=t.activeDescendantId,x=t.tabIndex,S=t.removeIcon,v=t.maxTagCount,y=t.maxTagTextLength,C=t.maxTagPlaceholder,w=C===void 0?function(Q){return"+ ".concat(Q.length," ...")}:C,E=t.tagRender,I=t.onToggleOpen,T=t.onRemove,R=t.onInputChange,_=t.onInputPaste,$=t.onInputKeyDown,M=t.onInputMouseDown,P=t.onInputCompositionStart,D=t.onInputCompositionEnd,O=l.useRef(null),k=l.useState(0),N=le(k,2),A=N[0],L=N[1],j=l.useState(!1),F=le(j,2),B=F[0],z=F[1],U="".concat(r,"-selection"),H=o||p==="multiple"&&s===!1||p==="tags"?i:"",Y=p==="tags"||p==="multiple"&&s===!1||g&&(o||B);Kfe(function(){L(O.current.scrollWidth)},[H]);var K=function(ee,oe,se,fe,te){return l.createElement("span",{title:oW(ee),className:ae("".concat(U,"-item"),V({},"".concat(U,"-item-disabled"),se))},l.createElement("span",{className:"".concat(U,"-item-content")},oe),fe&&l.createElement(ly,{className:"".concat(U,"-item-remove"),onMouseDown:WM,onClick:te,customizeIcon:S},"×"))},J=function(ee,oe,se,fe,te,ie){var pe=function(re){WM(re),I(!o)};return l.createElement("span",{onMouseDown:pe},E({label:oe,value:ee,disabled:se,closable:fe,onClose:te,isMaxTag:!!ie}))},ne=function(ee){var oe=ee.disabled,se=ee.label,fe=ee.value,te=!d&&!oe,ie=se;if(typeof y=="number"&&(typeof se=="string"||typeof se=="number")){var pe=String(ie);pe.length>y&&(ie="".concat(pe.slice(0,y),"..."))}var me=function(ce){ce&&ce.stopPropagation(),T(ee)};return typeof E=="function"?J(fe,ie,oe,te,me):K(ee,ie,oe,te,me)},W=function(ee){var oe=typeof w=="function"?w(ee):w;return typeof E=="function"?J(void 0,oe,!1,!1,void 0,!0):K({title:oe},oe,!1)},q=l.createElement("div",{className:"".concat(U,"-search"),style:{width:A},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},l.createElement(rW,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:m,autoComplete:h,editable:Y,activeDescendantId:b,value:H,onKeyDown:$,onMouseDown:M,onChange:R,onPaste:_,onCompositionStart:P,onCompositionEnd:D,tabIndex:x,attrs:ur(t,!0)}),l.createElement("span",{ref:O,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},H," ")),Z=l.createElement(Ei,{prefixCls:"".concat(U,"-overflow"),data:a,renderItem:ne,renderRest:W,suffix:q,itemKey:Yfe,maxCount:v});return l.createElement(l.Fragment,null,Z,!a.length&&!H&&l.createElement("span",{className:"".concat(U,"-placeholder")},u))},Zfe=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,p=t.open,g=t.values,m=t.placeholder,h=t.tabIndex,b=t.showSearch,x=t.searchValue,S=t.activeValue,v=t.maxLength,y=t.onInputKeyDown,C=t.onInputMouseDown,w=t.onInputChange,E=t.onInputPaste,I=t.onInputCompositionStart,T=t.onInputCompositionEnd,R=t.title,_=l.useState(!1),$=le(_,2),M=$[0],P=$[1],D=d==="combobox",O=D||b,k=g[0],N=x||"";D&&S&&!M&&(N=S),l.useEffect(function(){D&&P(!1)},[D,S]);var A=d!=="combobox"&&!p&&!b?!1:!!N,L=R===void 0?oW(k):R,j=l.useMemo(function(){return k?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},m)},[k,A,m,r]);return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(rW,{ref:o,prefixCls:r,id:a,open:p,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:O,activeDescendantId:u,value:N,onKeyDown:y,onMouseDown:C,onChange:function(B){P(!0),w(B)},onPaste:E,onCompositionStart:I,onCompositionEnd:T,tabIndex:h,attrs:ur(t,!0),maxLength:D?v:void 0})),!D&&k?l.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:A?{visibility:"hidden"}:void 0},k.label):null,j)},Qfe=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,p=t.autoClearSearchValue,g=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,b=t.onInputKeyDown,x=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(A){r.current.focus(A)},blur:function(){r.current.blur()}}});var S=JV(0),v=le(S,2),y=v[0],C=v[1],w=function(A){var L=A.which;(L===ze.UP||L===ze.DOWN)&&A.preventDefault(),b&&b(A),L===ze.ENTER&&s==="tags"&&!a.current&&!i&&(m==null||m(A.target.value)),Nfe(L)&&h(!0)},E=function(){C(!0)},I=l.useRef(null),T=function(A){g(A,!0,a.current)!==!1&&h(!0)},R=function(){a.current=!0},_=function(A){a.current=!1,s!=="combobox"&&T(A.target.value)},$=function(A){var L=A.target.value;if(u&&I.current&&/[\r\n]/.test(I.current)){var j=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(j,I.current)}I.current=null,T(L)},M=function(A){var L=A.clipboardData,j=L==null?void 0:L.getData("text");I.current=j||""},P=function(A){var L=A.target;if(L!==r.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){r.current.focus()}):r.current.focus()}},D=function(A){var L=y();A.target!==r.current&&!L&&!(s==="combobox"&&d)&&A.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&p!==!1&&g("",!0,!1),h())},O={inputRef:r,onInputKeyDown:w,onInputMouseDown:E,onInputChange:$,onInputPaste:M,onInputCompositionStart:R,onInputCompositionEnd:_},k=s==="multiple"||s==="tags"?l.createElement(Xfe,he({},t,O)):l.createElement(Zfe,he({},t,O));return l.createElement("div",{ref:x,className:"".concat(o,"-selector"),onClick:P,onMouseDown:D},k)},Jfe=l.forwardRef(Qfe);function epe(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,s=o.content,c=a.x,u=c===void 0?0:c,d=a.y,p=d===void 0?0:d,g=l.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],x=h[0],S=h[1],v=b[0],y=b[1];x===v||!["t","b"].includes(x)?m.top=p:x==="t"?m.top=0:m.bottom=0,S===y||!["l","r"].includes(S)?m.left=u:S==="l"?m.left=0:m.right=0}return l.createElement("div",{ref:g,className:ae("".concat(t,"-arrow"),i),style:m},s)}function tpe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(Qr,he({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:ae("".concat(t,"-mask"),s)})}):null}var npe=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),rpe=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,p=e.onClick,g=e.mask,m=e.arrow,h=e.arrowPos,b=e.align,x=e.motion,S=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,C=e.autoDestroy,w=e.portal,E=e.zIndex,I=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,_=e.ready,$=e.offsetX,M=e.offsetY,P=e.offsetR,D=e.offsetB,O=e.onAlign,k=e.onPrepare,N=e.stretch,A=e.targetWidth,L=e.targetHeight,j=typeof n=="function"?n():n,F=c||u,B=(y==null?void 0:y.length)>0,z=l.useState(!y||!B),U=le(z,2),H=U[0],Y=U[1];if(Yt(function(){!H&&B&&i&&Y(!0)},[H,B,i]),!H)return null;var K="auto",J={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(_||!c){var ne,W=b.points,q=b.dynamicInset||((ne=b._experimental)===null||ne===void 0?void 0:ne.dynamicInset),Z=q&&W[0][1]==="r",Q=q&&W[0][0]==="b";Z?(J.right=P,J.left=K):(J.left=$,J.right=K),Q?(J.bottom=D,J.top=K):(J.top=M,J.bottom=K)}var ee={};return N&&(N.includes("height")&&L?ee.height=L:N.includes("minHeight")&&L&&(ee.minHeight=L),N.includes("width")&&A?ee.width=A:N.includes("minWidth")&&A&&(ee.minWidth=A)),c||(ee.pointerEvents="none"),l.createElement(w,{open:v||F,getContainer:y&&function(){return y(i)},autoDestroy:C},l.createElement(tpe,{prefixCls:a,open:c,zIndex:E,mask:g,motion:S}),l.createElement(Sa,{onResize:O,disabled:!c},function(oe){return l.createElement(Qr,he({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(a,"-hidden")},x,{onAppearPrepare:k,onEnterPrepare:k,visible:c,onVisibleChanged:function(fe){var te;x==null||(te=x.onVisibleChanged)===null||te===void 0||te.call(x,fe),s(fe)}}),function(se,fe){var te=se.className,ie=se.style,pe=ae(a,te,r);return l.createElement("div",{ref:ga(oe,t,fe),className:pe,style:X(X(X(X({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),ee),ie),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:I,onMouseLeave:T,onPointerEnter:R,onClick:p},m&&l.createElement(epe,{prefixCls:a,arrow:m,arrowPos:h,align:b}),l.createElement(npe,{cache:!c&&!d},j))})}))}),ape=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Ri(n),o=l.useCallback(function(s){xg(t,r?r(s):s)},[r]),i=Ms(o,n.ref);return a?l.cloneElement(n,{ref:i}):n}),GM=l.createContext(null);function qM(e){return e?Array.isArray(e)?e:[e]:[]}function ope(e,t,n,r){return l.useMemo(function(){var a=qM(n??t),o=qM(r??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function ipe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function spe(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function qf(e){return kg(parseFloat(e),0)}function YM(e,t){var n=X({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=vm(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,p=r.getBoundingClientRect(),g=r.offsetHeight,m=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,x=qf(s),S=qf(c),v=qf(u),y=qf(d),C=kg(Math.round(p.width/h*1e3)/1e3),w=kg(Math.round(p.height/g*1e3)/1e3),E=(h-b-v-y)*C,I=(g-m-x-S)*w,T=x*w,R=S*w,_=v*C,$=y*C,M=0,P=0;if(o==="clip"){var D=qf(i);M=D*C,P=D*w}var O=p.x+_-M,k=p.y+T-P,N=O+p.width+2*M-_-$-E,A=k+p.height+2*P-T-R-I;n.left=Math.max(n.left,O),n.top=Math.max(n.top,k),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A)}}),n}function XM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function ZM(e,t){var n=t||[],r=le(n,2),a=r[0],o=r[1];return[XM(e.width,a),XM(e.height,o)]}function QM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Cu(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Us(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function lpe(e,t,n,r,a,o,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=le(s,2),u=c[0],d=c[1],p=l.useRef(0),g=l.useMemo(function(){return t?KR(t):[]},[t]),m=l.useRef({}),h=function(){m.current={}};e||h();var b=Gt(function(){if(t&&n&&e){let fr=function(Pa,La){var Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,pu=U.x+Pa,Bs=U.y+La,Pt=pu+Q,Xt=Bs+Z,or=Math.max(pu,Do.left),wr=Math.max(Bs,Do.top),ir=Math.min(Pt,Do.right),zs=Math.min(Xt,Do.bottom);return Math.max(0,(ir-or)*(zs-wr))},ha=function(){Ot=U.y+Ue,ht=Ot+Z,it=U.x+Ae,Et=it+Q};var Wn=fr,tr=ha,v,y,C,w,E=t,I=E.ownerDocument,T=vm(E),R=T.getComputedStyle(E),_=R.width,$=R.height,M=R.position,P=E.style.left,D=E.style.top,O=E.style.right,k=E.style.bottom,N=E.style.overflow,A=X(X({},a[r]),o),L=I.createElement("div");(v=E.parentElement)===null||v===void 0||v.appendChild(L),L.style.left="".concat(E.offsetLeft,"px"),L.style.top="".concat(E.offsetTop,"px"),L.style.position=M,L.style.height="".concat(E.offsetHeight,"px"),L.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var F,B,z=n.getBoundingClientRect();z.x=(F=z.x)!==null&&F!==void 0?F:z.left,z.y=(B=z.y)!==null&&B!==void 0?B:z.top,j={x:z.x,y:z.y,width:z.width,height:z.height}}var U=E.getBoundingClientRect();U.x=(y=U.x)!==null&&y!==void 0?y:U.left,U.y=(C=U.y)!==null&&C!==void 0?C:U.top;var H=I.documentElement,Y=H.clientWidth,K=H.clientHeight,J=H.scrollWidth,ne=H.scrollHeight,W=H.scrollTop,q=H.scrollLeft,Z=U.height,Q=U.width,ee=j.height,oe=j.width,se={left:0,top:0,right:Y,bottom:K},fe={left:-q,top:-W,right:J-q,bottom:ne-W},te=A.htmlRegion,ie="visible",pe="visibleFirst";te!=="scroll"&&te!==pe&&(te=ie);var me=te===pe,re=YM(fe,g),ce=YM(se,g),ge=te===ie?ce:re,ye=me?ce:ge;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ee=E.getBoundingClientRect();E.style.left=P,E.style.top=D,E.style.right=O,E.style.bottom=k,E.style.overflow=N,(w=E.parentElement)===null||w===void 0||w.removeChild(L);var Ne=kg(Math.round(Q/parseFloat(_)*1e3)/1e3),_e=kg(Math.round(Z/parseFloat($)*1e3)/1e3);if(Ne===0||_e===0||yg(n)&&!sf(n))return;var Pe=A.offset,Le=A.targetOffset,Ve=ZM(U,Pe),je=le(Ve,2),De=je[0],Se=je[1],Oe=ZM(j,Le),Re=le(Oe,2),Ce=Re[0],xe=Re[1];j.x-=Ce,j.y-=xe;var $e=A.points||[],Fe=le($e,2),be=Fe[0],ue=Fe[1],Ie=QM(ue),We=QM(be),He=Cu(j,Ie),Be=Cu(U,We),ke=X({},A),Ae=He.x-Be.x+De,Ue=He.y-Be.y+Se,ct=fr(Ae,Ue),rt=fr(Ae,Ue,ce),qe=Cu(j,["t","l"]),Ye=Cu(U,["t","l"]),at=Cu(j,["b","r"]),ut=Cu(U,["b","r"]),Ct=A.overflow||{},kt=Ct.adjustX,xt=Ct.adjustY,et=Ct.shiftX,tt=Ct.shiftY,bt=function(La){return typeof La=="boolean"?La:La>=0},Ot,ht,it,Et;ha();var Ze=bt(xt),st=We[0]===Ie[0];if(Ze&&We[0]==="t"&&(ht>ye.bottom||m.current.bt)){var ft=Ue;st?ft-=Z-ee:ft=qe.y-ut.y-Se;var Je=fr(Ae,ft),Xe=fr(Ae,ft,ce);Je>ct||Je===ct&&(!me||Xe>=rt)?(m.current.bt=!0,Ue=ft,Se=-Se,ke.points=[Us(We,0),Us(Ie,0)]):m.current.bt=!1}if(Ze&&We[0]==="b"&&(Otct||Mt===ct&&(!me||Ut>=rt)?(m.current.tb=!0,Ue=_t,Se=-Se,ke.points=[Us(We,0),Us(Ie,0)]):m.current.tb=!1}var mn=bt(kt),pn=We[1]===Ie[1];if(mn&&We[1]==="l"&&(Et>ye.right||m.current.rl)){var yt=Ae;pn?yt-=Q-oe:yt=qe.x-ut.x-De;var At=fr(yt,Ue),jt=fr(yt,Ue,ce);At>ct||At===ct&&(!me||jt>=rt)?(m.current.rl=!0,Ae=yt,De=-De,ke.points=[Us(We,1),Us(Ie,1)]):m.current.rl=!1}if(mn&&We[1]==="r"&&(itct||An===ct&&(!me||Or>=rt)?(m.current.lr=!0,Ae=tn,De=-De,ke.points=[Us(We,1),Us(Ie,1)]):m.current.lr=!1}ha();var En=et===!0?0:et;typeof En=="number"&&(itce.right&&(Ae-=Et-ce.right-De,j.x>ce.right-En&&(Ae+=j.x-ce.right+En)));var br=tt===!0?0:tt;typeof br=="number"&&(Otce.bottom&&(Ue-=ht-ce.bottom-Se,j.y>ce.bottom-br&&(Ue+=j.y-ce.bottom+br)));var na=U.x+Ae,jr=na+Q,Xn=U.y+Ue,Zt=Xn+Z,Rt=j.x,Bt=Rt+oe,zt=j.y,nn=zt+ee,It=Math.max(na,Rt),Dt=Math.min(jr,Bt),vn=(It+Dt)/2,zn=vn-na,Sr=Math.max(Xn,zt),Cr=Math.min(Zt,nn),Ar=(Sr+Cr)/2,qt=Ar-Xn;i==null||i(t,ke);var pt=Ee.right-U.x-(Ae+U.width),St=Ee.bottom-U.y-(Ue+U.height);Ne===1&&(Ae=Math.round(Ae),pt=Math.round(pt)),_e===1&&(Ue=Math.round(Ue),St=Math.round(St));var ln={ready:!0,offsetX:Ae/Ne,offsetY:Ue/_e,offsetR:pt/Ne,offsetB:St/_e,arrowX:zn/Ne,arrowY:qt/_e,scaleX:Ne,scaleY:_e,align:ke};d(ln)}}),x=function(){p.current+=1;var y=p.current;Promise.resolve().then(function(){p.current===y&&b()})},S=function(){d(function(y){return X(X({},y),{},{ready:!1})})};return Yt(S,[r]),Yt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,x]}function cpe(e,t,n,r,a){Yt(function(){if(e&&t&&n){let g=function(){r(),a()};var p=g,o=t,i=n,s=KR(o),c=KR(i),u=vm(i),d=new Set([u].concat(Me(s),Me(c)));return d.forEach(function(m){m.addEventListener("scroll",g,{passive:!0})}),u.addEventListener("resize",g,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",g),u.removeEventListener("resize",g)})}}},[e,t,n])}function upe(e,t,n,r,a,o,i,s){var c=l.useRef(e);c.current=e,l.useEffect(function(){if(t&&r&&(!a||o)){var u=function(m){var h;c.current&&!i(((h=m.composedPath)===null||h===void 0||(h=h.call(m))===null||h===void 0?void 0:h[0])||m.target)&&s(!1)},d=vm(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=Ab(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}},[t,n,r,a,o])}var dpe=["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 fpe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pm,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,p=n.popupVisible,g=n.defaultPopupVisible,m=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,x=n.mouseLeaveDelay,S=x===void 0?.1:x,v=n.focusDelay,y=n.blurDelay,C=n.mask,w=n.maskClosable,E=w===void 0?!0:w,I=n.getPopupContainer,T=n.forceRender,R=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,M=n.popupClassName,P=n.popupStyle,D=n.popupPlacement,O=n.builtinPlacements,k=O===void 0?{}:O,N=n.popupAlign,A=n.zIndex,L=n.stretch,j=n.getPopupClassNameFromAlign,F=n.fresh,B=n.alignPoint,z=n.onPopupClick,U=n.onPopupAlign,H=n.arrow,Y=n.popupMotion,K=n.maskMotion,J=n.popupTransitionName,ne=n.popupAnimation,W=n.maskTransitionName,q=n.maskAnimation,Z=n.className,Q=n.getTriggerDOMNode,ee=wt(n,dpe),oe=R||_||!1,se=l.useState(!1),fe=le(se,2),te=fe[0],ie=fe[1];Yt(function(){ie(sy())},[]);var pe=l.useRef({}),me=l.useContext(GM),re=l.useMemo(function(){return{registerSubPopup:function(Xt,or){pe.current[Xt]=or,me==null||me.registerSubPopup(Xt,or)}}},[me]),ce=pV(),ge=l.useState(null),ye=le(ge,2),Ee=ye[0],Ne=ye[1],_e=l.useRef(null),Pe=Gt(function(Pt){_e.current=Pt,yg(Pt)&&Ee!==Pt&&Ne(Pt),me==null||me.registerSubPopup(ce,Pt)}),Le=l.useState(null),Ve=le(Le,2),je=Ve[0],De=Ve[1],Se=l.useRef(null),Oe=Gt(function(Pt){yg(Pt)&&je!==Pt&&(De(Pt),Se.current=Pt)}),Re=l.Children.only(i),Ce=(Re==null?void 0:Re.props)||{},xe={},$e=Gt(function(Pt){var Xt,or,wr=je;return(wr==null?void 0:wr.contains(Pt))||((Xt=Ab(wr))===null||Xt===void 0?void 0:Xt.host)===Pt||Pt===wr||(Ee==null?void 0:Ee.contains(Pt))||((or=Ab(Ee))===null||or===void 0?void 0:or.host)===Pt||Pt===Ee||Object.values(pe.current).some(function(ir){return(ir==null?void 0:ir.contains(Pt))||Pt===ir})}),Fe=KM(o,Y,ne,J),be=KM(o,K,q,W),ue=l.useState(g||!1),Ie=le(ue,2),We=Ie[0],He=Ie[1],Be=p??We,ke=Gt(function(Pt){p===void 0&&He(Pt)});Yt(function(){He(p||!1)},[p]);var Ae=l.useRef(Be);Ae.current=Be;var Ue=l.useRef([]);Ue.current=[];var ct=Gt(function(Pt){var Xt;ke(Pt),((Xt=Ue.current[Ue.current.length-1])!==null&&Xt!==void 0?Xt:Be)!==Pt&&(Ue.current.push(Pt),m==null||m(Pt))}),rt=l.useRef(),qe=function(){clearTimeout(rt.current)},Ye=function(Xt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qe(),or===0?ct(Xt):rt.current=setTimeout(function(){ct(Xt)},or*1e3)};l.useEffect(function(){return qe},[]);var at=l.useState(!1),ut=le(at,2),Ct=ut[0],kt=ut[1];Yt(function(Pt){(!Pt||Be)&&kt(!0)},[Be]);var xt=l.useState(null),et=le(xt,2),tt=et[0],bt=et[1],Ot=l.useState(null),ht=le(Ot,2),it=ht[0],Et=ht[1],Ze=function(Xt){Et([Xt.clientX,Xt.clientY])},st=lpe(Be,Ee,B&&it!==null?it:je,D,k,N,U),ft=le(st,11),Je=ft[0],Xe=ft[1],_t=ft[2],Mt=ft[3],Ut=ft[4],mn=ft[5],pn=ft[6],yt=ft[7],At=ft[8],jt=ft[9],tn=ft[10],An=ope(te,c,u,d),Or=le(An,2),En=Or[0],br=Or[1],na=En.has("click"),jr=br.has("click")||br.has("contextMenu"),Xn=Gt(function(){Ct||tn()}),Zt=function(){Ae.current&&B&&jr&&Ye(!1)};cpe(Be,je,Ee,Xn,Zt),Yt(function(){Xn()},[it,D]),Yt(function(){Be&&!(k!=null&&k[D])&&Xn()},[JSON.stringify(N)]);var Rt=l.useMemo(function(){var Pt=spe(k,o,jt,B);return ae(Pt,j==null?void 0:j(jt))},[jt,j,k,o,B]);l.useImperativeHandle(r,function(){return{nativeElement:Se.current,popupElement:_e.current,forceAlign:Xn}});var Bt=l.useState(0),zt=le(Bt,2),nn=zt[0],It=zt[1],Dt=l.useState(0),vn=le(Dt,2),zn=vn[0],Sr=vn[1],Cr=function(){if(L&&je){var Xt=je.getBoundingClientRect();It(Xt.width),Sr(Xt.height)}},Ar=function(){Cr(),Xn()},qt=function(Xt){kt(!1),tn(),h==null||h(Xt)},pt=function(){return new Promise(function(Xt){Cr(),bt(function(){return Xt})})};Yt(function(){tt&&(tn(),tt(),bt(null))},[tt]);function St(Pt,Xt,or,wr){xe[Pt]=function(ir){var zs;wr==null||wr(ir),Ye(Xt,or);for(var kf=arguments.length,Xm=new Array(kf>1?kf-1:0),gu=1;gu1?or-1:0),ir=1;ir1?or-1:0),ir=1;ir1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=iW(n,!1),i=o.label,s=o.value,c=o.options,u=o.groupLabel;function d(p,g){Array.isArray(p)&&p.forEach(function(m){if(g||!(c in m)){var h=m[s];a.push({key:JM(m,a.length),groupOption:g,data:m,label:m[i],value:h})}else{var b=m[u];b===void 0&&r&&(b=m.label),a.push({key:JM(m,a.length),group:!0,data:m,label:b}),d(m[c],!0)}})}return d(e,!1),a}function XR(e){var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return _n(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var bpe=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function s(c,u){var d=lU(u),p=d[0],g=d.slice(1);if(!p)return[c];var m=c.split(p);return a=a||m.length>1,m.reduce(function(h,b){return[].concat(Me(h),Me(s(b,g)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},qO=l.createContext(null);function ype(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(mt(o))?o:i}).join(", ")),n.length>r?", ...":null)}var xpe=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Spe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ZR=function(t){return t==="tags"||t==="multiple"},sW=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,p=e.onDisplayValuesChange,g=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,b=e.onClear,x=e.mode,S=e.disabled,v=e.loading,y=e.getInputElement,C=e.getRawInputElement,w=e.open,E=e.defaultOpen,I=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,_=e.activeDescendantId,$=e.searchValue,M=e.autoClearSearchValue,P=e.onSearch,D=e.onSearchSplit,O=e.tokenSeparators,k=e.allowClear,N=e.suffixIcon,A=e.clearIcon,L=e.OptionList,j=e.animation,F=e.transitionName,B=e.dropdownStyle,z=e.dropdownClassName,U=e.dropdownMatchSelectWidth,H=e.dropdownRender,Y=e.dropdownAlign,K=e.placement,J=e.builtinPlacements,ne=e.getPopupContainer,W=e.showAction,q=W===void 0?[]:W,Z=e.onFocus,Q=e.onBlur,ee=e.onKeyUp,oe=e.onKeyDown,se=e.onMouseDown,fe=wt(e,xpe),te=ZR(x),ie=(i!==void 0?i:te)||x==="combobox",pe=X({},fe);Spe.forEach(function(Zt){delete pe[Zt]}),u==null||u.forEach(function(Zt){delete pe[Zt]});var me=l.useState(!1),re=le(me,2),ce=re[0],ge=re[1];l.useEffect(function(){ge(sy())},[]);var ye=l.useRef(null),Ee=l.useRef(null),Ne=l.useRef(null),_e=l.useRef(null),Pe=l.useRef(null),Le=l.useRef(!1),Ve=$fe(),je=le(Ve,3),De=je[0],Se=je[1],Oe=je[2];l.useImperativeHandle(t,function(){var Zt,Rt;return{focus:(Zt=_e.current)===null||Zt===void 0?void 0:Zt.focus,blur:(Rt=_e.current)===null||Rt===void 0?void 0:Rt.blur,scrollTo:function(zt){var nn;return(nn=Pe.current)===null||nn===void 0?void 0:nn.scrollTo(zt)},nativeElement:ye.current||Ee.current}});var Re=l.useMemo(function(){var Zt;if(x!=="combobox")return $;var Rt=(Zt=d[0])===null||Zt===void 0?void 0:Zt.value;return typeof Rt=="string"||typeof Rt=="number"?String(Rt):""},[$,x,d]),Ce=x==="combobox"&&typeof y=="function"&&y()||null,xe=typeof C=="function"&&C(),$e=Ms(Ee,xe==null||(n=xe.props)===null||n===void 0?void 0:n.ref),Fe=l.useState(!1),be=le(Fe,2),ue=be[0],Ie=be[1];Yt(function(){Ie(!0)},[]);var We=fn(!1,{defaultValue:E,value:w}),He=le(We,2),Be=He[0],ke=He[1],Ae=ue?Be:!1,Ue=!h&&g;(S||Ue&&Ae&&x==="combobox")&&(Ae=!1);var ct=Ue?!1:Ae,rt=l.useCallback(function(Zt){var Rt=Zt!==void 0?Zt:!Ae;S||(ke(Rt),Ae!==Rt&&(I==null||I(Rt)))},[S,Ae,ke,I]),qe=l.useMemo(function(){return(O||[]).some(function(Zt){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Gde=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},NV=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Bt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},kV=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${G(e.padding)} ${G(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${G(e.paddingXS)} ${G(e.padding)}`:0,footerBorderTop:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${G(e.padding*2)} ${G(e.padding*2)} ${G(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),AV=on("Modal",e=>{const t=NV(e);return[Wde(t),Gde(t),OV(t),lf(t,"zoom")]},kV,{unitless:{titleLineHeight:!0}});var qde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{KR={x:e.pageX,y:e.pageY},setTimeout(()=>{KR=null},100)};Cde()&&document.documentElement.addEventListener("click",Kde,!0);const MV=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:o}=l.useContext(ut),i=z=>{const{onCancel:U}=e;U==null||U(z)},s=z=>{const{onOk:U}=e;U==null||U(z)},{prefixCls:c,className:u,rootClassName:d,open:p,wrapClassName:g,centered:m,getContainer:h,focusTriggerAfterClose:b=!0,style:x,visible:S,width:v=520,footer:y,classNames:w,styles:C,children:E,loading:I}=e,T=qde(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),R=r("modal",c),_=r(),$=ar(R),[M,P,D]=AV(R,$),O=oe(g,{[`${R}-centered`]:!!m,[`${R}-wrap-rtl`]:a==="rtl"}),k=y!==null&&!I?l.createElement($V,Object.assign({},e,{onOk:s,onCancel:i})):null,[N,A,L]=WO(Pd(e),Pd(o),{closable:!0,closeIcon:l.createElement(ga,{className:`${R}-close-icon`}),closeIconRender:z=>_V(R,z)}),j=RV(`.${R}-content`),[F,B]=Mi("Modal",T.zIndex);return M(l.createElement(es,{form:!0,space:!0},l.createElement(lm.Provider,{value:B},l.createElement(BO,Object.assign({width:v},T,{zIndex:F,getContainer:h===void 0?n:h,prefixCls:R,rootClassName:oe(P,d,D,$),footer:k,visible:p??S,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:KR,onClose:i,closable:N&&{disabled:L,closeIcon:A},closeIcon:A,focusTriggerAfterClose:b,transitionName:Da(_,"zoom",e.transitionName),maskTransitionName:Da(_,"fade",e.maskTransitionName),className:oe(P,u,o==null?void 0:o.className),style:Object.assign(Object.assign({},o==null?void 0:o.style),x),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),w),{wrapper:oe(O,w==null?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),C),panelRef:j}),I?l.createElement(Ul,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):E))))},Yde=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},$i()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${G(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, + ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Xde=Qc(["Modal","confirm"],e=>{const t=NV(e);return[Yde(t)]},kV,{order:-1e3});var Zde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);av,De(Object.values(v))),w=l.createElement(l.Fragment,null,l.createElement(mM,null),l.createElement(hM,null)),C=e.title!==void 0&&e.title!==null,E=`${o}-body`;return l.createElement("div",{className:`${o}-body-wrapper`},l.createElement("div",{className:oe(E,{[`${E}-has-title`]:C})},p,l.createElement("div",{className:`${o}-paragraph`},C&&l.createElement("span",{className:`${o}-title`},e.title),l.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(cV,{value:y},l.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(w,{OkBtn:hM,CancelBtn:mM}):w)):c,l.createElement(Xde,{prefixCls:t}))}const Qde=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:o,centered:i,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:p,rootPrefixCls:g,bodyStyle:m,closable:h=!1,closeIcon:b,modalRender:x,focusTriggerAfterClose:S,onConfirm:v,styles:y}=e,w=`${d}-confirm`,C=e.width||416,E=e.style||{},I=e.mask===void 0?!0:e.mask,T=e.maskClosable===void 0?!1:e.maskClosable,R=oe(w,`${w}-${e.type}`,{[`${w}-rtl`]:u==="rtl"},e.className),[,_]=ta(),$=l.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+YU,[n,_]);return l.createElement(MV,{prefixCls:d,className:R,wrapClassName:oe({[`${w}-centered`]:!!e.centered},p),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},open:a,title:"",footer:null,transitionName:Da(g||"","zoom",e.transitionName),maskTransitionName:Da(g||"","fade",e.maskTransitionName),mask:I,maskClosable:T,style:E,styles:Object.assign({body:m,mask:c},y),width:C,zIndex:$,afterClose:r,keyboard:o,centered:i,getContainer:s,closable:h,closeIcon:b,modalRender:x,focusTriggerAfterClose:S},l.createElement(DV,Object.assign({},e,{confirmPrefixCls:w})))},PV=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(Ai,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(Qde,Object.assign({},e)))},pc=[];let LV="";function jV(){return LV}const Jde=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=pU(),s=l.useContext(ut),c=jV()||s.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),de.createElement(PV,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function hm(e){const t=BU(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),a;function o(){for(var u,d=arguments.length,p=new Array(d),g=0;gb==null?void 0:b.triggerCancel)){var h;(u=e.onCancel)===null||u===void 0||(h=u).call.apply(h,[e,()=>{}].concat(De(p.slice(1))))}for(let b=0;b{const d=t.getPrefixCls(void 0,jV()),p=t.getIconPrefixCls(),g=t.getTheme(),m=de.createElement(Jde,Object.assign({},u));OO(de.createElement(Ai,{prefixCls:d,iconPrefixCls:p,theme:g},t.holderRender?t.holderRender(m):m),n)})}function s(){for(var u=arguments.length,d=new Array(u),p=0;p{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),pc.push(s),{destroy:s,update:c}}function FV(e){return Object.assign(Object.assign({},e),{type:"warning"})}function BV(e){return Object.assign(Object.assign({},e),{type:"info"})}function zV(e){return Object.assign(Object.assign({},e),{type:"success"})}function HV(e){return Object.assign(Object.assign({},e),{type:"error"})}function UV(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function efe(e){let{rootPrefixCls:t}=e;LV=t}var tfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=tfe(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(a),{direction:d,getPrefixCls:p}=l.useContext(ut),g=p("modal"),m=p(),h=()=>{var v;r(),(v=c.afterClose)===null||v===void 0||v.call(c)},b=function(){var v;s(!1);for(var y=arguments.length,w=new Array(y),C=0;CT==null?void 0:T.triggerCancel)){var I;(v=c.onCancel)===null||v===void 0||(I=v).call.apply(I,[c,()=>{}].concat(De(w.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:b,update:v=>{u(y=>Object.assign(Object.assign({},y),v))}}));const x=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=ns("Modal",ni.Modal);return l.createElement(PV,Object.assign({prefixCls:g,rootPrefixCls:m},c,{close:b,open:i,afterClose:h,okText:c.okText||(x?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||d,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},o))},rfe=l.forwardRef(nfe);let HM=0;const afe=l.memo(l.forwardRef((e,t)=>{const[n,r]=hle();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function ofe(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(De(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(o=>function(s){var c;HM+=1;const u=l.createRef();let d;const p=new Promise(x=>{d=x});let g=!1,m;const h=l.createElement(rfe,{key:`modal-${HM}`,config:o(s),ref:u,afterClose:()=>{m==null||m()},isSilent:()=>g,onConfirm:x=>{d(x)}});return m=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),m&&pc.push(m),{destroy:()=>{function x(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?x():n(S=>[].concat(De(S),[x]))},update:x=>{function S(){var v;(v=u.current)===null||v===void 0||v.update(x)}u.current?S():n(v=>[].concat(De(v),[S]))},then:x=>(g=!0,p.then(x))}},[]);return[l.useMemo(()=>({info:r(BV),success:r(zV),error:r(HV),warning:r(FV),confirm:r(UV)}),[]),l.createElement(afe,{key:"modal-holder",ref:e})]}const ife=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,o=new en("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new en("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new en("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new en("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},sfe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],lfe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},cfe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[lfe[t]]:{value:0,_skip_check_:!0}}}}},ufe=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},dfe=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},ufe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},dfe(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},sfe.map(n=>cfe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},VV=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:o,borderRadiusLG:i,colorSuccess:s,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:p,notificationBg:g,notificationPadding:m,notificationMarginEdge:h,notificationProgressBg:b,notificationProgressHeight:x,fontSize:S,lineHeight:v,width:y,notificationIconSize:w,colorText:C}=e,E=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:g,borderRadius:i,boxShadow:r,[E]:{padding:m,width:y,maxWidth:`calc(100vw - ${G(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:v,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:p,fontSize:a,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:S,color:C},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:a},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:S},[`${E}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},ri(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${G(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:x,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:i,background:b}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},pfe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:o}=e,i=`${t}-notice`,s=new en("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},an(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},VV(e))}}]},WV=e=>({zIndexPopup:e.zIndexPopupBase+YU+50,width:384}),GV=e=>{const t=e.paddingMD,n=e.paddingLG;return Bt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},qV=on("Notification",e=>{const t=GV(e);return[pfe(t),ife(t),ffe(t)]},WV),gfe=Qc(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=GV(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},VV(n)),{width:n.width,maxWidth:`calc(100vw - ${G(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},WV);var mfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,type:r,message:a,description:o,btn:i,role:s="alert"}=e;let c=null;return n?c=l.createElement("span",{className:`${t}-icon`},n):r&&(c=l.createElement(hfe[r]||null,{className:oe(`${t}-icon`,`${t}-icon-${r}`)})),l.createElement("div",{className:oe({[`${t}-with-icon`]:c}),role:s},c,l.createElement("div",{className:`${t}-message`},a),l.createElement("div",{className:`${t}-description`},o),i&&l.createElement("div",{className:`${t}-btn`},i))},vfe=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:o,description:i,btn:s,closable:c=!0,closeIcon:u,className:d}=e,p=mfe(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:g}=l.useContext(ut),m=t||g("notification"),h=`${m}-notice`,b=ar(m),[x,S,v]=qV(m,b);return x(l.createElement("div",{className:oe(`${h}-pure-panel`,S,n,v,b)},l.createElement(gfe,{prefixCls:m}),l.createElement(qU,Object.assign({},p,{prefixCls:m,eventKey:"pure",duration:null,closable:c,className:oe({notificationClassName:d}),closeIcon:GO(m,u),content:l.createElement(KV,{prefixCls:h,icon:r,type:a,message:o,description:i,btn:s})}))))};function bfe(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function yfe(e){return{motionName:`${e}-fade`}}var xfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=ar(n),[a,o,i]=qV(n,r);return a(de.createElement(nle,{classNames:{list:oe(o,i,r)}},t))},Efe=(e,t)=>{let{prefixCls:n,key:r}=t;return de.createElement(Cfe,{prefixCls:n,key:r},e)},Ife=de.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:i,rtl:s,onAllRemoved:c,stack:u,duration:d,pauseOnHover:p=!0,showProgress:g}=e,{getPrefixCls:m,getPopupContainer:h,notification:b,direction:x}=l.useContext(ut),[,S]=ta(),v=a||m("notification"),y=T=>bfe(T,n??UM,r??UM),w=()=>oe({[`${v}-rtl`]:s??x==="rtl"}),C=()=>yfe(v),[E,I]=ule({prefixCls:v,style:y,className:w,motion:C,closable:!0,closeIcon:GO(v),duration:d??Sfe,getContainer:()=>(o==null?void 0:o())||(h==null?void 0:h())||document.body,maxCount:i,pauseOnHover:p,showProgress:g,onAllRemoved:c,renderNotifications:Efe,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:S.margin}});return de.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:v,notification:b})),I});function YV(e){const t=de.useRef(null);return zl(),[de.useMemo(()=>{const r=s=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:p}=t.current,g=`${d}-notice`,{message:m,description:h,icon:b,type:x,btn:S,className:v,style:y,role:w="alert",closeIcon:C,closable:E}=s,I=xfe(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=GO(g,typeof C<"u"?C:p==null?void 0:p.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:wfe},I),{content:de.createElement(KV,{prefixCls:g,icon:b,type:x,message:m,description:h,btn:S,role:w}),className:oe(x&&`${g}-${x}`,v,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),y),closeIcon:T,closable:E??!!T}))},o={open:r,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=c=>r(Object.assign(Object.assign({},c),{type:s}))}),o},[]),de.createElement(Ife,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Tfe(e){return YV(e)}const Rfe=de.createContext({});function XV(e){return t=>l.createElement(Ai,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const vm=(e,t,n,r)=>XV(o=>{const{prefixCls:i,style:s}=o,c=l.useRef(null),[u,d]=l.useState(0),[p,g]=l.useState(0),[m,h]=fn(!1,{value:o.open}),{getPrefixCls:b}=l.useContext(ut),x=b(t||"select",i);l.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(C=>{const E=C[0].target;d(E.offsetHeight+8),g(E.offsetWidth)}),w=setInterval(()=>{var C;const E=n?`.${n(x)}`:`.${x}-dropdown`,I=(C=c.current)===null||C===void 0?void 0:C.querySelector(E);I&&(clearInterval(w),y.observe(I))},10);return()=>{clearInterval(w),y.disconnect()}}},[]);let S=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});r&&(S=r(S));const v={paddingBottom:u,position:"relative",minWidth:p};return l.createElement("div",{ref:c,style:v},l.createElement(e,Object.assign({},S)))}),cy=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=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(e)||/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(e==null?void 0:e.substr(0,4))};var uy=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:oe(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},_fe=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=de.useMemo(function(){if(mt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=de.useMemo(function(){return!!(!i&&a&&(r.length||s)&&!(c==="combobox"&&s===""))},[a,i,r.length,s,c]);return{allowClear:d,clearIcon:de.createElement(uy,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},ZV=l.createContext(null);function QV(){return l.useContext(ZV)}function $fe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=ce(t,2),r=n[0],a=n[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,s,i]}function JV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Ofe(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(i){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Nfe(e){return![Fe.ESC,Fe.SHIFT,Fe.BACKSPACE,Fe.TAB,Fe.WIN_KEY,Fe.ALT,Fe.META,Fe.WIN_KEY_RIGHT,Fe.CTRL,Fe.SEMICOLON,Fe.EQUALS,Fe.CAPS_LOCK,Fe.CONTEXT_MENU,Fe.F1,Fe.F2,Fe.F3,Fe.F4,Fe.F5,Fe.F6,Fe.F7,Fe.F8,Fe.F9,Fe.F10,Fe.F11,Fe.F12].includes(e)}var kfe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Su=void 0;function Afe(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,p=e.style,g=e.children,m=e.display,h=e.order,b=e.component,x=b===void 0?"div":b,S=Ct(e,kfe),v=i&&!m;function y(T){c(u,T)}l.useEffect(function(){return function(){y(null)}},[]);var w=o&&a!==Su?o(a):g,C;r||(C={opacity:v?0:1,height:v?0:Su,overflowY:v?"hidden":Su,order:i?h:Su,pointerEvents:v?"none":Su,position:v?"absolute":Su});var E={};v&&(E["aria-hidden"]=!0);var I=l.createElement(x,be({className:oe(!r&&n,d),style:X(X({},C),p)},E,S,{ref:t}),w);return i&&(I=l.createElement(wa,{onResize:function(R){var _=R.offsetWidth;y(_)},disabled:s},I)),I}var Lp=l.forwardRef(Afe);Lp.displayName="Item";function Mfe(e){if(typeof MessageChannel>"u")Ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Dfe(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Mfe(function(){Kr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Gf(e,t){var n=l.useState(t),r=ce(n,2),a=r[0],o=r[1],i=qt(function(s){e(function(){o(s)})});return[a,i]}var Pb=de.createContext(null),Pfe=["component"],Lfe=["className"],jfe=["className"],Ffe=function(t,n){var r=l.useContext(Pb);if(!r){var a=t.component,o=a===void 0?"div":a,i=Ct(t,Pfe);return l.createElement(o,be({},i,{ref:n}))}var s=r.className,c=Ct(r,Lfe),u=t.className,d=Ct(t,jfe);return l.createElement(Pb.Provider,{value:null},l.createElement(Lp,be({ref:n,className:oe(s,u)},c,d)))},eW=l.forwardRef(Ffe);eW.displayName="RawItem";var Bfe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],tW="responsive",nW="invalidate";function zfe(e){return"+ ".concat(e.length," ...")}function Hfe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,p=e.ssr,g=e.style,m=e.className,h=e.maxCount,b=e.renderRest,x=e.renderRawRest,S=e.suffix,v=e.component,y=v===void 0?"div":v,w=e.itemComponent,C=e.onVisibleChange,E=Ct(e,Bfe),I=p==="full",T=Dfe(),R=Gf(T,null),_=ce(R,2),$=_[0],M=_[1],P=$||0,D=Gf(T,new Map),O=ce(D,2),k=O[0],N=O[1],A=Gf(T,0),L=ce(A,2),j=L[0],F=L[1],B=Gf(T,0),z=ce(B,2),U=z[0],H=z[1],K=Gf(T,0),Y=ce(K,2),ee=Y[0],ae=Y[1],W=l.useState(null),q=ce(W,2),Z=q[0],Q=q[1],J=l.useState(null),ie=ce(J,2),le=ie[0],fe=ie[1],te=l.useMemo(function(){return le===null&&I?Number.MAX_SAFE_INTEGER:le||0},[le,$]),se=l.useState(!1),pe=ce(se,2),he=pe[0],re=pe[1],ue="".concat(r,"-item"),me=Math.max(j,U),xe=h===tW,Ee=o.length&&xe,ke=h===nW,$e=Ee||typeof h=="number"&&o.length>h,Le=l.useMemo(function(){var Ae=o;return Ee?$===null&&I?Ae=o:Ae=o.slice(0,Math.min(o.length,P/d)):typeof h=="number"&&(Ae=o.slice(0,h)),Ae},[o,d,$,h,Ee]),je=l.useMemo(function(){return Ee?o.slice(te+1):o.slice(Le.length)},[o,Le,Ee,te]),He=l.useCallback(function(Ae,Oe){var Re;return typeof c=="function"?c(Ae):(Re=c&&(Ae==null?void 0:Ae[c]))!==null&&Re!==void 0?Re:Oe},[c]),Be=l.useCallback(i||function(Ae){return Ae},[i]);function Pe(Ae,Oe,Re){le===Ae&&(Oe===void 0||Oe===Z)||(fe(Ae),Re||(re(AeP){Pe(at-1,Ae-Ye-ee+U);break}}S&&Me(0)+ee>P&&Q(null)}},[P,k,U,ee,He,Le]);var Ge=he&&!!je.length,st={};Z!==null&&Ee&&(st={position:"absolute",left:Z,top:0});var ge={prefixCls:ue,responsive:Ee,component:w,invalidate:ke},ne=s?function(Ae,Oe){var Re=He(Ae,Oe);return l.createElement(Pb.Provider,{key:Re,value:X(X({},ge),{},{order:Oe,item:Ae,itemKey:Re,registerSize:Ne,display:Oe<=te})},s(Ae,Oe))}:function(Ae,Oe){var Re=He(Ae,Oe);return l.createElement(Lp,be({},ge,{order:Oe,key:Re,item:Ae,renderItem:Be,itemKey:Re,registerSize:Ne,display:Oe<=te}))},ve,_e={order:Ge?te:Number.MAX_SAFE_INTEGER,className:"".concat(ue,"-rest"),registerSize:Te,display:Ge};if(x)x&&(ve=l.createElement(Pb.Provider,{value:X(X({},ge),_e)},x(je)));else{var ze=b||zfe;ve=l.createElement(Lp,be({},ge,_e),typeof ze=="function"?ze(je):ze)}var Ue=l.createElement(y,be({className:oe(!ke&&r,m),style:g,ref:t},E),Le.map(ne),$e?ve:null,S&&l.createElement(Lp,be({},ge,{responsive:xe,responsiveDisabled:!Ee,order:te,className:"".concat(ue,"-suffix"),registerSize:we,display:!0,style:st}),S));return xe&&(Ue=l.createElement(wa,{onResize:Se,disabled:!Ee},Ue)),Ue}var Ii=l.forwardRef(Hfe);Ii.displayName="Overflow";Ii.Item=eW;Ii.RESPONSIVE=tW;Ii.INVALIDATE=nW;var Ufe=function(t,n){var r,a=t.prefixCls,o=t.id,i=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,p=t.editable,g=t.activeDescendantId,m=t.value,h=t.maxLength,b=t.onKeyDown,x=t.onMouseDown,S=t.onChange,v=t.onPaste,y=t.onCompositionStart,w=t.onCompositionEnd,C=t.open,E=t.attrs,I=i||l.createElement("input",null),T=I,R=T.ref,_=T.props,$=_.onKeyDown,M=_.onChange,P=_.onMouseDown,D=_.onCompositionStart,O=_.onCompositionEnd,k=_.style;return"maxLength"in I.props,I=l.cloneElement(I,X(X(X({type:"search"},_),{},{id:o,ref:ma(n,R),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:oe("".concat(a,"-selection-search-input"),(r=I)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":C?g:void 0},E),{},{value:p?m:"",maxLength:h,readOnly:!p,unselectable:p?null:"on",style:X(X({},k),{},{opacity:p?null:0}),onKeyDown:function(A){b(A),$&&$(A)},onMouseDown:function(A){x(A),P&&P(A)},onChange:function(A){S(A),M&&M(A)},onCompositionStart:function(A){y(A),D&&D(A)},onCompositionEnd:function(A){w(A),O&&O(A)},onPaste:v})),I},rW=l.forwardRef(Ufe);function aW(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Vfe=typeof window<"u"&&window.document&&window.document.documentElement,Wfe=Vfe;function Gfe(e){return e!=null}function qfe(e){return!e&&e!==0}function VM(e){return["string","number"].includes(mt(e))}function oW(e){var t=void 0;return e&&(VM(e.title)?t=e.title.toString():VM(e.label)&&(t=e.label.toString())),t}function Kfe(e,t){Wfe?l.useLayoutEffect(e,t):l.useEffect(e,t)}function Yfe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var WM=function(t){t.preventDefault(),t.stopPropagation()},Xfe=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,p=t.mode,g=t.showSearch,m=t.autoFocus,h=t.autoComplete,b=t.activeDescendantId,x=t.tabIndex,S=t.removeIcon,v=t.maxTagCount,y=t.maxTagTextLength,w=t.maxTagPlaceholder,C=w===void 0?function(Q){return"+ ".concat(Q.length," ...")}:w,E=t.tagRender,I=t.onToggleOpen,T=t.onRemove,R=t.onInputChange,_=t.onInputPaste,$=t.onInputKeyDown,M=t.onInputMouseDown,P=t.onInputCompositionStart,D=t.onInputCompositionEnd,O=l.useRef(null),k=l.useState(0),N=ce(k,2),A=N[0],L=N[1],j=l.useState(!1),F=ce(j,2),B=F[0],z=F[1],U="".concat(r,"-selection"),H=o||p==="multiple"&&s===!1||p==="tags"?i:"",K=p==="tags"||p==="multiple"&&s===!1||g&&(o||B);Kfe(function(){L(O.current.scrollWidth)},[H]);var Y=function(J,ie,le,fe,te){return l.createElement("span",{title:oW(J),className:oe("".concat(U,"-item"),V({},"".concat(U,"-item-disabled"),le))},l.createElement("span",{className:"".concat(U,"-item-content")},ie),fe&&l.createElement(uy,{className:"".concat(U,"-item-remove"),onMouseDown:WM,onClick:te,customizeIcon:S},"×"))},ee=function(J,ie,le,fe,te,se){var pe=function(re){WM(re),I(!o)};return l.createElement("span",{onMouseDown:pe},E({label:ie,value:J,disabled:le,closable:fe,onClose:te,isMaxTag:!!se}))},ae=function(J){var ie=J.disabled,le=J.label,fe=J.value,te=!d&&!ie,se=le;if(typeof y=="number"&&(typeof le=="string"||typeof le=="number")){var pe=String(se);pe.length>y&&(se="".concat(pe.slice(0,y),"..."))}var he=function(ue){ue&&ue.stopPropagation(),T(J)};return typeof E=="function"?ee(fe,se,ie,te,he):Y(J,se,ie,te,he)},W=function(J){var ie=typeof C=="function"?C(J):C;return typeof E=="function"?ee(void 0,ie,!1,!1,void 0,!0):Y({title:ie},ie,!1)},q=l.createElement("div",{className:"".concat(U,"-search"),style:{width:A},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},l.createElement(rW,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:m,autoComplete:h,editable:K,activeDescendantId:b,value:H,onKeyDown:$,onMouseDown:M,onChange:R,onPaste:_,onCompositionStart:P,onCompositionEnd:D,tabIndex:x,attrs:ur(t,!0)}),l.createElement("span",{ref:O,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},H," ")),Z=l.createElement(Ii,{prefixCls:"".concat(U,"-overflow"),data:a,renderItem:ae,renderRest:W,suffix:q,itemKey:Yfe,maxCount:v});return l.createElement(l.Fragment,null,Z,!a.length&&!H&&l.createElement("span",{className:"".concat(U,"-placeholder")},u))},Zfe=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,p=t.open,g=t.values,m=t.placeholder,h=t.tabIndex,b=t.showSearch,x=t.searchValue,S=t.activeValue,v=t.maxLength,y=t.onInputKeyDown,w=t.onInputMouseDown,C=t.onInputChange,E=t.onInputPaste,I=t.onInputCompositionStart,T=t.onInputCompositionEnd,R=t.title,_=l.useState(!1),$=ce(_,2),M=$[0],P=$[1],D=d==="combobox",O=D||b,k=g[0],N=x||"";D&&S&&!M&&(N=S),l.useEffect(function(){D&&P(!1)},[D,S]);var A=d!=="combobox"&&!p&&!b?!1:!!N,L=R===void 0?oW(k):R,j=l.useMemo(function(){return k?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},m)},[k,A,m,r]);return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(rW,{ref:o,prefixCls:r,id:a,open:p,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:O,activeDescendantId:u,value:N,onKeyDown:y,onMouseDown:w,onChange:function(B){P(!0),C(B)},onPaste:E,onCompositionStart:I,onCompositionEnd:T,tabIndex:h,attrs:ur(t,!0),maxLength:D?v:void 0})),!D&&k?l.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:A?{visibility:"hidden"}:void 0},k.label):null,j)},Qfe=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,p=t.autoClearSearchValue,g=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,b=t.onInputKeyDown,x=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(A){r.current.focus(A)},blur:function(){r.current.blur()}}});var S=JV(0),v=ce(S,2),y=v[0],w=v[1],C=function(A){var L=A.which;(L===Fe.UP||L===Fe.DOWN)&&A.preventDefault(),b&&b(A),L===Fe.ENTER&&s==="tags"&&!a.current&&!i&&(m==null||m(A.target.value)),Nfe(L)&&h(!0)},E=function(){w(!0)},I=l.useRef(null),T=function(A){g(A,!0,a.current)!==!1&&h(!0)},R=function(){a.current=!0},_=function(A){a.current=!1,s!=="combobox"&&T(A.target.value)},$=function(A){var L=A.target.value;if(u&&I.current&&/[\r\n]/.test(I.current)){var j=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(j,I.current)}I.current=null,T(L)},M=function(A){var L=A.clipboardData,j=L==null?void 0:L.getData("text");I.current=j||""},P=function(A){var L=A.target;if(L!==r.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){r.current.focus()}):r.current.focus()}},D=function(A){var L=y();A.target!==r.current&&!L&&!(s==="combobox"&&d)&&A.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&p!==!1&&g("",!0,!1),h())},O={inputRef:r,onInputKeyDown:C,onInputMouseDown:E,onInputChange:$,onInputPaste:M,onInputCompositionStart:R,onInputCompositionEnd:_},k=s==="multiple"||s==="tags"?l.createElement(Xfe,be({},t,O)):l.createElement(Zfe,be({},t,O));return l.createElement("div",{ref:x,className:"".concat(o,"-selector"),onClick:P,onMouseDown:D},k)},Jfe=l.forwardRef(Qfe);function epe(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,s=o.content,c=a.x,u=c===void 0?0:c,d=a.y,p=d===void 0?0:d,g=l.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],x=h[0],S=h[1],v=b[0],y=b[1];x===v||!["t","b"].includes(x)?m.top=p:x==="t"?m.top=0:m.bottom=0,S===y||!["l","r"].includes(S)?m.left=u:S==="l"?m.left=0:m.right=0}return l.createElement("div",{ref:g,className:oe("".concat(t,"-arrow"),i),style:m},s)}function tpe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(Qr,be({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:oe("".concat(t,"-mask"),s)})}):null}var npe=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),rpe=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,p=e.onClick,g=e.mask,m=e.arrow,h=e.arrowPos,b=e.align,x=e.motion,S=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,C=e.portal,E=e.zIndex,I=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,_=e.ready,$=e.offsetX,M=e.offsetY,P=e.offsetR,D=e.offsetB,O=e.onAlign,k=e.onPrepare,N=e.stretch,A=e.targetWidth,L=e.targetHeight,j=typeof n=="function"?n():n,F=c||u,B=(y==null?void 0:y.length)>0,z=l.useState(!y||!B),U=ce(z,2),H=U[0],K=U[1];if(Yt(function(){!H&&B&&i&&K(!0)},[H,B,i]),!H)return null;var Y="auto",ee={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(_||!c){var ae,W=b.points,q=b.dynamicInset||((ae=b._experimental)===null||ae===void 0?void 0:ae.dynamicInset),Z=q&&W[0][1]==="r",Q=q&&W[0][0]==="b";Z?(ee.right=P,ee.left=Y):(ee.left=$,ee.right=Y),Q?(ee.bottom=D,ee.top=Y):(ee.top=M,ee.bottom=Y)}var J={};return N&&(N.includes("height")&&L?J.height=L:N.includes("minHeight")&&L&&(J.minHeight=L),N.includes("width")&&A?J.width=A:N.includes("minWidth")&&A&&(J.minWidth=A)),c||(J.pointerEvents="none"),l.createElement(C,{open:v||F,getContainer:y&&function(){return y(i)},autoDestroy:w},l.createElement(tpe,{prefixCls:a,open:c,zIndex:E,mask:g,motion:S}),l.createElement(wa,{onResize:O,disabled:!c},function(ie){return l.createElement(Qr,be({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(a,"-hidden")},x,{onAppearPrepare:k,onEnterPrepare:k,visible:c,onVisibleChanged:function(fe){var te;x==null||(te=x.onVisibleChanged)===null||te===void 0||te.call(x,fe),s(fe)}}),function(le,fe){var te=le.className,se=le.style,pe=oe(a,te,r);return l.createElement("div",{ref:ma(ie,t,fe),className:pe,style:X(X(X(X({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ee),J),se),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:I,onMouseLeave:T,onPointerEnter:R,onClick:p},m&&l.createElement(epe,{prefixCls:a,arrow:m,arrowPos:h,align:b}),l.createElement(npe,{cache:!c&&!d},j))})}))}),ape=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=_i(n),o=l.useCallback(function(s){Sg(t,r?r(s):s)},[r]),i=Ds(o,n.ref);return a?l.cloneElement(n,{ref:i}):n}),GM=l.createContext(null);function qM(e){return e?Array.isArray(e)?e:[e]:[]}function ope(e,t,n,r){return l.useMemo(function(){var a=qM(n??t),o=qM(r??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function ipe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function spe(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function qf(e){return Ag(parseFloat(e),0)}function YM(e,t){var n=X({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=bm(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,p=r.getBoundingClientRect(),g=r.offsetHeight,m=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,x=qf(s),S=qf(c),v=qf(u),y=qf(d),w=Ag(Math.round(p.width/h*1e3)/1e3),C=Ag(Math.round(p.height/g*1e3)/1e3),E=(h-b-v-y)*w,I=(g-m-x-S)*C,T=x*C,R=S*C,_=v*w,$=y*w,M=0,P=0;if(o==="clip"){var D=qf(i);M=D*w,P=D*C}var O=p.x+_-M,k=p.y+T-P,N=O+p.width+2*M-_-$-E,A=k+p.height+2*P-T-R-I;n.left=Math.max(n.left,O),n.top=Math.max(n.top,k),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A)}}),n}function XM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function ZM(e,t){var n=t||[],r=ce(n,2),a=r[0],o=r[1];return[XM(e.width,a),XM(e.height,o)]}function QM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function wu(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Vs(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function lpe(e,t,n,r,a,o,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=ce(s,2),u=c[0],d=c[1],p=l.useRef(0),g=l.useMemo(function(){return t?YR(t):[]},[t]),m=l.useRef({}),h=function(){m.current={}};e||h();var b=qt(function(){if(t&&n&&e){let fr=function(Pa,La){var Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,pu=U.x+Pa,zs=U.y+La,Pt=pu+Q,Xt=zs+Z,or=Math.max(pu,Do.left),Cr=Math.max(zs,Do.top),ir=Math.min(Pt,Do.right),Hs=Math.min(Xt,Do.bottom);return Math.max(0,(ir-or)*(Hs-Cr))},va=function(){Ot=U.y+Re,ht=Ot+Z,lt=U.x+Oe,Et=lt+Q};var Gn=fr,tr=va,v,y,w,C,E=t,I=E.ownerDocument,T=bm(E),R=T.getComputedStyle(E),_=R.width,$=R.height,M=R.position,P=E.style.left,D=E.style.top,O=E.style.right,k=E.style.bottom,N=E.style.overflow,A=X(X({},a[r]),o),L=I.createElement("div");(v=E.parentElement)===null||v===void 0||v.appendChild(L),L.style.left="".concat(E.offsetLeft,"px"),L.style.top="".concat(E.offsetTop,"px"),L.style.position=M,L.style.height="".concat(E.offsetHeight,"px"),L.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var F,B,z=n.getBoundingClientRect();z.x=(F=z.x)!==null&&F!==void 0?F:z.left,z.y=(B=z.y)!==null&&B!==void 0?B:z.top,j={x:z.x,y:z.y,width:z.width,height:z.height}}var U=E.getBoundingClientRect();U.x=(y=U.x)!==null&&y!==void 0?y:U.left,U.y=(w=U.y)!==null&&w!==void 0?w:U.top;var H=I.documentElement,K=H.clientWidth,Y=H.clientHeight,ee=H.scrollWidth,ae=H.scrollHeight,W=H.scrollTop,q=H.scrollLeft,Z=U.height,Q=U.width,J=j.height,ie=j.width,le={left:0,top:0,right:K,bottom:Y},fe={left:-q,top:-W,right:ee-q,bottom:ae-W},te=A.htmlRegion,se="visible",pe="visibleFirst";te!=="scroll"&&te!==pe&&(te=se);var he=te===pe,re=YM(fe,g),ue=YM(le,g),me=te===se?ue:re,xe=he?ue:me;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ee=E.getBoundingClientRect();E.style.left=P,E.style.top=D,E.style.right=O,E.style.bottom=k,E.style.overflow=N,(C=E.parentElement)===null||C===void 0||C.removeChild(L);var ke=Ag(Math.round(Q/parseFloat(_)*1e3)/1e3),$e=Ag(Math.round(Z/parseFloat($)*1e3)/1e3);if(ke===0||$e===0||xg(n)&&!sf(n))return;var Le=A.offset,je=A.targetOffset,He=ZM(U,Le),Be=ce(He,2),Pe=Be[0],Se=Be[1],Ne=ZM(j,je),Te=ce(Ne,2),we=Te[0],Me=Te[1];j.x-=we,j.y-=Me;var Ge=A.points||[],st=ce(Ge,2),ge=st[0],ne=st[1],ve=QM(ne),_e=QM(ge),ze=wu(j,ve),Ue=wu(U,_e),Ae=X({},A),Oe=ze.x-Ue.x+Pe,Re=ze.y-Ue.y+Se,at=fr(Oe,Re),Ye=fr(Oe,Re,ue),We=wu(j,["t","l"]),qe=wu(U,["t","l"]),Qe=wu(j,["b","r"]),ot=wu(U,["b","r"]),wt=A.overflow||{},kt=wt.adjustX,xt=wt.adjustY,nt=wt.shiftX,rt=wt.shiftY,bt=function(La){return typeof La=="boolean"?La:La>=0},Ot,ht,lt,Et;va();var Ze=bt(xt),ct=_e[0]===ve[0];if(Ze&&_e[0]==="t"&&(ht>xe.bottom||m.current.bt)){var ft=Re;ct?ft-=Z-J:ft=We.y-ot.y-Se;var et=fr(Oe,ft),Xe=fr(Oe,ft,ue);et>at||et===at&&(!he||Xe>=Ye)?(m.current.bt=!0,Re=ft,Se=-Se,Ae.points=[Vs(_e,0),Vs(ve,0)]):m.current.bt=!1}if(Ze&&_e[0]==="b"&&(Otat||Mt===at&&(!he||Vt>=Ye)?(m.current.tb=!0,Re=_t,Se=-Se,Ae.points=[Vs(_e,0),Vs(ve,0)]):m.current.tb=!1}var mn=bt(kt),pn=_e[1]===ve[1];if(mn&&_e[1]==="l"&&(Et>xe.right||m.current.rl)){var yt=Oe;pn?yt-=Q-ie:yt=We.x-ot.x-Pe;var At=fr(yt,Re),jt=fr(yt,Re,ue);At>at||At===at&&(!he||jt>=Ye)?(m.current.rl=!0,Oe=yt,Pe=-Pe,Ae.points=[Vs(_e,1),Vs(ve,1)]):m.current.rl=!1}if(mn&&_e[1]==="r"&&(ltat||An===at&&(!he||Or>=Ye)?(m.current.lr=!0,Oe=tn,Pe=-Pe,Ae.points=[Vs(_e,1),Vs(ve,1)]):m.current.lr=!1}va();var In=nt===!0?0:nt;typeof In=="number"&&(ltue.right&&(Oe-=Et-ue.right-Pe,j.x>ue.right-In&&(Oe+=j.x-ue.right+In)));var br=rt===!0?0:rt;typeof br=="number"&&(Otue.bottom&&(Re-=ht-ue.bottom-Se,j.y>ue.bottom-br&&(Re+=j.y-ue.bottom+br)));var na=U.x+Oe,jr=na+Q,Xn=U.y+Re,Zt=Xn+Z,Rt=j.x,zt=Rt+ie,Ht=j.y,nn=Ht+J,It=Math.max(na,Rt),Dt=Math.min(jr,zt),vn=(It+Dt)/2,zn=vn-na,Sr=Math.max(Xn,Ht),wr=Math.min(Zt,nn),Ar=(Sr+wr)/2,Kt=Ar-Xn;i==null||i(t,Ae);var pt=Ee.right-U.x-(Oe+U.width),St=Ee.bottom-U.y-(Re+U.height);ke===1&&(Oe=Math.round(Oe),pt=Math.round(pt)),$e===1&&(Re=Math.round(Re),St=Math.round(St));var ln={ready:!0,offsetX:Oe/ke,offsetY:Re/$e,offsetR:pt/ke,offsetB:St/$e,arrowX:zn/ke,arrowY:Kt/$e,scaleX:ke,scaleY:$e,align:Ae};d(ln)}}),x=function(){p.current+=1;var y=p.current;Promise.resolve().then(function(){p.current===y&&b()})},S=function(){d(function(y){return X(X({},y),{},{ready:!1})})};return Yt(S,[r]),Yt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,x]}function cpe(e,t,n,r,a){Yt(function(){if(e&&t&&n){let g=function(){r(),a()};var p=g,o=t,i=n,s=YR(o),c=YR(i),u=bm(i),d=new Set([u].concat(De(s),De(c)));return d.forEach(function(m){m.addEventListener("scroll",g,{passive:!0})}),u.addEventListener("resize",g,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",g),u.removeEventListener("resize",g)})}}},[e,t,n])}function upe(e,t,n,r,a,o,i,s){var c=l.useRef(e);c.current=e,l.useEffect(function(){if(t&&r&&(!a||o)){var u=function(m){var h;c.current&&!i(((h=m.composedPath)===null||h===void 0||(h=h.call(m))===null||h===void 0?void 0:h[0])||m.target)&&s(!1)},d=bm(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=Mb(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}},[t,n,r,a,o])}var dpe=["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 fpe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gm,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,p=n.popupVisible,g=n.defaultPopupVisible,m=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,x=n.mouseLeaveDelay,S=x===void 0?.1:x,v=n.focusDelay,y=n.blurDelay,w=n.mask,C=n.maskClosable,E=C===void 0?!0:C,I=n.getPopupContainer,T=n.forceRender,R=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,M=n.popupClassName,P=n.popupStyle,D=n.popupPlacement,O=n.builtinPlacements,k=O===void 0?{}:O,N=n.popupAlign,A=n.zIndex,L=n.stretch,j=n.getPopupClassNameFromAlign,F=n.fresh,B=n.alignPoint,z=n.onPopupClick,U=n.onPopupAlign,H=n.arrow,K=n.popupMotion,Y=n.maskMotion,ee=n.popupTransitionName,ae=n.popupAnimation,W=n.maskTransitionName,q=n.maskAnimation,Z=n.className,Q=n.getTriggerDOMNode,J=Ct(n,dpe),ie=R||_||!1,le=l.useState(!1),fe=ce(le,2),te=fe[0],se=fe[1];Yt(function(){se(cy())},[]);var pe=l.useRef({}),he=l.useContext(GM),re=l.useMemo(function(){return{registerSubPopup:function(Xt,or){pe.current[Xt]=or,he==null||he.registerSubPopup(Xt,or)}}},[he]),ue=pV(),me=l.useState(null),xe=ce(me,2),Ee=xe[0],ke=xe[1],$e=l.useRef(null),Le=qt(function(Pt){$e.current=Pt,xg(Pt)&&Ee!==Pt&&ke(Pt),he==null||he.registerSubPopup(ue,Pt)}),je=l.useState(null),He=ce(je,2),Be=He[0],Pe=He[1],Se=l.useRef(null),Ne=qt(function(Pt){xg(Pt)&&Be!==Pt&&(Pe(Pt),Se.current=Pt)}),Te=l.Children.only(i),we=(Te==null?void 0:Te.props)||{},Me={},Ge=qt(function(Pt){var Xt,or,Cr=Be;return(Cr==null?void 0:Cr.contains(Pt))||((Xt=Mb(Cr))===null||Xt===void 0?void 0:Xt.host)===Pt||Pt===Cr||(Ee==null?void 0:Ee.contains(Pt))||((or=Mb(Ee))===null||or===void 0?void 0:or.host)===Pt||Pt===Ee||Object.values(pe.current).some(function(ir){return(ir==null?void 0:ir.contains(Pt))||Pt===ir})}),st=KM(o,K,ae,ee),ge=KM(o,Y,q,W),ne=l.useState(g||!1),ve=ce(ne,2),_e=ve[0],ze=ve[1],Ue=p??_e,Ae=qt(function(Pt){p===void 0&&ze(Pt)});Yt(function(){ze(p||!1)},[p]);var Oe=l.useRef(Ue);Oe.current=Ue;var Re=l.useRef([]);Re.current=[];var at=qt(function(Pt){var Xt;Ae(Pt),((Xt=Re.current[Re.current.length-1])!==null&&Xt!==void 0?Xt:Ue)!==Pt&&(Re.current.push(Pt),m==null||m(Pt))}),Ye=l.useRef(),We=function(){clearTimeout(Ye.current)},qe=function(Xt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),or===0?at(Xt):Ye.current=setTimeout(function(){at(Xt)},or*1e3)};l.useEffect(function(){return We},[]);var Qe=l.useState(!1),ot=ce(Qe,2),wt=ot[0],kt=ot[1];Yt(function(Pt){(!Pt||Ue)&&kt(!0)},[Ue]);var xt=l.useState(null),nt=ce(xt,2),rt=nt[0],bt=nt[1],Ot=l.useState(null),ht=ce(Ot,2),lt=ht[0],Et=ht[1],Ze=function(Xt){Et([Xt.clientX,Xt.clientY])},ct=lpe(Ue,Ee,B&<!==null?lt:Be,D,k,N,U),ft=ce(ct,11),et=ft[0],Xe=ft[1],_t=ft[2],Mt=ft[3],Vt=ft[4],mn=ft[5],pn=ft[6],yt=ft[7],At=ft[8],jt=ft[9],tn=ft[10],An=ope(te,c,u,d),Or=ce(An,2),In=Or[0],br=Or[1],na=In.has("click"),jr=br.has("click")||br.has("contextMenu"),Xn=qt(function(){wt||tn()}),Zt=function(){Oe.current&&B&&jr&&qe(!1)};cpe(Ue,Be,Ee,Xn,Zt),Yt(function(){Xn()},[lt,D]),Yt(function(){Ue&&!(k!=null&&k[D])&&Xn()},[JSON.stringify(N)]);var Rt=l.useMemo(function(){var Pt=spe(k,o,jt,B);return oe(Pt,j==null?void 0:j(jt))},[jt,j,k,o,B]);l.useImperativeHandle(r,function(){return{nativeElement:Se.current,popupElement:$e.current,forceAlign:Xn}});var zt=l.useState(0),Ht=ce(zt,2),nn=Ht[0],It=Ht[1],Dt=l.useState(0),vn=ce(Dt,2),zn=vn[0],Sr=vn[1],wr=function(){if(L&&Be){var Xt=Be.getBoundingClientRect();It(Xt.width),Sr(Xt.height)}},Ar=function(){wr(),Xn()},Kt=function(Xt){kt(!1),tn(),h==null||h(Xt)},pt=function(){return new Promise(function(Xt){wr(),bt(function(){return Xt})})};Yt(function(){rt&&(tn(),rt(),bt(null))},[rt]);function St(Pt,Xt,or,Cr){Me[Pt]=function(ir){var Hs;Cr==null||Cr(ir),qe(Xt,or);for(var kf=arguments.length,Zm=new Array(kf>1?kf-1:0),gu=1;gu1?or-1:0),ir=1;ir1?or-1:0),ir=1;ir1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=iW(n,!1),i=o.label,s=o.value,c=o.options,u=o.groupLabel;function d(p,g){Array.isArray(p)&&p.forEach(function(m){if(g||!(c in m)){var h=m[s];a.push({key:JM(m,a.length),groupOption:g,data:m,label:m[i],value:h})}else{var b=m[u];b===void 0&&r&&(b=m.label),a.push({key:JM(m,a.length),group:!0,data:m,label:b}),d(m[c],!0)}})}return d(e,!1),a}function ZR(e){var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return $n(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var bpe=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function s(c,u){var d=lU(u),p=d[0],g=d.slice(1);if(!p)return[c];var m=c.split(p);return a=a||m.length>1,m.reduce(function(h,b){return[].concat(De(h),De(s(b,g)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},qO=l.createContext(null);function ype(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(mt(o))?o:i}).join(", ")),n.length>r?", ...":null)}var xpe=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Spe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],QR=function(t){return t==="tags"||t==="multiple"},sW=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,p=e.onDisplayValuesChange,g=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,b=e.onClear,x=e.mode,S=e.disabled,v=e.loading,y=e.getInputElement,w=e.getRawInputElement,C=e.open,E=e.defaultOpen,I=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,_=e.activeDescendantId,$=e.searchValue,M=e.autoClearSearchValue,P=e.onSearch,D=e.onSearchSplit,O=e.tokenSeparators,k=e.allowClear,N=e.suffixIcon,A=e.clearIcon,L=e.OptionList,j=e.animation,F=e.transitionName,B=e.dropdownStyle,z=e.dropdownClassName,U=e.dropdownMatchSelectWidth,H=e.dropdownRender,K=e.dropdownAlign,Y=e.placement,ee=e.builtinPlacements,ae=e.getPopupContainer,W=e.showAction,q=W===void 0?[]:W,Z=e.onFocus,Q=e.onBlur,J=e.onKeyUp,ie=e.onKeyDown,le=e.onMouseDown,fe=Ct(e,xpe),te=QR(x),se=(i!==void 0?i:te)||x==="combobox",pe=X({},fe);Spe.forEach(function(Zt){delete pe[Zt]}),u==null||u.forEach(function(Zt){delete pe[Zt]});var he=l.useState(!1),re=ce(he,2),ue=re[0],me=re[1];l.useEffect(function(){me(cy())},[]);var xe=l.useRef(null),Ee=l.useRef(null),ke=l.useRef(null),$e=l.useRef(null),Le=l.useRef(null),je=l.useRef(!1),He=$fe(),Be=ce(He,3),Pe=Be[0],Se=Be[1],Ne=Be[2];l.useImperativeHandle(t,function(){var Zt,Rt;return{focus:(Zt=$e.current)===null||Zt===void 0?void 0:Zt.focus,blur:(Rt=$e.current)===null||Rt===void 0?void 0:Rt.blur,scrollTo:function(Ht){var nn;return(nn=Le.current)===null||nn===void 0?void 0:nn.scrollTo(Ht)},nativeElement:xe.current||Ee.current}});var Te=l.useMemo(function(){var Zt;if(x!=="combobox")return $;var Rt=(Zt=d[0])===null||Zt===void 0?void 0:Zt.value;return typeof Rt=="string"||typeof Rt=="number"?String(Rt):""},[$,x,d]),we=x==="combobox"&&typeof y=="function"&&y()||null,Me=typeof w=="function"&&w(),Ge=Ds(Ee,Me==null||(n=Me.props)===null||n===void 0?void 0:n.ref),st=l.useState(!1),ge=ce(st,2),ne=ge[0],ve=ge[1];Yt(function(){ve(!0)},[]);var _e=fn(!1,{defaultValue:E,value:C}),ze=ce(_e,2),Ue=ze[0],Ae=ze[1],Oe=ne?Ue:!1,Re=!h&&g;(S||Re&&Oe&&x==="combobox")&&(Oe=!1);var at=Re?!1:Oe,Ye=l.useCallback(function(Zt){var Rt=Zt!==void 0?Zt:!Oe;S||(Ae(Rt),Oe!==Rt&&(I==null||I(Rt)))},[S,Oe,Ae,I]),We=l.useMemo(function(){return(O||[]).some(function(Zt){return[` `,`\r -`].includes(Zt)})},[O]),Ye=l.useContext(qO)||{},at=Ye.maxCount,ut=Ye.rawValues,Ct=function(Rt,Bt,zt){if(!(te&&YR(at)&&(ut==null?void 0:ut.size)>=at)){var nn=!0,It=Rt;R==null||R(null);var Dt=bpe(Rt,O,YR(at)?at-ut.size:void 0),vn=zt?null:Dt;return x!=="combobox"&&vn&&(It="",D==null||D(vn),rt(!1),nn=!1),P&&Re!==It&&P(It,{source:Bt?"typing":"effect"}),nn}},kt=function(Rt){!Rt||!Rt.trim()||P(Rt,{source:"submit"})};l.useEffect(function(){!Ae&&!te&&x!=="combobox"&&Ct("",!1,!1)},[Ae]),l.useEffect(function(){Be&&S&&ke(!1),S&&!Le.current&&Se(!1)},[S]);var xt=JV(),et=le(xt,2),tt=et[0],bt=et[1],Ot=l.useRef(!1),ht=function(Rt){var Bt=tt(),zt=Rt.key,nn=zt==="Enter";if(nn&&(x!=="combobox"&&Rt.preventDefault(),Ae||rt(!0)),bt(!!Re),zt==="Backspace"&&!Bt&&te&&!Re&&d.length){for(var It=Me(d),Dt=null,vn=It.length-1;vn>=0;vn-=1){var zn=It[vn];if(!zn.disabled){It.splice(vn,1),Dt=zn;break}}Dt&&p(It,{type:"remove",values:[Dt]})}for(var Sr=arguments.length,Cr=new Array(Sr>1?Sr-1:0),Ar=1;Ar1?Bt-1:0),nn=1;nn1?Dt-1:0),zn=1;zn"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const cW=function(e,t,n,r){var a=l.useRef(!1),o=l.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&p?(clearTimeout(o.current),a.current=!1):(!p||a.current)&&i(),!a.current&&p}};function Tpe(e,t,n,r,a,o,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),p=cW(t,n,r,a);function g(v,y){if(Ht.cancel(c.current),!p(!1,y)){var C=v;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=y,u.current=y,eD||C.preventDefault(),c.current=Ht(function(){var w=d.current?10:1;i(s.current*w,!1),s.current=0})}}function m(v,y){i(y,!0),eD||v.preventDefault()}var h=l.useRef(null),b=l.useRef(null);function x(v){if(e){Ht.cancel(b.current),b.current=Ht(function(){h.current=null},2);var y=v.deltaX,C=v.deltaY,w=v.shiftKey,E=y,I=C;(h.current==="sx"||!h.current&&w&&C&&!y)&&(E=C,I=0,h.current="sx");var T=Math.abs(E),R=Math.abs(I);h.current===null&&(h.current=o&&T>R?"x":"y"),h.current==="y"?g(v,I):m(v,E)}}function S(v){e&&(d.current=v.detail===u.current)}return[x,S]}function Rpe(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=le(a,2),i=o[0],s=o[1],c=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,g=i.get(d),m=i.get(p);if(g===void 0||m===void 0)for(var h=e.length,b=s.length;b0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){s.current.forEach(function(x,S){if(x&&x.offsetParent){var v=kp(x),y=v.offsetHeight;c.current.get(S)!==y&&c.current.set(S,v.offsetHeight)}}),i(function(x){return x+1})};m?h():u.current=Ht(h)}function g(m,h){var b=e(m);s.current.get(b),h?(s.current.set(b,h),p()):s.current.delete(b)}return l.useEffect(function(){return d},[]),[g,p,c.current,o]}var tD=14/15;function Ope(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageX),b=Math.ceil(m.touches[0].pageY),x=a.current-h,S=o.current-b,v=Math.abs(x)>Math.abs(S);v?a.current=h:o.current=b;var y=n(v,v?x:S,!1,m);y&&m.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){v?x*=tD:S*=tD;var C=Math.floor(v?x:S);(!n(v,C,!0)||Math.abs(C)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},p=function(m){c(),m.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(m.touches[0].pageX),o.current=Math.ceil(m.touches[0].pageY),i.current=m.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Yt(function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var g;(g=t.current)===null||g===void 0||g.removeEventListener("touchstart",p),c(),clearInterval(s.current)}},[e])}var Npe=10;function kpe(e,t,n,r,a,o,i,s){var c=l.useRef(),u=l.useState(null),d=le(u,2),p=d[0],g=d[1];return Yt(function(){if(p&&p.times=0;D-=1){var O=a(t[D]),k=n.get(O);if(k===void 0){v=!0;break}if(P-=k,P<=0)break}switch(w){case"top":C=I-x;break;case"bottom":C=T-S+x;break;default:{var N=e.current.scrollTop,A=N+S;IA&&(y="bottom")}}C!==null&&i(C),C!==p.lastTop&&(v=!0)}v&&g(X(X({},p),{},{times:p.times+1,targetAlign:y,lastTop:C}))}},[p,e.current]),function(m){if(m==null){s();return}if(Ht.cancel(c.current),typeof m=="number")i(m);else if(m&&mt(m)==="object"){var h,b=m.align;"index"in m?h=m.index:h=t.findIndex(function(v){return a(v)===m.key});var x=m.offset,S=x===void 0?0:x;g({times:0,index:h,offset:S,originAlign:b})}}}function nD(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var rD=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,p=e.containerSize,g=e.style,m=e.thumbStyle,h=l.useState(!1),b=le(h,2),x=b[0],S=b[1],v=l.useState(null),y=le(v,2),C=y[0],w=y[1],E=l.useState(null),I=le(E,2),T=I[0],R=I[1],_=!r,$=l.useRef(),M=l.useRef(),P=l.useState(!1),D=le(P,2),O=D[0],k=D[1],N=l.useRef(),A=function(){clearTimeout(N.current),k(!0),N.current=setTimeout(function(){k(!1)},3e3)},L=o-p||0,j=p-d||0,F=l.useMemo(function(){if(a===0||L===0)return 0;var W=a/L;return W*j},[a,L,j]),B=function(q){q.stopPropagation(),q.preventDefault()},z=l.useRef({top:F,dragging:x,pageY:C,startTop:T});z.current={top:F,dragging:x,pageY:C,startTop:T};var U=function(q){S(!0),w(nD(q,u)),R(z.current.top),i(),q.stopPropagation(),q.preventDefault()};l.useEffect(function(){var W=function(ee){ee.preventDefault()},q=$.current,Z=M.current;return q.addEventListener("touchstart",W,{passive:!1}),Z.addEventListener("touchstart",U,{passive:!1}),function(){q.removeEventListener("touchstart",W),Z.removeEventListener("touchstart",U)}},[]);var H=l.useRef();H.current=L;var Y=l.useRef();Y.current=j,l.useEffect(function(){if(x){var W,q=function(ee){var oe=z.current,se=oe.dragging,fe=oe.pageY,te=oe.startTop;Ht.cancel(W);var ie=$.current.getBoundingClientRect(),pe=p/(u?ie.width:ie.height);if(se){var me=(nD(ee,u)-fe)*pe,re=te;!_&&u?re-=me:re+=me;var ce=H.current,ge=Y.current,ye=ge?re/ge:0,Ee=Math.ceil(ye*ce);Ee=Math.max(Ee,0),Ee=Math.min(Ee,ce),W=Ht(function(){c(Ee,u)})}},Z=function(){S(!1),s()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",Z,{passive:!0}),window.addEventListener("touchend",Z,{passive:!0}),function(){window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",Z),window.removeEventListener("touchend",Z),Ht.cancel(W)}}},[x]),l.useEffect(function(){return A(),function(){clearTimeout(N.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:A}});var K="".concat(n,"-scrollbar"),J={position:"absolute",visibility:O?null:"hidden"},ne={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(J.height=8,J.left=0,J.right=0,J.bottom=0,ne.height="100%",ne.width=d,_?ne.left=F:ne.right=F):(J.width=8,J.top=0,J.bottom=0,_?J.right=0:J.left=0,ne.width="100%",ne.height=d,ne.top=F),l.createElement("div",{ref:$,className:ae(K,V(V(V({},"".concat(K,"-horizontal"),u),"".concat(K,"-vertical"),!u),"".concat(K,"-visible"),O)),style:X(X({},J),g),onMouseDown:B,onMouseMove:A},l.createElement("div",{ref:M,className:ae("".concat(K,"-thumb"),V({},"".concat(K,"-thumb-moving"),x)),style:X(X({},ne),m),onMouseDown:U}))}),Ape=20;function aD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Ape),Math.floor(n)}var Mpe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Dpe=[],Ppe={overflowY:"auto",overflowAnchor:"none"};function Lpe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,p=e.children,g=e.itemKey,m=e.virtual,h=e.direction,b=e.scrollWidth,x=e.component,S=x===void 0?"div":x,v=e.onScroll,y=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,E=e.extraRender,I=e.styles,T=wt(e,Mpe),R=l.useCallback(function(Ze){return typeof g=="function"?g(Ze):Ze==null?void 0:Ze[g]},[g]),_=$pe(R),$=le(_,4),M=$[0],P=$[1],D=$[2],O=$[3],k=!!(m!==!1&&o&&i),N=l.useMemo(function(){return Object.values(D.maps).reduce(function(Ze,st){return Ze+st},0)},[D.id,D.maps]),A=k&&d&&(Math.max(i*d.length,N)>o||!!b),L=h==="rtl",j=ae(r,V({},"".concat(r,"-rtl"),L),a),F=d||Dpe,B=l.useRef(),z=l.useRef(),U=l.useRef(),H=l.useState(0),Y=le(H,2),K=Y[0],J=Y[1],ne=l.useState(0),W=le(ne,2),q=W[0],Z=W[1],Q=l.useState(!1),ee=le(Q,2),oe=ee[0],se=ee[1],fe=function(){se(!0)},te=function(){se(!1)},ie={getKey:R};function pe(Ze){J(function(st){var ft;typeof Ze=="function"?ft=Ze(st):ft=Ze;var Je=ue(ft);return B.current.scrollTop=Je,Je})}var me=l.useRef({start:0,end:F.length}),re=l.useRef(),ce=Ipe(F,R),ge=le(ce,1),ye=ge[0];re.current=ye;var Ee=l.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!A){var Ze;return{scrollHeight:((Ze=z.current)===null||Ze===void 0?void 0:Ze.offsetHeight)||0,start:0,end:F.length-1,offset:void 0}}for(var st=0,ft,Je,Xe,_t=F.length,Mt=0;Mt<_t;Mt+=1){var Ut=F[Mt],mn=R(Ut),pn=D.get(mn),yt=st+(pn===void 0?i:pn);yt>=K&&ft===void 0&&(ft=Mt,Je=st),yt>K+o&&Xe===void 0&&(Xe=Mt),st=yt}return ft===void 0&&(ft=0,Je=0,Xe=Math.ceil(o/i)),Xe===void 0&&(Xe=F.length-1),Xe=Math.min(Xe+1,F.length-1),{scrollHeight:st,start:ft,end:Xe,offset:Je}},[A,k,K,F,O,o]),Ne=Ee.scrollHeight,_e=Ee.start,Pe=Ee.end,Le=Ee.offset;me.current.start=_e,me.current.end=Pe;var Ve=l.useState({width:0,height:o}),je=le(Ve,2),De=je[0],Se=je[1],Oe=function(st){Se({width:st.offsetWidth,height:st.offsetHeight})},Re=l.useRef(),Ce=l.useRef(),xe=l.useMemo(function(){return aD(De.width,b)},[De.width,b]),$e=l.useMemo(function(){return aD(De.height,Ne)},[De.height,Ne]),Fe=Ne-o,be=l.useRef(Fe);be.current=Fe;function ue(Ze){var st=Ze;return Number.isNaN(be.current)||(st=Math.min(st,be.current)),st=Math.max(st,0),st}var Ie=K<=0,We=K>=Fe,He=q<=0,Be=q>=b,ke=cW(Ie,We,He,Be),Ae=function(){return{x:L?-q:q,y:K}},Ue=l.useRef(Ae()),ct=Gt(function(Ze){if(y){var st=X(X({},Ae()),Ze);(Ue.current.x!==st.x||Ue.current.y!==st.y)&&(y(st),Ue.current=st)}});function rt(Ze,st){var ft=Ze;st?(Kr.flushSync(function(){Z(ft)}),ct()):pe(ft)}function qe(Ze){var st=Ze.currentTarget.scrollTop;st!==K&&pe(st),v==null||v(Ze),ct()}var Ye=function(st){var ft=st,Je=b?b-De.width:0;return ft=Math.max(ft,0),ft=Math.min(ft,Je),ft},at=Gt(function(Ze,st){st?(Kr.flushSync(function(){Z(function(ft){var Je=ft+(L?-Ze:Ze);return Ye(Je)})}),ct()):pe(function(ft){var Je=ft+Ze;return Je})}),ut=Tpe(k,Ie,We,He,Be,!!b,at),Ct=le(ut,2),kt=Ct[0],xt=Ct[1];Ope(k,B,function(Ze,st,ft,Je){var Xe=Je;return ke(Ze,st,ft)?!1:!Xe||!Xe._virtualHandled?(Xe&&(Xe._virtualHandled=!0),kt({preventDefault:function(){},deltaX:Ze?st:0,deltaY:Ze?0:st}),!0):!1}),Yt(function(){function Ze(ft){var Je=Ie&&ft.detail<0,Xe=We&&ft.detail>0;k&&!Je&&!Xe&&ft.preventDefault()}var st=B.current;return st.addEventListener("wheel",kt,{passive:!1}),st.addEventListener("DOMMouseScroll",xt,{passive:!0}),st.addEventListener("MozMousePixelScroll",Ze,{passive:!1}),function(){st.removeEventListener("wheel",kt),st.removeEventListener("DOMMouseScroll",xt),st.removeEventListener("MozMousePixelScroll",Ze)}},[k,Ie,We]),Yt(function(){if(b){var Ze=Ye(q);Z(Ze),ct({x:Ze})}},[De.width,b]);var et=function(){var st,ft;(st=Re.current)===null||st===void 0||st.delayHidden(),(ft=Ce.current)===null||ft===void 0||ft.delayHidden()},tt=kpe(B,F,D,i,R,function(){return P(!0)},pe,et);l.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:Ae,scrollTo:function(st){function ft(Je){return Je&&mt(Je)==="object"&&("left"in Je||"top"in Je)}ft(st)?(st.left!==void 0&&Z(Ye(st.left)),tt(st.top)):tt(st)}}}),Yt(function(){if(C){var Ze=F.slice(_e,Pe+1);C(Ze,F)}},[_e,Pe,F]);var bt=Rpe(F,R,D,i),Ot=E==null?void 0:E({start:_e,end:Pe,virtual:A,offsetX:q,offsetY:Le,rtl:L,getSize:bt}),ht=wpe(F,_e,Pe,b,q,M,p,ie),it=null;o&&(it=X(V({},c?"height":"maxHeight",o),Ppe),k&&(it.overflowY="hidden",b&&(it.overflowX="hidden"),oe&&(it.pointerEvents="none")));var Et={};return L&&(Et.dir="rtl"),l.createElement("div",he({ref:U,style:X(X({},u),{},{position:"relative"}),className:j},Et,T),l.createElement(Sa,{onResize:Oe},l.createElement(S,{className:"".concat(r,"-holder"),style:it,ref:B,onScroll:qe,onMouseEnter:et},l.createElement(lW,{prefixCls:r,height:Ne,offsetX:q,offsetY:Le,scrollWidth:b,onInnerResize:P,ref:z,innerProps:w,rtl:L,extra:Ot},ht))),A&&Ne>o&&l.createElement(rD,{ref:Re,prefixCls:r,scrollOffset:K,scrollRange:Ne,rtl:L,onScroll:rt,onStartMove:fe,onStopMove:te,spinSize:$e,containerSize:De.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb}),A&&b>De.width&&l.createElement(rD,{ref:Ce,prefixCls:r,scrollOffset:q,scrollRange:b,rtl:L,onScroll:rt,onStartMove:fe,onStopMove:te,spinSize:xe,containerSize:De.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb}))}var cy=l.forwardRef(Lpe);cy.displayName="List";function jpe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Fpe=["disabled","title","children","style","className"];function oD(e){return typeof e=="string"||typeof e=="number"}var Bpe=function(t,n){var r=QV(),a=r.prefixCls,o=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,p=r.notFoundContent,g=r.onPopupScroll,m=l.useContext(qO),h=m.maxCount,b=m.flattenOptions,x=m.onActiveValue,S=m.defaultActiveFirstOption,v=m.onSelect,y=m.menuItemSelectedIcon,C=m.rawValues,w=m.fieldNames,E=m.virtual,I=m.direction,T=m.listHeight,R=m.listItemHeight,_=m.optionRender,$="".concat(a,"-item"),M=Bl(function(){return b},[i,b],function(W,q){return q[0]&&W[1]!==q[1]}),P=l.useRef(null),D=l.useMemo(function(){return s&&YR(h)&&(C==null?void 0:C.size)>=h},[s,h,C==null?void 0:C.size]),O=function(q){q.preventDefault()},k=function(q){var Z;(Z=P.current)===null||Z===void 0||Z.scrollTo(typeof q=="number"?{index:q}:q)},N=function(q){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=M.length,ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1;F(q);var Q={source:Z?"keyboard":"mouse"},ee=M[q];if(!ee){x(null,-1,Q);return}x(ee.value,q,Q)};l.useEffect(function(){B(S!==!1?N(0):-1)},[M.length,u]);var z=l.useCallback(function(W){return C.has(W)&&c!=="combobox"},[c,Me(C).toString(),C.size]);l.useEffect(function(){var W=setTimeout(function(){if(!s&&i&&C.size===1){var Z=Array.from(C)[0],Q=M.findIndex(function(ee){var oe=ee.data;return oe.value===Z});Q!==-1&&(B(Q),k(Q))}});if(i){var q;(q=P.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(W)}},[i,u]);var U=function(q){q!==void 0&&v(q,{selected:!C.has(q)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(q){var Z=q.which,Q=q.ctrlKey;switch(Z){case ze.N:case ze.P:case ze.UP:case ze.DOWN:{var ee=0;if(Z===ze.UP?ee=-1:Z===ze.DOWN?ee=1:jpe()&&Q&&(Z===ze.N?ee=1:Z===ze.P&&(ee=-1)),ee!==0){var oe=N(j+ee,ee);k(oe),B(oe,!0)}break}case ze.ENTER:{var se,fe=M[j];fe&&!(fe!=null&&(se=fe.data)!==null&&se!==void 0&&se.disabled)&&!D?U(fe.value):U(void 0),i&&q.preventDefault();break}case ze.ESC:d(!1),i&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){k(q)}}}),M.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:O},p);var H=Object.keys(w).map(function(W){return w[W]}),Y=function(q){return q.label};function K(W,q){var Z=W.group;return{role:Z?"presentation":"option",id:"".concat(o,"_list_").concat(q)}}var J=function(q){var Z=M[q];if(!Z)return null;var Q=Z.data||{},ee=Q.value,oe=Z.group,se=ur(Q,!0),fe=Y(Z);return Z?l.createElement("div",he({"aria-label":typeof fe=="string"&&!oe?fe:null},se,{key:q},K(Z,q),{"aria-selected":z(ee)}),ee):null},ne={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,E&&l.createElement("div",he({},ne,{style:{height:0,width:0,overflow:"hidden"}}),J(j-1),J(j),J(j+1)),l.createElement(cy,{itemKey:"key",ref:P,data:M,height:T,itemHeight:R,fullHeight:!1,onMouseDown:O,onScroll:g,virtual:E,direction:I,innerProps:E?null:ne},function(W,q){var Z=W.group,Q=W.groupOption,ee=W.data,oe=W.label,se=W.value,fe=ee.key;if(Z){var te,ie=(te=ee.title)!==null&&te!==void 0?te:oD(oe)?oe.toString():void 0;return l.createElement("div",{className:ae($,"".concat($,"-group"),ee.className),title:ie},oe!==void 0?oe:fe)}var pe=ee.disabled,me=ee.title;ee.children;var re=ee.style,ce=ee.className,ge=wt(ee,Fpe),ye=Mn(ge,H),Ee=z(se),Ne=pe||!Ee&&D,_e="".concat($,"-option"),Pe=ae($,_e,ce,V(V(V(V({},"".concat(_e,"-grouped"),Q),"".concat(_e,"-active"),j===q&&!Ne),"".concat(_e,"-disabled"),Ne),"".concat(_e,"-selected"),Ee)),Le=Y(W),Ve=!y||typeof y=="function"||Ee,je=typeof Le=="number"?Le:Le||se,De=oD(je)?je.toString():void 0;return me!==void 0&&(De=me),l.createElement("div",he({},ur(ye),E?{}:K(W,q),{"aria-selected":Ee,className:Pe,title:De,onMouseMove:function(){j===q||Ne||B(q)},onClick:function(){Ne||U(se)},style:re}),l.createElement("div",{className:"".concat(_e,"-content")},typeof _=="function"?_(W,{index:q}):je),l.isValidElement(y)||Ee,Ve&&l.createElement(ly,{className:"".concat($,"-option-state"),customizeIcon:y,customizeIconProps:{value:se,disabled:Ne,isSelected:Ee}},Ee?"✓":null))}))},zpe=l.forwardRef(Bpe);const Hpe=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var o=n.current,i=o.values,s=o.options,c=e.map(function(p){if(p.label===void 0){var g;return X(X({},p),{},{label:(g=i.get(p.value))===null||g===void 0?void 0:g.label})}return p}),u=new Map,d=new Map;return c.forEach(function(p){u.set(p.value,p),d.set(p.value,t.get(p.value)||s.get(p.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=l.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function $S(e,t){return aW(e).join("").toUpperCase().includes(t)}const Upe=function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),p=u?r:function(m,h){return a?$S(h[a],d):h[o]?$S(h[i!=="children"?i:"label"],d):$S(h[s],d)},g=u?function(m){return XR(m)}:function(m){return m};return e.forEach(function(m){if(m[o]){var h=p(n,g(m));if(h)c.push(m);else{var b=m[o].filter(function(x){return p(n,g(x))});b.length&&c.push(X(X({},m),{},V({},o,b)))}return}p(n,g(m))&&c.push(m)}),c},[e,r,a,n,t])};var iD=0,Vpe=da();function Wpe(){var e;return Vpe?(e=iD,iD+=1):e="TEST_OR_SSR",e}function uW(e){var t=l.useState(),n=le(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(Wpe()))},[]),e||r}var Gpe=["children","value"],qpe=["children"];function Kpe(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=wt(r,Gpe);return X({key:n,value:o!==void 0?o:n,children:a},i)}function dW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _r(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,s=a.props,c=s.children,u=wt(s,qpe);return t||!o?Kpe(n):X(X({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:dW(c)})}).filter(function(n){return n})}var Ype=function(t,n,r,a,o){return l.useMemo(function(){var i=t,s=!t;s&&(i=dW(n));var c=new Map,u=new Map,d=function(m,h,b){b&&typeof b=="string"&&m.set(h[b],h)},p=function g(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b0?qe(ut.options):ut.options}):ut})},De=l.useMemo(function(){return v?je(Ve):Ve},[Ve,v,W]),Se=l.useMemo(function(){return vpe(De,{fieldNames:K,childrenAsData:H})},[De,K,H]),Oe=function(Ye){var at=se(Ye);if(pe(at),j&&(at.length!==ge.length||at.some(function(kt,xt){var et;return((et=ge[xt])===null||et===void 0?void 0:et.value)!==(kt==null?void 0:kt.value)}))){var ut=L?at:at.map(function(kt){return kt.value}),Ct=at.map(function(kt){return XR(ye(kt.value))});j(U?ut:ut[0],U?Ct:Ct[0])}},Re=l.useState(null),Ce=le(Re,2),xe=Ce[0],$e=Ce[1],Fe=l.useState(0),be=le(Fe,2),ue=be[0],Ie=be[1],We=T!==void 0?T:r!=="combobox",He=l.useCallback(function(qe,Ye){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ut=at.source,Ct=ut===void 0?"keyboard":ut;Ie(Ye),i&&r==="combobox"&&qe!==null&&Ct==="keyboard"&&$e(String(qe))},[i,r]),Be=function(Ye,at,ut){var Ct=function(){var Ze,st=ye(Ye);return[L?{label:st==null?void 0:st[K.label],value:Ye,key:(Ze=st==null?void 0:st.key)!==null&&Ze!==void 0?Ze:Ye}:Ye,XR(st)]};if(at&&m){var kt=Ct(),xt=le(kt,2),et=xt[0],tt=xt[1];m(et,tt)}else if(!at&&h&&ut!=="clear"){var bt=Ct(),Ot=le(bt,2),ht=Ot[0],it=Ot[1];h(ht,it)}},ke=sD(function(qe,Ye){var at,ut=U?Ye.selected:!0;ut?at=U?[].concat(Me(ge),[qe]):[qe]:at=ge.filter(function(Ct){return Ct.value!==qe}),Oe(at),Be(qe,ut),r==="combobox"?$e(""):(!ZR||g)&&(q(""),$e(""))}),Ae=function(Ye,at){Oe(Ye);var ut=at.type,Ct=at.values;(ut==="remove"||ut==="clear")&&Ct.forEach(function(kt){Be(kt.value,!1,ut)})},Ue=function(Ye,at){if(q(Ye),$e(null),at.source==="submit"){var ut=(Ye||"").trim();if(ut){var Ct=Array.from(new Set([].concat(Me(Ne),[ut])));Oe(Ct),Be(ut,!0),q("")}return}at.source!=="blur"&&(r==="combobox"&&Oe(Ye),d==null||d(Ye))},ct=function(Ye){var at=Ye;r!=="tags"&&(at=Ye.map(function(Ct){var kt=ee.get(Ct);return kt==null?void 0:kt.value}).filter(function(Ct){return Ct!==void 0}));var ut=Array.from(new Set([].concat(Me(Ne),Me(at))));Oe(ut),ut.forEach(function(Ct){Be(Ct,!0)})},rt=l.useMemo(function(){var qe=_!==!1&&x!==!1;return X(X({},Z),{},{flattenOptions:Se,onActiveValue:He,defaultActiveFirstOption:We,onSelect:ke,menuItemSelectedIcon:R,rawValues:Ne,fieldNames:K,virtual:qe,direction:$,listHeight:P,listItemHeight:O,childrenAsData:H,maxCount:F,optionRender:E})},[F,Z,Se,He,We,ke,R,Ne,K,_,x,$,P,O,H,E]);return l.createElement(qO.Provider,{value:rt},l.createElement(sW,he({},B,{id:z,prefixCls:o,ref:t,omitDomProps:Zpe,mode:r,displayValues:Ee,onDisplayValuesChange:Ae,direction:$,searchValue:W,onSearch:Ue,autoClearSearchValue:g,onSearchSplit:ct,dropdownMatchSelectWidth:x,OptionList:zpe,emptyOptions:!Se.length,activeValue:xe,activeDescendantId:"".concat(z,"_list_").concat(ue)})))}),XO=Jpe;XO.Option=YO;XO.OptGroup=KO;function $s(e,t,n){return ae({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Vl=(e,t)=>t||e,ege=()=>{const[,e]=ta(),n=new sn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"empty image"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tge=()=>{const[,e]=ta(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new sn(t).onBackground(a).toHexShortString(),shadowColor:new sn(n).onBackground(a).toHexShortString(),contentColor:new sn(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"Simple Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:o},l.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"}),l.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:s}))))},nge=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},rge=on("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Ft(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[nge(a)]});var age=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=fW,description:o,children:i,imageStyle:s,style:c}=e,u=age(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:g}=l.useContext(lt),m=d("empty",r),[h,b,x]=rge(m),[S]=es("Empty"),v=typeof o<"u"?o:S==null?void 0:S.description,y=typeof v=="string"?v:"empty";let C=null;return typeof a=="string"?C=l.createElement("img",{alt:y,src:a}):C=a,h(l.createElement("div",Object.assign({className:ae(b,x,m,g==null?void 0:g.className,{[`${m}-normal`]:a===pW,[`${m}-rtl`]:p==="rtl"},t,n),style:Object.assign(Object.assign({},g==null?void 0:g.style),c)},u),l.createElement("div",{className:`${m}-image`,style:s},C),v&&l.createElement("div",{className:`${m}-description`},v),i&&l.createElement("div",{className:`${m}-footer`},i)))};Yr.PRESENTED_IMAGE_DEFAULT=fW;Yr.PRESENTED_IMAGE_SIMPLE=pW;const uy=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(lt),r=n("empty");switch(t){case"Table":case"List":return de.createElement(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return de.createElement(Yr,null)}},Jc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:i}=l.useContext(lt),s=l.useContext(IV),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=s??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=uie.includes(u);return[u,d]},oge=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="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 gW(e,t){return e||oge(t)}const lD=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},ige=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},an(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` +`].includes(Zt)})},[O]),qe=l.useContext(qO)||{},Qe=qe.maxCount,ot=qe.rawValues,wt=function(Rt,zt,Ht){if(!(te&&XR(Qe)&&(ot==null?void 0:ot.size)>=Qe)){var nn=!0,It=Rt;R==null||R(null);var Dt=bpe(Rt,O,XR(Qe)?Qe-ot.size:void 0),vn=Ht?null:Dt;return x!=="combobox"&&vn&&(It="",D==null||D(vn),Ye(!1),nn=!1),P&&Te!==It&&P(It,{source:zt?"typing":"effect"}),nn}},kt=function(Rt){!Rt||!Rt.trim()||P(Rt,{source:"submit"})};l.useEffect(function(){!Oe&&!te&&x!=="combobox"&&wt("",!1,!1)},[Oe]),l.useEffect(function(){Ue&&S&&Ae(!1),S&&!je.current&&Se(!1)},[S]);var xt=JV(),nt=ce(xt,2),rt=nt[0],bt=nt[1],Ot=l.useRef(!1),ht=function(Rt){var zt=rt(),Ht=Rt.key,nn=Ht==="Enter";if(nn&&(x!=="combobox"&&Rt.preventDefault(),Oe||Ye(!0)),bt(!!Te),Ht==="Backspace"&&!zt&&te&&!Te&&d.length){for(var It=De(d),Dt=null,vn=It.length-1;vn>=0;vn-=1){var zn=It[vn];if(!zn.disabled){It.splice(vn,1),Dt=zn;break}}Dt&&p(It,{type:"remove",values:[Dt]})}for(var Sr=arguments.length,wr=new Array(Sr>1?Sr-1:0),Ar=1;Ar1?zt-1:0),nn=1;nn1?Dt-1:0),zn=1;zn"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const cW=function(e,t,n,r){var a=l.useRef(!1),o=l.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&p?(clearTimeout(o.current),a.current=!1):(!p||a.current)&&i(),!a.current&&p}};function Tpe(e,t,n,r,a,o,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),p=cW(t,n,r,a);function g(v,y){if(Ut.cancel(c.current),!p(!1,y)){var w=v;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=y,u.current=y,eD||w.preventDefault(),c.current=Ut(function(){var C=d.current?10:1;i(s.current*C,!1),s.current=0})}}function m(v,y){i(y,!0),eD||v.preventDefault()}var h=l.useRef(null),b=l.useRef(null);function x(v){if(e){Ut.cancel(b.current),b.current=Ut(function(){h.current=null},2);var y=v.deltaX,w=v.deltaY,C=v.shiftKey,E=y,I=w;(h.current==="sx"||!h.current&&C&&w&&!y)&&(E=w,I=0,h.current="sx");var T=Math.abs(E),R=Math.abs(I);h.current===null&&(h.current=o&&T>R?"x":"y"),h.current==="y"?g(v,I):m(v,E)}}function S(v){e&&(d.current=v.detail===u.current)}return[x,S]}function Rpe(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ce(a,2),i=o[0],s=o[1],c=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,g=i.get(d),m=i.get(p);if(g===void 0||m===void 0)for(var h=e.length,b=s.length;b0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){s.current.forEach(function(x,S){if(x&&x.offsetParent){var v=Ap(x),y=v.offsetHeight;c.current.get(S)!==y&&c.current.set(S,v.offsetHeight)}}),i(function(x){return x+1})};m?h():u.current=Ut(h)}function g(m,h){var b=e(m);s.current.get(b),h?(s.current.set(b,h),p()):s.current.delete(b)}return l.useEffect(function(){return d},[]),[g,p,c.current,o]}var tD=14/15;function Ope(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageX),b=Math.ceil(m.touches[0].pageY),x=a.current-h,S=o.current-b,v=Math.abs(x)>Math.abs(S);v?a.current=h:o.current=b;var y=n(v,v?x:S,!1,m);y&&m.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){v?x*=tD:S*=tD;var w=Math.floor(v?x:S);(!n(v,w,!0)||Math.abs(w)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},p=function(m){c(),m.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(m.touches[0].pageX),o.current=Math.ceil(m.touches[0].pageY),i.current=m.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Yt(function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var g;(g=t.current)===null||g===void 0||g.removeEventListener("touchstart",p),c(),clearInterval(s.current)}},[e])}var Npe=10;function kpe(e,t,n,r,a,o,i,s){var c=l.useRef(),u=l.useState(null),d=ce(u,2),p=d[0],g=d[1];return Yt(function(){if(p&&p.times=0;D-=1){var O=a(t[D]),k=n.get(O);if(k===void 0){v=!0;break}if(P-=k,P<=0)break}switch(C){case"top":w=I-x;break;case"bottom":w=T-S+x;break;default:{var N=e.current.scrollTop,A=N+S;IA&&(y="bottom")}}w!==null&&i(w),w!==p.lastTop&&(v=!0)}v&&g(X(X({},p),{},{times:p.times+1,targetAlign:y,lastTop:w}))}},[p,e.current]),function(m){if(m==null){s();return}if(Ut.cancel(c.current),typeof m=="number")i(m);else if(m&&mt(m)==="object"){var h,b=m.align;"index"in m?h=m.index:h=t.findIndex(function(v){return a(v)===m.key});var x=m.offset,S=x===void 0?0:x;g({times:0,index:h,offset:S,originAlign:b})}}}function nD(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var rD=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,p=e.containerSize,g=e.style,m=e.thumbStyle,h=l.useState(!1),b=ce(h,2),x=b[0],S=b[1],v=l.useState(null),y=ce(v,2),w=y[0],C=y[1],E=l.useState(null),I=ce(E,2),T=I[0],R=I[1],_=!r,$=l.useRef(),M=l.useRef(),P=l.useState(!1),D=ce(P,2),O=D[0],k=D[1],N=l.useRef(),A=function(){clearTimeout(N.current),k(!0),N.current=setTimeout(function(){k(!1)},3e3)},L=o-p||0,j=p-d||0,F=l.useMemo(function(){if(a===0||L===0)return 0;var W=a/L;return W*j},[a,L,j]),B=function(q){q.stopPropagation(),q.preventDefault()},z=l.useRef({top:F,dragging:x,pageY:w,startTop:T});z.current={top:F,dragging:x,pageY:w,startTop:T};var U=function(q){S(!0),C(nD(q,u)),R(z.current.top),i(),q.stopPropagation(),q.preventDefault()};l.useEffect(function(){var W=function(J){J.preventDefault()},q=$.current,Z=M.current;return q.addEventListener("touchstart",W,{passive:!1}),Z.addEventListener("touchstart",U,{passive:!1}),function(){q.removeEventListener("touchstart",W),Z.removeEventListener("touchstart",U)}},[]);var H=l.useRef();H.current=L;var K=l.useRef();K.current=j,l.useEffect(function(){if(x){var W,q=function(J){var ie=z.current,le=ie.dragging,fe=ie.pageY,te=ie.startTop;Ut.cancel(W);var se=$.current.getBoundingClientRect(),pe=p/(u?se.width:se.height);if(le){var he=(nD(J,u)-fe)*pe,re=te;!_&&u?re-=he:re+=he;var ue=H.current,me=K.current,xe=me?re/me:0,Ee=Math.ceil(xe*ue);Ee=Math.max(Ee,0),Ee=Math.min(Ee,ue),W=Ut(function(){c(Ee,u)})}},Z=function(){S(!1),s()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",Z,{passive:!0}),window.addEventListener("touchend",Z,{passive:!0}),function(){window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",Z),window.removeEventListener("touchend",Z),Ut.cancel(W)}}},[x]),l.useEffect(function(){return A(),function(){clearTimeout(N.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:A}});var Y="".concat(n,"-scrollbar"),ee={position:"absolute",visibility:O?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(ee.height=8,ee.left=0,ee.right=0,ee.bottom=0,ae.height="100%",ae.width=d,_?ae.left=F:ae.right=F):(ee.width=8,ee.top=0,ee.bottom=0,_?ee.right=0:ee.left=0,ae.width="100%",ae.height=d,ae.top=F),l.createElement("div",{ref:$,className:oe(Y,V(V(V({},"".concat(Y,"-horizontal"),u),"".concat(Y,"-vertical"),!u),"".concat(Y,"-visible"),O)),style:X(X({},ee),g),onMouseDown:B,onMouseMove:A},l.createElement("div",{ref:M,className:oe("".concat(Y,"-thumb"),V({},"".concat(Y,"-thumb-moving"),x)),style:X(X({},ae),m),onMouseDown:U}))}),Ape=20;function aD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Ape),Math.floor(n)}var Mpe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Dpe=[],Ppe={overflowY:"auto",overflowAnchor:"none"};function Lpe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,p=e.children,g=e.itemKey,m=e.virtual,h=e.direction,b=e.scrollWidth,x=e.component,S=x===void 0?"div":x,v=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,E=e.extraRender,I=e.styles,T=Ct(e,Mpe),R=l.useCallback(function(Ze){return typeof g=="function"?g(Ze):Ze==null?void 0:Ze[g]},[g]),_=$pe(R),$=ce(_,4),M=$[0],P=$[1],D=$[2],O=$[3],k=!!(m!==!1&&o&&i),N=l.useMemo(function(){return Object.values(D.maps).reduce(function(Ze,ct){return Ze+ct},0)},[D.id,D.maps]),A=k&&d&&(Math.max(i*d.length,N)>o||!!b),L=h==="rtl",j=oe(r,V({},"".concat(r,"-rtl"),L),a),F=d||Dpe,B=l.useRef(),z=l.useRef(),U=l.useRef(),H=l.useState(0),K=ce(H,2),Y=K[0],ee=K[1],ae=l.useState(0),W=ce(ae,2),q=W[0],Z=W[1],Q=l.useState(!1),J=ce(Q,2),ie=J[0],le=J[1],fe=function(){le(!0)},te=function(){le(!1)},se={getKey:R};function pe(Ze){ee(function(ct){var ft;typeof Ze=="function"?ft=Ze(ct):ft=Ze;var et=ne(ft);return B.current.scrollTop=et,et})}var he=l.useRef({start:0,end:F.length}),re=l.useRef(),ue=Ipe(F,R),me=ce(ue,1),xe=me[0];re.current=xe;var Ee=l.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!A){var Ze;return{scrollHeight:((Ze=z.current)===null||Ze===void 0?void 0:Ze.offsetHeight)||0,start:0,end:F.length-1,offset:void 0}}for(var ct=0,ft,et,Xe,_t=F.length,Mt=0;Mt<_t;Mt+=1){var Vt=F[Mt],mn=R(Vt),pn=D.get(mn),yt=ct+(pn===void 0?i:pn);yt>=Y&&ft===void 0&&(ft=Mt,et=ct),yt>Y+o&&Xe===void 0&&(Xe=Mt),ct=yt}return ft===void 0&&(ft=0,et=0,Xe=Math.ceil(o/i)),Xe===void 0&&(Xe=F.length-1),Xe=Math.min(Xe+1,F.length-1),{scrollHeight:ct,start:ft,end:Xe,offset:et}},[A,k,Y,F,O,o]),ke=Ee.scrollHeight,$e=Ee.start,Le=Ee.end,je=Ee.offset;he.current.start=$e,he.current.end=Le;var He=l.useState({width:0,height:o}),Be=ce(He,2),Pe=Be[0],Se=Be[1],Ne=function(ct){Se({width:ct.offsetWidth,height:ct.offsetHeight})},Te=l.useRef(),we=l.useRef(),Me=l.useMemo(function(){return aD(Pe.width,b)},[Pe.width,b]),Ge=l.useMemo(function(){return aD(Pe.height,ke)},[Pe.height,ke]),st=ke-o,ge=l.useRef(st);ge.current=st;function ne(Ze){var ct=Ze;return Number.isNaN(ge.current)||(ct=Math.min(ct,ge.current)),ct=Math.max(ct,0),ct}var ve=Y<=0,_e=Y>=st,ze=q<=0,Ue=q>=b,Ae=cW(ve,_e,ze,Ue),Oe=function(){return{x:L?-q:q,y:Y}},Re=l.useRef(Oe()),at=qt(function(Ze){if(y){var ct=X(X({},Oe()),Ze);(Re.current.x!==ct.x||Re.current.y!==ct.y)&&(y(ct),Re.current=ct)}});function Ye(Ze,ct){var ft=Ze;ct?(Kr.flushSync(function(){Z(ft)}),at()):pe(ft)}function We(Ze){var ct=Ze.currentTarget.scrollTop;ct!==Y&&pe(ct),v==null||v(Ze),at()}var qe=function(ct){var ft=ct,et=b?b-Pe.width:0;return ft=Math.max(ft,0),ft=Math.min(ft,et),ft},Qe=qt(function(Ze,ct){ct?(Kr.flushSync(function(){Z(function(ft){var et=ft+(L?-Ze:Ze);return qe(et)})}),at()):pe(function(ft){var et=ft+Ze;return et})}),ot=Tpe(k,ve,_e,ze,Ue,!!b,Qe),wt=ce(ot,2),kt=wt[0],xt=wt[1];Ope(k,B,function(Ze,ct,ft,et){var Xe=et;return Ae(Ze,ct,ft)?!1:!Xe||!Xe._virtualHandled?(Xe&&(Xe._virtualHandled=!0),kt({preventDefault:function(){},deltaX:Ze?ct:0,deltaY:Ze?0:ct}),!0):!1}),Yt(function(){function Ze(ft){var et=ve&&ft.detail<0,Xe=_e&&ft.detail>0;k&&!et&&!Xe&&ft.preventDefault()}var ct=B.current;return ct.addEventListener("wheel",kt,{passive:!1}),ct.addEventListener("DOMMouseScroll",xt,{passive:!0}),ct.addEventListener("MozMousePixelScroll",Ze,{passive:!1}),function(){ct.removeEventListener("wheel",kt),ct.removeEventListener("DOMMouseScroll",xt),ct.removeEventListener("MozMousePixelScroll",Ze)}},[k,ve,_e]),Yt(function(){if(b){var Ze=qe(q);Z(Ze),at({x:Ze})}},[Pe.width,b]);var nt=function(){var ct,ft;(ct=Te.current)===null||ct===void 0||ct.delayHidden(),(ft=we.current)===null||ft===void 0||ft.delayHidden()},rt=kpe(B,F,D,i,R,function(){return P(!0)},pe,nt);l.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:Oe,scrollTo:function(ct){function ft(et){return et&&mt(et)==="object"&&("left"in et||"top"in et)}ft(ct)?(ct.left!==void 0&&Z(qe(ct.left)),rt(ct.top)):rt(ct)}}}),Yt(function(){if(w){var Ze=F.slice($e,Le+1);w(Ze,F)}},[$e,Le,F]);var bt=Rpe(F,R,D,i),Ot=E==null?void 0:E({start:$e,end:Le,virtual:A,offsetX:q,offsetY:je,rtl:L,getSize:bt}),ht=Cpe(F,$e,Le,b,q,M,p,se),lt=null;o&&(lt=X(V({},c?"height":"maxHeight",o),Ppe),k&&(lt.overflowY="hidden",b&&(lt.overflowX="hidden"),ie&&(lt.pointerEvents="none")));var Et={};return L&&(Et.dir="rtl"),l.createElement("div",be({ref:U,style:X(X({},u),{},{position:"relative"}),className:j},Et,T),l.createElement(wa,{onResize:Ne},l.createElement(S,{className:"".concat(r,"-holder"),style:lt,ref:B,onScroll:We,onMouseEnter:nt},l.createElement(lW,{prefixCls:r,height:ke,offsetX:q,offsetY:je,scrollWidth:b,onInnerResize:P,ref:z,innerProps:C,rtl:L,extra:Ot},ht))),A&&ke>o&&l.createElement(rD,{ref:Te,prefixCls:r,scrollOffset:Y,scrollRange:ke,rtl:L,onScroll:Ye,onStartMove:fe,onStopMove:te,spinSize:Ge,containerSize:Pe.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb}),A&&b>Pe.width&&l.createElement(rD,{ref:we,prefixCls:r,scrollOffset:q,scrollRange:b,rtl:L,onScroll:Ye,onStartMove:fe,onStopMove:te,spinSize:Me,containerSize:Pe.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb}))}var dy=l.forwardRef(Lpe);dy.displayName="List";function jpe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Fpe=["disabled","title","children","style","className"];function oD(e){return typeof e=="string"||typeof e=="number"}var Bpe=function(t,n){var r=QV(),a=r.prefixCls,o=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,p=r.notFoundContent,g=r.onPopupScroll,m=l.useContext(qO),h=m.maxCount,b=m.flattenOptions,x=m.onActiveValue,S=m.defaultActiveFirstOption,v=m.onSelect,y=m.menuItemSelectedIcon,w=m.rawValues,C=m.fieldNames,E=m.virtual,I=m.direction,T=m.listHeight,R=m.listItemHeight,_=m.optionRender,$="".concat(a,"-item"),M=Bl(function(){return b},[i,b],function(W,q){return q[0]&&W[1]!==q[1]}),P=l.useRef(null),D=l.useMemo(function(){return s&&XR(h)&&(w==null?void 0:w.size)>=h},[s,h,w==null?void 0:w.size]),O=function(q){q.preventDefault()},k=function(q){var Z;(Z=P.current)===null||Z===void 0||Z.scrollTo(typeof q=="number"?{index:q}:q)},N=function(q){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=M.length,J=0;J1&&arguments[1]!==void 0?arguments[1]:!1;F(q);var Q={source:Z?"keyboard":"mouse"},J=M[q];if(!J){x(null,-1,Q);return}x(J.value,q,Q)};l.useEffect(function(){B(S!==!1?N(0):-1)},[M.length,u]);var z=l.useCallback(function(W){return w.has(W)&&c!=="combobox"},[c,De(w).toString(),w.size]);l.useEffect(function(){var W=setTimeout(function(){if(!s&&i&&w.size===1){var Z=Array.from(w)[0],Q=M.findIndex(function(J){var ie=J.data;return ie.value===Z});Q!==-1&&(B(Q),k(Q))}});if(i){var q;(q=P.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(W)}},[i,u]);var U=function(q){q!==void 0&&v(q,{selected:!w.has(q)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(q){var Z=q.which,Q=q.ctrlKey;switch(Z){case Fe.N:case Fe.P:case Fe.UP:case Fe.DOWN:{var J=0;if(Z===Fe.UP?J=-1:Z===Fe.DOWN?J=1:jpe()&&Q&&(Z===Fe.N?J=1:Z===Fe.P&&(J=-1)),J!==0){var ie=N(j+J,J);k(ie),B(ie,!0)}break}case Fe.ENTER:{var le,fe=M[j];fe&&!(fe!=null&&(le=fe.data)!==null&&le!==void 0&&le.disabled)&&!D?U(fe.value):U(void 0),i&&q.preventDefault();break}case Fe.ESC:d(!1),i&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){k(q)}}}),M.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:O},p);var H=Object.keys(C).map(function(W){return C[W]}),K=function(q){return q.label};function Y(W,q){var Z=W.group;return{role:Z?"presentation":"option",id:"".concat(o,"_list_").concat(q)}}var ee=function(q){var Z=M[q];if(!Z)return null;var Q=Z.data||{},J=Q.value,ie=Z.group,le=ur(Q,!0),fe=K(Z);return Z?l.createElement("div",be({"aria-label":typeof fe=="string"&&!ie?fe:null},le,{key:q},Y(Z,q),{"aria-selected":z(J)}),J):null},ae={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,E&&l.createElement("div",be({},ae,{style:{height:0,width:0,overflow:"hidden"}}),ee(j-1),ee(j),ee(j+1)),l.createElement(dy,{itemKey:"key",ref:P,data:M,height:T,itemHeight:R,fullHeight:!1,onMouseDown:O,onScroll:g,virtual:E,direction:I,innerProps:E?null:ae},function(W,q){var Z=W.group,Q=W.groupOption,J=W.data,ie=W.label,le=W.value,fe=J.key;if(Z){var te,se=(te=J.title)!==null&&te!==void 0?te:oD(ie)?ie.toString():void 0;return l.createElement("div",{className:oe($,"".concat($,"-group"),J.className),title:se},ie!==void 0?ie:fe)}var pe=J.disabled,he=J.title;J.children;var re=J.style,ue=J.className,me=Ct(J,Fpe),xe=Mn(me,H),Ee=z(le),ke=pe||!Ee&&D,$e="".concat($,"-option"),Le=oe($,$e,ue,V(V(V(V({},"".concat($e,"-grouped"),Q),"".concat($e,"-active"),j===q&&!ke),"".concat($e,"-disabled"),ke),"".concat($e,"-selected"),Ee)),je=K(W),He=!y||typeof y=="function"||Ee,Be=typeof je=="number"?je:je||le,Pe=oD(Be)?Be.toString():void 0;return he!==void 0&&(Pe=he),l.createElement("div",be({},ur(xe),E?{}:Y(W,q),{"aria-selected":Ee,className:Le,title:Pe,onMouseMove:function(){j===q||ke||B(q)},onClick:function(){ke||U(le)},style:re}),l.createElement("div",{className:"".concat($e,"-content")},typeof _=="function"?_(W,{index:q}):Be),l.isValidElement(y)||Ee,He&&l.createElement(uy,{className:"".concat($,"-option-state"),customizeIcon:y,customizeIconProps:{value:le,disabled:ke,isSelected:Ee}},Ee?"✓":null))}))},zpe=l.forwardRef(Bpe);const Hpe=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var o=n.current,i=o.values,s=o.options,c=e.map(function(p){if(p.label===void 0){var g;return X(X({},p),{},{label:(g=i.get(p.value))===null||g===void 0?void 0:g.label})}return p}),u=new Map,d=new Map;return c.forEach(function(p){u.set(p.value,p),d.set(p.value,t.get(p.value)||s.get(p.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=l.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function NS(e,t){return aW(e).join("").toUpperCase().includes(t)}const Upe=function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),p=u?r:function(m,h){return a?NS(h[a],d):h[o]?NS(h[i!=="children"?i:"label"],d):NS(h[s],d)},g=u?function(m){return ZR(m)}:function(m){return m};return e.forEach(function(m){if(m[o]){var h=p(n,g(m));if(h)c.push(m);else{var b=m[o].filter(function(x){return p(n,g(x))});b.length&&c.push(X(X({},m),{},V({},o,b)))}return}p(n,g(m))&&c.push(m)}),c},[e,r,a,n,t])};var iD=0,Vpe=fa();function Wpe(){var e;return Vpe?(e=iD,iD+=1):e="TEST_OR_SSR",e}function uW(e){var t=l.useState(),n=ce(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(Wpe()))},[]),e||r}var Gpe=["children","value"],qpe=["children"];function Kpe(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=Ct(r,Gpe);return X({key:n,value:o!==void 0?o:n,children:a},i)}function dW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _r(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,s=a.props,c=s.children,u=Ct(s,qpe);return t||!o?Kpe(n):X(X({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:dW(c)})}).filter(function(n){return n})}var Ype=function(t,n,r,a,o){return l.useMemo(function(){var i=t,s=!t;s&&(i=dW(n));var c=new Map,u=new Map,d=function(m,h,b){b&&typeof b=="string"&&m.set(h[b],h)},p=function g(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b0?We(ot.options):ot.options}):ot})},Pe=l.useMemo(function(){return v?Be(He):He},[He,v,W]),Se=l.useMemo(function(){return vpe(Pe,{fieldNames:Y,childrenAsData:H})},[Pe,Y,H]),Ne=function(qe){var Qe=le(qe);if(pe(Qe),j&&(Qe.length!==me.length||Qe.some(function(kt,xt){var nt;return((nt=me[xt])===null||nt===void 0?void 0:nt.value)!==(kt==null?void 0:kt.value)}))){var ot=L?Qe:Qe.map(function(kt){return kt.value}),wt=Qe.map(function(kt){return ZR(xe(kt.value))});j(U?ot:ot[0],U?wt:wt[0])}},Te=l.useState(null),we=ce(Te,2),Me=we[0],Ge=we[1],st=l.useState(0),ge=ce(st,2),ne=ge[0],ve=ge[1],_e=T!==void 0?T:r!=="combobox",ze=l.useCallback(function(We,qe){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ot=Qe.source,wt=ot===void 0?"keyboard":ot;ve(qe),i&&r==="combobox"&&We!==null&&wt==="keyboard"&&Ge(String(We))},[i,r]),Ue=function(qe,Qe,ot){var wt=function(){var Ze,ct=xe(qe);return[L?{label:ct==null?void 0:ct[Y.label],value:qe,key:(Ze=ct==null?void 0:ct.key)!==null&&Ze!==void 0?Ze:qe}:qe,ZR(ct)]};if(Qe&&m){var kt=wt(),xt=ce(kt,2),nt=xt[0],rt=xt[1];m(nt,rt)}else if(!Qe&&h&&ot!=="clear"){var bt=wt(),Ot=ce(bt,2),ht=Ot[0],lt=Ot[1];h(ht,lt)}},Ae=sD(function(We,qe){var Qe,ot=U?qe.selected:!0;ot?Qe=U?[].concat(De(me),[We]):[We]:Qe=me.filter(function(wt){return wt.value!==We}),Ne(Qe),Ue(We,ot),r==="combobox"?Ge(""):(!QR||g)&&(q(""),Ge(""))}),Oe=function(qe,Qe){Ne(qe);var ot=Qe.type,wt=Qe.values;(ot==="remove"||ot==="clear")&&wt.forEach(function(kt){Ue(kt.value,!1,ot)})},Re=function(qe,Qe){if(q(qe),Ge(null),Qe.source==="submit"){var ot=(qe||"").trim();if(ot){var wt=Array.from(new Set([].concat(De(ke),[ot])));Ne(wt),Ue(ot,!0),q("")}return}Qe.source!=="blur"&&(r==="combobox"&&Ne(qe),d==null||d(qe))},at=function(qe){var Qe=qe;r!=="tags"&&(Qe=qe.map(function(wt){var kt=J.get(wt);return kt==null?void 0:kt.value}).filter(function(wt){return wt!==void 0}));var ot=Array.from(new Set([].concat(De(ke),De(Qe))));Ne(ot),ot.forEach(function(wt){Ue(wt,!0)})},Ye=l.useMemo(function(){var We=_!==!1&&x!==!1;return X(X({},Z),{},{flattenOptions:Se,onActiveValue:ze,defaultActiveFirstOption:_e,onSelect:Ae,menuItemSelectedIcon:R,rawValues:ke,fieldNames:Y,virtual:We,direction:$,listHeight:P,listItemHeight:O,childrenAsData:H,maxCount:F,optionRender:E})},[F,Z,Se,ze,_e,Ae,R,ke,Y,_,x,$,P,O,H,E]);return l.createElement(qO.Provider,{value:Ye},l.createElement(sW,be({},B,{id:z,prefixCls:o,ref:t,omitDomProps:Zpe,mode:r,displayValues:Ee,onDisplayValuesChange:Oe,direction:$,searchValue:W,onSearch:Re,autoClearSearchValue:g,onSearchSplit:at,dropdownMatchSelectWidth:x,OptionList:zpe,emptyOptions:!Se.length,activeValue:Me,activeDescendantId:"".concat(z,"_list_").concat(ne)})))}),XO=Jpe;XO.Option=YO;XO.OptGroup=KO;function Ns(e,t,n){return oe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Vl=(e,t)=>t||e,ege=()=>{const[,e]=ta(),n=new sn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"empty image"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tge=()=>{const[,e]=ta(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new sn(t).onBackground(a).toHexShortString(),shadowColor:new sn(n).onBackground(a).toHexShortString(),contentColor:new sn(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"Simple Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:o},l.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"}),l.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:s}))))},nge=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},rge=on("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Bt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[nge(a)]});var age=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=fW,description:o,children:i,imageStyle:s,style:c}=e,u=age(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:p,empty:g}=l.useContext(ut),m=d("empty",r),[h,b,x]=rge(m),[S]=ns("Empty"),v=typeof o<"u"?o:S==null?void 0:S.description,y=typeof v=="string"?v:"empty";let w=null;return typeof a=="string"?w=l.createElement("img",{alt:y,src:a}):w=a,h(l.createElement("div",Object.assign({className:oe(b,x,m,g==null?void 0:g.className,{[`${m}-normal`]:a===pW,[`${m}-rtl`]:p==="rtl"},t,n),style:Object.assign(Object.assign({},g==null?void 0:g.style),c)},u),l.createElement("div",{className:`${m}-image`,style:s},w),v&&l.createElement("div",{className:`${m}-description`},v),i&&l.createElement("div",{className:`${m}-footer`},i)))};Yr.PRESENTED_IMAGE_DEFAULT=fW;Yr.PRESENTED_IMAGE_SIMPLE=pW;const fy=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(ut),r=n("empty");switch(t){case"Table":case"List":return de.createElement(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return de.createElement(Yr,null)}},Jc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:i}=l.useContext(ut),s=l.useContext(IV),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=s??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=uie.includes(u);return[u,d]},oge=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="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 gW(e,t){return e||oge(t)}const lD=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},ige=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},an(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${a}${s}bottomLeft, ${o}${s}bottomLeft - `]:{animationName:ey},[` + `]:{animationName:ny},[` ${a}${s}topLeft, ${o}${s}topLeft, ${a}${s}topRight, ${o}${s}topRight - `]:{animationName:ny},[`${i}${s}bottomLeft`]:{animationName:ty},[` + `]:{animationName:ay},[`${i}${s}bottomLeft`]:{animationName:ry},[` ${i}${s}topLeft, ${i}${s}topRight - `]:{animationName:ry},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},lD(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Oo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},lD(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Qi(e,"slide-up"),Qi(e,"slide-down"),Md(e,"move-up"),Md(e,"move-down")]},mW=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:G(t),itemLineHeight:G(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},sge=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},hW=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},rf()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},lge=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=sge(e),s=t?`${n}-${t}`:"",c=mW(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},hW(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${G(r)} 0`,lineHeight:G(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:G(c.itemLineHeight)},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:G(o),transition:`all ${e.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:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function OS(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + `]:{animationName:oy},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},lD(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Oo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},lD(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Ji(e,"slide-up"),Ji(e,"slide-down"),Md(e,"move-up"),Md(e,"move-down")]},mW=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:G(t),itemLineHeight:G(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},sge=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},hW=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},rf()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},lge=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=sge(e),s=t?`${n}-${t}`:"",c=mW(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},hW(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${G(r)} 0`,lineHeight:G(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:G(c.itemLineHeight)},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:G(o),transition:`all ${e.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:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function kS(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[lge(e,t),a]}const cge=e=>{const{componentCls:t}=e,n=Ft(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ft(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[OS(e),OS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},OS(r,"lg")]};function NS(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a,fontSizeIcon:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=e.calc(r).add(o).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},an(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:G(s),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[lge(e,t),a]}const cge=e=>{const{componentCls:t}=e,n=Bt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Bt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[kS(e),kS(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},kS(r,"lg")]};function AS(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a,fontSizeIcon:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=e.calc(r).add(o).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},an(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:G(s),bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:G(i),transition:`all ${e.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"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${G(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:G(i)}}},[`&${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 ${G(r)}`,"&:after":{display:"none"}}}}}}}function uge(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[NS(e),NS(Ft(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${G(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${G(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:G(i)}}},[`&${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 ${G(r)}`,"&:after":{display:"none"}}}}}}}function uge(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[AS(e),AS(Bt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${G(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},NS(Ft(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dge=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:p,controlItemBgActive:g,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:x,colorTextDisabled:S,colorPrimaryHover:v,colorPrimary:y,controlOutline:C}=e,w=s*2,E=r*2,I=Math.min(a-w,a-E),T=Math.min(o-w,o-E),R=Math.min(i-w,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:p,optionSelectedBg:g,optionActiveBg:m,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:I,multipleItemHeightSM:T,multipleItemHeightLG:R,multipleSelectorBgDisabled:x,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:C}},vW=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${G(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${G(a)} ${t.activeOutlineColor}`,outline:0}}}},cD=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vW(e,t))}),fge=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},vW(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),cD(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),cD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bW=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},uD=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bW(e,t))}),pge=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},bW(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),uD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),uD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gge=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),mge=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},fge(e)),pge(e)),gge(e))}),hge=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},vge=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},bge=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},hge(e)),vge(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Oo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Oo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},rf()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},yge=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},bge(e),uge(e),cge(e),ige(e),{[`${t}-rtl`]:{direction:"rtl"}},dm(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},yW=on("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ft(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[yge(r),mge(r)]},dge,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var xge={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"},Sge=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:xge}))},df=l.forwardRef(Sge),Cge={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"},wge=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Cge}))},dy=l.forwardRef(wge),Ege={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"},Ige=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Ege}))},ym=l.forwardRef(Ige);function ZO(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:g}=e;const m=n??l.createElement(Hl,null),h=v=>t===null&&!s&&!p?null:l.createElement(l.Fragment,null,u!==!1&&v,s&&d);let b=null;if(t!==void 0)b=h(t);else if(o)b=h(l.createElement(Zi,{spin:!0}));else{const v=`${c}-suffix`;b=y=>{let{open:C,showSearch:w}=y;return h(C&&w?l.createElement(ym,{className:v}):l.createElement(dy,{className:v}))}}let x=null;r!==void 0?x=r:i?x=l.createElement(df,null):x=null;let S=null;return a!==void 0?S=a:S=l.createElement(pa,null),{clearIcon:m,suffixIcon:b,itemIcon:x,removeIcon:S}}function xW(e,t){return t!==void 0?t:e!==null}var Tge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:g,size:m,disabled:h,notFoundContent:b,status:x,builtinPlacements:S,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,direction:C,style:w,allowClear:E,variant:I,dropdownStyle:T,transitionName:R,tagRender:_,maxCount:$}=e,M=Tge(e,["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"]),{getPopupContainer:P,getPrefixCls:D,renderEmpty:O,direction:k,virtual:N,popupMatchSelectWidth:A,popupOverflow:L,select:j}=l.useContext(lt),[,F]=ta(),B=g??(F==null?void 0:F.controlHeight),z=D("select",r),U=D(),H=C??k,{compactSize:Y,compactItemClassnames:K}=Ds(z,H),[J,ne]=Jc("select",I,a),W=ar(z),[q,Z,Q]=yW(z,W),ee=l.useMemo(()=>{const{mode:Ce}=e;if(Ce!=="combobox")return Ce===SW?"combobox":Ce},[e.mode]),oe=ee==="multiple"||ee==="tags",se=xW(e.suffixIcon,e.showArrow),fe=(n=y??v)!==null&&n!==void 0?n:A,{status:te,hasFeedback:ie,isFormItemInput:pe,feedbackIcon:me}=l.useContext(ea),re=Vl(te,x);let ce;b!==void 0?ce=b:ee==="combobox"?ce=null:ce=(O==null?void 0:O("Select"))||l.createElement(uy,{componentName:"Select"});const{suffixIcon:ge,itemIcon:ye,removeIcon:Ee,clearIcon:Ne}=ZO(Object.assign(Object.assign({},M),{multiple:oe,hasFeedback:ie,feedbackIcon:me,showSuffixIcon:se,prefixCls:z,componentName:"Select"})),_e=E===!0?{clearIcon:Ne}:E,Pe=Mn(M,["suffixIcon","itemIcon"]),Le=ae(c||u,{[`${z}-dropdown-${H}`]:H==="rtl"},i,Q,W,Z),Ve=Lr(Ce=>{var xe;return(xe=m??Y)!==null&&xe!==void 0?xe:Ce}),je=l.useContext(fa),De=h??je,Se=ae({[`${z}-lg`]:Ve==="large",[`${z}-sm`]:Ve==="small",[`${z}-rtl`]:H==="rtl",[`${z}-${J}`]:ne,[`${z}-in-form-item`]:pe},$s(z,re,ie),K,j==null?void 0:j.className,o,i,Q,W,Z),Oe=l.useMemo(()=>p!==void 0?p:H==="rtl"?"bottomRight":"bottomLeft",[p,H]),[Re]=Ai("SelectLike",T==null?void 0:T.zIndex);return q(l.createElement(XO,Object.assign({ref:t,virtual:N,showSearch:j==null?void 0:j.showSearch},Pe,{style:Object.assign(Object.assign({},j==null?void 0:j.style),w),dropdownMatchSelectWidth:fe,transitionName:Da(U,"slide-up",R),builtinPlacements:gW(S,L),listHeight:d,listItemHeight:B,mode:ee,prefixCls:z,placement:Oe,direction:H,suffixIcon:ge,menuItemSelectedIcon:ye,removeIcon:Ee,allowClear:_e,notFoundContent:ce,className:Se,getPopupContainer:s||P,dropdownClassName:Le,disabled:De,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:Re}),maxCount:oe?$:void 0,tagRender:oe?_:void 0})))},cr=l.forwardRef(Rge),_ge=hm(cr);cr.SECRET_COMBOBOX_MODE_DO_NOT_USE=SW;cr.Option=YO;cr.OptGroup=KO;cr._InternalPanelDoNotUseOrYouWillBeFired=_ge;const Bc=["xxl","xl","lg","md","sm","xs"],$ge=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Oge=e=>{const t=e,n=[].concat(Bc).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function QO(){const[,e]=l.useReducer(t=>t+1,0);return e}function fy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=l.useRef({}),n=QO(),r=CW();return Yt(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const Pb=e=>e?typeof e=="function"?e():e:null;function JO(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return l.createElement("div",{className:ae("".concat(n,"-content"),o),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var wu={shiftX:64,adjustY:1},Eu={adjustX:1,shiftY:!0},jo=[0,0],Nge={left:{points:["cr","cl"],overflow:Eu,offset:[-4,0],targetOffset:jo},right:{points:["cl","cr"],overflow:Eu,offset:[4,0],targetOffset:jo},top:{points:["bc","tc"],overflow:wu,offset:[0,-4],targetOffset:jo},bottom:{points:["tc","bc"],overflow:wu,offset:[0,4],targetOffset:jo},topLeft:{points:["bl","tl"],overflow:wu,offset:[0,-4],targetOffset:jo},leftTop:{points:["tr","tl"],overflow:Eu,offset:[-4,0],targetOffset:jo},topRight:{points:["br","tr"],overflow:wu,offset:[0,-4],targetOffset:jo},rightTop:{points:["tl","tr"],overflow:Eu,offset:[4,0],targetOffset:jo},bottomRight:{points:["tr","br"],overflow:wu,offset:[0,4],targetOffset:jo},rightBottom:{points:["bl","br"],overflow:Eu,offset:[4,0],targetOffset:jo},bottomLeft:{points:["tl","bl"],overflow:wu,offset:[0,4],targetOffset:jo},leftBottom:{points:["br","bl"],overflow:Eu,offset:[-4,0],targetOffset:jo}},kge=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Age=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,p=t.prefixCls,g=p===void 0?"rc-tooltip":p,m=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,x=t.transitionName,S=t.animation,v=t.motion,y=t.placement,C=y===void 0?"right":y,w=t.align,E=w===void 0?{}:w,I=t.destroyTooltipOnHide,T=I===void 0?!1:I,R=t.defaultVisible,_=t.getTooltipContainer,$=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,P=t.id,D=t.showArrow,O=D===void 0?!0:D,k=wt(t,kge),N=l.useRef(null);l.useImperativeHandle(n,function(){return N.current});var A=X({},k);"visible"in t&&(A.popupVisible=t.visible);var L=function(){return l.createElement(JO,{key:"content",prefixCls:g,id:P,overlayInnerStyle:$},M)};return l.createElement(bm,he({popupClassName:r,prefixCls:g,popup:L,action:o,builtinPlacements:Nge,popupPlacement:C,ref:N,popupAlign:E,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:x,popupAnimation:S,popupMotion:v,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:O},A),m)};const Mge=l.forwardRef(Age);function py(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,s=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*a-u,g=d,m=2*a-s,h=c,b=2*a-o,x=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),y=`polygon(${v}px 100%, 50% ${v}px, ${2*a-v}px 100%, ${v}px 100%)`,C=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${p} ${g} L ${m} ${h} A ${r} ${r} 0 0 0 ${b} ${x} Z')`;return{arrowShadowWidth:S,arrowPath:C,arrowPolygon:y}}const wW=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${G(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},EW=8;function gy(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?EW:r}}function Oh(e,t){return e?t:{}}function eN(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={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"},wW(e,t,a)),{"&:before":{background:t}})]},Oh(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Oh(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Oh(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Oh(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Dge(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const dD={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"]}},Pge={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"]}},Lge=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function IW(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,c={};return Object.keys(dD).forEach(u=>{const d=r&&Pge[u]||dD[u],p=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=p,Lge.has(u)&&(p.autoArrow=!1),u){case"top":case"topLeft":case"topRight":p.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+a;break}const g=gy({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":p.offset[0]=-g.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":p.offset[0]=g.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":p.offset[1]=-g.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":p.offset[1]=g.arrowOffsetHorizontal*2-s;break}p.overflow=Dge(u,g,t,n),i&&(p.htmlRegion="visibleFirst")}),c}const jge=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${G(e.calc(u).div(2).equal())} ${G(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,EW)}},[`${t}-content`]:{position:"relative"}}),q0(e,(p,g)=>{let{darkColor:m}=g;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},eN(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Fge=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},gy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),py(Ft(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),TW=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return on("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,s=Ft(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[jge(s),lf(r,"zoom-big-fast")]},Fge,{resetStyle:!1,injectStyle:t})(e)},Bge=$g.map(e=>`${e}-inverse`),zge=["success","processing","error","default","warning"];function my(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Me(Bge),Me($g)).includes(e):$g.includes(e)}function Hge(e){return zge.includes(e)}function RW(e,t){const n=my(t),r=ae({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const Uge=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(lt),c=s("tooltip",t),[u,d,p]=TW(c),g=RW(c,o),m=g.arrowStyle,h=Object.assign(Object.assign({},i),g.overlayStyle),b=ae(d,p,c,`${c}-pure`,`${c}-placement-${r}`,n,g.className);return u(l.createElement("div",{className:b,style:m},l.createElement("div",{className:`${c}-arrow`}),l.createElement(JO,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),a)))};var Vge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:g,destroyTooltipOnHide:m,arrow:h=!0,title:b,overlay:x,builtinPlacements:S,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,C=!!h,[,w]=ta(),{getPopupContainer:E,getPrefixCls:I,direction:T}=l.useContext(lt),R=zl(),_=l.useRef(null),$=()=>{var ce;(ce=_.current)===null||ce===void 0||ce.forceAlign()};l.useImperativeHandle(t,()=>{var ce;return{forceAlign:$,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:(ce=_.current)===null||ce===void 0?void 0:ce.nativeElement}});const[M,P]=fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!b&&!x&&b!==0,O=ce=>{var ge,ye;P(D?!1:ce),D||((ge=e.onOpenChange)===null||ge===void 0||ge.call(e,ce),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,ce))},k=l.useMemo(()=>{var ce,ge;let ye=v;return typeof h=="object"&&(ye=(ge=(ce=h.pointAtCenter)!==null&&ce!==void 0?ce:h.arrowPointAtCenter)!==null&&ge!==void 0?ge:v),S||IW({arrowPointAtCenter:ye,autoAdjustOverflow:y,arrowWidth:C?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[v,h,S,w]),N=l.useMemo(()=>b===0?b:x||b||"",[x,b]),A=l.createElement(Ji,{space:!0},typeof N=="function"?N():N),{getPopupContainer:L,placement:j="top",mouseEnterDelay:F=.1,mouseLeaveDelay:B=.1,overlayStyle:z,rootClassName:U}=e,H=Vge(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=I("tooltip",a),K=I(),J=e["data-popover-inject"];let ne=M;!("open"in e)&&!("visible"in e)&&D&&(ne=!1);const W=l.isValidElement(d)&&!WU(d)?d:l.createElement("span",null,d),q=W.props,Z=!q.className||typeof q.className=="string"?ae(q.className,o||`${Y}-open`):q.className,[Q,ee,oe]=TW(Y,!J),se=RW(Y,c),fe=se.arrowStyle,te=Object.assign(Object.assign({},u),se.overlayStyle),ie=ae(s,{[`${Y}-rtl`]:T==="rtl"},se.className,U,ee,oe),[pe,me]=Ai("Tooltip",H.zIndex),re=l.createElement(Mge,Object.assign({},H,{zIndex:pe,showArrow:C,placement:j,mouseEnterDelay:F,mouseLeaveDelay:B,prefixCls:Y,overlayClassName:ie,overlayStyle:Object.assign(Object.assign({},fe),z),getTooltipContainer:L||i||E,ref:_,builtinPlacements:k,overlay:A,visible:ne,onVisibleChange:O,afterVisibleChange:p??g,overlayInnerStyle:te,arrowContent:l.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Da(K,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),ne?$r(W,{className:Z}):W);return Q(l.createElement(sm.Provider,{value:me},re))}),Wt=Wge;Wt._InternalPanelDoNotUseOrYouWillBeFired=Uge;const Gge=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:p,popoverBg:g,titleBorderBottom:m,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},an(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,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"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:a,borderBottom:m,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},eN(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},qge=e=>{const{componentCls:t}=e;return{[t]:$g.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Kge=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:p}=e,g=n-r,m=g/2,h=g/2-t,b=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},py(e)),gy({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${m}px ${b}px ${h}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${p}px ${b}px`:0})},_W=on("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Ft(e,{popoverBg:t,popoverColor:n});return[Gge(r),qge(r),lf(r,"zoom-big")]},Kge,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Yge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},t),n&&l.createElement("div",{className:`${r}-inner-content`},n))},Xge=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:s,children:c}=e,u=Pb(i),d=Pb(s),p=ae(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return l.createElement("div",{className:p,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(JO,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement($W,{prefixCls:n,title:u,content:d})))},Zge=e=>{const{prefixCls:t,className:n}=e,r=Yge(e,["prefixCls","className"]),{getPrefixCls:a}=l.useContext(lt),o=a("popover",t),[i,s,c]=_W(o);return i(l.createElement(Xge,Object.assign({},r,{prefixCls:o,hashId:s,className:ae(n,c)})))};var Qge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:m,overlayStyle:h={}}=e,b=Qge(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:x}=l.useContext(lt),S=x("popover",a),[v,y,C]=_W(S),w=x(),E=ae(s,y,C),[I,T]=fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=(D,O)=>{T(D,!0),m==null||m(D,O)},_=D=>{D.keyCode===ze.ESC&&R(!1,D)},$=D=>{R(D)},M=Pb(o),P=Pb(i);return v(l.createElement(Wt,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:h},b,{prefixCls:S,overlayClassName:E,ref:t,open:I,onOpenChange:$,overlay:M||P?l.createElement($W,{prefixCls:S,title:M,content:P}):null,transitionName:Da(w,"zoom-big",b.transitionName),"data-popover-inject":!0}),$r(d,{onKeyDown:D=>{var O,k;l.isValidElement(d)&&((k=d==null?void 0:(O=d.props).onKeyDown)===null||k===void 0||k.call(O,D)),_(D)}})))}),OW=Jge;OW._InternalPanelDoNotUseOrYouWillBeFired=Zge;const eme=new en("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),tme=new en("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),nme=new en("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),rme=new en("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),ame=new en("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),ome=new en("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),ime=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:o,textFontSizeSM:i,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:p,marginXS:g,calc:m}=e,h=`${r}-scroll-number`,b=q0(e,(x,S)=>{let{darkColor:v}=S;return{[`&${t} ${t}-color-${x}`]:{background:v,[`&:not(${t}-count)`]:{color:v},"a:hover &":{background:v}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:o,lineHeight:G(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:m(d).div(2).equal(),boxShadow:`0 0 0 ${G(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:p,height:p,fontSize:i,lineHeight:G(p),borderRadius:m(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${G(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${G(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:ome,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:eme,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:g,color:e.colorText,fontSize:e.fontSize}}}),b),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:tme,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:nme,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:rme,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:ame,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},NW=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,o=t,i=n,s=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return Ft(e,{badgeFontHeight:o,badgeShadowSize:i,badgeTextColor:s,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},kW=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},sme=on("Badge",e=>{const t=NW(e);return ime(t)},kW),lme=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:o}=e,i=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=q0(e,(u,d)=>{let{darkColor:p}=d;return{[`&${i}-color-${u}`]:{background:p,color:p}}});return{[s]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"absolute",top:r,padding:`0 ${G(e.paddingXS)}`,color:e.colorPrimary,lineHeight:G(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${G(o(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${i}-placement-end`]:{insetInlineEnd:o(a).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:o(a).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},cme=on(["Badge","Ribbon"],e=>{const t=NW(e);return lme(t)},kW),ume=e=>{const{className:t,prefixCls:n,style:r,color:a,children:o,text:i,placement:s="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=l.useContext(lt),p=u("ribbon",n),g=`${p}-wrapper`,[m,h,b]=cme(p,g),x=my(a,!1),S=ae(p,`${p}-placement-${s}`,{[`${p}-rtl`]:d==="rtl",[`${p}-color-${a}`]:x},t),v={},y={};return a&&!x&&(v.background=a,y.color=a),m(l.createElement("div",{className:ae(g,c,h,b)},o,l.createElement("div",{className:ae(S,h),style:Object.assign(Object.assign({},v),r)},l.createElement("span",{className:`${p}-text`},i),l.createElement("div",{className:`${p}-corner`,style:y}))))},fD=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let o;return a&&(o={position:"absolute",top:`${a}00%`,left:0}),l.createElement("span",{style:o,className:ae(`${t}-only-unit`,{current:r})},n)};function dme(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const fme=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),o=Math.abs(n),[i,s]=l.useState(a),[c,u]=l.useState(o),d=()=>{s(a),u(o)};l.useEffect(()=>{const m=setTimeout(d,1e3);return()=>clearTimeout(m)},[a]);let p,g;if(i===a||Number.isNaN(a)||Number.isNaN(i))p=[l.createElement(fD,Object.assign({},e,{key:a,current:!0}))],g={transition:"none"};else{p=[];const m=a+10,h=[];for(let S=a;S<=m;S+=1)h.push(S);const b=h.findIndex(S=>S%10===i);p=h.map((S,v)=>{const y=S%10;return l.createElement(fD,Object.assign({},e,{key:S,value:y,offset:v-b,current:v===b}))});const x=c{const{prefixCls:n,count:r,className:a,motionClassName:o,style:i,title:s,show:c,component:u="sup",children:d}=e,p=pme(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:g}=l.useContext(lt),m=g("scroll-number",n),h=Object.assign(Object.assign({},p),{"data-show":c,style:i,className:ae(m,a,o),title:s});let b=r;if(r&&Number(r)%1===0){const x=String(r).split("");b=l.createElement("bdi",null,x.map((S,v)=>l.createElement(fme,{prefixCls:m,count:Number(r),value:S,key:x.length-v})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?$r(d,x=>({className:ae(`${m}-custom-component`,x==null?void 0:x.className,o)})):l.createElement(u,Object.assign({},h,{ref:t}),b)});var mme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:p,color:g,count:m=null,overflowCount:h=99,dot:b=!1,size:x="default",title:S,offset:v,style:y,className:C,rootClassName:w,classNames:E,styles:I,showZero:T=!1}=e,R=mme(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:$,badge:M}=l.useContext(lt),P=_("badge",s),[D,O,k]=sme(P),N=m>h?`${h}+`:m,A=N==="0"||N===0,L=m===null||A&&!T,j=(d!=null||g!=null)&&L,F=b&&!A,B=F?"":N,z=l.useMemo(()=>(B==null||B===""||A&&!T)&&!F,[B,A,T,F]),U=l.useRef(m);z||(U.current=m);const H=U.current,Y=l.useRef(B);z||(Y.current=B);const K=Y.current,J=l.useRef(F);z||(J.current=F);const ne=l.useMemo(()=>{if(!v)return Object.assign(Object.assign({},M==null?void 0:M.style),y);const fe={marginTop:v[1]};return $==="rtl"?fe.left=parseInt(v[0],10):fe.right=-parseInt(v[0],10),Object.assign(Object.assign(Object.assign({},fe),M==null?void 0:M.style),y)},[$,v,y,M==null?void 0:M.style]),W=S??(typeof H=="string"||typeof H=="number"?H:void 0),q=z||!p?null:l.createElement("span",{className:`${P}-status-text`},p),Z=!H||typeof H!="object"?void 0:$r(H,fe=>({style:Object.assign(Object.assign({},ne),fe.style)})),Q=my(g,!1),ee=ae(E==null?void 0:E.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:j,[`${P}-status-${d}`]:!!d,[`${P}-color-${g}`]:Q}),oe={};g&&!Q&&(oe.color=g,oe.background=g);const se=ae(P,{[`${P}-status`]:j,[`${P}-not-a-wrapper`]:!u,[`${P}-rtl`]:$==="rtl"},C,w,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,O,k);if(!u&&j){const fe=ne.color;return D(l.createElement("span",Object.assign({},R,{className:se,style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.root),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),ne)}),l.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.indicator),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.indicator),oe)}),p&&l.createElement("span",{style:{color:fe},className:`${P}-status-text`},p)))}return D(l.createElement("span",Object.assign({ref:t},R,{className:se,style:Object.assign(Object.assign({},(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),I==null?void 0:I.root)}),u,l.createElement(Qr,{visible:!z,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},fe=>{let{className:te}=fe;var ie,pe;const me=_("scroll-number",c),re=J.current,ce=ae(E==null?void 0:E.indicator,(ie=M==null?void 0:M.classNames)===null||ie===void 0?void 0:ie.indicator,{[`${P}-dot`]:re,[`${P}-count`]:!re,[`${P}-count-sm`]:x==="small",[`${P}-multiple-words`]:!re&&K&&K.toString().length>1,[`${P}-status-${d}`]:!!d,[`${P}-color-${g}`]:Q});let ge=Object.assign(Object.assign(Object.assign({},I==null?void 0:I.indicator),(pe=M==null?void 0:M.styles)===null||pe===void 0?void 0:pe.indicator),ne);return g&&!Q&&(ge=ge||{},ge.background=g),l.createElement(gme,{prefixCls:me,show:!z,motionClassName:te,className:ce,count:K,title:W,style:ge,key:"scrollNumber"},Z)}),q))}),AW=hme;AW.Ribbon=ume;var vme=ze.ESC,bme=ze.TAB;function yme(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var p,g;(p=n.current)===null||p===void 0||(g=p.focus)===null||g===void 0||g.call(p),r==null||r(!1)}},c=function(){var p;return(p=o.current)!==null&&p!==void 0&&p.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(p){switch(p.keyCode){case vme:s();break;case bme:{var g=!1;i.current||(g=c()),g?p.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Ht(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var xme=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=ga(t,o==null?void 0:o.ref);return de.createElement(de.Fragment,null,r&&de.createElement("div",{className:"".concat(a,"-arrow")}),de.cloneElement(o,{ref:Ri(o)?i:void 0}))}),Iu={adjustX:1,adjustY:1},Tu=[0,0],Sme={topLeft:{points:["bl","tl"],overflow:Iu,offset:[0,-4],targetOffset:Tu},top:{points:["bc","tc"],overflow:Iu,offset:[0,-4],targetOffset:Tu},topRight:{points:["br","tr"],overflow:Iu,offset:[0,-4],targetOffset:Tu},bottomLeft:{points:["tl","bl"],overflow:Iu,offset:[0,4],targetOffset:Tu},bottom:{points:["tc","bc"],overflow:Iu,offset:[0,4],targetOffset:Tu},bottomRight:{points:["tr","br"],overflow:Iu,offset:[0,4],targetOffset:Tu}},Cme=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function wme(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,p=d===void 0?"bottomLeft":d,g=e.placements,m=g===void 0?Sme:g,h=e.getPopupContainer,b=e.showAction,x=e.hideAction,S=e.overlayClassName,v=e.overlayStyle,y=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,E=e.autoFocus,I=e.overlay,T=e.children,R=e.onVisibleChange,_=wt(e,Cme),$=de.useState(),M=le($,2),P=M[0],D=M[1],O="visible"in e?y:P,k=de.useRef(null),N=de.useRef(null),A=de.useRef(null);de.useImperativeHandle(t,function(){return k.current});var L=function(J){D(J),R==null||R(J)};yme({visible:O,triggerRef:A,onVisibleChange:L,autoFocus:E,overlayRef:N});var j=function(J){var ne=e.onOverlayClick;D(!1),ne&&ne(J)},F=function(){return de.createElement(xme,{ref:N,overlay:I,prefixCls:i,arrow:a})},B=function(){return typeof I=="function"?F:F()},z=function(){var J=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!ne},U=function(){var J=e.openClassName;return J!==void 0?J:"".concat(i,"-open")},H=de.cloneElement(T,{className:ae((n=T.props)===null||n===void 0?void 0:n.className,O&&U()),ref:Ri(T)?ga(A,T.ref):void 0}),Y=x;return!Y&&w.indexOf("contextMenu")!==-1&&(Y=["click"]),de.createElement(bm,he({builtinPlacements:m},_,{prefixCls:i,ref:k,popupClassName:ae(S,V({},"".concat(i,"-show-arrow"),a)),popupStyle:v,action:w,showAction:b,hideAction:Y,popupPlacement:p,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:O,stretch:z()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:j,getPopupContainer:h}),H)}const MW=de.forwardRef(wme);var DW=l.createContext(null);function PW(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function LW(e){var t=l.useContext(DW);return PW(t,e)}var Eme=["children","locked"],$i=l.createContext(null);function Ime(e,t){var n=X({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Ag(e){var t=e.children,n=e.locked,r=wt(e,Eme),a=l.useContext($i),o=Bl(function(){return Ime(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!Jo(i[1],s[1],!0))});return l.createElement($i.Provider,{value:o},t)}var Tme=[],jW=l.createContext(null);function hy(){return l.useContext(jW)}var FW=l.createContext(Tme);function ff(e){var t=l.useContext(FW);return l.useMemo(function(){return e!==void 0?[].concat(Me(t),[e]):t},[t,e])}var BW=l.createContext(null),tN=l.createContext({});function pD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(sf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Rme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Me(e.querySelectorAll("*")).filter(function(r){return pD(r,t)});return pD(e,t)&&n.unshift(e),n}var QR=ze.LEFT,JR=ze.RIGHT,e_=ze.UP,kv=ze.DOWN,Av=ze.ENTER,zW=ze.ESC,Kf=ze.HOME,Yf=ze.END,gD=[e_,kv,QR,JR];function _me(e,t,n,r){var a,o="prev",i="next",s="children",c="parent";if(e==="inline"&&r===Av)return{inlineTrigger:!0};var u=V(V({},e_,o),kv,i),d=V(V(V(V({},QR,n?i:o),JR,n?o:i),kv,s),Av,s),p=V(V(V(V(V(V({},e_,o),kv,i),Av,s),zW,c),QR,n?s:c),JR,n?c:s),g={inline:u,horizontal:d,vertical:p,inlineSub:u,horizontalSub:p,verticalSub:p},m=(a=g["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(m){case o:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function $me(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Ome(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nN(e,t){var n=Rme(e,!0);return n.filter(function(r){return t.has(r)})}function mD(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=nN(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var t_=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(PW(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function Nme(e,t,n,r,a,o,i,s,c,u){var d=l.useRef(),p=l.useRef();p.current=t;var g=function(){Ht.cancel(d.current)};return l.useEffect(function(){return function(){g()}},[]),function(m){var h=m.which;if([].concat(gD,[Av,zW,Kf,Yf]).includes(h)){var b=o(),x=t_(b,r),S=x,v=S.elements,y=S.key2element,C=S.element2key,w=y.get(t),E=Ome(w,v),I=C.get(E),T=_me(e,i(I,!0).length===1,n,h);if(!T&&h!==Kf&&h!==Yf)return;(gD.includes(h)||[Kf,Yf].includes(h))&&m.preventDefault();var R=function(N){if(N){var A=N,L=N.querySelector("a");L!=null&&L.getAttribute("href")&&(A=L);var j=C.get(N);s(j),g(),d.current=Ht(function(){p.current===j&&A.focus()})}};if([Kf,Yf].includes(h)||T.sibling||!E){var _;!E||e==="inline"?_=a.current:_=$me(E);var $,M=nN(_,v);h===Kf?$=M[0]:h===Yf?$=M[M.length-1]:$=mD(_,v,E,T.offset),R($)}else if(T.inlineTrigger)c(I);else if(T.offset>0)c(I,!0),g(),d.current=Ht(function(){x=t_(b,r);var k=E.getAttribute("aria-controls"),N=document.getElementById(k),A=mD(N,x.elements);R(A)},5);else if(T.offset<0){var P=i(I,!0),D=P[P.length-2],O=y.get(D);c(D,!1),R(O)}}u==null||u(m)}}function kme(e){Promise.resolve().then(e)}var rN="__RC_UTIL_PATH_SPLIT__",hD=function(t){return t.join(rN)},Ame=function(t){return t.split(rN)},n_="rc-menu-more";function Mme(){var e=l.useState({}),t=le(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),o=l.useState([]),i=le(o,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),p=function(){d.current||n({})},g=l.useCallback(function(y,C){var w=hD(C);a.current.set(w,y),r.current.set(y,w),u.current+=1;var E=u.current;kme(function(){E===u.current&&p()})},[]),m=l.useCallback(function(y,C){var w=hD(C);a.current.delete(w),r.current.delete(y)},[]),h=l.useCallback(function(y){c(y)},[]),b=l.useCallback(function(y,C){var w=r.current.get(y)||"",E=Ame(w);return C&&s.includes(E[0])&&E.unshift(n_),E},[s]),x=l.useCallback(function(y,C){return y.filter(function(w){return w!==void 0}).some(function(w){var E=b(w,!0);return E.includes(C)})},[b]),S=function(){var C=Me(r.current.keys());return s.length&&C.push(n_),C},v=l.useCallback(function(y){var C="".concat(r.current.get(y)).concat(rN),w=new Set;return Me(a.current.keys()).forEach(function(E){E.startsWith(C)&&w.add(a.current.get(E))}),w},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:g,unregisterPath:m,refreshOverflowKeys:h,isSubPathKey:x,getKeyPath:b,getKeys:S,getSubPathKeys:v}}function up(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(v.motionAppear=!1);var y=v.onVisibleChanged;return v.onVisibleChanged=function(C){return!g.current&&!C&&x(!0),y==null?void 0:y(C)},b?null:l.createElement(Ag,{mode:o,locked:!g.current},l.createElement(Qr,he({visible:S},v,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var w=C.className,E=C.style;return l.createElement(aN,{id:t,className:w,style:E},a)}))}var Zme=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Qme=["active"],Jme=l.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,p=e.popupClassName,g=e.popupOffset,m=e.popupStyle,h=e.onClick,b=e.onMouseEnter,x=e.onMouseLeave,S=e.onTitleClick,v=e.onTitleMouseEnter,y=e.onTitleMouseLeave,C=wt(e,Zme),w=LW(o),E=l.useContext($i),I=E.prefixCls,T=E.mode,R=E.openKeys,_=E.disabled,$=E.overflowDisabled,M=E.activeKey,P=E.selectedKeys,D=E.itemIcon,O=E.expandIcon,k=E.onItemClick,N=E.onOpenChange,A=E.onActive,L=l.useContext(tN),j=L._internalRenderSubMenuItem,F=l.useContext(BW),B=F.isSubPathKey,z=ff(),U="".concat(I,"-submenu"),H=_||i,Y=l.useRef(),K=l.useRef(),J=u??D,ne=d??O,W=R.includes(o),q=!$&&W,Z=B(P,o),Q=HW(o,H,v,y),ee=Q.active,oe=wt(Q,Qme),se=l.useState(!1),fe=le(se,2),te=fe[0],ie=fe[1],pe=function(Oe){H||ie(Oe)},me=function(Oe){pe(!0),b==null||b({key:o,domEvent:Oe})},re=function(Oe){pe(!1),x==null||x({key:o,domEvent:Oe})},ce=l.useMemo(function(){return ee||(T!=="inline"?te||B([M],o):!1)},[T,ee,M,te,o,B]),ge=UW(z.length),ye=function(Oe){H||(S==null||S({key:o,domEvent:Oe}),T==="inline"&&N(o,!W))},Ee=up(function(Se){h==null||h(Lb(Se)),k(Se)}),Ne=function(Oe){T!=="inline"&&N(o,Oe)},_e=function(){A(o)},Pe=w&&"".concat(w,"-popup"),Le=l.createElement("div",he({role:"menuitem",style:ge,className:"".concat(U,"-title"),tabIndex:H?null:-1,ref:Y,title:typeof a=="string"?a:null,"data-menu-id":$&&w?null:w,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":Pe,"aria-disabled":H,onClick:ye,onFocus:_e},oe),a,l.createElement(VW,{icon:T!=="horizontal"?ne:void 0,props:X(X({},e),{},{isOpen:q,isSubMenu:!0})},l.createElement("i",{className:"".concat(U,"-arrow")}))),Ve=l.useRef(T);if(T!=="inline"&&z.length>1?Ve.current="vertical":Ve.current=T,!$){var je=Ve.current;Le=l.createElement(Yme,{mode:je,prefixCls:U,visible:!s&&q&&T!=="inline",popupClassName:p,popupOffset:g,popupStyle:m,popup:l.createElement(Ag,{mode:je==="horizontal"?"vertical":je},l.createElement(aN,{id:Pe,ref:K},c)),disabled:H,onVisibleChange:Ne},Le)}var De=l.createElement(Ei.Item,he({ref:t,role:"none"},C,{component:"li",style:n,className:ae(U,"".concat(U,"-").concat(T),r,V(V(V(V({},"".concat(U,"-open"),q),"".concat(U,"-active"),ce),"".concat(U,"-selected"),Z),"".concat(U,"-disabled"),H)),onMouseEnter:me,onMouseLeave:re}),Le,!$&&l.createElement(Xme,{id:Pe,open:q,keyPath:z},c));return j&&(De=j(De,e,{selected:Z,active:ce,open:q,disabled:H})),l.createElement(Ag,{onItemClick:Ee,mode:T==="horizontal"?"vertical":T,itemIcon:J,expandIcon:ne},De)}),vy=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ff(n),o=oN(r,a),i=hy();l.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=l.createElement(Jme,he({ref:t},e),o),l.createElement(FW.Provider,{value:a},s)});function iN(e){var t=e.className,n=e.style,r=l.useContext($i),a=r.prefixCls,o=hy();return o?null:l.createElement("li",{role:"separator",className:ae("".concat(a,"-item-divider"),t),style:n})}var ehe=["className","title","eventKey","children"],the=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=wt(e,ehe),i=l.useContext($i),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",he({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:ae(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),sN=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ff(n),o=oN(r,a),i=hy();return i?o:l.createElement(the,he({ref:t},Mn(e,["warnKey"])),o)}),nhe=["label","children","key","type","extra"];function r_(e,t,n){var r=t.item,a=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(s,c){if(s&&mt(s)==="object"){var u=s,d=u.label,p=u.children,g=u.key,m=u.type,h=u.extra,b=wt(u,nhe),x=g??"tmp-".concat(c);return p||m==="group"?m==="group"?l.createElement(a,he({key:x},b,{title:d}),r_(p,t,n)):l.createElement(o,he({key:x},b,{title:d}),r_(p,t,n)):m==="divider"?l.createElement(i,he({key:x},b)):l.createElement(r,he({key:x},b),d,(!!h||h===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function bD(e,t,n,r,a){var o=e,i=X({divider:iN,item:xm,group:sN,submenu:vy},r);return t&&(o=r_(t,i,a)),oN(o,n)}var rhe=["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"],Xl=[],ahe=l.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,i=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,p=r.items,g=r.children,m=r.direction,h=r.id,b=r.mode,x=b===void 0?"vertical":b,S=r.inlineCollapsed,v=r.disabled,y=r.disabledOverflow,C=r.subMenuOpenDelay,w=C===void 0?.1:C,E=r.subMenuCloseDelay,I=E===void 0?.1:E,T=r.forceSubMenuRender,R=r.defaultOpenKeys,_=r.openKeys,$=r.activeKey,M=r.defaultActiveFirst,P=r.selectable,D=P===void 0?!0:P,O=r.multiple,k=O===void 0?!1:O,N=r.defaultSelectedKeys,A=r.selectedKeys,L=r.onSelect,j=r.onDeselect,F=r.inlineIndent,B=F===void 0?24:F,z=r.motion,U=r.defaultMotions,H=r.triggerSubMenuAction,Y=H===void 0?"hover":H,K=r.builtinPlacements,J=r.itemIcon,ne=r.expandIcon,W=r.overflowedIndicator,q=W===void 0?"...":W,Z=r.overflowedIndicatorPopupClassName,Q=r.getPopupContainer,ee=r.onClick,oe=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var fe=r._internalRenderMenuItem,te=r._internalRenderSubMenuItem,ie=r._internalComponents,pe=wt(r,rhe),me=l.useMemo(function(){return[bD(g,p,Xl,ie,o),bD(g,p,Xl,{},o)]},[g,p,ie]),re=le(me,2),ce=re[0],ge=re[1],ye=l.useState(!1),Ee=le(ye,2),Ne=Ee[0],_e=Ee[1],Pe=l.useRef(),Le=Pme(h),Ve=m==="rtl",je=fn(R,{value:_,postState:function(Bt){return Bt||Xl}}),De=le(je,2),Se=De[0],Oe=De[1],Re=function(Bt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function nn(){Oe(Bt),oe==null||oe(Bt)}zt?Kr.flushSync(nn):nn()},Ce=l.useState(Se),xe=le(Ce,2),$e=xe[0],Fe=xe[1],be=l.useRef(!1),ue=l.useMemo(function(){return(x==="inline"||x==="vertical")&&S?["vertical",S]:[x,!1]},[x,S]),Ie=le(ue,2),We=Ie[0],He=Ie[1],Be=We==="inline",ke=l.useState(We),Ae=le(ke,2),Ue=Ae[0],ct=Ae[1],rt=l.useState(He),qe=le(rt,2),Ye=qe[0],at=qe[1];l.useEffect(function(){ct(We),at(He),be.current&&(Be?Oe($e):Re(Xl))},[We,He]);var ut=l.useState(0),Ct=le(ut,2),kt=Ct[0],xt=Ct[1],et=kt>=ce.length-1||Ue!=="horizontal"||y;l.useEffect(function(){Be&&Fe(Se)},[Se]),l.useEffect(function(){return be.current=!0,function(){be.current=!1}},[]);var tt=Mme(),bt=tt.registerPath,Ot=tt.unregisterPath,ht=tt.refreshOverflowKeys,it=tt.isSubPathKey,Et=tt.getKeyPath,Ze=tt.getKeys,st=tt.getSubPathKeys,ft=l.useMemo(function(){return{registerPath:bt,unregisterPath:Ot}},[bt,Ot]),Je=l.useMemo(function(){return{isSubPathKey:it}},[it]);l.useEffect(function(){ht(et?Xl:ce.slice(kt+1).map(function(Rt){return Rt.key}))},[kt,et]);var Xe=fn($||M&&((n=ce[0])===null||n===void 0?void 0:n.key),{value:$}),_t=le(Xe,2),Mt=_t[0],Ut=_t[1],mn=up(function(Rt){Ut(Rt)}),pn=up(function(){Ut(void 0)});l.useImperativeHandle(t,function(){return{list:Pe.current,focus:function(Bt){var zt,nn=Ze(),It=t_(nn,Le),Dt=It.elements,vn=It.key2element,zn=It.element2key,Sr=nN(Pe.current,Dt),Cr=Mt??(Sr[0]?zn.get(Sr[0]):(zt=ce.find(function(pt){return!pt.props.disabled}))===null||zt===void 0?void 0:zt.key),Ar=vn.get(Cr);if(Cr&&Ar){var qt;Ar==null||(qt=Ar.focus)===null||qt===void 0||qt.call(Ar,Bt)}}}});var yt=fn(N||[],{value:A,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Xl:[Bt]}}),At=le(yt,2),jt=At[0],tn=At[1],An=function(Bt){if(D){var zt=Bt.key,nn=jt.includes(zt),It;k?nn?It=jt.filter(function(vn){return vn!==zt}):It=[].concat(Me(jt),[zt]):It=[zt],tn(It);var Dt=X(X({},Bt),{},{selectedKeys:It});nn?j==null||j(Dt):L==null||L(Dt)}!k&&Se.length&&Ue!=="inline"&&Re(Xl)},Or=up(function(Rt){ee==null||ee(Lb(Rt)),An(Rt)}),En=up(function(Rt,Bt){var zt=Se.filter(function(It){return It!==Rt});if(Bt)zt.push(Rt);else if(Ue!=="inline"){var nn=st(Rt);zt=zt.filter(function(It){return!nn.has(It)})}Jo(Se,zt,!0)||Re(zt,!0)}),br=function(Bt,zt){var nn=zt??!Se.includes(Bt);En(Bt,nn)},na=Nme(Ue,Mt,Ve,Le,Pe,Ze,Et,Ut,br,se);l.useEffect(function(){_e(!0)},[]);var jr=l.useMemo(function(){return{_internalRenderMenuItem:fe,_internalRenderSubMenuItem:te}},[fe,te]),Xn=Ue!=="horizontal"||y?ce:ce.map(function(Rt,Bt){return l.createElement(Ag,{key:Rt.key,overflowDisabled:Bt>kt},Rt)}),Zt=l.createElement(Ei,he({id:h,ref:Pe,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:xm,className:ae(o,"".concat(o,"-root"),"".concat(o,"-").concat(Ue),c,V(V({},"".concat(o,"-inline-collapsed"),Ye),"".concat(o,"-rtl"),Ve),i),dir:m,style:s,role:"menu",tabIndex:d,data:Xn,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var zt=Bt.length,nn=zt?ce.slice(-zt):null;return l.createElement(vy,{eventKey:n_,title:q,disabled:et,internalPopupClose:zt===0,popupClassName:Z},nn)},maxCount:Ue!=="horizontal"||y?Ei.INVALIDATE:Ei.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){xt(Bt)},onKeyDown:na},pe));return l.createElement(tN.Provider,{value:jr},l.createElement(DW.Provider,{value:Le},l.createElement(Ag,{prefixCls:o,rootClassName:i,mode:Ue,openKeys:Se,rtl:Ve,disabled:v,motion:Ne?z:null,defaultMotions:Ne?U:null,activeKey:Mt,onActive:mn,onInactive:pn,selectedKeys:jt,inlineIndent:B,subMenuOpenDelay:w,subMenuCloseDelay:I,forceSubMenuRender:T,builtinPlacements:K,triggerSubMenuAction:Y,getPopupContainer:Q,itemIcon:J,expandIcon:ne,onItemClick:Or,onOpenChange:En},l.createElement(BW.Provider,{value:Je},Zt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(jW.Provider,{value:ft},ge)))))}),pf=ahe;pf.Item=xm;pf.SubMenu=vy;pf.ItemGroup=sN;pf.Divider=iN;var ohe={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"},ihe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:ohe}))},she=l.forwardRef(ihe),lhe={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"},che=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:lhe}))},Os=l.forwardRef(che);const uhe=e=>!isNaN(parseFloat(e))&&isFinite(e),GW=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),dhe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:i,headerColor:s,footerPadding:c,fontSize:u,bodyBg:d,headerBg:p}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{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:o,padding:i,color:s,lineHeight:G(o),background:p,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},qW=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},KW=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],YW=on("Layout",e=>[dhe(e)],qW,{deprecatedTokens:KW}),fhe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:i,triggerColor:s,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:p,borderRadius:g,lightSiderBg:m,lightTriggerColor:h,lightTriggerBg:b,bodyBg:x}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:s,lineHeight:G(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:p,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}},"&-light":{background:m,[`${t}-trigger`]:{color:h,background:b},[`${t}-zero-width-trigger`]:{color:h,background:b,border:`1px solid ${x}`,borderInlineStart:0}}}}},phe=on(["Layout","Sider"],e=>[fhe(e)],qW,{deprecatedTokens:KW});var ghe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),lN=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:p=200,collapsedWidth:g=80,zeroWidthTriggerStyle:m,breakpoint:h,onCollapse:b,onBreakpoint:x}=e,S=ghe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:v}=l.useContext(GW),[y,C]=l.useState("collapsed"in e?e.collapsed:i),[w,E]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const I=(N,A)=>{"collapsed"in e||C(N),b==null||b(N,A)},{getPrefixCls:T}=l.useContext(lt),R=T("layout-sider",n),[_,$,M]=phe(R),P=l.useRef();P.current=N=>{E(N.matches),x==null||x(N.matches),y!==N.matches&&I(N.matches,"responsive")},l.useEffect(()=>{function N(L){return P.current(L)}let A;if(typeof window<"u"){const{matchMedia:L}=window;if(L&&h&&h in yD){A=L(`screen and (max-width: ${yD[h]})`);try{A.addEventListener("change",N)}catch{A.addListener(N)}N(A)}}return()=>{try{A==null||A.removeEventListener("change",N)}catch{A==null||A.removeListener(N)}}},[h]),l.useEffect(()=>{const N=mhe("ant-sider-");return v.addSider(N),()=>v.removeSider(N)},[]);const D=()=>{I(!y,"clickTrigger")},O=()=>{const N=Mn(S,["collapsed"]),A=y?g:p,L=uhe(A)?`${A}px`:String(A),j=parseFloat(String(g||0))===0?l.createElement("span",{onClick:D,className:ae(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${d?"right":"left"}`),style:m},a||l.createElement(she,null)):null,z={expanded:d?l.createElement(io,null):l.createElement(Os,null),collapsed:d?l.createElement(Os,null):l.createElement(io,null)}[y?"collapsed":"expanded"],U=a!==null?j||l.createElement("div",{className:`${R}-trigger`,onClick:D,style:{width:L}},a||z):null,H=Object.assign(Object.assign({},c),{flex:`0 0 ${L}`,maxWidth:L,minWidth:L,width:L}),Y=ae(R,`${R}-${s}`,{[`${R}-collapsed`]:!!y,[`${R}-has-trigger`]:u&&a!==null&&!j,[`${R}-below`]:!!w,[`${R}-zero-width`]:parseFloat(L)===0},r,$,M);return l.createElement("aside",Object.assign({className:Y},N,{style:H,ref:t}),l.createElement("div",{className:`${R}-children`},o),u||w&&j?U:null)},k=l.useMemo(()=>({siderCollapsed:y}),[y]);return _(l.createElement(by.Provider,{value:k},O()))});var hhe={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"},vhe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:hhe}))},cN=l.forwardRef(vhe);const jb=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var bhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=bhe(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=l.useContext(lt),i=o("menu",t),s=ae({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(iN,Object.assign({className:s},a))},ZW=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=l.useContext(jb),g=v=>{const y=r==null?void 0:r[0],C=l.createElement("span",{className:`${s}-title-content`},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&v&&c&&typeof y=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},y.charAt(0)):C},{siderCollapsed:m}=l.useContext(by);let h=o;typeof o>"u"?h=c?r:"":o===!1&&(h="");const b={title:h};!m&&!p&&(b.title=null,b.open=!1);const x=_r(r).length;let S=l.createElement(xm,Object.assign({},Mn(e,["title","icon","danger"]),{className:ae({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(a?x+1:x)===1},n),title:typeof o=="string"?o:void 0}),$r(a,{className:ae(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g(p));return d||(S=l.createElement(Wt,Object.assign({},b,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),S)),S};var yhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=yhe(e,["children"]),a=l.useContext(Fb),o=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=nae(n),s=Ms(t,i?n.ref:null);return l.createElement(Fb.Provider,{value:o},l.createElement(Ji,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),xhe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},AS(Bt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dge=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:p,controlItemBgActive:g,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:x,colorTextDisabled:S,colorPrimaryHover:v,colorPrimary:y,controlOutline:w}=e,C=s*2,E=r*2,I=Math.min(a-C,a-E),T=Math.min(o-C,o-E),R=Math.min(i-C,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:p,optionSelectedBg:g,optionActiveBg:m,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:I,multipleItemHeightSM:T,multipleItemHeightLG:R,multipleSelectorBgDisabled:x,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:w}},vW=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${G(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${G(a)} ${t.activeOutlineColor}`,outline:0}}}},cD=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vW(e,t))}),fge=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},vW(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor})),cD(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline})),cD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bW=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},uD=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bW(e,t))}),pge=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},bW(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),uD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),uD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gge=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),mge=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},fge(e)),pge(e)),gge(e))}),hge=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},vge=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},bge=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},hge(e)),vge(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Oo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Oo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},rf()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},yge=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},bge(e),uge(e),cge(e),ige(e),{[`${t}-rtl`]:{direction:"rtl"}},fm(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},yW=on("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Bt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[yge(r),mge(r)]},dge,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var xge={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"},Sge=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:xge}))},df=l.forwardRef(Sge),wge={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"},Cge=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:wge}))},py=l.forwardRef(Cge),Ege={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"},Ige=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Ege}))},xm=l.forwardRef(Ige);function ZO(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:g}=e;const m=n??l.createElement(Hl,null),h=v=>t===null&&!s&&!p?null:l.createElement(l.Fragment,null,u!==!1&&v,s&&d);let b=null;if(t!==void 0)b=h(t);else if(o)b=h(l.createElement(Qi,{spin:!0}));else{const v=`${c}-suffix`;b=y=>{let{open:w,showSearch:C}=y;return h(w&&C?l.createElement(xm,{className:v}):l.createElement(py,{className:v}))}}let x=null;r!==void 0?x=r:i?x=l.createElement(df,null):x=null;let S=null;return a!==void 0?S=a:S=l.createElement(ga,null),{clearIcon:m,suffixIcon:b,itemIcon:x,removeIcon:S}}function xW(e,t){return t!==void 0?t:e!==null}var Tge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:g,size:m,disabled:h,notFoundContent:b,status:x,builtinPlacements:S,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,direction:w,style:C,allowClear:E,variant:I,dropdownStyle:T,transitionName:R,tagRender:_,maxCount:$}=e,M=Tge(e,["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"]),{getPopupContainer:P,getPrefixCls:D,renderEmpty:O,direction:k,virtual:N,popupMatchSelectWidth:A,popupOverflow:L,select:j}=l.useContext(ut),[,F]=ta(),B=g??(F==null?void 0:F.controlHeight),z=D("select",r),U=D(),H=w??k,{compactSize:K,compactItemClassnames:Y}=Ps(z,H),[ee,ae]=Jc("select",I,a),W=ar(z),[q,Z,Q]=yW(z,W),J=l.useMemo(()=>{const{mode:we}=e;if(we!=="combobox")return we===SW?"combobox":we},[e.mode]),ie=J==="multiple"||J==="tags",le=xW(e.suffixIcon,e.showArrow),fe=(n=y??v)!==null&&n!==void 0?n:A,{status:te,hasFeedback:se,isFormItemInput:pe,feedbackIcon:he}=l.useContext(ea),re=Vl(te,x);let ue;b!==void 0?ue=b:J==="combobox"?ue=null:ue=(O==null?void 0:O("Select"))||l.createElement(fy,{componentName:"Select"});const{suffixIcon:me,itemIcon:xe,removeIcon:Ee,clearIcon:ke}=ZO(Object.assign(Object.assign({},M),{multiple:ie,hasFeedback:se,feedbackIcon:he,showSuffixIcon:le,prefixCls:z,componentName:"Select"})),$e=E===!0?{clearIcon:ke}:E,Le=Mn(M,["suffixIcon","itemIcon"]),je=oe(c||u,{[`${z}-dropdown-${H}`]:H==="rtl"},i,Q,W,Z),He=Lr(we=>{var Me;return(Me=m??K)!==null&&Me!==void 0?Me:we}),Be=l.useContext(pa),Pe=h??Be,Se=oe({[`${z}-lg`]:He==="large",[`${z}-sm`]:He==="small",[`${z}-rtl`]:H==="rtl",[`${z}-${ee}`]:ae,[`${z}-in-form-item`]:pe},Ns(z,re,se),Y,j==null?void 0:j.className,o,i,Q,W,Z),Ne=l.useMemo(()=>p!==void 0?p:H==="rtl"?"bottomRight":"bottomLeft",[p,H]),[Te]=Mi("SelectLike",T==null?void 0:T.zIndex);return q(l.createElement(XO,Object.assign({ref:t,virtual:N,showSearch:j==null?void 0:j.showSearch},Le,{style:Object.assign(Object.assign({},j==null?void 0:j.style),C),dropdownMatchSelectWidth:fe,transitionName:Da(U,"slide-up",R),builtinPlacements:gW(S,L),listHeight:d,listItemHeight:B,mode:J,prefixCls:z,placement:Ne,direction:H,suffixIcon:me,menuItemSelectedIcon:xe,removeIcon:Ee,allowClear:$e,notFoundContent:ue,className:Se,getPopupContainer:s||P,dropdownClassName:je,disabled:Pe,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:Te}),maxCount:ie?$:void 0,tagRender:ie?_:void 0})))},cr=l.forwardRef(Rge),_ge=vm(cr);cr.SECRET_COMBOBOX_MODE_DO_NOT_USE=SW;cr.Option=YO;cr.OptGroup=KO;cr._InternalPanelDoNotUseOrYouWillBeFired=_ge;const Bc=["xxl","xl","lg","md","sm","xs"],$ge=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Oge=e=>{const t=e,n=[].concat(Bc).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function QO(){const[,e]=l.useReducer(t=>t+1,0);return e}function gy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=l.useRef({}),n=QO(),r=wW();return Yt(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const Lb=e=>e?typeof e=="function"?e():e:null;function JO(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return l.createElement("div",{className:oe("".concat(n,"-content"),o),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Cu={shiftX:64,adjustY:1},Eu={adjustX:1,shiftY:!0},jo=[0,0],Nge={left:{points:["cr","cl"],overflow:Eu,offset:[-4,0],targetOffset:jo},right:{points:["cl","cr"],overflow:Eu,offset:[4,0],targetOffset:jo},top:{points:["bc","tc"],overflow:Cu,offset:[0,-4],targetOffset:jo},bottom:{points:["tc","bc"],overflow:Cu,offset:[0,4],targetOffset:jo},topLeft:{points:["bl","tl"],overflow:Cu,offset:[0,-4],targetOffset:jo},leftTop:{points:["tr","tl"],overflow:Eu,offset:[-4,0],targetOffset:jo},topRight:{points:["br","tr"],overflow:Cu,offset:[0,-4],targetOffset:jo},rightTop:{points:["tl","tr"],overflow:Eu,offset:[4,0],targetOffset:jo},bottomRight:{points:["tr","br"],overflow:Cu,offset:[0,4],targetOffset:jo},rightBottom:{points:["bl","br"],overflow:Eu,offset:[4,0],targetOffset:jo},bottomLeft:{points:["tl","bl"],overflow:Cu,offset:[0,4],targetOffset:jo},leftBottom:{points:["br","bl"],overflow:Eu,offset:[-4,0],targetOffset:jo}},kge=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Age=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,p=t.prefixCls,g=p===void 0?"rc-tooltip":p,m=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,x=t.transitionName,S=t.animation,v=t.motion,y=t.placement,w=y===void 0?"right":y,C=t.align,E=C===void 0?{}:C,I=t.destroyTooltipOnHide,T=I===void 0?!1:I,R=t.defaultVisible,_=t.getTooltipContainer,$=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,P=t.id,D=t.showArrow,O=D===void 0?!0:D,k=Ct(t,kge),N=l.useRef(null);l.useImperativeHandle(n,function(){return N.current});var A=X({},k);"visible"in t&&(A.popupVisible=t.visible);var L=function(){return l.createElement(JO,{key:"content",prefixCls:g,id:P,overlayInnerStyle:$},M)};return l.createElement(ym,be({popupClassName:r,prefixCls:g,popup:L,action:o,builtinPlacements:Nge,popupPlacement:w,ref:N,popupAlign:E,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:x,popupAnimation:S,popupMotion:v,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:O},A),m)};const Mge=l.forwardRef(Age);function my(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,s=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*a-u,g=d,m=2*a-s,h=c,b=2*a-o,x=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),y=`polygon(${v}px 100%, 50% ${v}px, ${2*a-v}px 100%, ${v}px 100%)`,w=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${p} ${g} L ${m} ${h} A ${r} ${r} 0 0 0 ${b} ${x} Z')`;return{arrowShadowWidth:S,arrowPath:w,arrowPolygon:y}}const CW=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${G(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},EW=8;function hy(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?EW:r}}function Nh(e,t){return e?t:{}}function eN(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={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"},CW(e,t,a)),{"&:before":{background:t}})]},Nh(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Nh(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),Nh(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Nh(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Dge(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const dD={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"]}},Pge={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"]}},Lge=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function IW(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,c={};return Object.keys(dD).forEach(u=>{const d=r&&Pge[u]||dD[u],p=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=p,Lge.has(u)&&(p.autoArrow=!1),u){case"top":case"topLeft":case"topRight":p.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+a;break}const g=hy({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":p.offset[0]=-g.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":p.offset[0]=g.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":p.offset[1]=-g.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":p.offset[1]=g.arrowOffsetHorizontal*2-s;break}p.overflow=Dge(u,g,t,n),i&&(p.htmlRegion="visibleFirst")}),c}const jge=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,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":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${G(e.calc(u).div(2).equal())} ${G(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,EW)}},[`${t}-content`]:{position:"relative"}}),Y0(e,(p,g)=>{let{darkColor:m}=g;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},eN(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Fge=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},hy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),my(Bt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),TW=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return on("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,s=Bt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[jge(s),lf(r,"zoom-big-fast")]},Fge,{resetStyle:!1,injectStyle:t})(e)},Bge=Og.map(e=>`${e}-inverse`),zge=["success","processing","error","default","warning"];function vy(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(De(Bge),De(Og)).includes(e):Og.includes(e)}function Hge(e){return zge.includes(e)}function RW(e,t){const n=vy(t),r=oe({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const Uge=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(ut),c=s("tooltip",t),[u,d,p]=TW(c),g=RW(c,o),m=g.arrowStyle,h=Object.assign(Object.assign({},i),g.overlayStyle),b=oe(d,p,c,`${c}-pure`,`${c}-placement-${r}`,n,g.className);return u(l.createElement("div",{className:b,style:m},l.createElement("div",{className:`${c}-arrow`}),l.createElement(JO,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),a)))};var Vge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:g,destroyTooltipOnHide:m,arrow:h=!0,title:b,overlay:x,builtinPlacements:S,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,w=!!h,[,C]=ta(),{getPopupContainer:E,getPrefixCls:I,direction:T}=l.useContext(ut),R=zl(),_=l.useRef(null),$=()=>{var ue;(ue=_.current)===null||ue===void 0||ue.forceAlign()};l.useImperativeHandle(t,()=>{var ue;return{forceAlign:$,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:(ue=_.current)===null||ue===void 0?void 0:ue.nativeElement}});const[M,P]=fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),D=!b&&!x&&b!==0,O=ue=>{var me,xe;P(D?!1:ue),D||((me=e.onOpenChange)===null||me===void 0||me.call(e,ue),(xe=e.onVisibleChange)===null||xe===void 0||xe.call(e,ue))},k=l.useMemo(()=>{var ue,me;let xe=v;return typeof h=="object"&&(xe=(me=(ue=h.pointAtCenter)!==null&&ue!==void 0?ue:h.arrowPointAtCenter)!==null&&me!==void 0?me:v),S||IW({arrowPointAtCenter:xe,autoAdjustOverflow:y,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[v,h,S,C]),N=l.useMemo(()=>b===0?b:x||b||"",[x,b]),A=l.createElement(es,{space:!0},typeof N=="function"?N():N),{getPopupContainer:L,placement:j="top",mouseEnterDelay:F=.1,mouseLeaveDelay:B=.1,overlayStyle:z,rootClassName:U}=e,H=Vge(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=I("tooltip",a),Y=I(),ee=e["data-popover-inject"];let ae=M;!("open"in e)&&!("visible"in e)&&D&&(ae=!1);const W=l.isValidElement(d)&&!WU(d)?d:l.createElement("span",null,d),q=W.props,Z=!q.className||typeof q.className=="string"?oe(q.className,o||`${K}-open`):q.className,[Q,J,ie]=TW(K,!ee),le=RW(K,c),fe=le.arrowStyle,te=Object.assign(Object.assign({},u),le.overlayStyle),se=oe(s,{[`${K}-rtl`]:T==="rtl"},le.className,U,J,ie),[pe,he]=Mi("Tooltip",H.zIndex),re=l.createElement(Mge,Object.assign({},H,{zIndex:pe,showArrow:w,placement:j,mouseEnterDelay:F,mouseLeaveDelay:B,prefixCls:K,overlayClassName:se,overlayStyle:Object.assign(Object.assign({},fe),z),getTooltipContainer:L||i||E,ref:_,builtinPlacements:k,overlay:A,visible:ae,onVisibleChange:O,afterVisibleChange:p??g,overlayInnerStyle:te,arrowContent:l.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:Da(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),ae?$r(W,{className:Z}):W);return Q(l.createElement(lm.Provider,{value:he},re))}),Ft=Wge;Ft._InternalPanelDoNotUseOrYouWillBeFired=Uge;const Gge=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:p,popoverBg:g,titleBorderBottom:m,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},an(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,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"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:a,borderBottom:m,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},eN(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},qge=e=>{const{componentCls:t}=e;return{[t]:Og.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Kge=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:p}=e,g=n-r,m=g/2,h=g/2-t,b=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},my(e)),hy({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${m}px ${b}px ${h}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${p}px ${b}px`:0})},_W=on("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Bt(e,{popoverBg:t,popoverColor:n});return[Gge(r),qge(r),lf(r,"zoom-big")]},Kge,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Yge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},t),n&&l.createElement("div",{className:`${r}-inner-content`},n))},Xge=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:s,children:c}=e,u=Lb(i),d=Lb(s),p=oe(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return l.createElement("div",{className:p,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(JO,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement($W,{prefixCls:n,title:u,content:d})))},Zge=e=>{const{prefixCls:t,className:n}=e,r=Yge(e,["prefixCls","className"]),{getPrefixCls:a}=l.useContext(ut),o=a("popover",t),[i,s,c]=_W(o);return i(l.createElement(Xge,Object.assign({},r,{prefixCls:o,hashId:s,className:oe(n,c)})))};var Qge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:m,overlayStyle:h={}}=e,b=Qge(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:x}=l.useContext(ut),S=x("popover",a),[v,y,w]=_W(S),C=x(),E=oe(s,y,w),[I,T]=fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=(D,O)=>{T(D,!0),m==null||m(D,O)},_=D=>{D.keyCode===Fe.ESC&&R(!1,D)},$=D=>{R(D)},M=Lb(o),P=Lb(i);return v(l.createElement(Ft,Object.assign({placement:c,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:h},b,{prefixCls:S,overlayClassName:E,ref:t,open:I,onOpenChange:$,overlay:M||P?l.createElement($W,{prefixCls:S,title:M,content:P}):null,transitionName:Da(C,"zoom-big",b.transitionName),"data-popover-inject":!0}),$r(d,{onKeyDown:D=>{var O,k;l.isValidElement(d)&&((k=d==null?void 0:(O=d.props).onKeyDown)===null||k===void 0||k.call(O,D)),_(D)}})))}),OW=Jge;OW._InternalPanelDoNotUseOrYouWillBeFired=Zge;const eme=new en("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),tme=new en("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),nme=new en("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),rme=new en("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),ame=new en("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),ome=new en("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),ime=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:o,textFontSizeSM:i,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:p,marginXS:g,calc:m}=e,h=`${r}-scroll-number`,b=Y0(e,(x,S)=>{let{darkColor:v}=S;return{[`&${t} ${t}-color-${x}`]:{background:v,[`&:not(${t}-count)`]:{color:v},"a:hover &":{background:v}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:o,lineHeight:G(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:m(d).div(2).equal(),boxShadow:`0 0 0 ${G(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:p,height:p,fontSize:i,lineHeight:G(p),borderRadius:m(p).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${G(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${G(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:ome,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:eme,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:g,color:e.colorText,fontSize:e.fontSize}}}),b),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:tme,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:nme,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:rme,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:ame,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},NW=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,o=t,i=n,s=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return Bt(e,{badgeFontHeight:o,badgeShadowSize:i,badgeTextColor:s,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},kW=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},sme=on("Badge",e=>{const t=NW(e);return ime(t)},kW),lme=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:o}=e,i=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,c=Y0(e,(u,d)=>{let{darkColor:p}=d;return{[`&${i}-color-${u}`]:{background:p,color:p}}});return{[s]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"absolute",top:r,padding:`0 ${G(e.paddingXS)}`,color:e.colorPrimary,lineHeight:G(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${G(o(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${i}-placement-end`]:{insetInlineEnd:o(a).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:o(a).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},cme=on(["Badge","Ribbon"],e=>{const t=NW(e);return lme(t)},kW),ume=e=>{const{className:t,prefixCls:n,style:r,color:a,children:o,text:i,placement:s="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=l.useContext(ut),p=u("ribbon",n),g=`${p}-wrapper`,[m,h,b]=cme(p,g),x=vy(a,!1),S=oe(p,`${p}-placement-${s}`,{[`${p}-rtl`]:d==="rtl",[`${p}-color-${a}`]:x},t),v={},y={};return a&&!x&&(v.background=a,y.color=a),m(l.createElement("div",{className:oe(g,c,h,b)},o,l.createElement("div",{className:oe(S,h),style:Object.assign(Object.assign({},v),r)},l.createElement("span",{className:`${p}-text`},i),l.createElement("div",{className:`${p}-corner`,style:y}))))},fD=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let o;return a&&(o={position:"absolute",top:`${a}00%`,left:0}),l.createElement("span",{style:o,className:oe(`${t}-only-unit`,{current:r})},n)};function dme(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const fme=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),o=Math.abs(n),[i,s]=l.useState(a),[c,u]=l.useState(o),d=()=>{s(a),u(o)};l.useEffect(()=>{const m=setTimeout(d,1e3);return()=>clearTimeout(m)},[a]);let p,g;if(i===a||Number.isNaN(a)||Number.isNaN(i))p=[l.createElement(fD,Object.assign({},e,{key:a,current:!0}))],g={transition:"none"};else{p=[];const m=a+10,h=[];for(let S=a;S<=m;S+=1)h.push(S);const b=h.findIndex(S=>S%10===i);p=h.map((S,v)=>{const y=S%10;return l.createElement(fD,Object.assign({},e,{key:S,value:y,offset:v-b,current:v===b}))});const x=c{const{prefixCls:n,count:r,className:a,motionClassName:o,style:i,title:s,show:c,component:u="sup",children:d}=e,p=pme(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:g}=l.useContext(ut),m=g("scroll-number",n),h=Object.assign(Object.assign({},p),{"data-show":c,style:i,className:oe(m,a,o),title:s});let b=r;if(r&&Number(r)%1===0){const x=String(r).split("");b=l.createElement("bdi",null,x.map((S,v)=>l.createElement(fme,{prefixCls:m,count:Number(r),value:S,key:x.length-v})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?$r(d,x=>({className:oe(`${m}-custom-component`,x==null?void 0:x.className,o)})):l.createElement(u,Object.assign({},h,{ref:t}),b)});var mme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:p,color:g,count:m=null,overflowCount:h=99,dot:b=!1,size:x="default",title:S,offset:v,style:y,className:w,rootClassName:C,classNames:E,styles:I,showZero:T=!1}=e,R=mme(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:$,badge:M}=l.useContext(ut),P=_("badge",s),[D,O,k]=sme(P),N=m>h?`${h}+`:m,A=N==="0"||N===0,L=m===null||A&&!T,j=(d!=null||g!=null)&&L,F=b&&!A,B=F?"":N,z=l.useMemo(()=>(B==null||B===""||A&&!T)&&!F,[B,A,T,F]),U=l.useRef(m);z||(U.current=m);const H=U.current,K=l.useRef(B);z||(K.current=B);const Y=K.current,ee=l.useRef(F);z||(ee.current=F);const ae=l.useMemo(()=>{if(!v)return Object.assign(Object.assign({},M==null?void 0:M.style),y);const fe={marginTop:v[1]};return $==="rtl"?fe.left=parseInt(v[0],10):fe.right=-parseInt(v[0],10),Object.assign(Object.assign(Object.assign({},fe),M==null?void 0:M.style),y)},[$,v,y,M==null?void 0:M.style]),W=S??(typeof H=="string"||typeof H=="number"?H:void 0),q=z||!p?null:l.createElement("span",{className:`${P}-status-text`},p),Z=!H||typeof H!="object"?void 0:$r(H,fe=>({style:Object.assign(Object.assign({},ae),fe.style)})),Q=vy(g,!1),J=oe(E==null?void 0:E.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:j,[`${P}-status-${d}`]:!!d,[`${P}-color-${g}`]:Q}),ie={};g&&!Q&&(ie.color=g,ie.background=g);const le=oe(P,{[`${P}-status`]:j,[`${P}-not-a-wrapper`]:!u,[`${P}-rtl`]:$==="rtl"},w,C,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,O,k);if(!u&&j){const fe=ae.color;return D(l.createElement("span",Object.assign({},R,{className:le,style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.root),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),ae)}),l.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.indicator),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.indicator),ie)}),p&&l.createElement("span",{style:{color:fe},className:`${P}-status-text`},p)))}return D(l.createElement("span",Object.assign({ref:t},R,{className:le,style:Object.assign(Object.assign({},(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),I==null?void 0:I.root)}),u,l.createElement(Qr,{visible:!z,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},fe=>{let{className:te}=fe;var se,pe;const he=_("scroll-number",c),re=ee.current,ue=oe(E==null?void 0:E.indicator,(se=M==null?void 0:M.classNames)===null||se===void 0?void 0:se.indicator,{[`${P}-dot`]:re,[`${P}-count`]:!re,[`${P}-count-sm`]:x==="small",[`${P}-multiple-words`]:!re&&Y&&Y.toString().length>1,[`${P}-status-${d}`]:!!d,[`${P}-color-${g}`]:Q});let me=Object.assign(Object.assign(Object.assign({},I==null?void 0:I.indicator),(pe=M==null?void 0:M.styles)===null||pe===void 0?void 0:pe.indicator),ae);return g&&!Q&&(me=me||{},me.background=g),l.createElement(gme,{prefixCls:he,show:!z,motionClassName:te,className:ue,count:Y,title:W,style:me,key:"scrollNumber"},Z)}),q))}),AW=hme;AW.Ribbon=ume;var vme=Fe.ESC,bme=Fe.TAB;function yme(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var p,g;(p=n.current)===null||p===void 0||(g=p.focus)===null||g===void 0||g.call(p),r==null||r(!1)}},c=function(){var p;return(p=o.current)!==null&&p!==void 0&&p.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(p){switch(p.keyCode){case vme:s();break;case bme:{var g=!1;i.current||(g=c()),g?p.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Ut(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var xme=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=ma(t,o==null?void 0:o.ref);return de.createElement(de.Fragment,null,r&&de.createElement("div",{className:"".concat(a,"-arrow")}),de.cloneElement(o,{ref:_i(o)?i:void 0}))}),Iu={adjustX:1,adjustY:1},Tu=[0,0],Sme={topLeft:{points:["bl","tl"],overflow:Iu,offset:[0,-4],targetOffset:Tu},top:{points:["bc","tc"],overflow:Iu,offset:[0,-4],targetOffset:Tu},topRight:{points:["br","tr"],overflow:Iu,offset:[0,-4],targetOffset:Tu},bottomLeft:{points:["tl","bl"],overflow:Iu,offset:[0,4],targetOffset:Tu},bottom:{points:["tc","bc"],overflow:Iu,offset:[0,4],targetOffset:Tu},bottomRight:{points:["tr","br"],overflow:Iu,offset:[0,4],targetOffset:Tu}},wme=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Cme(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,p=d===void 0?"bottomLeft":d,g=e.placements,m=g===void 0?Sme:g,h=e.getPopupContainer,b=e.showAction,x=e.hideAction,S=e.overlayClassName,v=e.overlayStyle,y=e.visible,w=e.trigger,C=w===void 0?["hover"]:w,E=e.autoFocus,I=e.overlay,T=e.children,R=e.onVisibleChange,_=Ct(e,wme),$=de.useState(),M=ce($,2),P=M[0],D=M[1],O="visible"in e?y:P,k=de.useRef(null),N=de.useRef(null),A=de.useRef(null);de.useImperativeHandle(t,function(){return k.current});var L=function(ee){D(ee),R==null||R(ee)};yme({visible:O,triggerRef:A,onVisibleChange:L,autoFocus:E,overlayRef:N});var j=function(ee){var ae=e.onOverlayClick;D(!1),ae&&ae(ee)},F=function(){return de.createElement(xme,{ref:N,overlay:I,prefixCls:i,arrow:a})},B=function(){return typeof I=="function"?F:F()},z=function(){var ee=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ee:!ae},U=function(){var ee=e.openClassName;return ee!==void 0?ee:"".concat(i,"-open")},H=de.cloneElement(T,{className:oe((n=T.props)===null||n===void 0?void 0:n.className,O&&U()),ref:_i(T)?ma(A,T.ref):void 0}),K=x;return!K&&C.indexOf("contextMenu")!==-1&&(K=["click"]),de.createElement(ym,be({builtinPlacements:m},_,{prefixCls:i,ref:k,popupClassName:oe(S,V({},"".concat(i,"-show-arrow"),a)),popupStyle:v,action:C,showAction:b,hideAction:K,popupPlacement:p,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:O,stretch:z()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:j,getPopupContainer:h}),H)}const MW=de.forwardRef(Cme);var DW=l.createContext(null);function PW(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function LW(e){var t=l.useContext(DW);return PW(t,e)}var Eme=["children","locked"],Oi=l.createContext(null);function Ime(e,t){var n=X({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Mg(e){var t=e.children,n=e.locked,r=Ct(e,Eme),a=l.useContext(Oi),o=Bl(function(){return Ime(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!ei(i[1],s[1],!0))});return l.createElement(Oi.Provider,{value:o},t)}var Tme=[],jW=l.createContext(null);function by(){return l.useContext(jW)}var FW=l.createContext(Tme);function ff(e){var t=l.useContext(FW);return l.useMemo(function(){return e!==void 0?[].concat(De(t),[e]):t},[t,e])}var BW=l.createContext(null),tN=l.createContext({});function pD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(sf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Rme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=De(e.querySelectorAll("*")).filter(function(r){return pD(r,t)});return pD(e,t)&&n.unshift(e),n}var JR=Fe.LEFT,e_=Fe.RIGHT,t_=Fe.UP,Mv=Fe.DOWN,Dv=Fe.ENTER,zW=Fe.ESC,Kf=Fe.HOME,Yf=Fe.END,gD=[t_,Mv,JR,e_];function _me(e,t,n,r){var a,o="prev",i="next",s="children",c="parent";if(e==="inline"&&r===Dv)return{inlineTrigger:!0};var u=V(V({},t_,o),Mv,i),d=V(V(V(V({},JR,n?i:o),e_,n?o:i),Mv,s),Dv,s),p=V(V(V(V(V(V({},t_,o),Mv,i),Dv,s),zW,c),JR,n?s:c),e_,n?c:s),g={inline:u,horizontal:d,vertical:p,inlineSub:u,horizontalSub:p,verticalSub:p},m=(a=g["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(m){case o:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function $me(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Ome(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nN(e,t){var n=Rme(e,!0);return n.filter(function(r){return t.has(r)})}function mD(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=nN(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var n_=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(PW(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function Nme(e,t,n,r,a,o,i,s,c,u){var d=l.useRef(),p=l.useRef();p.current=t;var g=function(){Ut.cancel(d.current)};return l.useEffect(function(){return function(){g()}},[]),function(m){var h=m.which;if([].concat(gD,[Dv,zW,Kf,Yf]).includes(h)){var b=o(),x=n_(b,r),S=x,v=S.elements,y=S.key2element,w=S.element2key,C=y.get(t),E=Ome(C,v),I=w.get(E),T=_me(e,i(I,!0).length===1,n,h);if(!T&&h!==Kf&&h!==Yf)return;(gD.includes(h)||[Kf,Yf].includes(h))&&m.preventDefault();var R=function(N){if(N){var A=N,L=N.querySelector("a");L!=null&&L.getAttribute("href")&&(A=L);var j=w.get(N);s(j),g(),d.current=Ut(function(){p.current===j&&A.focus()})}};if([Kf,Yf].includes(h)||T.sibling||!E){var _;!E||e==="inline"?_=a.current:_=$me(E);var $,M=nN(_,v);h===Kf?$=M[0]:h===Yf?$=M[M.length-1]:$=mD(_,v,E,T.offset),R($)}else if(T.inlineTrigger)c(I);else if(T.offset>0)c(I,!0),g(),d.current=Ut(function(){x=n_(b,r);var k=E.getAttribute("aria-controls"),N=document.getElementById(k),A=mD(N,x.elements);R(A)},5);else if(T.offset<0){var P=i(I,!0),D=P[P.length-2],O=y.get(D);c(D,!1),R(O)}}u==null||u(m)}}function kme(e){Promise.resolve().then(e)}var rN="__RC_UTIL_PATH_SPLIT__",hD=function(t){return t.join(rN)},Ame=function(t){return t.split(rN)},r_="rc-menu-more";function Mme(){var e=l.useState({}),t=ce(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),o=l.useState([]),i=ce(o,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),p=function(){d.current||n({})},g=l.useCallback(function(y,w){var C=hD(w);a.current.set(C,y),r.current.set(y,C),u.current+=1;var E=u.current;kme(function(){E===u.current&&p()})},[]),m=l.useCallback(function(y,w){var C=hD(w);a.current.delete(C),r.current.delete(y)},[]),h=l.useCallback(function(y){c(y)},[]),b=l.useCallback(function(y,w){var C=r.current.get(y)||"",E=Ame(C);return w&&s.includes(E[0])&&E.unshift(r_),E},[s]),x=l.useCallback(function(y,w){return y.filter(function(C){return C!==void 0}).some(function(C){var E=b(C,!0);return E.includes(w)})},[b]),S=function(){var w=De(r.current.keys());return s.length&&w.push(r_),w},v=l.useCallback(function(y){var w="".concat(r.current.get(y)).concat(rN),C=new Set;return De(a.current.keys()).forEach(function(E){E.startsWith(w)&&C.add(a.current.get(E))}),C},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:g,unregisterPath:m,refreshOverflowKeys:h,isSubPathKey:x,getKeyPath:b,getKeys:S,getSubPathKeys:v}}function up(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(v.motionAppear=!1);var y=v.onVisibleChanged;return v.onVisibleChanged=function(w){return!g.current&&!w&&x(!0),y==null?void 0:y(w)},b?null:l.createElement(Mg,{mode:o,locked:!g.current},l.createElement(Qr,be({visible:S},v,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var C=w.className,E=w.style;return l.createElement(aN,{id:t,className:C,style:E},a)}))}var Zme=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Qme=["active"],Jme=l.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,p=e.popupClassName,g=e.popupOffset,m=e.popupStyle,h=e.onClick,b=e.onMouseEnter,x=e.onMouseLeave,S=e.onTitleClick,v=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=Ct(e,Zme),C=LW(o),E=l.useContext(Oi),I=E.prefixCls,T=E.mode,R=E.openKeys,_=E.disabled,$=E.overflowDisabled,M=E.activeKey,P=E.selectedKeys,D=E.itemIcon,O=E.expandIcon,k=E.onItemClick,N=E.onOpenChange,A=E.onActive,L=l.useContext(tN),j=L._internalRenderSubMenuItem,F=l.useContext(BW),B=F.isSubPathKey,z=ff(),U="".concat(I,"-submenu"),H=_||i,K=l.useRef(),Y=l.useRef(),ee=u??D,ae=d??O,W=R.includes(o),q=!$&&W,Z=B(P,o),Q=HW(o,H,v,y),J=Q.active,ie=Ct(Q,Qme),le=l.useState(!1),fe=ce(le,2),te=fe[0],se=fe[1],pe=function(Ne){H||se(Ne)},he=function(Ne){pe(!0),b==null||b({key:o,domEvent:Ne})},re=function(Ne){pe(!1),x==null||x({key:o,domEvent:Ne})},ue=l.useMemo(function(){return J||(T!=="inline"?te||B([M],o):!1)},[T,J,M,te,o,B]),me=UW(z.length),xe=function(Ne){H||(S==null||S({key:o,domEvent:Ne}),T==="inline"&&N(o,!W))},Ee=up(function(Se){h==null||h(jb(Se)),k(Se)}),ke=function(Ne){T!=="inline"&&N(o,Ne)},$e=function(){A(o)},Le=C&&"".concat(C,"-popup"),je=l.createElement("div",be({role:"menuitem",style:me,className:"".concat(U,"-title"),tabIndex:H?null:-1,ref:K,title:typeof a=="string"?a:null,"data-menu-id":$&&C?null:C,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":Le,"aria-disabled":H,onClick:xe,onFocus:$e},ie),a,l.createElement(VW,{icon:T!=="horizontal"?ae:void 0,props:X(X({},e),{},{isOpen:q,isSubMenu:!0})},l.createElement("i",{className:"".concat(U,"-arrow")}))),He=l.useRef(T);if(T!=="inline"&&z.length>1?He.current="vertical":He.current=T,!$){var Be=He.current;je=l.createElement(Yme,{mode:Be,prefixCls:U,visible:!s&&q&&T!=="inline",popupClassName:p,popupOffset:g,popupStyle:m,popup:l.createElement(Mg,{mode:Be==="horizontal"?"vertical":Be},l.createElement(aN,{id:Le,ref:Y},c)),disabled:H,onVisibleChange:ke},je)}var Pe=l.createElement(Ii.Item,be({ref:t,role:"none"},w,{component:"li",style:n,className:oe(U,"".concat(U,"-").concat(T),r,V(V(V(V({},"".concat(U,"-open"),q),"".concat(U,"-active"),ue),"".concat(U,"-selected"),Z),"".concat(U,"-disabled"),H)),onMouseEnter:he,onMouseLeave:re}),je,!$&&l.createElement(Xme,{id:Le,open:q,keyPath:z},c));return j&&(Pe=j(Pe,e,{selected:Z,active:ue,open:q,disabled:H})),l.createElement(Mg,{onItemClick:Ee,mode:T==="horizontal"?"vertical":T,itemIcon:ee,expandIcon:ae},Pe)}),yy=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ff(n),o=oN(r,a),i=by();l.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=l.createElement(Jme,be({ref:t},e),o),l.createElement(FW.Provider,{value:a},s)});function iN(e){var t=e.className,n=e.style,r=l.useContext(Oi),a=r.prefixCls,o=by();return o?null:l.createElement("li",{role:"separator",className:oe("".concat(a,"-item-divider"),t),style:n})}var ehe=["className","title","eventKey","children"],the=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Ct(e,ehe),i=l.useContext(Oi),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",be({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:oe(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),sN=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ff(n),o=oN(r,a),i=by();return i?o:l.createElement(the,be({ref:t},Mn(e,["warnKey"])),o)}),nhe=["label","children","key","type","extra"];function a_(e,t,n){var r=t.item,a=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(s,c){if(s&&mt(s)==="object"){var u=s,d=u.label,p=u.children,g=u.key,m=u.type,h=u.extra,b=Ct(u,nhe),x=g??"tmp-".concat(c);return p||m==="group"?m==="group"?l.createElement(a,be({key:x},b,{title:d}),a_(p,t,n)):l.createElement(o,be({key:x},b,{title:d}),a_(p,t,n)):m==="divider"?l.createElement(i,be({key:x},b)):l.createElement(r,be({key:x},b),d,(!!h||h===0)&&l.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function bD(e,t,n,r,a){var o=e,i=X({divider:iN,item:Sm,group:sN,submenu:yy},r);return t&&(o=a_(t,i,a)),oN(o,n)}var rhe=["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"],Xl=[],ahe=l.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,i=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,p=r.items,g=r.children,m=r.direction,h=r.id,b=r.mode,x=b===void 0?"vertical":b,S=r.inlineCollapsed,v=r.disabled,y=r.disabledOverflow,w=r.subMenuOpenDelay,C=w===void 0?.1:w,E=r.subMenuCloseDelay,I=E===void 0?.1:E,T=r.forceSubMenuRender,R=r.defaultOpenKeys,_=r.openKeys,$=r.activeKey,M=r.defaultActiveFirst,P=r.selectable,D=P===void 0?!0:P,O=r.multiple,k=O===void 0?!1:O,N=r.defaultSelectedKeys,A=r.selectedKeys,L=r.onSelect,j=r.onDeselect,F=r.inlineIndent,B=F===void 0?24:F,z=r.motion,U=r.defaultMotions,H=r.triggerSubMenuAction,K=H===void 0?"hover":H,Y=r.builtinPlacements,ee=r.itemIcon,ae=r.expandIcon,W=r.overflowedIndicator,q=W===void 0?"...":W,Z=r.overflowedIndicatorPopupClassName,Q=r.getPopupContainer,J=r.onClick,ie=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var fe=r._internalRenderMenuItem,te=r._internalRenderSubMenuItem,se=r._internalComponents,pe=Ct(r,rhe),he=l.useMemo(function(){return[bD(g,p,Xl,se,o),bD(g,p,Xl,{},o)]},[g,p,se]),re=ce(he,2),ue=re[0],me=re[1],xe=l.useState(!1),Ee=ce(xe,2),ke=Ee[0],$e=Ee[1],Le=l.useRef(),je=Pme(h),He=m==="rtl",Be=fn(R,{value:_,postState:function(zt){return zt||Xl}}),Pe=ce(Be,2),Se=Pe[0],Ne=Pe[1],Te=function(zt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function nn(){Ne(zt),ie==null||ie(zt)}Ht?Kr.flushSync(nn):nn()},we=l.useState(Se),Me=ce(we,2),Ge=Me[0],st=Me[1],ge=l.useRef(!1),ne=l.useMemo(function(){return(x==="inline"||x==="vertical")&&S?["vertical",S]:[x,!1]},[x,S]),ve=ce(ne,2),_e=ve[0],ze=ve[1],Ue=_e==="inline",Ae=l.useState(_e),Oe=ce(Ae,2),Re=Oe[0],at=Oe[1],Ye=l.useState(ze),We=ce(Ye,2),qe=We[0],Qe=We[1];l.useEffect(function(){at(_e),Qe(ze),ge.current&&(Ue?Ne(Ge):Te(Xl))},[_e,ze]);var ot=l.useState(0),wt=ce(ot,2),kt=wt[0],xt=wt[1],nt=kt>=ue.length-1||Re!=="horizontal"||y;l.useEffect(function(){Ue&&st(Se)},[Se]),l.useEffect(function(){return ge.current=!0,function(){ge.current=!1}},[]);var rt=Mme(),bt=rt.registerPath,Ot=rt.unregisterPath,ht=rt.refreshOverflowKeys,lt=rt.isSubPathKey,Et=rt.getKeyPath,Ze=rt.getKeys,ct=rt.getSubPathKeys,ft=l.useMemo(function(){return{registerPath:bt,unregisterPath:Ot}},[bt,Ot]),et=l.useMemo(function(){return{isSubPathKey:lt}},[lt]);l.useEffect(function(){ht(nt?Xl:ue.slice(kt+1).map(function(Rt){return Rt.key}))},[kt,nt]);var Xe=fn($||M&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:$}),_t=ce(Xe,2),Mt=_t[0],Vt=_t[1],mn=up(function(Rt){Vt(Rt)}),pn=up(function(){Vt(void 0)});l.useImperativeHandle(t,function(){return{list:Le.current,focus:function(zt){var Ht,nn=Ze(),It=n_(nn,je),Dt=It.elements,vn=It.key2element,zn=It.element2key,Sr=nN(Le.current,Dt),wr=Mt??(Sr[0]?zn.get(Sr[0]):(Ht=ue.find(function(pt){return!pt.props.disabled}))===null||Ht===void 0?void 0:Ht.key),Ar=vn.get(wr);if(wr&&Ar){var Kt;Ar==null||(Kt=Ar.focus)===null||Kt===void 0||Kt.call(Ar,zt)}}}});var yt=fn(N||[],{value:A,postState:function(zt){return Array.isArray(zt)?zt:zt==null?Xl:[zt]}}),At=ce(yt,2),jt=At[0],tn=At[1],An=function(zt){if(D){var Ht=zt.key,nn=jt.includes(Ht),It;k?nn?It=jt.filter(function(vn){return vn!==Ht}):It=[].concat(De(jt),[Ht]):It=[Ht],tn(It);var Dt=X(X({},zt),{},{selectedKeys:It});nn?j==null||j(Dt):L==null||L(Dt)}!k&&Se.length&&Re!=="inline"&&Te(Xl)},Or=up(function(Rt){J==null||J(jb(Rt)),An(Rt)}),In=up(function(Rt,zt){var Ht=Se.filter(function(It){return It!==Rt});if(zt)Ht.push(Rt);else if(Re!=="inline"){var nn=ct(Rt);Ht=Ht.filter(function(It){return!nn.has(It)})}ei(Se,Ht,!0)||Te(Ht,!0)}),br=function(zt,Ht){var nn=Ht??!Se.includes(zt);In(zt,nn)},na=Nme(Re,Mt,He,je,Le,Ze,Et,Vt,br,le);l.useEffect(function(){$e(!0)},[]);var jr=l.useMemo(function(){return{_internalRenderMenuItem:fe,_internalRenderSubMenuItem:te}},[fe,te]),Xn=Re!=="horizontal"||y?ue:ue.map(function(Rt,zt){return l.createElement(Mg,{key:Rt.key,overflowDisabled:zt>kt},Rt)}),Zt=l.createElement(Ii,be({id:h,ref:Le,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Sm,className:oe(o,"".concat(o,"-root"),"".concat(o,"-").concat(Re),c,V(V({},"".concat(o,"-inline-collapsed"),qe),"".concat(o,"-rtl"),He),i),dir:m,style:s,role:"menu",tabIndex:d,data:Xn,renderRawItem:function(zt){return zt},renderRawRest:function(zt){var Ht=zt.length,nn=Ht?ue.slice(-Ht):null;return l.createElement(yy,{eventKey:r_,title:q,disabled:nt,internalPopupClose:Ht===0,popupClassName:Z},nn)},maxCount:Re!=="horizontal"||y?Ii.INVALIDATE:Ii.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(zt){xt(zt)},onKeyDown:na},pe));return l.createElement(tN.Provider,{value:jr},l.createElement(DW.Provider,{value:je},l.createElement(Mg,{prefixCls:o,rootClassName:i,mode:Re,openKeys:Se,rtl:He,disabled:v,motion:ke?z:null,defaultMotions:ke?U:null,activeKey:Mt,onActive:mn,onInactive:pn,selectedKeys:jt,inlineIndent:B,subMenuOpenDelay:C,subMenuCloseDelay:I,forceSubMenuRender:T,builtinPlacements:Y,triggerSubMenuAction:K,getPopupContainer:Q,itemIcon:ee,expandIcon:ae,onItemClick:Or,onOpenChange:In},l.createElement(BW.Provider,{value:et},Zt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(jW.Provider,{value:ft},me)))))}),pf=ahe;pf.Item=Sm;pf.SubMenu=yy;pf.ItemGroup=sN;pf.Divider=iN;var ohe={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"},ihe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:ohe}))},she=l.forwardRef(ihe),lhe={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"},che=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:lhe}))},ks=l.forwardRef(che);const uhe=e=>!isNaN(parseFloat(e))&&isFinite(e),GW=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),dhe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:i,headerColor:s,footerPadding:c,fontSize:u,bodyBg:d,headerBg:p}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{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:o,padding:i,color:s,lineHeight:G(o),background:p,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},qW=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},KW=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],YW=on("Layout",e=>[dhe(e)],qW,{deprecatedTokens:KW}),fhe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:i,triggerColor:s,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:p,borderRadius:g,lightSiderBg:m,lightTriggerColor:h,lightTriggerBg:b,bodyBg:x}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:s,lineHeight:G(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:p,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}},"&-light":{background:m,[`${t}-trigger`]:{color:h,background:b},[`${t}-zero-width-trigger`]:{color:h,background:b,border:`1px solid ${x}`,borderInlineStart:0}}}}},phe=on(["Layout","Sider"],e=>[fhe(e)],qW,{deprecatedTokens:KW});var ghe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),lN=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:p=200,collapsedWidth:g=80,zeroWidthTriggerStyle:m,breakpoint:h,onCollapse:b,onBreakpoint:x}=e,S=ghe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:v}=l.useContext(GW),[y,w]=l.useState("collapsed"in e?e.collapsed:i),[C,E]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const I=(N,A)=>{"collapsed"in e||w(N),b==null||b(N,A)},{getPrefixCls:T}=l.useContext(ut),R=T("layout-sider",n),[_,$,M]=phe(R),P=l.useRef();P.current=N=>{E(N.matches),x==null||x(N.matches),y!==N.matches&&I(N.matches,"responsive")},l.useEffect(()=>{function N(L){return P.current(L)}let A;if(typeof window<"u"){const{matchMedia:L}=window;if(L&&h&&h in yD){A=L(`screen and (max-width: ${yD[h]})`);try{A.addEventListener("change",N)}catch{A.addListener(N)}N(A)}}return()=>{try{A==null||A.removeEventListener("change",N)}catch{A==null||A.removeListener(N)}}},[h]),l.useEffect(()=>{const N=mhe("ant-sider-");return v.addSider(N),()=>v.removeSider(N)},[]);const D=()=>{I(!y,"clickTrigger")},O=()=>{const N=Mn(S,["collapsed"]),A=y?g:p,L=uhe(A)?`${A}px`:String(A),j=parseFloat(String(g||0))===0?l.createElement("span",{onClick:D,className:oe(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${d?"right":"left"}`),style:m},a||l.createElement(she,null)):null,z={expanded:d?l.createElement(io,null):l.createElement(ks,null),collapsed:d?l.createElement(ks,null):l.createElement(io,null)}[y?"collapsed":"expanded"],U=a!==null?j||l.createElement("div",{className:`${R}-trigger`,onClick:D,style:{width:L}},a||z):null,H=Object.assign(Object.assign({},c),{flex:`0 0 ${L}`,maxWidth:L,minWidth:L,width:L}),K=oe(R,`${R}-${s}`,{[`${R}-collapsed`]:!!y,[`${R}-has-trigger`]:u&&a!==null&&!j,[`${R}-below`]:!!C,[`${R}-zero-width`]:parseFloat(L)===0},r,$,M);return l.createElement("aside",Object.assign({className:K},N,{style:H,ref:t}),l.createElement("div",{className:`${R}-children`},o),u||C&&j?U:null)},k=l.useMemo(()=>({siderCollapsed:y}),[y]);return _(l.createElement(xy.Provider,{value:k},O()))});var hhe={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"},vhe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:hhe}))},cN=l.forwardRef(vhe);const Fb=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var bhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=bhe(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=l.useContext(ut),i=o("menu",t),s=oe({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(iN,Object.assign({className:s},a))},ZW=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=l.useContext(Fb),g=v=>{const y=r==null?void 0:r[0],w=l.createElement("span",{className:`${s}-title-content`},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&v&&c&&typeof y=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},y.charAt(0)):w},{siderCollapsed:m}=l.useContext(xy);let h=o;typeof o>"u"?h=c?r:"":o===!1&&(h="");const b={title:h};!m&&!p&&(b.title=null,b.open=!1);const x=_r(r).length;let S=l.createElement(Sm,Object.assign({},Mn(e,["title","icon","danger"]),{className:oe({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(a?x+1:x)===1},n),title:typeof o=="string"?o:void 0}),$r(a,{className:oe(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g(p));return d||(S=l.createElement(Ft,Object.assign({},b,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),S)),S};var yhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=yhe(e,["children"]),a=l.useContext(Bb),o=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=nae(n),s=Ds(t,i?n.ref:null);return l.createElement(Bb.Provider,{value:o},l.createElement(es,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),xhe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},She=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${G(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${G(n)})`}}}}},xD=e=>Object.assign({},Ts(e)),SD=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,groupTitleColor:o,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:g,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:b,motionDurationMid:x,itemHoverColor:S,lineType:v,colorSplit:y,itemDisabledColor:C,dangerItemColor:w,dangerItemHoverColor:E,dangerItemSelectedColor:I,dangerItemActiveBg:T,dangerItemSelectedBg:R,popupBg:_,itemHoverBg:$,itemActiveBg:M,menuSubMenuBg:P,horizontalItemSelectedColor:D,horizontalItemSelectedBg:O,horizontalItemBorderRadius:k,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},xD(e)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:a}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},xD(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:S}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${G(u)} solid transparent`,transition:`border-color ${g} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:u,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${G(p)} ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${G(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${h}`,`opacity ${x} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${m}`,`opacity ${x} ${m}`].join(",")}}}}}},CD=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:G(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${G(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${G(n)})`}}}}},xD=e=>Object.assign({},_s(e)),SD=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,groupTitleColor:o,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:g,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:b,motionDurationMid:x,itemHoverColor:S,lineType:v,colorSplit:y,itemDisabledColor:w,dangerItemColor:C,dangerItemHoverColor:E,dangerItemSelectedColor:I,dangerItemActiveBg:T,dangerItemSelectedBg:R,popupBg:_,itemHoverBg:$,itemActiveBg:M,menuSubMenuBg:P,horizontalItemSelectedColor:D,horizontalItemSelectedBg:O,horizontalItemBorderRadius:k,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},xD(e)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:a}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},xD(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:S}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${G(u)} solid transparent`,transition:`border-color ${g} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:u,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${G(p)} ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${G(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${h}`,`opacity ${x} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${m}`,`opacity ${x} ${m}`].join(",")}}}}}},wD=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:G(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:G(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:d}}},Che=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:i,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:p,motionDurationSlow:g,paddingXS:m,boxShadowSecondary:h,collapsedWidth:b,collapsedIconSize:x}=e,S={height:r,lineHeight:G(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},CD(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},CD(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${G(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${g}`,`background ${g}`,`padding ${p} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:d}}},whe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:i,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:p,motionDurationSlow:g,paddingXS:m,boxShadowSecondary:h,collapsedWidth:b,collapsedIconSize:x}=e,S={height:r,lineHeight:G(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},wD(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},wD(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${G(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${g}`,`background ${g}`,`padding ${p} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${G(e.calc(d).div(2).equal())} - ${G(u)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:x,lineHeight:G(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Oo),{paddingInline:m})}}]},wD=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},rf()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ED=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${G(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(i)})`}}}}},whe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:p,borderRadiusLG:g,subMenuItemBorderRadius:m,menuArrowSize:h,menuArrowOffset:b,lineType:x,groupTitleLineHeight:S,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},_i()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),_i()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} 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:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${G(s)} ${G(c)}`,fontSize:v,lineHeight:S,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{display:"inline-flex",alignItems:"center",transition:`color ${a}`,"> a:first-child":{flexGrow:1},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:x,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),wD(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(c)}`}}},"&-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},wD(e)),ED(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\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:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),ED(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(b)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ehe=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:p,colorFillContent:g,lineWidth:m,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:x,controlHeightLG:S,lineHeight:v,colorBgElevated:y,marginXXS:C,padding:w,fontSize:E,controlHeightSM:I,fontSizeLG:T,colorTextLightSolid:R,colorErrorHover:_}=e,$=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:m,P=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new sn(R).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:x,itemHoverBg:x,colorItemBgActive:g,itemActiveBg:b,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:m,activeBarBorderWidth:M,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:v,collapsedWidth:S*2,popupBg:y,itemMarginBlock:C,itemPaddingInline:w,horizontalLineHeight:`${S*1.15}px`,iconSize:E,iconMarginInlineEnd:I-E,collapsedIconSize:T,groupTitleFontSize:E,darkItemDisabledColor:new sn(R).setAlpha(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:R,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:o,itemWidth:$?`calc(100% + ${M}px)`:`calc(100% - ${P*2}px)`}},Ihe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return on("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:p,darkItemSelectedColor:g,darkItemSelectedBg:m,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:x,darkItemHoverColor:S,darkItemDisabledColor:v,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:w,popupBg:E,darkPopupBg:I}=a,T=a.calc(s).div(7).mul(5).equal(),R=Ft(a,{menuArrowSize:T,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(T).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),_=Ft(R,{itemColor:c,itemHoverColor:S,groupTitleColor:x,itemSelectedColor:g,itemBg:d,popupBg:I,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:v,dangerItemColor:u,dangerItemHoverColor:y,dangerItemSelectedColor:C,dangerItemActiveBg:w,dangerItemSelectedBg:h,menuSubMenuBg:p,horizontalItemSelectedColor:g,horizontalItemSelectedBg:m});return[whe(R),xhe(R),Che(R),SD(R,"light"),SD(_,"dark"),She(R),um(R),Qi(R,"slide-up"),Qi(R,"slide-down"),lf(R,"zoom-big")]},Ehe,{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}})(e,t)},JW=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=l.useContext(jb),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=ff();let p;if(!r)p=c&&!d.length&&a&&typeof a=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${s}-title-content`},a);else{const h=l.isValidElement(a)&&a.type==="span";p=l.createElement(l.Fragment,null,$r(r,{className:ae(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?a:l.createElement("span",{className:`${s}-title-content`},a))}const g=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[m]=Ai("Menu");return l.createElement(jb.Provider,{value:g},l.createElement(vy,Object.assign({},Mn(e,["icon"]),{title:p,popupClassName:ae(s,n,`${s}-${o||u}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};var The=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=l.useContext(Fb),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:s,menu:c}=l.useContext(lt),u=o(),{prefixCls:d,className:p,style:g,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:x,siderCollapsed:S,rootClassName:v,mode:y,selectable:C,onClick:w,overflowedIndicatorPopupClassName:E}=e,I=The(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=Mn(I,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:y});const R=Gt(function(){var B;w==null||w.apply(void 0,arguments),(B=a.onClick)===null||B===void 0||B.call(a)}),_=a.mode||y,$=C??a.selectable,M=l.useMemo(()=>S!==void 0?S:x,[x,S]),P={horizontal:{motionName:`${u}-slide-up`},inline:Ad(u),other:{motionName:`${u}-zoom-big`}},D=o("menu",d||a.prefixCls),O=ar(D),[k,N,A]=Ihe(D,O,!r),L=ae(`${D}-${m}`,c==null?void 0:c.className,p),j=l.useMemo(()=>{var B,z;if(typeof h=="function"||kS(h))return h||null;if(typeof a.expandIcon=="function"||kS(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||kS(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const U=(B=h??(a==null?void 0:a.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return $r(U,{className:ae(`${D}-submenu-expand-icon`,l.isValidElement(U)?(z=U.props)===null||z===void 0?void 0:z.className:void 0)})},[h,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,D]),F=l.useMemo(()=>({prefixCls:D,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:m,mode:_,disableMenuItemTitleTooltip:b}),[D,M,s,b,m]);return k(l.createElement(Fb.Provider,{value:null},l.createElement(jb.Provider,{value:F},l.createElement(pf,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(cN,null),overflowedIndicatorPopupClassName:ae(D,`${D}-${m}`,E),mode:_,selectable:$,onClick:R},T,{inlineCollapsed:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),g),className:L,prefixCls:D,direction:s,defaultMotions:P,expandIcon:j,ref:t,rootClassName:ae(v,N,a.rootClassName,A,O),_internalComponents:Rhe})))))}),Ps=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(by);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),l.createElement(_he,Object.assign({ref:n},e,r))});Ps.Item=ZW;Ps.SubMenu=JW;Ps.Divider=XW;Ps.ItemGroup=sN;const $he=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},Ohe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:g,fontSizeIcon:m,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:m},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:x,lineHeight:G(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Oo),{paddingInline:m})}}]},CD=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},rf()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ED=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${G(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(i)})`}}}}},Che=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:p,borderRadiusLG:g,subMenuItemBorderRadius:m,menuArrowSize:h,menuArrowOffset:b,lineType:x,groupTitleLineHeight:S,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},$i()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),$i()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} 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:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${G(s)} ${G(c)}`,fontSize:v,lineHeight:S,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{display:"inline-flex",alignItems:"center",transition:`color ${a}`,"> a:first-child":{flexGrow:1},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:x,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),CD(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(c)}`}}},"&-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},CD(e)),ED(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\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:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),ED(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(b)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ehe=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:p,colorFillContent:g,lineWidth:m,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:x,controlHeightLG:S,lineHeight:v,colorBgElevated:y,marginXXS:w,padding:C,fontSize:E,controlHeightSM:I,fontSizeLG:T,colorTextLightSolid:R,colorErrorHover:_}=e,$=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:m,P=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new sn(R).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:x,itemHoverBg:x,colorItemBgActive:g,itemActiveBg:b,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:m,activeBarBorderWidth:M,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:v,collapsedWidth:S*2,popupBg:y,itemMarginBlock:w,itemPaddingInline:C,horizontalLineHeight:`${S*1.15}px`,iconSize:E,iconMarginInlineEnd:I-E,collapsedIconSize:T,groupTitleFontSize:E,darkItemDisabledColor:new sn(R).setAlpha(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:R,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:o,itemWidth:$?`calc(100% + ${M}px)`:`calc(100% - ${P*2}px)`}},Ihe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return on("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:p,darkItemSelectedColor:g,darkItemSelectedBg:m,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:x,darkItemHoverColor:S,darkItemDisabledColor:v,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:C,popupBg:E,darkPopupBg:I}=a,T=a.calc(s).div(7).mul(5).equal(),R=Bt(a,{menuArrowSize:T,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(T).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),_=Bt(R,{itemColor:c,itemHoverColor:S,groupTitleColor:x,itemSelectedColor:g,itemBg:d,popupBg:I,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:v,dangerItemColor:u,dangerItemHoverColor:y,dangerItemSelectedColor:w,dangerItemActiveBg:C,dangerItemSelectedBg:h,menuSubMenuBg:p,horizontalItemSelectedColor:g,horizontalItemSelectedBg:m});return[Che(R),xhe(R),whe(R),SD(R,"light"),SD(_,"dark"),She(R),dm(R),Ji(R,"slide-up"),Ji(R,"slide-down"),lf(R,"zoom-big")]},Ehe,{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}})(e,t)},JW=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=l.useContext(Fb),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=ff();let p;if(!r)p=c&&!d.length&&a&&typeof a=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${s}-title-content`},a);else{const h=l.isValidElement(a)&&a.type==="span";p=l.createElement(l.Fragment,null,$r(r,{className:oe(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?a:l.createElement("span",{className:`${s}-title-content`},a))}const g=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[m]=Mi("Menu");return l.createElement(Fb.Provider,{value:g},l.createElement(yy,Object.assign({},Mn(e,["icon"]),{title:p,popupClassName:oe(s,n,`${s}-${o||u}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};var The=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=l.useContext(Bb),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:s,menu:c}=l.useContext(ut),u=o(),{prefixCls:d,className:p,style:g,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:x,siderCollapsed:S,rootClassName:v,mode:y,selectable:w,onClick:C,overflowedIndicatorPopupClassName:E}=e,I=The(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=Mn(I,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:y});const R=qt(function(){var B;C==null||C.apply(void 0,arguments),(B=a.onClick)===null||B===void 0||B.call(a)}),_=a.mode||y,$=w??a.selectable,M=l.useMemo(()=>S!==void 0?S:x,[x,S]),P={horizontal:{motionName:`${u}-slide-up`},inline:Ad(u),other:{motionName:`${u}-zoom-big`}},D=o("menu",d||a.prefixCls),O=ar(D),[k,N,A]=Ihe(D,O,!r),L=oe(`${D}-${m}`,c==null?void 0:c.className,p),j=l.useMemo(()=>{var B,z;if(typeof h=="function"||MS(h))return h||null;if(typeof a.expandIcon=="function"||MS(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||MS(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const U=(B=h??(a==null?void 0:a.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return $r(U,{className:oe(`${D}-submenu-expand-icon`,l.isValidElement(U)?(z=U.props)===null||z===void 0?void 0:z.className:void 0)})},[h,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,D]),F=l.useMemo(()=>({prefixCls:D,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:m,mode:_,disableMenuItemTitleTooltip:b}),[D,M,s,b,m]);return k(l.createElement(Bb.Provider,{value:null},l.createElement(Fb.Provider,{value:F},l.createElement(pf,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(cN,null),overflowedIndicatorPopupClassName:oe(D,`${D}-${m}`,E),mode:_,selectable:$,onClick:R},T,{inlineCollapsed:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),g),className:L,prefixCls:D,direction:s,defaultMotions:P,expandIcon:j,ref:t,rootClassName:oe(v,N,a.rootClassName,A,O),_internalComponents:Rhe})))))}),Ls=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(xy);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),l.createElement(_he,Object.assign({ref:n},e,r))});Ls.Item=ZW;Ls.SubMenu=JW;Ls.Divider=XW;Ls.ItemGroup=sN;const $he=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},Ohe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:g,fontSizeIcon:m,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:m},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight, - &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ey},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, + &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ny},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight, - &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ny},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ay},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, - &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ty},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, + &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ry},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ry}}},eN(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${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}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},an(e)),{[n]:Object.assign(Object.assign({padding:p,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ni(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{display:"flex",alignItems:"center",flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${G(u)} ${G(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ni(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${G(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Qi(e,"slide-up"),Qi(e,"slide-down"),Md(e,"move-up"),Md(e,"move-down"),lf(e,"zoom-big")]]},Nhe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},gy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),py(e)),khe=on("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=Ft(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ohe(o),$he(o)]},Nhe,{resetStyle:!1}),Sm=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:p,overlayStyle:g,open:m,onOpenChange:h,visible:b,onVisibleChange:x,mouseEnterDelay:S=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:w,transitionName:E}=e,{getPopupContainer:I,getPrefixCls:T,direction:R,dropdown:_}=l.useContext(lt);zl();const $=l.useMemo(()=>{const Q=T();return E!==void 0?E:C.includes("top")?`${Q}-slide-down`:`${Q}-slide-up`},[T,C,E]),M=l.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:R==="rtl"?"bottomRight":"bottomLeft",[C,R]),P=T("dropdown",a),D=ar(P),[O,k,N]=khe(P,D),[,A]=ta(),L=l.Children.only(o),j=$r(L,{className:ae(`${P}-trigger`,{[`${P}-rtl`]:R==="rtl"},L.props.className),disabled:(t=L.props.disabled)!==null&&t!==void 0?t:s}),F=s?[]:i,B=!!(F!=null&&F.includes("contextMenu")),[z,U]=fn(!1,{value:m??b}),H=Gt(Q=>{h==null||h(Q,{source:"trigger"}),x==null||x(Q),U(Q)}),Y=ae(d,p,k,N,D,_==null?void 0:_.className,{[`${P}-rtl`]:R==="rtl"}),K=IW({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:y,offset:A.marginXXS,arrowWidth:r?A.sizePopupArrow:0,borderRadius:A.borderRadius}),J=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),U(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ne=()=>{let Q;return n!=null&&n.items?Q=l.createElement(Ps,Object.assign({},n)):typeof w=="function"?Q=w():Q=w,c&&(Q=c(Q)),Q=l.Children.only(typeof Q=="string"?l.createElement("span",null,Q):Q),l.createElement(QW,{prefixCls:`${P}-menu`,rootClassName:ae(N,D),expandIcon:l.createElement("span",{className:`${P}-menu-submenu-arrow`},l.createElement(io,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:ee=>{}},Q)},[W,q]=Ai("Dropdown",g==null?void 0:g.zIndex);let Z=l.createElement(MW,Object.assign({alignPoint:B},Mn(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:v,visible:z,builtinPlacements:K,arrow:!!r,overlayClassName:Y,prefixCls:P,getPopupContainer:u||I,transitionName:$,trigger:F,overlay:ne,placement:M,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),g),{zIndex:W})}),j);return W&&(Z=l.createElement(sm.Provider,{value:q},Z)),O(Z)};function Ahe(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Mhe=hm(Sm,"dropdown",e=>e,Ahe),Dhe=e=>l.createElement(Mhe,Object.assign({},e),l.createElement("span",null));Sm._InternalPanelDoNotUseOrYouWillBeFired=Dhe;const yy=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(lt),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};yy.__ANT_BREADCRUMB_SEPARATOR=!0;var Phe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function eG(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=Phe(t,["className","onClick"]),s=Object.assign(Object.assign({},ur(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?l.createElement("a",Object.assign({},s,{className:ae(`${e}-link`,a),href:r}),n):l.createElement("span",Object.assign({},s,{className:ae(`${e}-link`,a)}),n)}function jhe(e,t){return(r,a,o,i,s)=>{if(t)return t(r,a,o,i);const c=Lhe(r,a);return eG(e,r,c,s)}}var a_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:s}=e,u=(d=>{if(a||o){const p=Object.assign({},i);if(a){const g=a||{},{items:m}=g,h=a_(g,["items"]);p.menu=Object.assign(Object.assign({},h),{items:m==null?void 0:m.map((b,x)=>{var{key:S,title:v,label:y,path:C}=b,w=a_(b,["key","title","label","path"]);let E=y??v;return C&&(E=l.createElement("a",{href:`${s}${C}`},E)),Object.assign(Object.assign({},w),{key:S??x,label:E})})})}else o&&(p.overlay=o);return l.createElement(Sm,Object.assign({placement:"bottom"},p),l.createElement("span",{className:`${t}-overlay-link`},d,l.createElement(dy,null)))}return d})(r);return u!=null?l.createElement(l.Fragment,null,l.createElement("li",null,u),n&&l.createElement(yy,null,n)):null},nG=e=>{const{prefixCls:t,children:n,href:r}=e,a=a_(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(lt),i=o("breadcrumb",t);return l.createElement(tG,Object.assign({},a,{prefixCls:i}),eG(i,a,n,r))};nG.__ANT_BREADCRUMB_ITEM=!0;const Fhe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},an(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${G(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},ni(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:oy}}},eN(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${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}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},an(e)),{[n]:Object.assign(Object.assign({padding:p,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ri(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{display:"flex",alignItems:"center",flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${G(u)} ${G(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ri(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${G(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ji(e,"slide-up"),Ji(e,"slide-down"),Md(e,"move-up"),Md(e,"move-down"),lf(e,"zoom-big")]]},Nhe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},hy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),my(e)),khe=on("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=Bt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ohe(o),$he(o)]},Nhe,{resetStyle:!1}),wm=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:p,overlayStyle:g,open:m,onOpenChange:h,visible:b,onVisibleChange:x,mouseEnterDelay:S=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:y=!0,placement:w="",overlay:C,transitionName:E}=e,{getPopupContainer:I,getPrefixCls:T,direction:R,dropdown:_}=l.useContext(ut);zl();const $=l.useMemo(()=>{const Q=T();return E!==void 0?E:w.includes("top")?`${Q}-slide-down`:`${Q}-slide-up`},[T,w,E]),M=l.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:R==="rtl"?"bottomRight":"bottomLeft",[w,R]),P=T("dropdown",a),D=ar(P),[O,k,N]=khe(P,D),[,A]=ta(),L=l.Children.only(o),j=$r(L,{className:oe(`${P}-trigger`,{[`${P}-rtl`]:R==="rtl"},L.props.className),disabled:(t=L.props.disabled)!==null&&t!==void 0?t:s}),F=s?[]:i,B=!!(F!=null&&F.includes("contextMenu")),[z,U]=fn(!1,{value:m??b}),H=qt(Q=>{h==null||h(Q,{source:"trigger"}),x==null||x(Q),U(Q)}),K=oe(d,p,k,N,D,_==null?void 0:_.className,{[`${P}-rtl`]:R==="rtl"}),Y=IW({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:y,offset:A.marginXXS,arrowWidth:r?A.sizePopupArrow:0,borderRadius:A.borderRadius}),ee=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),U(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ae=()=>{let Q;return n!=null&&n.items?Q=l.createElement(Ls,Object.assign({},n)):typeof C=="function"?Q=C():Q=C,c&&(Q=c(Q)),Q=l.Children.only(typeof Q=="string"?l.createElement("span",null,Q):Q),l.createElement(QW,{prefixCls:`${P}-menu`,rootClassName:oe(N,D),expandIcon:l.createElement("span",{className:`${P}-menu-submenu-arrow`},l.createElement(io,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ee,validator:J=>{}},Q)},[W,q]=Mi("Dropdown",g==null?void 0:g.zIndex);let Z=l.createElement(MW,Object.assign({alignPoint:B},Mn(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:v,visible:z,builtinPlacements:Y,arrow:!!r,overlayClassName:K,prefixCls:P,getPopupContainer:u||I,transitionName:$,trigger:F,overlay:ae,placement:M,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),g),{zIndex:W})}),j);return W&&(Z=l.createElement(lm.Provider,{value:q},Z)),O(Z)};function Ahe(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Mhe=vm(wm,"dropdown",e=>e,Ahe),Dhe=e=>l.createElement(Mhe,Object.assign({},e),l.createElement("span",null));wm._InternalPanelDoNotUseOrYouWillBeFired=Dhe;const Sy=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(ut),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};Sy.__ANT_BREADCRUMB_SEPARATOR=!0;var Phe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function eG(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=Phe(t,["className","onClick"]),s=Object.assign(Object.assign({},ur(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?l.createElement("a",Object.assign({},s,{className:oe(`${e}-link`,a),href:r}),n):l.createElement("span",Object.assign({},s,{className:oe(`${e}-link`,a)}),n)}function jhe(e,t){return(r,a,o,i,s)=>{if(t)return t(r,a,o,i);const c=Lhe(r,a);return eG(e,r,c,s)}}var o_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:s}=e,u=(d=>{if(a||o){const p=Object.assign({},i);if(a){const g=a||{},{items:m}=g,h=o_(g,["items"]);p.menu=Object.assign(Object.assign({},h),{items:m==null?void 0:m.map((b,x)=>{var{key:S,title:v,label:y,path:w}=b,C=o_(b,["key","title","label","path"]);let E=y??v;return w&&(E=l.createElement("a",{href:`${s}${w}`},E)),Object.assign(Object.assign({},C),{key:S??x,label:E})})})}else o&&(p.overlay=o);return l.createElement(wm,Object.assign({placement:"bottom"},p),l.createElement("span",{className:`${t}-overlay-link`},d,l.createElement(py,null)))}return d})(r);return u!=null?l.createElement(l.Fragment,null,l.createElement("li",null,u),n&&l.createElement(Sy,null,n)):null},nG=e=>{const{prefixCls:t,children:n,href:r}=e,a=o_(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(ut),i=o("breadcrumb",t);return l.createElement(tG,Object.assign({},a,{prefixCls:i}),eG(i,a,n,r))};nG.__ANT_BREADCRUMB_ITEM=!0;const Fhe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},an(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${G(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},ri(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${G(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Bhe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),zhe=on("Breadcrumb",e=>{const t=Ft(e,{});return Fhe(t)},Bhe);var ID=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,s=ID(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:i})})}),a}function Uhe(e,t){return l.useMemo(()=>e||(t?t.map(Hhe):null),[e,t])}var Vhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Cm=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:s,children:c,itemRender:u,params:d={}}=e,p=Vhe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:g,direction:m,breadcrumb:h}=l.useContext(lt);let b;const x=g("breadcrumb",t),[S,v,y]=zhe(x),C=Uhe(s,i),w=jhe(x,u);if(C&&C.length>0){const T=[],R=s||i;b=C.map((_,$)=>{const{path:M,key:P,type:D,menu:O,overlay:k,onClick:N,className:A,separator:L,dropdownProps:j}=_,F=Whe(d,M);F!==void 0&&T.push(F);const B=P??$;if(D==="separator")return l.createElement(yy,{key:B},L);const z={},U=$===C.length-1;O?z.menu=O:k&&(z.overlay=k);let{href:H}=_;return T.length&&F!==void 0&&(H=`#/${T.join("/")}`),l.createElement(tG,Object.assign({key:B},z,ur(_,{data:!0,aria:!0}),{className:A,dropdownProps:j,href:H,separator:U?"":n,onClick:N,prefixCls:x}),w(_,d,R,T,H))})}else if(c){const T=_r(c).length;b=_r(c).map((R,_)=>{if(!R)return R;const $=_===T-1;return $r(R,{separator:$?"":n,key:_})})}const E=ae(x,h==null?void 0:h.className,{[`${x}-rtl`]:m==="rtl"},a,o,v,y),I=Object.assign(Object.assign({},h==null?void 0:h.style),r);return S(l.createElement("nav",Object.assign({className:E,style:I},p),l.createElement("ol",null,b)))};Cm.Item=nG;Cm.Separator=yy;var rG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",c="hour",u="day",d="week",p="month",g="quarter",m="year",h="date",b="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var O=["th","st","nd","rd"],k=D%100;return"["+D+(O[(k-20)%10]||O[k]||O[0])+"]"}},y=function(D,O,k){var N=String(D);return!N||N.length>=O?D:""+Array(O+1-N.length).join(k)+D},C={s:y,z:function(D){var O=-D.utcOffset(),k=Math.abs(O),N=Math.floor(k/60),A=k%60;return(O<=0?"+":"-")+y(N,2,"0")+":"+y(A,2,"0")},m:function D(O,k){if(O.date()1)return D(j[0])}else{var F=O.name;E[F]=O,A=F}return!N&&A&&(w=A),A||!N&&w},_=function(D,O){if(T(D))return D.clone();var k=typeof O=="object"?O:{};return k.date=D,k.args=arguments,new M(k)},$=C;$.l=R,$.i=T,$.w=function(D,O){return _(D,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var M=function(){function D(k){this.$L=R(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[I]=!0}var O=D.prototype;return O.parse=function(k){this.$d=function(N){var A=N.date,L=N.utc;if(A===null)return new Date(NaN);if($.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var j=A.match(x);if(j){var F=j[2]-1||0,B=(j[7]||"0").substring(0,3);return L?new Date(Date.UTC(j[1],F,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)):new Date(j[1],F,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)}}return new Date(A)}(k),this.init()},O.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},O.$utils=function(){return $},O.isValid=function(){return this.$d.toString()!==b},O.isSame=function(k,N){var A=_(k);return this.startOf(N)<=A&&A<=this.endOf(N)},O.isAfter=function(k,N){return _(k)25){var d=i(this).startOf(r).add(1,r).date(u),p=i(this).endOf(n);if(d.isBefore(p))return 1}var g=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),m=this.diff(g,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(iG);var Zhe=iG.exports;const Qhe=Wa(Zhe);var sG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(sG);var Jhe=sG.exports;const eve=Wa(Jhe);var lG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),p==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return p}});return o.bind(this)(d)}}})})(lG);var tve=lG.exports;const nve=Wa(tve);var cG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(x){return(x=+x)+(x>68?1900:2e3)},d=function(x){return function(S){this[x]=+S}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var v=S.match(/([+-]|\d\d)/g),y=60*v[1]+(+v[2]||0);return y===0?0:v[0]==="+"?-y:y}(x)}],g=function(x){var S=c[x];return S&&(S.indexOf?S:S.s.concat(S.f))},m=function(x,S){var v,y=c.meridiem;if(y){for(var C=1;C<=24;C+=1)if(x.indexOf(y(C,0,S))>-1){v=C>12;break}}else v=x===(S?"pm":"PM");return v},h={A:[s,function(x){this.afternoon=m(x,!1)}],a:[s,function(x){this.afternoon=m(x,!0)}],Q:[a,function(x){this.month=3*(x-1)+1}],S:[a,function(x){this.milliseconds=100*+x}],SS:[o,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[s,function(x){var S=c.ordinal,v=x.match(/\d+/);if(this.day=v[0],S)for(var y=1;y<=31;y+=1)S(y).replace(/\[|\]/g,"")===x&&(this.day=y)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[s,function(x){var S=g("months"),v=(g("monthsShort")||S.map(function(y){return y.slice(0,3)})).indexOf(x)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(x){var S=g("months").indexOf(x)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(x){this.year=u(x)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function b(x){var S,v;S=x,v=c&&c.formats;for(var y=(x=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,$,M){var P=M&&M.toUpperCase();return $||v[M]||n[M]||v[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,O,k){return O||k.slice(1)})})).match(r),C=y.length,w=0;w-1)return new Date((A==="X"?1e3:1)*N);var F=b(A)(N),B=F.year,z=F.month,U=F.day,H=F.hours,Y=F.minutes,K=F.seconds,J=F.milliseconds,ne=F.zone,W=F.week,q=new Date,Z=U||(B||z?1:q.getDate()),Q=B||q.getFullYear(),ee=0;B&&!z||(ee=z>0?z-1:q.getMonth());var oe,se=H||0,fe=Y||0,te=K||0,ie=J||0;return ne?new Date(Date.UTC(Q,ee,Z,se,fe,te,ie+60*ne.offset*1e3)):L?new Date(Date.UTC(Q,ee,Z,se,fe,te,ie)):(oe=new Date(Q,ee,Z,se,fe,te,ie),W&&(oe=j(oe).week(W).toDate()),oe)}catch{return new Date("")}}(E,R,I,v),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),M&&E!=this.format(R)&&(this.$d=new Date("")),c={}}else if(R instanceof Array)for(var D=R.length,O=1;O<=D;O+=1){T[1]=R[O-1];var k=v.apply(this,T);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}O===D&&(this.$d=new Date(""))}else C.call(this,w)}}})})(cG);var rve=cG.exports;const ave=Wa(rve);Za.extend(ave);Za.extend(nve);Za.extend(Khe);Za.extend(Xhe);Za.extend(Qhe);Za.extend(eve);Za.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var ove={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Zl=function(t){var n=ove[t];return n||t.split("_")[0]},TD=function(){_H(!1,"Not match any format. Please help to fire a issue about this.")},ive={getNow:function(){var t=Za();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Za(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Za().locale(Zl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Zl(t)).weekday(0)},getWeek:function(t,n){return n.locale(Zl(t)).week()},getShortWeekDays:function(t){return Za().locale(Zl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Za().locale(Zl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Zl(t)).format(r)},parse:function(t,n,r){for(var a=Zl(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=le(r,2),o=a[0],i=a[1],s=function(d,p){i(function(g){return Lp(g,p,d)})},c=l.useMemo(function(){return o.map(function(u,d){if(u)return!0;var p=e[d];return p?!!(!n[d]&&!p||p&&t(p,{activeIndex:d})):!1})},[e,o,t,n]);return[c,s]}function hG(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function lve(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,p=e.fieldWeekFormat,g=e.fieldQuarterFormat,m=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,x=e.dayFormat,S=e.cellDateFormat,v=hG(t,n,r,a,o);return X(X({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(v),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||v,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:p||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:S||x||"D"})}function vG(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return de.useMemo(function(){return lve(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Xf(e,t,n){return n??t.some(function(r){return e.includes(r)})}var cve=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function uve(e){var t=Sy(e,cve),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=mt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function dve(e){return e&&typeof e=="string"}function bG(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function yG(e,t,n,r,a){var o=t,i=n,s=r;if(!e&&!o&&!i&&!s&&!a)o=!0,i=!0,s=!0;else if(e){var c,u,d,p=[o,i,s].some(function(h){return h===!1}),g=[o,i,s].some(function(h){return h===!0}),m=p?!0:!g;o=(c=o)!==null&&c!==void 0?c:m,i=(u=i)!==null&&u!==void 0?u:m,s=(d=s)!==null&&d!==void 0?d:m}return[o,i,s,a]}function xG(e){var t=e.showTime,n=uve(e),r=le(n,2),a=r[0],o=r[1],i=t&&mt(t)==="object"?t:{},s=X(X({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,p=s.showSecond,g=bG(u,d,p,c),m=yG(g,u,d,p,c),h=le(m,3);return u=h[0],d=h[1],p=h[2],[s,X(X({},s),{},{showHour:u,showMinute:d,showSecond:p,showMillisecond:c}),s.format,o]}function SG(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,s=fG(e,a,null),c=s,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function Zr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Bb(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,s){n?r=e[i](r,e[a[s]](n)):r=e[i](r,0)}),r}function mve(e,t,n,r,a){var o=Gt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!ka(e,t,r,i,s.type)||a&&e.isAfter(i,a)&&!ka(e,t,a,i,s.type))});return o}function hve(e,t,n){return l.useMemo(function(){var r=fG(e,t,n),a=eu(r),o=a[0],i=mt(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function vve(e,t,n){return typeof e[0]=="function"||n?!0:t}function bve(e,t,n,r){var a=Gt(function(o,i){var s=X({type:t},i);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:s.from}))||{},p=d.disabledHours,g=d.disabledMinutes,m=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,x=r.disabledMinutes,S=r.disabledSeconds,v=p||b,y=g||x,C=m||S,w=e.getHour(o),E=e.getMinute(o),I=e.getSecond(o),T=e.getMillisecond(o);if(v&&v().includes(w)||y&&y(w).includes(E)||C&&C(w,E).includes(I)||h&&h(w,E,I).includes(T))return!0}return!1});return a}function kh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&eu(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function EG(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,p=d===void 0?{}:d,g=e.order,m=g===void 0?!0:g,h=e.components,b=h===void 0?{}:h,x=e.inputRender,S=e.allowClear,v=e.clearIcon,y=e.needConfirm,C=e.multiple,w=e.format,E=e.inputReadOnly,I=e.disabledDate,T=e.minDate,R=e.maxDate,_=e.showTime,$=e.value,M=e.defaultValue,P=e.pickerValue,D=e.defaultPickerValue,O=kh($),k=kh(M),N=kh(P),A=kh(D),L=o==="date"&&_?"datetime":o,j=L==="time"||L==="datetime",F=j||C,B=y??j,z=xG(e),U=le(z,4),H=U[0],Y=U[1],K=U[2],J=U[3],ne=vG(r,Y),W=l.useMemo(function(){return SG(L,K,J,H,ne)},[L,K,J,H,ne]),q=l.useMemo(function(){return X(X({},e),{},{prefixCls:s,locale:ne,picker:o,styles:u,classNames:p,order:m,components:X({input:x},b),clearIcon:fve(s,S,v),showTime:W,value:O,defaultValue:k,pickerValue:N,defaultPickerValue:A},t==null?void 0:t())},[e]),Z=hve(L,ne,w),Q=le(Z,2),ee=Q[0],oe=Q[1],se=vve(ee,E,C),fe=mve(n,r,I,T,R),te=bve(n,o,fe,W),ie=l.useMemo(function(){return X(X({},q),{},{needConfirm:B,inputReadOnly:se,disabledDate:fe})},[q,B,se,fe]);return[ie,L,F,ee,oe,te]}function yve(e,t,n){var r=fn(t,{value:e}),a=le(r,2),o=a[0],i=a[1],s=de.useRef(e),c=de.useRef(),u=function(){Ht.cancel(c.current)},d=Gt(function(){i(s.current),n&&o!==s.current&&n(s.current)}),p=Gt(function(g,m){u(),s.current=g,g||m?d():c.current=Ht(d)});return de.useEffect(function(){return u},[]),[o,p]}function IG(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=yve(a,t||!1,r),i=le(o,2),s=i[0],c=i[1];function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!p.inherit||s)&&c(d,p.force)}return[s,u]}function TG(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function RG(e,t){return l.useMemo(function(){return e||(t?(_n(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=le(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function gN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,Cc(function(){if(e)r.current(e);else{var a=Ht(function(){r.current(e)},n);return function(){Ht.cancel(a)}}},[e])}function _G(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=le(r,2),o=a[0],i=a[1],s=l.useState(!1),c=le(s,2),u=c[0],d=c[1],p=l.useRef([]),g=l.useRef(null),m=function(S){d(S)},h=function(S){return S&&(g.current=S),g.current},b=function(S){var v=p.current,y=new Set(v.filter(function(w){return S[w]||t[w]})),C=v[v.length-1]===0?1:0;return y.size>=2||e[C]?null:C};return gN(u||n,function(){u||(p.current=[])}),l.useEffect(function(){u&&p.current.push(o)},[u,o]),[u,m,h,o,i,b,p.current]}function xve(e,t,n,r,a,o){var i=n[n.length-1],s=function(u,d){var p=le(e,2),g=p[0],m=p[1],h=X(X({},d),{},{from:pG(e,n)});return i===1&&t[0]&&g&&!ka(r,a,g,u,h.type)&&r.isAfter(g,u)||i===0&&t[1]&&m&&!ka(r,a,m,u,h.type)&&r.isAfter(u,m)?!0:o==null?void 0:o(u,h)};return s}function fp(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var MS=[];function $G(e,t,n,r,a,o,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:MS,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:MS,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:MS,p=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,h=i==="time",b=o||0,x=function(N){var A=e.getNow();return h&&(A=Bb(e,A)),c[N]||n[N]||A},S=le(u,2),v=S[0],y=S[1],C=fn(function(){return x(0)},{value:v}),w=le(C,2),E=w[0],I=w[1],T=fn(function(){return x(1)},{value:y}),R=le(T,2),_=R[0],$=R[1],M=l.useMemo(function(){var k=[E,_][b];return h?k:Bb(e,k,d[b])},[h,E,_,b,e,d]),P=function(N){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",L=[I,$][b];L(N);var j=[E,_];j[b]=N,p&&(!ka(e,t,E,j[0],i)||!ka(e,t,_,j[1],i))&&p(j,{source:A,range:b===1?"end":"start",mode:r})},D=function(N,A){if(s){var L={date:"month",week:"month",month:"year",quarter:"year"},j=L[i];if(j&&!ka(e,t,N,A,j))return fp(e,i,A,-1);if(i==="year"&&N){var F=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(A)/10);if(F!==B)return fp(e,i,A,-1)}}return A},O=l.useRef(null);return Yt(function(){if(a&&!c[b]){var k=h?null:e.getNow();if(O.current!==null&&O.current!==b?k=[E,_][b^1]:n[b]?k=b===0?n[0]:D(n[0],n[1]):n[b^1]&&(k=n[b^1]),k){g&&e.isAfter(g,k)&&(k=g);var N=s?fp(e,i,k,1):k;m&&e.isAfter(N,m)&&(k=s?fp(e,i,m,-1):m),P(k,"reset")}}},[a,b,n[b]]),l.useEffect(function(){a?O.current=b:O.current=null},[a,b]),Yt(function(){a&&c&&c[b]&&P(c[b],"reset")},[a,b]),[M,P]}function OG(e,t){var n=l.useRef(e),r=l.useState({}),a=le(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,o({})};return[i,s,i(!0)]}var Sve=[];function NG(e,t,n){var r=function(i){return i.map(function(s){return Zr(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=a.includes(c);(!u||!r)&&i.push({label:uN(c,o),value:c,disabled:u})}return i}function mN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,p=r.millisecondStep,g=p===void 0?100:p,m=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,x=r.disabledMinutes,S=r.disabledSeconds,v=l.useMemo(function(){return n||e.getNow()},[n,e]),y=l.useCallback(function(A){var L=(h==null?void 0:h(A))||{};return[L.disabledHours||b||Ah,L.disabledMinutes||x||Ah,L.disabledSeconds||S||Ah,L.disabledMilliseconds||Ah]},[h,b,x,S]),C=l.useMemo(function(){return y(v)},[v,y]),w=le(C,4),E=w[0],I=w[1],T=w[2],R=w[3],_=l.useCallback(function(A,L,j,F){var B=Mh(0,23,i,m,A()),z=a?B.map(function(K){return X(X({},K),{},{label:uN(K.value%12||12,2)})}):B,U=function(J){return Mh(0,59,c,m,L(J))},H=function(J,ne){return Mh(0,59,d,m,j(J,ne))},Y=function(J,ne,W){return Mh(0,999,g,m,F(J,ne,W),3)};return[z,U,H,Y]},[m,i,a,g,c,d]),$=l.useMemo(function(){return _(E,I,T,R)},[_,E,I,T,R]),M=le($,4),P=M[0],D=M[1],O=M[2],k=M[3],N=function(L,j){var F=function(){return P},B=D,z=O,U=k;if(j){var H=y(j),Y=le(H,4),K=Y[0],J=Y[1],ne=Y[2],W=Y[3],q=_(K,J,ne,W),Z=le(q,4),Q=Z[0],ee=Z[1],oe=Z[2],se=Z[3];F=function(){return Q},B=ee,z=oe,U=se}var fe=wve(L,F,B,z,U,e);return fe};return[N,P,D,O,k]}function Eve(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,p=e.disabledDate,g=l.useContext(Mi),m=g.prefixCls,h=g.locale,b=g.button,x=b===void 0?"button":b,S=d.getNow(),v=mN(d,o,S),y=le(v,1),C=y[0],w=r==null?void 0:r(t),E=p(S,{type:t}),I=function(){if(!E){var D=C(S);s(D)}},T="".concat(m,"-now"),R="".concat(T,"-btn"),_=a&&l.createElement("li",{className:T},l.createElement("a",{className:ae(R,E&&"".concat(R,"-disabled")),"aria-disabled":E,onClick:I},n==="date"?h.today:h.now)),$=u&&l.createElement("li",{className:"".concat(m,"-ok")},l.createElement(x,{disabled:c,onClick:i},h.ok)),M=(_||$)&&l.createElement("ul",{className:"".concat(m,"-ranges")},_,$);return!w&&!M?null:l.createElement("div",{className:"".concat(m,"-footer")},w&&l.createElement("div",{className:"".concat(m,"-footer-extra")},w),M)}function PG(e,t,n){function r(a,o){var i=a.findIndex(function(c){return ka(e,t,c,o,n)});if(i===-1)return[].concat(Me(a),[o]);var s=Me(a);return s.splice(i,1),s}return r}var tu=l.createContext(null);function wy(){return l.useContext(tu)}function gf(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,p=e.onHover,g=e.values,m=e.pickerValue,h=e.onSelect,b=e.prevIcon,x=e.nextIcon,S=e.superPrevIcon,v=e.superNextIcon,y=r.getNow(),C={now:y,values:g,pickerValue:m,prefixCls:n,disabledDate:o,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:p,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:x,superPrevIcon:S,superNextIcon:v};return[C,y]}var Il=l.createContext({});function wm(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,p=e.cellSelection,g=p===void 0?!0:p,m=e.disabledDate,h=wy(),b=h.prefixCls,x=h.panelType,S=h.now,v=h.disabledDate,y=h.cellRender,C=h.onHover,w=h.hoverValue,E=h.hoverRangeValue,I=h.generateConfig,T=h.values,R=h.locale,_=h.onSelect,$=m||v,M="".concat(b,"-cell"),P=l.useContext(Il),D=P.onCellDblClick,O=function(z){return T.some(function(U){return U&&ka(I,R,z,U,x)})},k=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;re(Oe),x==null||x(Oe),Re&&ce(Oe)},ye=function(Oe,Re){ne(Oe),Re&&ge(Re),ce(Re,Oe)},Ee=function(Oe){if(te(Oe),ge(Oe),J!==C){var Re=["decade","year"],Ce=[].concat(Re,["month"]),xe={quarter:[].concat(Re,["quarter"]),week:[].concat(Me(Ce),["week"]),date:[].concat(Me(Ce),["date"])},$e=xe[C]||Ce,Fe=$e.indexOf(J),be=$e[Fe+1];be&&ye(be,Oe)}},Ne=l.useMemo(function(){var Se,Oe;if(Array.isArray(I)){var Re=le(I,2);Se=Re[0],Oe=Re[1]}else Se=I;return!Se&&!Oe?null:(Se=Se||Oe,Oe=Oe||Se,a.isAfter(Se,Oe)?[Oe,Se]:[Se,Oe])},[I,a]),_e=dN(T,R,_),Pe=M[W]||Dve[W]||Ey,Le=l.useContext(Il),Ve=l.useMemo(function(){return X(X({},Le),{},{hideHeader:P})},[Le,P]),je="".concat(D,"-panel"),De=Sy(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(Il.Provider,{value:Ve},l.createElement("div",{ref:O,tabIndex:c,className:ae(je,V({},"".concat(je,"-rtl"),o==="rtl"))},l.createElement(Pe,he({},De,{showTime:U,prefixCls:D,locale:B,generateConfig:a,onModeChange:ye,pickerValue:me,onPickerValueChange:function(Oe){ge(Oe,!0)},value:se[0],onSelect:Ee,values:se,cellRender:_e,hoverRangeValue:Ne,hoverValue:E}))))}var DS=l.memo(l.forwardRef(Pve));function Lve(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(Mi),d=u.prefixCls,p=u.generateConfig,g=l.useCallback(function(v,y){return fp(p,t,v,y)},[p,t]),m=l.useMemo(function(){return g(r,1)},[r,g]),h=function(y){a(g(y,-1))},b={onCellDblClick:function(){o&&i()}},x=t==="time",S=X(X({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:x});return s?S.hoverRangeValue=c:S.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(Il.Provider,{value:X(X({},b),{},{hideNext:!0})},l.createElement(DS,S)),l.createElement(Il.Provider,{value:X(X({},b),{},{hidePrev:!0})},l.createElement(DS,he({},S,{pickerValue:m,onPickerValueChange:h})))):l.createElement(Il.Provider,{value:X({},b)},l.createElement(DS,S))}function _D(e){return typeof e=="function"?e():e}function jve(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(o,i){var s=o.label,c=o.value;return l.createElement("li",{key:i,onClick:function(){r(_D(c))},onMouseEnter:function(){a(_D(c))},onMouseLeave:function(){a(null)}},s)}))):null}function jG(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,s=e.activeOffset,c=s===void 0?0:s,u=e.placement,d=e.presets,p=e.onPresetHover,g=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,b=e.onPanelMouseDown,x=e.direction,S=e.value,v=e.onSelect,y=e.isInvalid,C=e.defaultOpenValue,w=e.onOk,E=e.onSubmit,I=l.useContext(Mi),T=I.prefixCls,R="".concat(T,"-panel"),_=x==="rtl",$=l.useRef(null),M=l.useRef(null),P=l.useState(0),D=le(P,2),O=D[0],k=D[1],N=l.useState(0),A=le(N,2),L=A[0],j=A[1],F=function(fe){fe.offsetWidth&&k(fe.offsetWidth)};l.useEffect(function(){if(o){var se,fe=((se=$.current)===null||se===void 0?void 0:se.offsetWidth)||0,te=O-fe;c<=te?j(0):j(c+fe-O)}},[O,c,o]);function B(se){return se.filter(function(fe){return fe})}var z=l.useMemo(function(){return B(eu(S))},[S]),U=r==="time"&&!z.length,H=l.useMemo(function(){return U?B([C]):z},[U,z,C]),Y=U?C:z,K=l.useMemo(function(){return H.length?H.some(function(se){return y(se)}):!0},[H,y]),J=function(){U&&v(C),w(),E()},ne=l.createElement("div",{className:"".concat(T,"-panel-layout")},l.createElement(jve,{prefixCls:T,presets:d,onClick:g,onHover:p}),l.createElement("div",null,l.createElement(Lve,he({},e,{value:Y})),l.createElement(Eve,he({},e,{showNow:i?!1:a,invalid:K,onSubmit:J}))));t&&(ne=t(ne));var W="".concat(R,"-container"),q="marginLeft",Z="marginRight",Q=l.createElement("div",{onMouseDown:b,tabIndex:-1,className:ae(W,"".concat(T,"-").concat(n,"-panel-container")),style:V(V({},_?Z:q,L),_?q:Z,"auto"),onFocus:m,onBlur:h},ne);if(o){var ee=xy(u,_),oe=uG(ee,_);Q=l.createElement("div",{onMouseDown:b,ref:M,className:ae("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:$,className:"".concat(T,"-range-arrow"),style:V({},oe,c)}),l.createElement(Sa,{onResize:F},Q))}return Q}function FG(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,p=e.onFocus,g=e.onBlur,m=e.onInputChange,h=e.onInvalid,b=e.open,x=e.onOpenChange,S=e.onKeyDown,v=e.onChange,y=e.activeHelp,C=e.name,w=e.autoComplete,E=e.id,I=e.value,T=e.invalid,R=e.placeholder,_=e.disabled,$=e.activeIndex,M=e.allHelp,P=e.picker,D=function(B,z){var U=a.locale.parse(o.locale,B,[z]);return U&&a.isValidate(U)?U:null},O=n[0],k=l.useCallback(function(F){return Zr(F,{locale:o,format:O,generateConfig:a})},[o,a,O]),N=l.useMemo(function(){return I.map(k)},[I,k]),A=l.useMemo(function(){var F=P==="time"?8:10,B=typeof O=="function"?O(a.getNow()).length:O.length;return Math.max(F,B)+2},[O,P,a]),L=function(B){for(var z=0;z=s&&n<=c)return o;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u0?ke:Ae));var qe=rt+We,Ye=Ae-ke+1;return String(ke+(Ye+qe-ke)%Ye)};switch(Oe){case"Backspace":case"Delete":Re="",Ce=$e;break;case"ArrowLeft":Re="",Fe(-1);break;case"ArrowRight":Re="",Fe(1);break;case"ArrowUp":Re="",Ce=be(1);break;case"ArrowDown":Re="",Ce=be(-1);break;default:isNaN(Number(Oe))||(Re=F+Oe,Ce=Re);break}if(Re!==null&&(B(Re),Re.length>=xe&&(Fe(1),B(""))),Ce!==null){var ue=q.slice(0,fe)+uN(Ce,xe)+q.slice(te);pe(ue.slice(0,i.length))}W({})},Ve=l.useRef();Yt(function(){if(!(!P||!i||ce.current)){if(!ee.match(q)){pe(i);return}return Q.current.setSelectionRange(fe,te),Ve.current=Ht(function(){Q.current.setSelectionRange(fe,te)}),function(){Ht.cancel(Ve.current)}}},[ee,i,P,q,H,fe,te,ne,pe]);var je=i?{onFocus:Ee,onBlur:_e,onKeyDown:Le,onMouseDown:ge,onMouseUp:ye,onPaste:re}:{};return l.createElement("div",{ref:Z,className:ae(_,V(V({},"".concat(_,"-active"),n&&a),"".concat(_,"-placeholder"),u))},l.createElement(R,he({ref:Q,"aria-invalid":b,autoComplete:"off"},S,{onKeyDown:Pe,onBlur:Ne},je,{value:q,onChange:me})),l.createElement(Iy,{type:"suffix",icon:o}),x)}),Wve=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],Gve=["index"];function qve(e,t){var n=e.id,r=e.clearIcon,a=e.suffixIcon,o=e.separator,i=o===void 0?"~":o,s=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,p=e.style,g=e.onClick,m=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,x=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var v=e.onActiveOffset,y=e.placement,C=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,E=wt(e,Wve),I=S==="rtl",T=l.useContext(Mi),R=T.prefixCls,_=l.useMemo(function(){if(typeof n=="string")return[n];var q=n||{};return[q.start,q.end]},[n]),$=l.useRef(),M=l.useRef(),P=l.useRef(),D=function(Z){var Q;return(Q=[M,P][Z])===null||Q===void 0?void 0:Q.current};l.useImperativeHandle(t,function(){return{nativeElement:$.current,focus:function(Z){if(mt(Z)==="object"){var Q,ee=Z||{},oe=ee.index,se=oe===void 0?0:oe,fe=wt(ee,Gve);(Q=D(se))===null||Q===void 0||Q.focus(fe)}else{var te;(te=D(Z??0))===null||te===void 0||te.focus()}},blur:function(){var Z,Q;(Z=D(0))===null||Z===void 0||Z.blur(),(Q=D(1))===null||Q===void 0||Q.blur()}}});var O=BG(E),k=l.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=FG(X(X({},e),{},{id:_,placeholder:k})),A=le(N,1),L=A[0],j=xy(y,I),F=uG(j,I),B=j==null?void 0:j.toLowerCase().endsWith("right"),z=l.useState({position:"absolute",width:0}),U=le(z,2),H=U[0],Y=U[1],K=Gt(function(){var q=D(s);if(q){var Z=q.nativeElement,Q=Z.offsetWidth,ee=Z.offsetLeft,oe=Z.offsetParent,se=(oe==null?void 0:oe.offsetWidth)||0,fe=B?se-Q-ee:ee;Y(function(te){return X(X({},te),{},V({width:Q},F,fe))}),v(fe)}});l.useEffect(function(){K()},[s]);var J=r&&(h[0]&&!b[0]||h[1]&&!b[1]),ne=w&&!b[0],W=w&&!ne&&!b[1];return l.createElement(Sa,{onResize:K},l.createElement("div",he({},O,{className:ae(R,"".concat(R,"-range"),V(V(V(V({},"".concat(R,"-focused"),c),"".concat(R,"-disabled"),b.every(function(q){return q})),"".concat(R,"-invalid"),x.some(function(q){return q})),"".concat(R,"-rtl"),I),d),style:p,ref:$,onClick:g,onMouseDown:function(Z){var Q=Z.target;Q!==M.current.inputElement&&Q!==P.current.inputElement&&Z.preventDefault(),C==null||C(Z)}}),l.createElement(s_,he({ref:M},L(0),{autoFocus:ne,"date-range":"start"})),l.createElement("div",{className:"".concat(R,"-range-separator")},i),l.createElement(s_,he({ref:P},L(1),{autoFocus:W,"date-range":"end"})),l.createElement("div",{className:"".concat(R,"-active-bar"),style:H}),l.createElement(Iy,{type:"suffix",icon:a}),J&&l.createElement(i_,{icon:r,onClear:m})))}var Kve=l.forwardRef(qve);function OD(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Ph(e){return e===1?"end":"start"}function Yve(e,t){var n=EG(e,function(){var qt=e.disabled,pt=e.allowEmpty,St=OD(qt,!1),ln=OD(pt,!1);return{disabled:St,allowEmpty:ln}}),r=le(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a.prefixCls,p=a.styles,g=a.classNames,m=a.placement,h=a.defaultValue,b=a.value,x=a.needConfirm,S=a.onKeyDown,v=a.disabled,y=a.allowEmpty,C=a.disabledDate,w=a.minDate,E=a.maxDate,I=a.defaultOpen,T=a.open,R=a.onOpenChange,_=a.locale,$=a.generateConfig,M=a.picker,P=a.showNow,D=a.showToday,O=a.showTime,k=a.mode,N=a.onPanelChange,A=a.onCalendarChange,L=a.onOk,j=a.defaultPickerValue,F=a.pickerValue,B=a.onPickerValueChange,z=a.inputReadOnly,U=a.suffixIcon,H=a.onFocus,Y=a.onBlur,K=a.presets,J=a.ranges,ne=a.components,W=a.cellRender,q=a.dateRender,Z=a.monthCellRender,Q=a.onClick,ee=TG(t),oe=IG(T,I,v,R),se=le(oe,2),fe=se[0],te=se[1],ie=function(pt,St){(v.some(function(ln){return!ln})||!pt)&&te(pt,St)},pe=AG($,_,s,!0,!1,h,b,A,L),me=le(pe,5),re=me[0],ce=me[1],ge=me[2],ye=me[3],Ee=me[4],Ne=ge(),_e=_G(v,y,fe),Pe=le(_e,7),Le=Pe[0],Ve=Pe[1],je=Pe[2],De=Pe[3],Se=Pe[4],Oe=Pe[5],Re=Pe[6],Ce=function(pt,St){Ve(!0),H==null||H(pt,{range:Ph(St??De)})},xe=function(pt,St){Ve(!1),Y==null||Y(pt,{range:Ph(St??De)})},$e=l.useMemo(function(){if(!O)return null;var qt=O.disabledTime,pt=qt?function(St){var ln=Ph(De),Wn=pG(Ne,Re,De);return qt(St,ln,{from:Wn})}:void 0;return X(X({},O),{},{disabledTime:pt})},[O,De,Ne,Re]),Fe=fn([M,M],{value:k}),be=le(Fe,2),ue=be[0],Ie=be[1],We=ue[De]||M,He=We==="date"&&$e?"datetime":We,Be=He===M&&He!=="time",ke=DG(M,We,P,D,!0),Ae=MG(a,re,ce,ge,ye,v,s,Le,fe,u),Ue=le(Ae,2),ct=Ue[0],rt=Ue[1],qe=xve(Ne,v,Re,$,_,C),Ye=mG(Ne,u,y),at=le(Ye,2),ut=at[0],Ct=at[1],kt=$G($,_,Ne,ue,fe,De,o,Be,j,F,$e==null?void 0:$e.defaultOpenValue,B,w,E),xt=le(kt,2),et=xt[0],tt=xt[1],bt=Gt(function(qt,pt,St){var ln=Lp(ue,De,pt);if((ln[0]!==ue[0]||ln[1]!==ue[1])&&Ie(ln),N&&St!==!1){var Wn=Me(Ne);qt&&(Wn[De]=qt),N(Wn,ln)}}),Ot=function(pt,St){return Lp(Ne,St,pt)},ht=function(pt,St){var ln=Ne;pt&&(ln=Ot(pt,De));var Wn=Oe(ln);ye(ln),ct(De,Wn===null),Wn===null?ie(!1,{force:!0}):St||ee.current.focus({index:Wn})},it=function(pt){var St,ln=pt.target.getRootNode();if(!ee.current.nativeElement.contains((St=ln.activeElement)!==null&&St!==void 0?St:document.activeElement)){var Wn=v.findIndex(function(tr){return!tr});Wn>=0&&ee.current.focus({index:Wn})}ie(!0),Q==null||Q(pt)},Et=function(){rt(null),ie(!1,{force:!0})},Ze=l.useState(null),st=le(Ze,2),ft=st[0],Je=st[1],Xe=l.useState(null),_t=le(Xe,2),Mt=_t[0],Ut=_t[1],mn=l.useMemo(function(){return Mt||Ne},[Ne,Mt]);l.useEffect(function(){fe||Ut(null)},[fe]);var pn=l.useState(0),yt=le(pn,2),At=yt[0],jt=yt[1],tn=RG(K,J),An=function(pt){Ut(pt),Je("preset")},Or=function(pt){var St=rt(pt);St&&ie(!1,{force:!0})},En=function(pt){ht(pt)},br=function(pt){Ut(pt?Ot(pt,De):null),Je("cell")},na=function(pt){ie(!0),Ce(pt)},jr=function(){je("panel")},Xn=function(pt){var St=Lp(Ne,De,pt);ye(St),!x&&!i&&o===He&&ht(pt)},Zt=function(){ie(!1)},Rt=dN(W,q,Z,Ph(De)),Bt=Ne[De]||null,zt=Gt(function(qt){return u(qt,{activeIndex:De})}),nn=l.useMemo(function(){var qt=ur(a,!1),pt=Mn(a,[].concat(Me(Object.keys(qt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return pt},[a]),It=l.createElement(jG,he({},nn,{showNow:ke,showTime:$e,range:!0,multiplePanel:Be,activeOffset:At,placement:m,disabledDate:qe,onFocus:na,onBlur:xe,onPanelMouseDown:jr,picker:M,mode:We,internalMode:He,onPanelChange:bt,format:c,value:Bt,isInvalid:zt,onChange:null,onSelect:Xn,pickerValue:et,defaultOpenValue:eu(O==null?void 0:O.defaultOpenValue)[De],onPickerValueChange:tt,hoverValue:mn,onHover:br,needConfirm:x,onSubmit:ht,onOk:Ee,presets:tn,onPresetHover:An,onPresetSubmit:Or,onNow:En,cellRender:Rt})),Dt=function(pt,St){var ln=Ot(pt,St);ye(ln)},vn=function(){je("input")},zn=function(pt,St){je("input"),ie(!0,{inherit:!0}),De!==St&&fe&&!x&&i&&ht(null,!0),Se(St),Ce(pt,St)},Sr=function(pt,St){if(ie(!1),!x&&je()==="input"){var ln=Oe(Ne);ct(De,ln===null)}xe(pt,St)},Cr=function(pt,St){pt.key==="Tab"&&ht(null,!0),S==null||S(pt,St)},Ar=l.useMemo(function(){return{prefixCls:d,locale:_,generateConfig:$,button:ne.button,input:ne.input}},[d,_,$,ne.button,ne.input]);return Yt(function(){fe&&De!==void 0&&bt(null,M,!1)},[fe,De,M]),Yt(function(){var qt=je();!fe&&qt==="input"&&(ie(!1),ht(null,!0)),!fe&&i&&!x&&qt==="panel"&&(ie(!0),ht())},[fe]),l.createElement(Mi.Provider,{value:Ar},l.createElement(dG,he({},gG(a),{popupElement:It,popupStyle:p.popup,popupClassName:g.popup,visible:fe,onClose:Zt,range:!0}),l.createElement(Kve,he({},a,{ref:ee,suffixIcon:U,activeIndex:Le||fe?De:null,activeHelp:!!Mt,allHelp:!!Mt&&ft==="preset",focused:Le,onFocus:zn,onBlur:Sr,onKeyDown:Cr,onSubmit:ht,value:mn,maskFormat:c,onChange:Dt,onInputChange:vn,format:s,inputReadOnly:z,disabled:v,open:fe,onOpenChange:ie,onClick:it,onClear:Et,invalid:ut,onInvalid:Ct,onActiveOffset:jt}))))}var Xve=l.forwardRef(Yve);function Zve(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),p="".concat(t,"-selection"),g="".concat(p,"-overflow");function m(x,S){return l.createElement("span",{className:ae("".concat(p,"-item")),title:typeof x=="string"?x:null},l.createElement("span",{className:"".concat(p,"-item-content")},x),!s&&S&&l.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:S,className:"".concat(p,"-item-remove")},o))}function h(x){var S=i(x),v=function(C){C&&C.stopPropagation(),r(x)};return m(S,v)}function b(x){var S="+ ".concat(x.length," ...");return m(S)}return l.createElement("div",{className:d},l.createElement(Ei,{prefixCls:g,data:n,renderItem:h,renderRest:b,itemKey:function(S){return i(S)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Qve=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Jve(e,t){e.id;var n=e.open,r=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,p=e.onClick,g=e.onClear,m=e.internalPicker,h=e.value,b=e.onChange,x=e.onSubmit;e.onInputChange;var S=e.multiple,v=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,C=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,T=e.removeIcon,R=wt(e,Qve),_=w==="rtl",$=l.useContext(Mi),M=$.prefixCls,P=l.useRef(),D=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(H){var Y;(Y=D.current)===null||Y===void 0||Y.focus(H)},blur:function(){var H;(H=D.current)===null||H===void 0||H.blur()}}});var O=BG(R),k=function(H){b([H])},N=function(H){var Y=h.filter(function(K){return K&&!ka(s,i,K,H,m)});b(Y),n||x()},A=FG(X(X({},e),{},{onChange:k}),function(U){var H=U.valueTexts;return{value:H[0]||"",active:o}}),L=le(A,2),j=L[0],F=L[1],B=!!(r&&h.length&&!y),z=S?l.createElement(l.Fragment,null,l.createElement(Zve,{prefixCls:M,value:h,onRemove:N,formatDate:F,maxTagCount:v,disabled:y,removeIcon:T,placeholder:c}),l.createElement("input",{className:"".concat(M,"-multiple-input"),value:h.map(F).join(","),ref:D,readOnly:!0,autoFocus:I}),l.createElement(Iy,{type:"suffix",icon:a}),B&&l.createElement(i_,{icon:r,onClear:g})):l.createElement(s_,he({ref:D},j(),{autoFocus:I,suffixIcon:a,clearIcon:B&&l.createElement(i_,{icon:r,onClear:g}),showActiveCls:!1}));return l.createElement("div",he({},O,{className:ae(M,V(V(V(V(V({},"".concat(M,"-multiple"),S),"".concat(M,"-focused"),o),"".concat(M,"-disabled"),y),"".concat(M,"-invalid"),C),"".concat(M,"-rtl"),_),u),style:d,ref:P,onClick:p,onMouseDown:function(H){var Y,K=H.target;K!==((Y=D.current)===null||Y===void 0?void 0:Y.inputElement)&&H.preventDefault(),E==null||E(H)}}),z)}var ebe=l.forwardRef(Jve);function tbe(e,t){var n=EG(e),r=le(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a,p=d.prefixCls,g=d.styles,m=d.classNames,h=d.order,b=d.defaultValue,x=d.value,S=d.needConfirm,v=d.onChange,y=d.onKeyDown,C=d.disabled,w=d.disabledDate,E=d.minDate,I=d.maxDate,T=d.defaultOpen,R=d.open,_=d.onOpenChange,$=d.locale,M=d.generateConfig,P=d.picker,D=d.showNow,O=d.showToday,k=d.showTime,N=d.mode,A=d.onPanelChange,L=d.onCalendarChange,j=d.onOk,F=d.multiple,B=d.defaultPickerValue,z=d.pickerValue,U=d.onPickerValueChange,H=d.inputReadOnly,Y=d.suffixIcon,K=d.removeIcon,J=d.onFocus,ne=d.onBlur,W=d.presets,q=d.components,Z=d.cellRender,Q=d.dateRender,ee=d.monthCellRender,oe=d.onClick,se=TG(t);function fe(It){return It===null?null:F?It:It[0]}var te=PG(M,$,o),ie=IG(R,T,[C],_),pe=le(ie,2),me=pe[0],re=pe[1],ce=function(Dt,vn,zn){if(L){var Sr=X({},zn);delete Sr.range,L(fe(Dt),fe(vn),Sr)}},ge=function(Dt){j==null||j(fe(Dt))},ye=AG(M,$,s,!1,h,b,x,ce,ge),Ee=le(ye,5),Ne=Ee[0],_e=Ee[1],Pe=Ee[2],Le=Ee[3],Ve=Ee[4],je=Pe(),De=_G([C]),Se=le(De,4),Oe=Se[0],Re=Se[1],Ce=Se[2],xe=Se[3],$e=function(Dt){Re(!0),J==null||J(Dt,{})},Fe=function(Dt){Re(!1),ne==null||ne(Dt,{})},be=fn(P,{value:N}),ue=le(be,2),Ie=ue[0],We=ue[1],He=Ie==="date"&&k?"datetime":Ie,Be=DG(P,Ie,D,O),ke=v&&function(It,Dt){v(fe(It),fe(Dt))},Ae=MG(X(X({},a),{},{onChange:ke}),Ne,_e,Pe,Le,[],s,Oe,me,u),Ue=le(Ae,2),ct=Ue[1],rt=mG(je,u),qe=le(rt,2),Ye=qe[0],at=qe[1],ut=l.useMemo(function(){return Ye.some(function(It){return It})},[Ye]),Ct=function(Dt,vn){if(U){var zn=X(X({},vn),{},{mode:vn.mode[0]});delete zn.range,U(Dt[0],zn)}},kt=$G(M,$,je,[Ie],me,xe,o,!1,B,z,eu(k==null?void 0:k.defaultOpenValue),Ct,E,I),xt=le(kt,2),et=xt[0],tt=xt[1],bt=Gt(function(It,Dt,vn){if(We(Dt),A&&vn!==!1){var zn=It||je[je.length-1];A(zn,Dt)}}),Ot=function(){ct(Pe()),re(!1,{force:!0})},ht=function(Dt){!C&&!se.current.nativeElement.contains(document.activeElement)&&se.current.focus(),re(!0),oe==null||oe(Dt)},it=function(){ct(null),re(!1,{force:!0})},Et=l.useState(null),Ze=le(Et,2),st=Ze[0],ft=Ze[1],Je=l.useState(null),Xe=le(Je,2),_t=Xe[0],Mt=Xe[1],Ut=l.useMemo(function(){var It=[_t].concat(Me(je)).filter(function(Dt){return Dt});return F?It:It.slice(0,1)},[je,_t,F]),mn=l.useMemo(function(){return!F&&_t?[_t]:je.filter(function(It){return It})},[je,_t,F]);l.useEffect(function(){me||Mt(null)},[me]);var pn=RG(W),yt=function(Dt){Mt(Dt),ft("preset")},At=function(Dt){var vn=F?te(Pe(),Dt):[Dt],zn=ct(vn);zn&&!F&&re(!1,{force:!0})},jt=function(Dt){At(Dt)},tn=function(Dt){Mt(Dt),ft("cell")},An=function(Dt){re(!0),$e(Dt)},Or=function(Dt){Ce("panel");var vn=F?te(Pe(),Dt):[Dt];Le(vn),!S&&!i&&o===He&&Ot()},En=function(){re(!1)},br=dN(Z,Q,ee),na=l.useMemo(function(){var It=ur(a,!1),Dt=Mn(a,[].concat(Me(Object.keys(It)),["onChange","onCalendarChange","style","className","onPanelChange"]));return X(X({},Dt),{},{multiple:a.multiple})},[a]),jr=l.createElement(jG,he({},na,{showNow:Be,showTime:k,disabledDate:w,onFocus:An,onBlur:Fe,picker:P,mode:Ie,internalMode:He,onPanelChange:bt,format:c,value:je,isInvalid:u,onChange:null,onSelect:Or,pickerValue:et,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:tt,hoverValue:Ut,onHover:tn,needConfirm:S,onSubmit:Ot,onOk:Ve,presets:pn,onPresetHover:yt,onPresetSubmit:At,onNow:jt,cellRender:br})),Xn=function(Dt){Le(Dt)},Zt=function(){Ce("input")},Rt=function(Dt){Ce("input"),re(!0,{inherit:!0}),$e(Dt)},Bt=function(Dt){re(!1),Fe(Dt)},zt=function(Dt,vn){Dt.key==="Tab"&&Ot(),y==null||y(Dt,vn)},nn=l.useMemo(function(){return{prefixCls:p,locale:$,generateConfig:M,button:q.button,input:q.input}},[p,$,M,q.button,q.input]);return Yt(function(){me&&xe!==void 0&&bt(null,P,!1)},[me,xe,P]),Yt(function(){var It=Ce();!me&&It==="input"&&(re(!1),Ot()),!me&&i&&!S&&It==="panel"&&(re(!0),Ot())},[me]),l.createElement(Mi.Provider,{value:nn},l.createElement(dG,he({},gG(a),{popupElement:jr,popupStyle:g.popup,popupClassName:m.popup,visible:me,onClose:En}),l.createElement(ebe,he({},a,{ref:se,suffixIcon:Y,removeIcon:K,activeHelp:!!_t,allHelp:!!_t&&st==="preset",focused:Oe,onFocus:Rt,onBlur:Bt,onKeyDown:zt,onSubmit:Ot,value:mn,maskFormat:c,onChange:Xn,onInputChange:Zt,internalPicker:o,format:s,inputReadOnly:H,disabled:C,open:me,onOpenChange:re,onClick:ht,onClear:it,invalid:ut,onInvalid:function(Dt){at(Dt,0)}}))))}var nbe=l.forwardRef(tbe);const zG=l.createContext(null),rbe=zG.Provider,HG=l.createContext(null),abe=HG.Provider;var obe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],UG=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,p=d===void 0?"checkbox":d,g=e.title,m=e.onChange,h=wt(e,obe),b=l.useRef(null),x=l.useRef(null),S=fn(u,{value:i}),v=le(S,2),y=v[0],C=v[1];l.useImperativeHandle(t,function(){return{focus:function(T){var R;(R=b.current)===null||R===void 0||R.focus(T)},blur:function(){var T;(T=b.current)===null||T===void 0||T.blur()},input:b.current,nativeElement:x.current}});var w=ae(r,a,V(V({},"".concat(r,"-checked"),y),"".concat(r,"-disabled"),s)),E=function(T){s||("checked"in e||C(T.target.checked),m==null||m({target:X(X({},e),{},{type:p,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return l.createElement("span",{className:w,title:g,style:o,ref:x},l.createElement("input",he({},h,{className:"".concat(r,"-input"),ref:b,onChange:E,disabled:s,checked:!!y,type:p})),l.createElement("span",{className:"".concat(r,"-inner")}))});const ibe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},an(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},sbe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:p,colorTextDisabled:g,paddingXS:m,dotColorDisabled:h,lineType:b,radioColor:x,radioBgColor:S,calc:v}=e,y=`${t}-inner`,w=v(a).sub(v(4).mul(2)),E=v(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${G(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},Ts(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:v(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:x,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:p,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(w).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},lbe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:p,fontSizeLG:g,controlHeightLG:m,controlHeightSM:h,paddingXS:b,borderRadius:x,borderRadiusSM:S,borderRadiusLG:v,buttonCheckedBg:y,buttonSolidCheckedColor:C,colorTextDisabled:w,colorBgContainerDisabled:E,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:T,colorPrimary:R,colorPrimaryHover:_,colorPrimaryActive:$,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:D,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:G(O(n).sub(O(a).mul(2)).equal()),background:p,border:`${G(a)} ${o} ${i}`,borderBlockStartWidth:O(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(a).mul(-1).equal(),insetInlineStart:O(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${G(a)} ${o} ${i}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:m,fontSize:g,lineHeight:G(O(m).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:h,paddingInline:O(b).sub(a).equal(),paddingBlock:0,lineHeight:G(O(h).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},Ts(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:y,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:M,borderColor:M,"&:hover":{color:C,background:P,borderColor:P},"&:active":{color:C,background:D,borderColor:D}},"&-disabled":{color:w,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:I,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},cbe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:p,colorPrimaryHover:g,colorPrimaryActive:m,colorWhite:h}=e,b=4,x=o,S=t?x-b*2:x-(b+a)*2;return{radioSize:x,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:p,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:m,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?p:h,radioBgColor:t?s:p}},VG=on("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,o=Ft(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ibe(o),sbe(o),lbe(o)]},cbe,{unitless:{radioSize:!0,dotSize:!0}});var ube=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=l.useContext(zG),o=l.useContext(HG),{getPrefixCls:i,direction:s,radio:c}=l.useContext(lt),u=l.useRef(null),d=ga(t,u),{isFormItemInput:p}=l.useContext(ea),g=D=>{var O,k;(O=e.onChange)===null||O===void 0||O.call(e,D),(k=a==null?void 0:a.onChange)===null||k===void 0||k.call(a,D)},{prefixCls:m,className:h,rootClassName:b,children:x,style:S,title:v}=e,y=ube(e,["prefixCls","className","rootClassName","children","style","title"]),C=i("radio",m),w=((a==null?void 0:a.optionType)||o)==="button",E=w?`${C}-button`:C,I=ar(C),[T,R,_]=VG(C,I),$=Object.assign({},y),M=l.useContext(fa);a&&($.name=a.name,$.onChange=g,$.checked=e.value===a.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:a.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:M;const P=ae(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:p,[`${E}-wrapper-block`]:!!(a!=null&&a.block)},c==null?void 0:c.className,h,b,R,_,I);return T(l.createElement(cm,{component:"Radio",disabled:$.disabled},l.createElement("label",{className:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v},l.createElement(UG,Object.assign({},$,{className:ae($.className,{[X0]:!w}),type:"radio",prefixCls:E,ref:d})),x!==void 0?l.createElement("span",null,x):null)))},zb=l.forwardRef(dbe),fbe=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(lt),{prefixCls:a,className:o,rootClassName:i,options:s,buttonStyle:c="outline",disabled:u,children:d,size:p,style:g,id:m,optionType:h,name:b,defaultValue:x,value:S,block:v=!1,onChange:y,onMouseEnter:C,onMouseLeave:w,onFocus:E,onBlur:I}=e,[T,R]=fn(x,{value:S}),_=l.useCallback(F=>{const B=T,z=F.target.value;"value"in e||R(z),z!==B&&(y==null||y(F))},[T,R,y]),$=n("radio",a),M=`${$}-group`,P=ar($),[D,O,k]=VG($,P);let N=d;s&&s.length>0&&(N=s.map(F=>typeof F=="string"||typeof F=="number"?l.createElement(zb,{key:F.toString(),prefixCls:$,disabled:u,value:F,checked:T===F},F):l.createElement(zb,{key:`radio-group-value-options-${F.value}`,prefixCls:$,disabled:F.disabled||u,value:F.value,checked:T===F.value,title:F.title,style:F.style,id:F.id,required:F.required},F.label)));const A=Lr(p),L=ae(M,`${M}-${c}`,{[`${M}-${A}`]:A,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:v},o,i,O,k,P),j=l.useMemo(()=>({onChange:_,value:T,disabled:u,name:b,optionType:h,block:v}),[_,T,u,b,h,v]);return D(l.createElement("div",Object.assign({},ur(e,{aria:!0,data:!0}),{className:L,style:g,onMouseEnter:C,onMouseLeave:w,onFocus:E,onBlur:I,id:m,ref:t}),l.createElement(rbe,{value:j},N)))}),pbe=l.memo(fbe);var gbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=l.useContext(lt),{prefixCls:r}=e,a=gbe(e,["prefixCls"]),o=n("radio",r);return l.createElement(abe,{value:"button"},l.createElement(zb,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},hbe=l.forwardRef(mbe),wo=zb;wo.Button=hbe;wo.Group=pbe;wo.__ANT_RADIO=!0;function Em(e){return Ft(e,{inputAffixPadding:e.paddingXXS})}const Im=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:p,colorFillAlter:g,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:b,controlOutline:x,colorErrorOutline:S,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:p-a,addonBg:g,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${b}px ${x}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},vbe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ty=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},vbe(Ft(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),hN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ND=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),vN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ty(e))}),ND(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ND(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),WG=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},kD(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),kD(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ty(e))}})}),bN=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},GG=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),AD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},GG(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),yN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GG(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ty(e))}),AD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),AD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),MD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),qG=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},MD(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),MD(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),xN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),KG=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${G(t)} ${G(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},SN=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Tm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},xN(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},KG(e)),"&-sm":Object.assign({},SN(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),YG=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},KG(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},SN(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-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 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${G(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},_i()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${G(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Bhe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),zhe=on("Breadcrumb",e=>{const t=Bt(e,{});return Fhe(t)},Bhe);var ID=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,s=ID(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:i})})}),a}function Uhe(e,t){return l.useMemo(()=>e||(t?t.map(Hhe):null),[e,t])}var Vhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Cm=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:s,children:c,itemRender:u,params:d={}}=e,p=Vhe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:g,direction:m,breadcrumb:h}=l.useContext(ut);let b;const x=g("breadcrumb",t),[S,v,y]=zhe(x),w=Uhe(s,i),C=jhe(x,u);if(w&&w.length>0){const T=[],R=s||i;b=w.map((_,$)=>{const{path:M,key:P,type:D,menu:O,overlay:k,onClick:N,className:A,separator:L,dropdownProps:j}=_,F=Whe(d,M);F!==void 0&&T.push(F);const B=P??$;if(D==="separator")return l.createElement(Sy,{key:B},L);const z={},U=$===w.length-1;O?z.menu=O:k&&(z.overlay=k);let{href:H}=_;return T.length&&F!==void 0&&(H=`#/${T.join("/")}`),l.createElement(tG,Object.assign({key:B},z,ur(_,{data:!0,aria:!0}),{className:A,dropdownProps:j,href:H,separator:U?"":n,onClick:N,prefixCls:x}),C(_,d,R,T,H))})}else if(c){const T=_r(c).length;b=_r(c).map((R,_)=>{if(!R)return R;const $=_===T-1;return $r(R,{separator:$?"":n,key:_})})}const E=oe(x,h==null?void 0:h.className,{[`${x}-rtl`]:m==="rtl"},a,o,v,y),I=Object.assign(Object.assign({},h==null?void 0:h.style),r);return S(l.createElement("nav",Object.assign({className:E,style:I},p),l.createElement("ol",null,b)))};Cm.Item=nG;Cm.Separator=Sy;var rG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",c="hour",u="day",d="week",p="month",g="quarter",m="year",h="date",b="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var O=["th","st","nd","rd"],k=D%100;return"["+D+(O[(k-20)%10]||O[k]||O[0])+"]"}},y=function(D,O,k){var N=String(D);return!N||N.length>=O?D:""+Array(O+1-N.length).join(k)+D},w={s:y,z:function(D){var O=-D.utcOffset(),k=Math.abs(O),N=Math.floor(k/60),A=k%60;return(O<=0?"+":"-")+y(N,2,"0")+":"+y(A,2,"0")},m:function D(O,k){if(O.date()1)return D(j[0])}else{var F=O.name;E[F]=O,A=F}return!N&&A&&(C=A),A||!N&&C},_=function(D,O){if(T(D))return D.clone();var k=typeof O=="object"?O:{};return k.date=D,k.args=arguments,new M(k)},$=w;$.l=R,$.i=T,$.w=function(D,O){return _(D,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var M=function(){function D(k){this.$L=R(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[I]=!0}var O=D.prototype;return O.parse=function(k){this.$d=function(N){var A=N.date,L=N.utc;if(A===null)return new Date(NaN);if($.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var j=A.match(x);if(j){var F=j[2]-1||0,B=(j[7]||"0").substring(0,3);return L?new Date(Date.UTC(j[1],F,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)):new Date(j[1],F,j[3]||1,j[4]||0,j[5]||0,j[6]||0,B)}}return new Date(A)}(k),this.init()},O.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},O.$utils=function(){return $},O.isValid=function(){return this.$d.toString()!==b},O.isSame=function(k,N){var A=_(k);return this.startOf(N)<=A&&A<=this.endOf(N)},O.isAfter=function(k,N){return _(k)25){var d=i(this).startOf(r).add(1,r).date(u),p=i(this).endOf(n);if(d.isBefore(p))return 1}var g=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),m=this.diff(g,n,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(iG);var Zhe=iG.exports;const Qhe=Wa(Zhe);var sG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(sG);var Jhe=sG.exports;const eve=Wa(Jhe);var lG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),p==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return p}});return o.bind(this)(d)}}})})(lG);var tve=lG.exports;const nve=Wa(tve);var cG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Aa,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(x){return(x=+x)+(x>68?1900:2e3)},d=function(x){return function(S){this[x]=+S}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var v=S.match(/([+-]|\d\d)/g),y=60*v[1]+(+v[2]||0);return y===0?0:v[0]==="+"?-y:y}(x)}],g=function(x){var S=c[x];return S&&(S.indexOf?S:S.s.concat(S.f))},m=function(x,S){var v,y=c.meridiem;if(y){for(var w=1;w<=24;w+=1)if(x.indexOf(y(w,0,S))>-1){v=w>12;break}}else v=x===(S?"pm":"PM");return v},h={A:[s,function(x){this.afternoon=m(x,!1)}],a:[s,function(x){this.afternoon=m(x,!0)}],Q:[a,function(x){this.month=3*(x-1)+1}],S:[a,function(x){this.milliseconds=100*+x}],SS:[o,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[s,function(x){var S=c.ordinal,v=x.match(/\d+/);if(this.day=v[0],S)for(var y=1;y<=31;y+=1)S(y).replace(/\[|\]/g,"")===x&&(this.day=y)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[s,function(x){var S=g("months"),v=(g("monthsShort")||S.map(function(y){return y.slice(0,3)})).indexOf(x)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(x){var S=g("months").indexOf(x)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(x){this.year=u(x)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function b(x){var S,v;S=x,v=c&&c.formats;for(var y=(x=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,$,M){var P=M&&M.toUpperCase();return $||v[M]||n[M]||v[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,O,k){return O||k.slice(1)})})).match(r),w=y.length,C=0;C-1)return new Date((A==="X"?1e3:1)*N);var F=b(A)(N),B=F.year,z=F.month,U=F.day,H=F.hours,K=F.minutes,Y=F.seconds,ee=F.milliseconds,ae=F.zone,W=F.week,q=new Date,Z=U||(B||z?1:q.getDate()),Q=B||q.getFullYear(),J=0;B&&!z||(J=z>0?z-1:q.getMonth());var ie,le=H||0,fe=K||0,te=Y||0,se=ee||0;return ae?new Date(Date.UTC(Q,J,Z,le,fe,te,se+60*ae.offset*1e3)):L?new Date(Date.UTC(Q,J,Z,le,fe,te,se)):(ie=new Date(Q,J,Z,le,fe,te,se),W&&(ie=j(ie).week(W).toDate()),ie)}catch{return new Date("")}}(E,R,I,v),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),M&&E!=this.format(R)&&(this.$d=new Date("")),c={}}else if(R instanceof Array)for(var D=R.length,O=1;O<=D;O+=1){T[1]=R[O-1];var k=v.apply(this,T);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}O===D&&(this.$d=new Date(""))}else w.call(this,C)}}})})(cG);var rve=cG.exports;const ave=Wa(rve);Za.extend(ave);Za.extend(nve);Za.extend(Khe);Za.extend(Xhe);Za.extend(Qhe);Za.extend(eve);Za.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var ove={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Zl=function(t){var n=ove[t];return n||t.split("_")[0]},TD=function(){_H(!1,"Not match any format. Please help to fire a issue about this.")},ive={getNow:function(){var t=Za();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Za(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Za().locale(Zl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Zl(t)).weekday(0)},getWeek:function(t,n){return n.locale(Zl(t)).week()},getShortWeekDays:function(t){return Za().locale(Zl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Za().locale(Zl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Zl(t)).format(r)},parse:function(t,n,r){for(var a=Zl(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=ce(r,2),o=a[0],i=a[1],s=function(d,p){i(function(g){return jp(g,p,d)})},c=l.useMemo(function(){return o.map(function(u,d){if(u)return!0;var p=e[d];return p?!!(!n[d]&&!p||p&&t(p,{activeIndex:d})):!1})},[e,o,t,n]);return[c,s]}function hG(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function lve(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,p=e.fieldWeekFormat,g=e.fieldQuarterFormat,m=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,x=e.dayFormat,S=e.cellDateFormat,v=hG(t,n,r,a,o);return X(X({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(v),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||v,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:p||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:S||x||"D"})}function vG(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return de.useMemo(function(){return lve(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Xf(e,t,n){return n??t.some(function(r){return e.includes(r)})}var cve=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function uve(e){var t=Cy(e,cve),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=mt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function dve(e){return e&&typeof e=="string"}function bG(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function yG(e,t,n,r,a){var o=t,i=n,s=r;if(!e&&!o&&!i&&!s&&!a)o=!0,i=!0,s=!0;else if(e){var c,u,d,p=[o,i,s].some(function(h){return h===!1}),g=[o,i,s].some(function(h){return h===!0}),m=p?!0:!g;o=(c=o)!==null&&c!==void 0?c:m,i=(u=i)!==null&&u!==void 0?u:m,s=(d=s)!==null&&d!==void 0?d:m}return[o,i,s,a]}function xG(e){var t=e.showTime,n=uve(e),r=ce(n,2),a=r[0],o=r[1],i=t&&mt(t)==="object"?t:{},s=X(X({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,p=s.showSecond,g=bG(u,d,p,c),m=yG(g,u,d,p,c),h=ce(m,3);return u=h[0],d=h[1],p=h[2],[s,X(X({},s),{},{showHour:u,showMinute:d,showSecond:p,showMillisecond:c}),s.format,o]}function SG(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,s=fG(e,a,null),c=s,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function Zr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function zb(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,s){n?r=e[i](r,e[a[s]](n)):r=e[i](r,0)}),r}function mve(e,t,n,r,a){var o=qt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!ka(e,t,r,i,s.type)||a&&e.isAfter(i,a)&&!ka(e,t,a,i,s.type))});return o}function hve(e,t,n){return l.useMemo(function(){var r=fG(e,t,n),a=eu(r),o=a[0],i=mt(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function vve(e,t,n){return typeof e[0]=="function"||n?!0:t}function bve(e,t,n,r){var a=qt(function(o,i){var s=X({type:t},i);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:s.from}))||{},p=d.disabledHours,g=d.disabledMinutes,m=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,x=r.disabledMinutes,S=r.disabledSeconds,v=p||b,y=g||x,w=m||S,C=e.getHour(o),E=e.getMinute(o),I=e.getSecond(o),T=e.getMillisecond(o);if(v&&v().includes(C)||y&&y(C).includes(E)||w&&w(C,E).includes(I)||h&&h(C,E,I).includes(T))return!0}return!1});return a}function Ah(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&eu(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function EG(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,p=d===void 0?{}:d,g=e.order,m=g===void 0?!0:g,h=e.components,b=h===void 0?{}:h,x=e.inputRender,S=e.allowClear,v=e.clearIcon,y=e.needConfirm,w=e.multiple,C=e.format,E=e.inputReadOnly,I=e.disabledDate,T=e.minDate,R=e.maxDate,_=e.showTime,$=e.value,M=e.defaultValue,P=e.pickerValue,D=e.defaultPickerValue,O=Ah($),k=Ah(M),N=Ah(P),A=Ah(D),L=o==="date"&&_?"datetime":o,j=L==="time"||L==="datetime",F=j||w,B=y??j,z=xG(e),U=ce(z,4),H=U[0],K=U[1],Y=U[2],ee=U[3],ae=vG(r,K),W=l.useMemo(function(){return SG(L,Y,ee,H,ae)},[L,Y,ee,H,ae]),q=l.useMemo(function(){return X(X({},e),{},{prefixCls:s,locale:ae,picker:o,styles:u,classNames:p,order:m,components:X({input:x},b),clearIcon:fve(s,S,v),showTime:W,value:O,defaultValue:k,pickerValue:N,defaultPickerValue:A},t==null?void 0:t())},[e]),Z=hve(L,ae,C),Q=ce(Z,2),J=Q[0],ie=Q[1],le=vve(J,E,w),fe=mve(n,r,I,T,R),te=bve(n,o,fe,W),se=l.useMemo(function(){return X(X({},q),{},{needConfirm:B,inputReadOnly:le,disabledDate:fe})},[q,B,le,fe]);return[se,L,F,J,ie,te]}function yve(e,t,n){var r=fn(t,{value:e}),a=ce(r,2),o=a[0],i=a[1],s=de.useRef(e),c=de.useRef(),u=function(){Ut.cancel(c.current)},d=qt(function(){i(s.current),n&&o!==s.current&&n(s.current)}),p=qt(function(g,m){u(),s.current=g,g||m?d():c.current=Ut(d)});return de.useEffect(function(){return u},[]),[o,p]}function IG(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=yve(a,t||!1,r),i=ce(o,2),s=i[0],c=i[1];function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!p.inherit||s)&&c(d,p.force)}return[s,u]}function TG(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function RG(e,t){return l.useMemo(function(){return e||(t?($n(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ce(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function gN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,wc(function(){if(e)r.current(e);else{var a=Ut(function(){r.current(e)},n);return function(){Ut.cancel(a)}}},[e])}function _G(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=ce(r,2),o=a[0],i=a[1],s=l.useState(!1),c=ce(s,2),u=c[0],d=c[1],p=l.useRef([]),g=l.useRef(null),m=function(S){d(S)},h=function(S){return S&&(g.current=S),g.current},b=function(S){var v=p.current,y=new Set(v.filter(function(C){return S[C]||t[C]})),w=v[v.length-1]===0?1:0;return y.size>=2||e[w]?null:w};return gN(u||n,function(){u||(p.current=[])}),l.useEffect(function(){u&&p.current.push(o)},[u,o]),[u,m,h,o,i,b,p.current]}function xve(e,t,n,r,a,o){var i=n[n.length-1],s=function(u,d){var p=ce(e,2),g=p[0],m=p[1],h=X(X({},d),{},{from:pG(e,n)});return i===1&&t[0]&&g&&!ka(r,a,g,u,h.type)&&r.isAfter(g,u)||i===0&&t[1]&&m&&!ka(r,a,m,u,h.type)&&r.isAfter(u,m)?!0:o==null?void 0:o(u,h)};return s}function fp(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var PS=[];function $G(e,t,n,r,a,o,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:PS,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:PS,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:PS,p=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,h=i==="time",b=o||0,x=function(N){var A=e.getNow();return h&&(A=zb(e,A)),c[N]||n[N]||A},S=ce(u,2),v=S[0],y=S[1],w=fn(function(){return x(0)},{value:v}),C=ce(w,2),E=C[0],I=C[1],T=fn(function(){return x(1)},{value:y}),R=ce(T,2),_=R[0],$=R[1],M=l.useMemo(function(){var k=[E,_][b];return h?k:zb(e,k,d[b])},[h,E,_,b,e,d]),P=function(N){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",L=[I,$][b];L(N);var j=[E,_];j[b]=N,p&&(!ka(e,t,E,j[0],i)||!ka(e,t,_,j[1],i))&&p(j,{source:A,range:b===1?"end":"start",mode:r})},D=function(N,A){if(s){var L={date:"month",week:"month",month:"year",quarter:"year"},j=L[i];if(j&&!ka(e,t,N,A,j))return fp(e,i,A,-1);if(i==="year"&&N){var F=Math.floor(e.getYear(N)/10),B=Math.floor(e.getYear(A)/10);if(F!==B)return fp(e,i,A,-1)}}return A},O=l.useRef(null);return Yt(function(){if(a&&!c[b]){var k=h?null:e.getNow();if(O.current!==null&&O.current!==b?k=[E,_][b^1]:n[b]?k=b===0?n[0]:D(n[0],n[1]):n[b^1]&&(k=n[b^1]),k){g&&e.isAfter(g,k)&&(k=g);var N=s?fp(e,i,k,1):k;m&&e.isAfter(N,m)&&(k=s?fp(e,i,m,-1):m),P(k,"reset")}}},[a,b,n[b]]),l.useEffect(function(){a?O.current=b:O.current=null},[a,b]),Yt(function(){a&&c&&c[b]&&P(c[b],"reset")},[a,b]),[M,P]}function OG(e,t){var n=l.useRef(e),r=l.useState({}),a=ce(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,o({})};return[i,s,i(!0)]}var Sve=[];function NG(e,t,n){var r=function(i){return i.map(function(s){return Zr(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=a.includes(c);(!u||!r)&&i.push({label:uN(c,o),value:c,disabled:u})}return i}function mN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,p=r.millisecondStep,g=p===void 0?100:p,m=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,x=r.disabledMinutes,S=r.disabledSeconds,v=l.useMemo(function(){return n||e.getNow()},[n,e]),y=l.useCallback(function(A){var L=(h==null?void 0:h(A))||{};return[L.disabledHours||b||Mh,L.disabledMinutes||x||Mh,L.disabledSeconds||S||Mh,L.disabledMilliseconds||Mh]},[h,b,x,S]),w=l.useMemo(function(){return y(v)},[v,y]),C=ce(w,4),E=C[0],I=C[1],T=C[2],R=C[3],_=l.useCallback(function(A,L,j,F){var B=Dh(0,23,i,m,A()),z=a?B.map(function(Y){return X(X({},Y),{},{label:uN(Y.value%12||12,2)})}):B,U=function(ee){return Dh(0,59,c,m,L(ee))},H=function(ee,ae){return Dh(0,59,d,m,j(ee,ae))},K=function(ee,ae,W){return Dh(0,999,g,m,F(ee,ae,W),3)};return[z,U,H,K]},[m,i,a,g,c,d]),$=l.useMemo(function(){return _(E,I,T,R)},[_,E,I,T,R]),M=ce($,4),P=M[0],D=M[1],O=M[2],k=M[3],N=function(L,j){var F=function(){return P},B=D,z=O,U=k;if(j){var H=y(j),K=ce(H,4),Y=K[0],ee=K[1],ae=K[2],W=K[3],q=_(Y,ee,ae,W),Z=ce(q,4),Q=Z[0],J=Z[1],ie=Z[2],le=Z[3];F=function(){return Q},B=J,z=ie,U=le}var fe=Cve(L,F,B,z,U,e);return fe};return[N,P,D,O,k]}function Eve(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,p=e.disabledDate,g=l.useContext(Di),m=g.prefixCls,h=g.locale,b=g.button,x=b===void 0?"button":b,S=d.getNow(),v=mN(d,o,S),y=ce(v,1),w=y[0],C=r==null?void 0:r(t),E=p(S,{type:t}),I=function(){if(!E){var D=w(S);s(D)}},T="".concat(m,"-now"),R="".concat(T,"-btn"),_=a&&l.createElement("li",{className:T},l.createElement("a",{className:oe(R,E&&"".concat(R,"-disabled")),"aria-disabled":E,onClick:I},n==="date"?h.today:h.now)),$=u&&l.createElement("li",{className:"".concat(m,"-ok")},l.createElement(x,{disabled:c,onClick:i},h.ok)),M=(_||$)&&l.createElement("ul",{className:"".concat(m,"-ranges")},_,$);return!C&&!M?null:l.createElement("div",{className:"".concat(m,"-footer")},C&&l.createElement("div",{className:"".concat(m,"-footer-extra")},C),M)}function PG(e,t,n){function r(a,o){var i=a.findIndex(function(c){return ka(e,t,c,o,n)});if(i===-1)return[].concat(De(a),[o]);var s=De(a);return s.splice(i,1),s}return r}var tu=l.createContext(null);function Iy(){return l.useContext(tu)}function gf(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,p=e.onHover,g=e.values,m=e.pickerValue,h=e.onSelect,b=e.prevIcon,x=e.nextIcon,S=e.superPrevIcon,v=e.superNextIcon,y=r.getNow(),w={now:y,values:g,pickerValue:m,prefixCls:n,disabledDate:o,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:p,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:x,superPrevIcon:S,superNextIcon:v};return[w,y]}var Il=l.createContext({});function Em(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,p=e.cellSelection,g=p===void 0?!0:p,m=e.disabledDate,h=Iy(),b=h.prefixCls,x=h.panelType,S=h.now,v=h.disabledDate,y=h.cellRender,w=h.onHover,C=h.hoverValue,E=h.hoverRangeValue,I=h.generateConfig,T=h.values,R=h.locale,_=h.onSelect,$=m||v,M="".concat(b,"-cell"),P=l.useContext(Il),D=P.onCellDblClick,O=function(z){return T.some(function(U){return U&&ka(I,R,z,U,x)})},k=[],N=0;N1&&arguments[1]!==void 0?arguments[1]:!1;re(Ne),x==null||x(Ne),Te&&ue(Ne)},xe=function(Ne,Te){ae(Ne),Te&&me(Te),ue(Te,Ne)},Ee=function(Ne){if(te(Ne),me(Ne),ee!==w){var Te=["decade","year"],we=[].concat(Te,["month"]),Me={quarter:[].concat(Te,["quarter"]),week:[].concat(De(we),["week"]),date:[].concat(De(we),["date"])},Ge=Me[w]||we,st=Ge.indexOf(ee),ge=Ge[st+1];ge&&xe(ge,Ne)}},ke=l.useMemo(function(){var Se,Ne;if(Array.isArray(I)){var Te=ce(I,2);Se=Te[0],Ne=Te[1]}else Se=I;return!Se&&!Ne?null:(Se=Se||Ne,Ne=Ne||Se,a.isAfter(Se,Ne)?[Ne,Se]:[Se,Ne])},[I,a]),$e=dN(T,R,_),Le=M[W]||Dve[W]||Ty,je=l.useContext(Il),He=l.useMemo(function(){return X(X({},je),{},{hideHeader:P})},[je,P]),Be="".concat(D,"-panel"),Pe=Cy(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(Il.Provider,{value:He},l.createElement("div",{ref:O,tabIndex:c,className:oe(Be,V({},"".concat(Be,"-rtl"),o==="rtl"))},l.createElement(Le,be({},Pe,{showTime:U,prefixCls:D,locale:B,generateConfig:a,onModeChange:xe,pickerValue:he,onPickerValueChange:function(Ne){me(Ne,!0)},value:le[0],onSelect:Ee,values:le,cellRender:$e,hoverRangeValue:ke,hoverValue:E}))))}var LS=l.memo(l.forwardRef(Pve));function Lve(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(Di),d=u.prefixCls,p=u.generateConfig,g=l.useCallback(function(v,y){return fp(p,t,v,y)},[p,t]),m=l.useMemo(function(){return g(r,1)},[r,g]),h=function(y){a(g(y,-1))},b={onCellDblClick:function(){o&&i()}},x=t==="time",S=X(X({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:x});return s?S.hoverRangeValue=c:S.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(Il.Provider,{value:X(X({},b),{},{hideNext:!0})},l.createElement(LS,S)),l.createElement(Il.Provider,{value:X(X({},b),{},{hidePrev:!0})},l.createElement(LS,be({},S,{pickerValue:m,onPickerValueChange:h})))):l.createElement(Il.Provider,{value:X({},b)},l.createElement(LS,S))}function _D(e){return typeof e=="function"?e():e}function jve(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(o,i){var s=o.label,c=o.value;return l.createElement("li",{key:i,onClick:function(){r(_D(c))},onMouseEnter:function(){a(_D(c))},onMouseLeave:function(){a(null)}},s)}))):null}function jG(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,s=e.activeOffset,c=s===void 0?0:s,u=e.placement,d=e.presets,p=e.onPresetHover,g=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,b=e.onPanelMouseDown,x=e.direction,S=e.value,v=e.onSelect,y=e.isInvalid,w=e.defaultOpenValue,C=e.onOk,E=e.onSubmit,I=l.useContext(Di),T=I.prefixCls,R="".concat(T,"-panel"),_=x==="rtl",$=l.useRef(null),M=l.useRef(null),P=l.useState(0),D=ce(P,2),O=D[0],k=D[1],N=l.useState(0),A=ce(N,2),L=A[0],j=A[1],F=function(fe){fe.offsetWidth&&k(fe.offsetWidth)};l.useEffect(function(){if(o){var le,fe=((le=$.current)===null||le===void 0?void 0:le.offsetWidth)||0,te=O-fe;c<=te?j(0):j(c+fe-O)}},[O,c,o]);function B(le){return le.filter(function(fe){return fe})}var z=l.useMemo(function(){return B(eu(S))},[S]),U=r==="time"&&!z.length,H=l.useMemo(function(){return U?B([w]):z},[U,z,w]),K=U?w:z,Y=l.useMemo(function(){return H.length?H.some(function(le){return y(le)}):!0},[H,y]),ee=function(){U&&v(w),C(),E()},ae=l.createElement("div",{className:"".concat(T,"-panel-layout")},l.createElement(jve,{prefixCls:T,presets:d,onClick:g,onHover:p}),l.createElement("div",null,l.createElement(Lve,be({},e,{value:K})),l.createElement(Eve,be({},e,{showNow:i?!1:a,invalid:Y,onSubmit:ee}))));t&&(ae=t(ae));var W="".concat(R,"-container"),q="marginLeft",Z="marginRight",Q=l.createElement("div",{onMouseDown:b,tabIndex:-1,className:oe(W,"".concat(T,"-").concat(n,"-panel-container")),style:V(V({},_?Z:q,L),_?q:Z,"auto"),onFocus:m,onBlur:h},ae);if(o){var J=wy(u,_),ie=uG(J,_);Q=l.createElement("div",{onMouseDown:b,ref:M,className:oe("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:$,className:"".concat(T,"-range-arrow"),style:V({},ie,c)}),l.createElement(wa,{onResize:F},Q))}return Q}function FG(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,p=e.onFocus,g=e.onBlur,m=e.onInputChange,h=e.onInvalid,b=e.open,x=e.onOpenChange,S=e.onKeyDown,v=e.onChange,y=e.activeHelp,w=e.name,C=e.autoComplete,E=e.id,I=e.value,T=e.invalid,R=e.placeholder,_=e.disabled,$=e.activeIndex,M=e.allHelp,P=e.picker,D=function(B,z){var U=a.locale.parse(o.locale,B,[z]);return U&&a.isValidate(U)?U:null},O=n[0],k=l.useCallback(function(F){return Zr(F,{locale:o,format:O,generateConfig:a})},[o,a,O]),N=l.useMemo(function(){return I.map(k)},[I,k]),A=l.useMemo(function(){var F=P==="time"?8:10,B=typeof O=="function"?O(a.getNow()).length:O.length;return Math.max(F,B)+2},[O,P,a]),L=function(B){for(var z=0;z=s&&n<=c)return o;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u0?Ae:Oe));var We=Ye+_e,qe=Oe-Ae+1;return String(Ae+(qe+We-Ae)%qe)};switch(Ne){case"Backspace":case"Delete":Te="",we=Ge;break;case"ArrowLeft":Te="",st(-1);break;case"ArrowRight":Te="",st(1);break;case"ArrowUp":Te="",we=ge(1);break;case"ArrowDown":Te="",we=ge(-1);break;default:isNaN(Number(Ne))||(Te=F+Ne,we=Te);break}if(Te!==null&&(B(Te),Te.length>=Me&&(st(1),B(""))),we!==null){var ne=q.slice(0,fe)+uN(we,Me)+q.slice(te);pe(ne.slice(0,i.length))}W({})},He=l.useRef();Yt(function(){if(!(!P||!i||ue.current)){if(!J.match(q)){pe(i);return}return Q.current.setSelectionRange(fe,te),He.current=Ut(function(){Q.current.setSelectionRange(fe,te)}),function(){Ut.cancel(He.current)}}},[J,i,P,q,H,fe,te,ae,pe]);var Be=i?{onFocus:Ee,onBlur:$e,onKeyDown:je,onMouseDown:me,onMouseUp:xe,onPaste:re}:{};return l.createElement("div",{ref:Z,className:oe(_,V(V({},"".concat(_,"-active"),n&&a),"".concat(_,"-placeholder"),u))},l.createElement(R,be({ref:Q,"aria-invalid":b,autoComplete:"off"},S,{onKeyDown:Le,onBlur:ke},Be,{value:q,onChange:he})),l.createElement(Ry,{type:"suffix",icon:o}),x)}),Wve=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],Gve=["index"];function qve(e,t){var n=e.id,r=e.clearIcon,a=e.suffixIcon,o=e.separator,i=o===void 0?"~":o,s=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,p=e.style,g=e.onClick,m=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,x=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var v=e.onActiveOffset,y=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,E=Ct(e,Wve),I=S==="rtl",T=l.useContext(Di),R=T.prefixCls,_=l.useMemo(function(){if(typeof n=="string")return[n];var q=n||{};return[q.start,q.end]},[n]),$=l.useRef(),M=l.useRef(),P=l.useRef(),D=function(Z){var Q;return(Q=[M,P][Z])===null||Q===void 0?void 0:Q.current};l.useImperativeHandle(t,function(){return{nativeElement:$.current,focus:function(Z){if(mt(Z)==="object"){var Q,J=Z||{},ie=J.index,le=ie===void 0?0:ie,fe=Ct(J,Gve);(Q=D(le))===null||Q===void 0||Q.focus(fe)}else{var te;(te=D(Z??0))===null||te===void 0||te.focus()}},blur:function(){var Z,Q;(Z=D(0))===null||Z===void 0||Z.blur(),(Q=D(1))===null||Q===void 0||Q.blur()}}});var O=BG(E),k=l.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=FG(X(X({},e),{},{id:_,placeholder:k})),A=ce(N,1),L=A[0],j=wy(y,I),F=uG(j,I),B=j==null?void 0:j.toLowerCase().endsWith("right"),z=l.useState({position:"absolute",width:0}),U=ce(z,2),H=U[0],K=U[1],Y=qt(function(){var q=D(s);if(q){var Z=q.nativeElement,Q=Z.offsetWidth,J=Z.offsetLeft,ie=Z.offsetParent,le=(ie==null?void 0:ie.offsetWidth)||0,fe=B?le-Q-J:J;K(function(te){return X(X({},te),{},V({width:Q},F,fe))}),v(fe)}});l.useEffect(function(){Y()},[s]);var ee=r&&(h[0]&&!b[0]||h[1]&&!b[1]),ae=C&&!b[0],W=C&&!ae&&!b[1];return l.createElement(wa,{onResize:Y},l.createElement("div",be({},O,{className:oe(R,"".concat(R,"-range"),V(V(V(V({},"".concat(R,"-focused"),c),"".concat(R,"-disabled"),b.every(function(q){return q})),"".concat(R,"-invalid"),x.some(function(q){return q})),"".concat(R,"-rtl"),I),d),style:p,ref:$,onClick:g,onMouseDown:function(Z){var Q=Z.target;Q!==M.current.inputElement&&Q!==P.current.inputElement&&Z.preventDefault(),w==null||w(Z)}}),l.createElement(l_,be({ref:M},L(0),{autoFocus:ae,"date-range":"start"})),l.createElement("div",{className:"".concat(R,"-range-separator")},i),l.createElement(l_,be({ref:P},L(1),{autoFocus:W,"date-range":"end"})),l.createElement("div",{className:"".concat(R,"-active-bar"),style:H}),l.createElement(Ry,{type:"suffix",icon:a}),ee&&l.createElement(s_,{icon:r,onClear:m})))}var Kve=l.forwardRef(qve);function OD(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Lh(e){return e===1?"end":"start"}function Yve(e,t){var n=EG(e,function(){var Kt=e.disabled,pt=e.allowEmpty,St=OD(Kt,!1),ln=OD(pt,!1);return{disabled:St,allowEmpty:ln}}),r=ce(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a.prefixCls,p=a.styles,g=a.classNames,m=a.placement,h=a.defaultValue,b=a.value,x=a.needConfirm,S=a.onKeyDown,v=a.disabled,y=a.allowEmpty,w=a.disabledDate,C=a.minDate,E=a.maxDate,I=a.defaultOpen,T=a.open,R=a.onOpenChange,_=a.locale,$=a.generateConfig,M=a.picker,P=a.showNow,D=a.showToday,O=a.showTime,k=a.mode,N=a.onPanelChange,A=a.onCalendarChange,L=a.onOk,j=a.defaultPickerValue,F=a.pickerValue,B=a.onPickerValueChange,z=a.inputReadOnly,U=a.suffixIcon,H=a.onFocus,K=a.onBlur,Y=a.presets,ee=a.ranges,ae=a.components,W=a.cellRender,q=a.dateRender,Z=a.monthCellRender,Q=a.onClick,J=TG(t),ie=IG(T,I,v,R),le=ce(ie,2),fe=le[0],te=le[1],se=function(pt,St){(v.some(function(ln){return!ln})||!pt)&&te(pt,St)},pe=AG($,_,s,!0,!1,h,b,A,L),he=ce(pe,5),re=he[0],ue=he[1],me=he[2],xe=he[3],Ee=he[4],ke=me(),$e=_G(v,y,fe),Le=ce($e,7),je=Le[0],He=Le[1],Be=Le[2],Pe=Le[3],Se=Le[4],Ne=Le[5],Te=Le[6],we=function(pt,St){He(!0),H==null||H(pt,{range:Lh(St??Pe)})},Me=function(pt,St){He(!1),K==null||K(pt,{range:Lh(St??Pe)})},Ge=l.useMemo(function(){if(!O)return null;var Kt=O.disabledTime,pt=Kt?function(St){var ln=Lh(Pe),Gn=pG(ke,Te,Pe);return Kt(St,ln,{from:Gn})}:void 0;return X(X({},O),{},{disabledTime:pt})},[O,Pe,ke,Te]),st=fn([M,M],{value:k}),ge=ce(st,2),ne=ge[0],ve=ge[1],_e=ne[Pe]||M,ze=_e==="date"&&Ge?"datetime":_e,Ue=ze===M&&ze!=="time",Ae=DG(M,_e,P,D,!0),Oe=MG(a,re,ue,me,xe,v,s,je,fe,u),Re=ce(Oe,2),at=Re[0],Ye=Re[1],We=xve(ke,v,Te,$,_,w),qe=mG(ke,u,y),Qe=ce(qe,2),ot=Qe[0],wt=Qe[1],kt=$G($,_,ke,ne,fe,Pe,o,Ue,j,F,Ge==null?void 0:Ge.defaultOpenValue,B,C,E),xt=ce(kt,2),nt=xt[0],rt=xt[1],bt=qt(function(Kt,pt,St){var ln=jp(ne,Pe,pt);if((ln[0]!==ne[0]||ln[1]!==ne[1])&&ve(ln),N&&St!==!1){var Gn=De(ke);Kt&&(Gn[Pe]=Kt),N(Gn,ln)}}),Ot=function(pt,St){return jp(ke,St,pt)},ht=function(pt,St){var ln=ke;pt&&(ln=Ot(pt,Pe));var Gn=Ne(ln);xe(ln),at(Pe,Gn===null),Gn===null?se(!1,{force:!0}):St||J.current.focus({index:Gn})},lt=function(pt){var St,ln=pt.target.getRootNode();if(!J.current.nativeElement.contains((St=ln.activeElement)!==null&&St!==void 0?St:document.activeElement)){var Gn=v.findIndex(function(tr){return!tr});Gn>=0&&J.current.focus({index:Gn})}se(!0),Q==null||Q(pt)},Et=function(){Ye(null),se(!1,{force:!0})},Ze=l.useState(null),ct=ce(Ze,2),ft=ct[0],et=ct[1],Xe=l.useState(null),_t=ce(Xe,2),Mt=_t[0],Vt=_t[1],mn=l.useMemo(function(){return Mt||ke},[ke,Mt]);l.useEffect(function(){fe||Vt(null)},[fe]);var pn=l.useState(0),yt=ce(pn,2),At=yt[0],jt=yt[1],tn=RG(Y,ee),An=function(pt){Vt(pt),et("preset")},Or=function(pt){var St=Ye(pt);St&&se(!1,{force:!0})},In=function(pt){ht(pt)},br=function(pt){Vt(pt?Ot(pt,Pe):null),et("cell")},na=function(pt){se(!0),we(pt)},jr=function(){Be("panel")},Xn=function(pt){var St=jp(ke,Pe,pt);xe(St),!x&&!i&&o===ze&&ht(pt)},Zt=function(){se(!1)},Rt=dN(W,q,Z,Lh(Pe)),zt=ke[Pe]||null,Ht=qt(function(Kt){return u(Kt,{activeIndex:Pe})}),nn=l.useMemo(function(){var Kt=ur(a,!1),pt=Mn(a,[].concat(De(Object.keys(Kt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return pt},[a]),It=l.createElement(jG,be({},nn,{showNow:Ae,showTime:Ge,range:!0,multiplePanel:Ue,activeOffset:At,placement:m,disabledDate:We,onFocus:na,onBlur:Me,onPanelMouseDown:jr,picker:M,mode:_e,internalMode:ze,onPanelChange:bt,format:c,value:zt,isInvalid:Ht,onChange:null,onSelect:Xn,pickerValue:nt,defaultOpenValue:eu(O==null?void 0:O.defaultOpenValue)[Pe],onPickerValueChange:rt,hoverValue:mn,onHover:br,needConfirm:x,onSubmit:ht,onOk:Ee,presets:tn,onPresetHover:An,onPresetSubmit:Or,onNow:In,cellRender:Rt})),Dt=function(pt,St){var ln=Ot(pt,St);xe(ln)},vn=function(){Be("input")},zn=function(pt,St){Be("input"),se(!0,{inherit:!0}),Pe!==St&&fe&&!x&&i&&ht(null,!0),Se(St),we(pt,St)},Sr=function(pt,St){if(se(!1),!x&&Be()==="input"){var ln=Ne(ke);at(Pe,ln===null)}Me(pt,St)},wr=function(pt,St){pt.key==="Tab"&&ht(null,!0),S==null||S(pt,St)},Ar=l.useMemo(function(){return{prefixCls:d,locale:_,generateConfig:$,button:ae.button,input:ae.input}},[d,_,$,ae.button,ae.input]);return Yt(function(){fe&&Pe!==void 0&&bt(null,M,!1)},[fe,Pe,M]),Yt(function(){var Kt=Be();!fe&&Kt==="input"&&(se(!1),ht(null,!0)),!fe&&i&&!x&&Kt==="panel"&&(se(!0),ht())},[fe]),l.createElement(Di.Provider,{value:Ar},l.createElement(dG,be({},gG(a),{popupElement:It,popupStyle:p.popup,popupClassName:g.popup,visible:fe,onClose:Zt,range:!0}),l.createElement(Kve,be({},a,{ref:J,suffixIcon:U,activeIndex:je||fe?Pe:null,activeHelp:!!Mt,allHelp:!!Mt&&ft==="preset",focused:je,onFocus:zn,onBlur:Sr,onKeyDown:wr,onSubmit:ht,value:mn,maskFormat:c,onChange:Dt,onInputChange:vn,format:s,inputReadOnly:z,disabled:v,open:fe,onOpenChange:se,onClick:lt,onClear:Et,invalid:ot,onInvalid:wt,onActiveOffset:jt}))))}var Xve=l.forwardRef(Yve);function Zve(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),p="".concat(t,"-selection"),g="".concat(p,"-overflow");function m(x,S){return l.createElement("span",{className:oe("".concat(p,"-item")),title:typeof x=="string"?x:null},l.createElement("span",{className:"".concat(p,"-item-content")},x),!s&&S&&l.createElement("span",{onMouseDown:function(y){y.preventDefault()},onClick:S,className:"".concat(p,"-item-remove")},o))}function h(x){var S=i(x),v=function(w){w&&w.stopPropagation(),r(x)};return m(S,v)}function b(x){var S="+ ".concat(x.length," ...");return m(S)}return l.createElement("div",{className:d},l.createElement(Ii,{prefixCls:g,data:n,renderItem:h,renderRest:b,itemKey:function(S){return i(S)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Qve=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Jve(e,t){e.id;var n=e.open,r=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,p=e.onClick,g=e.onClear,m=e.internalPicker,h=e.value,b=e.onChange,x=e.onSubmit;e.onInputChange;var S=e.multiple,v=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,w=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,T=e.removeIcon,R=Ct(e,Qve),_=C==="rtl",$=l.useContext(Di),M=$.prefixCls,P=l.useRef(),D=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:P.current,focus:function(H){var K;(K=D.current)===null||K===void 0||K.focus(H)},blur:function(){var H;(H=D.current)===null||H===void 0||H.blur()}}});var O=BG(R),k=function(H){b([H])},N=function(H){var K=h.filter(function(Y){return Y&&!ka(s,i,Y,H,m)});b(K),n||x()},A=FG(X(X({},e),{},{onChange:k}),function(U){var H=U.valueTexts;return{value:H[0]||"",active:o}}),L=ce(A,2),j=L[0],F=L[1],B=!!(r&&h.length&&!y),z=S?l.createElement(l.Fragment,null,l.createElement(Zve,{prefixCls:M,value:h,onRemove:N,formatDate:F,maxTagCount:v,disabled:y,removeIcon:T,placeholder:c}),l.createElement("input",{className:"".concat(M,"-multiple-input"),value:h.map(F).join(","),ref:D,readOnly:!0,autoFocus:I}),l.createElement(Ry,{type:"suffix",icon:a}),B&&l.createElement(s_,{icon:r,onClear:g})):l.createElement(l_,be({ref:D},j(),{autoFocus:I,suffixIcon:a,clearIcon:B&&l.createElement(s_,{icon:r,onClear:g}),showActiveCls:!1}));return l.createElement("div",be({},O,{className:oe(M,V(V(V(V(V({},"".concat(M,"-multiple"),S),"".concat(M,"-focused"),o),"".concat(M,"-disabled"),y),"".concat(M,"-invalid"),w),"".concat(M,"-rtl"),_),u),style:d,ref:P,onClick:p,onMouseDown:function(H){var K,Y=H.target;Y!==((K=D.current)===null||K===void 0?void 0:K.inputElement)&&H.preventDefault(),E==null||E(H)}}),z)}var ebe=l.forwardRef(Jve);function tbe(e,t){var n=EG(e),r=ce(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a,p=d.prefixCls,g=d.styles,m=d.classNames,h=d.order,b=d.defaultValue,x=d.value,S=d.needConfirm,v=d.onChange,y=d.onKeyDown,w=d.disabled,C=d.disabledDate,E=d.minDate,I=d.maxDate,T=d.defaultOpen,R=d.open,_=d.onOpenChange,$=d.locale,M=d.generateConfig,P=d.picker,D=d.showNow,O=d.showToday,k=d.showTime,N=d.mode,A=d.onPanelChange,L=d.onCalendarChange,j=d.onOk,F=d.multiple,B=d.defaultPickerValue,z=d.pickerValue,U=d.onPickerValueChange,H=d.inputReadOnly,K=d.suffixIcon,Y=d.removeIcon,ee=d.onFocus,ae=d.onBlur,W=d.presets,q=d.components,Z=d.cellRender,Q=d.dateRender,J=d.monthCellRender,ie=d.onClick,le=TG(t);function fe(It){return It===null?null:F?It:It[0]}var te=PG(M,$,o),se=IG(R,T,[w],_),pe=ce(se,2),he=pe[0],re=pe[1],ue=function(Dt,vn,zn){if(L){var Sr=X({},zn);delete Sr.range,L(fe(Dt),fe(vn),Sr)}},me=function(Dt){j==null||j(fe(Dt))},xe=AG(M,$,s,!1,h,b,x,ue,me),Ee=ce(xe,5),ke=Ee[0],$e=Ee[1],Le=Ee[2],je=Ee[3],He=Ee[4],Be=Le(),Pe=_G([w]),Se=ce(Pe,4),Ne=Se[0],Te=Se[1],we=Se[2],Me=Se[3],Ge=function(Dt){Te(!0),ee==null||ee(Dt,{})},st=function(Dt){Te(!1),ae==null||ae(Dt,{})},ge=fn(P,{value:N}),ne=ce(ge,2),ve=ne[0],_e=ne[1],ze=ve==="date"&&k?"datetime":ve,Ue=DG(P,ve,D,O),Ae=v&&function(It,Dt){v(fe(It),fe(Dt))},Oe=MG(X(X({},a),{},{onChange:Ae}),ke,$e,Le,je,[],s,Ne,he,u),Re=ce(Oe,2),at=Re[1],Ye=mG(Be,u),We=ce(Ye,2),qe=We[0],Qe=We[1],ot=l.useMemo(function(){return qe.some(function(It){return It})},[qe]),wt=function(Dt,vn){if(U){var zn=X(X({},vn),{},{mode:vn.mode[0]});delete zn.range,U(Dt[0],zn)}},kt=$G(M,$,Be,[ve],he,Me,o,!1,B,z,eu(k==null?void 0:k.defaultOpenValue),wt,E,I),xt=ce(kt,2),nt=xt[0],rt=xt[1],bt=qt(function(It,Dt,vn){if(_e(Dt),A&&vn!==!1){var zn=It||Be[Be.length-1];A(zn,Dt)}}),Ot=function(){at(Le()),re(!1,{force:!0})},ht=function(Dt){!w&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),re(!0),ie==null||ie(Dt)},lt=function(){at(null),re(!1,{force:!0})},Et=l.useState(null),Ze=ce(Et,2),ct=Ze[0],ft=Ze[1],et=l.useState(null),Xe=ce(et,2),_t=Xe[0],Mt=Xe[1],Vt=l.useMemo(function(){var It=[_t].concat(De(Be)).filter(function(Dt){return Dt});return F?It:It.slice(0,1)},[Be,_t,F]),mn=l.useMemo(function(){return!F&&_t?[_t]:Be.filter(function(It){return It})},[Be,_t,F]);l.useEffect(function(){he||Mt(null)},[he]);var pn=RG(W),yt=function(Dt){Mt(Dt),ft("preset")},At=function(Dt){var vn=F?te(Le(),Dt):[Dt],zn=at(vn);zn&&!F&&re(!1,{force:!0})},jt=function(Dt){At(Dt)},tn=function(Dt){Mt(Dt),ft("cell")},An=function(Dt){re(!0),Ge(Dt)},Or=function(Dt){we("panel");var vn=F?te(Le(),Dt):[Dt];je(vn),!S&&!i&&o===ze&&Ot()},In=function(){re(!1)},br=dN(Z,Q,J),na=l.useMemo(function(){var It=ur(a,!1),Dt=Mn(a,[].concat(De(Object.keys(It)),["onChange","onCalendarChange","style","className","onPanelChange"]));return X(X({},Dt),{},{multiple:a.multiple})},[a]),jr=l.createElement(jG,be({},na,{showNow:Ue,showTime:k,disabledDate:C,onFocus:An,onBlur:st,picker:P,mode:ve,internalMode:ze,onPanelChange:bt,format:c,value:Be,isInvalid:u,onChange:null,onSelect:Or,pickerValue:nt,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:rt,hoverValue:Vt,onHover:tn,needConfirm:S,onSubmit:Ot,onOk:He,presets:pn,onPresetHover:yt,onPresetSubmit:At,onNow:jt,cellRender:br})),Xn=function(Dt){je(Dt)},Zt=function(){we("input")},Rt=function(Dt){we("input"),re(!0,{inherit:!0}),Ge(Dt)},zt=function(Dt){re(!1),st(Dt)},Ht=function(Dt,vn){Dt.key==="Tab"&&Ot(),y==null||y(Dt,vn)},nn=l.useMemo(function(){return{prefixCls:p,locale:$,generateConfig:M,button:q.button,input:q.input}},[p,$,M,q.button,q.input]);return Yt(function(){he&&Me!==void 0&&bt(null,P,!1)},[he,Me,P]),Yt(function(){var It=we();!he&&It==="input"&&(re(!1),Ot()),!he&&i&&!S&&It==="panel"&&(re(!0),Ot())},[he]),l.createElement(Di.Provider,{value:nn},l.createElement(dG,be({},gG(a),{popupElement:jr,popupStyle:g.popup,popupClassName:m.popup,visible:he,onClose:In}),l.createElement(ebe,be({},a,{ref:le,suffixIcon:K,removeIcon:Y,activeHelp:!!_t,allHelp:!!_t&&ct==="preset",focused:Ne,onFocus:Rt,onBlur:zt,onKeyDown:Ht,onSubmit:Ot,value:mn,maskFormat:c,onChange:Xn,onInputChange:Zt,internalPicker:o,format:s,inputReadOnly:H,disabled:w,open:he,onOpenChange:re,onClick:ht,onClear:lt,invalid:ot,onInvalid:function(Dt){Qe(Dt,0)}}))))}var nbe=l.forwardRef(tbe);const zG=l.createContext(null),rbe=zG.Provider,HG=l.createContext(null),abe=HG.Provider;var obe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],UG=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,p=d===void 0?"checkbox":d,g=e.title,m=e.onChange,h=Ct(e,obe),b=l.useRef(null),x=l.useRef(null),S=fn(u,{value:i}),v=ce(S,2),y=v[0],w=v[1];l.useImperativeHandle(t,function(){return{focus:function(T){var R;(R=b.current)===null||R===void 0||R.focus(T)},blur:function(){var T;(T=b.current)===null||T===void 0||T.blur()},input:b.current,nativeElement:x.current}});var C=oe(r,a,V(V({},"".concat(r,"-checked"),y),"".concat(r,"-disabled"),s)),E=function(T){s||("checked"in e||w(T.target.checked),m==null||m({target:X(X({},e),{},{type:p,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return l.createElement("span",{className:C,title:g,style:o,ref:x},l.createElement("input",be({},h,{className:"".concat(r,"-input"),ref:b,onChange:E,disabled:s,checked:!!y,type:p})),l.createElement("span",{className:"".concat(r,"-inner")}))});const ibe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},an(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},sbe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:p,colorTextDisabled:g,paddingXS:m,dotColorDisabled:h,lineType:b,radioColor:x,radioBgColor:S,calc:v}=e,y=`${t}-inner`,C=v(a).sub(v(4).mul(2)),E=v(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${G(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},_s(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:v(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:x,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:p,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(C).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},lbe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:p,fontSizeLG:g,controlHeightLG:m,controlHeightSM:h,paddingXS:b,borderRadius:x,borderRadiusSM:S,borderRadiusLG:v,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:E,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:T,colorPrimary:R,colorPrimaryHover:_,colorPrimaryActive:$,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:D,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:G(O(n).sub(O(a).mul(2)).equal()),background:p,border:`${G(a)} ${o} ${i}`,borderBlockStartWidth:O(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(a).mul(-1).equal(),insetInlineStart:O(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${G(a)} ${o} ${i}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:m,fontSize:g,lineHeight:G(O(m).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:h,paddingInline:O(b).sub(a).equal(),paddingBlock:0,lineHeight:G(O(h).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},_s(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:y,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:P,borderColor:P},"&:active":{color:w,background:D,borderColor:D}},"&-disabled":{color:C,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:I,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},cbe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:p,colorPrimaryHover:g,colorPrimaryActive:m,colorWhite:h}=e,b=4,x=o,S=t?x-b*2:x-(b+a)*2;return{radioSize:x,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:p,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:m,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?p:h,radioBgColor:t?s:p}},VG=on("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,o=Bt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ibe(o),sbe(o),lbe(o)]},cbe,{unitless:{radioSize:!0,dotSize:!0}});var ube=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=l.useContext(zG),o=l.useContext(HG),{getPrefixCls:i,direction:s,radio:c}=l.useContext(ut),u=l.useRef(null),d=ma(t,u),{isFormItemInput:p}=l.useContext(ea),g=D=>{var O,k;(O=e.onChange)===null||O===void 0||O.call(e,D),(k=a==null?void 0:a.onChange)===null||k===void 0||k.call(a,D)},{prefixCls:m,className:h,rootClassName:b,children:x,style:S,title:v}=e,y=ube(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",m),C=((a==null?void 0:a.optionType)||o)==="button",E=C?`${w}-button`:w,I=ar(w),[T,R,_]=VG(w,I),$=Object.assign({},y),M=l.useContext(pa);a&&($.name=a.name,$.onChange=g,$.checked=e.value===a.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:a.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:M;const P=oe(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:p,[`${E}-wrapper-block`]:!!(a!=null&&a.block)},c==null?void 0:c.className,h,b,R,_,I);return T(l.createElement(um,{component:"Radio",disabled:$.disabled},l.createElement("label",{className:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v},l.createElement(UG,Object.assign({},$,{className:oe($.className,{[Q0]:!C}),type:"radio",prefixCls:E,ref:d})),x!==void 0?l.createElement("span",null,x):null)))},Hb=l.forwardRef(dbe),fbe=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(ut),{prefixCls:a,className:o,rootClassName:i,options:s,buttonStyle:c="outline",disabled:u,children:d,size:p,style:g,id:m,optionType:h,name:b,defaultValue:x,value:S,block:v=!1,onChange:y,onMouseEnter:w,onMouseLeave:C,onFocus:E,onBlur:I}=e,[T,R]=fn(x,{value:S}),_=l.useCallback(F=>{const B=T,z=F.target.value;"value"in e||R(z),z!==B&&(y==null||y(F))},[T,R,y]),$=n("radio",a),M=`${$}-group`,P=ar($),[D,O,k]=VG($,P);let N=d;s&&s.length>0&&(N=s.map(F=>typeof F=="string"||typeof F=="number"?l.createElement(Hb,{key:F.toString(),prefixCls:$,disabled:u,value:F,checked:T===F},F):l.createElement(Hb,{key:`radio-group-value-options-${F.value}`,prefixCls:$,disabled:F.disabled||u,value:F.value,checked:T===F.value,title:F.title,style:F.style,id:F.id,required:F.required},F.label)));const A=Lr(p),L=oe(M,`${M}-${c}`,{[`${M}-${A}`]:A,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:v},o,i,O,k,P),j=l.useMemo(()=>({onChange:_,value:T,disabled:u,name:b,optionType:h,block:v}),[_,T,u,b,h,v]);return D(l.createElement("div",Object.assign({},ur(e,{aria:!0,data:!0}),{className:L,style:g,onMouseEnter:w,onMouseLeave:C,onFocus:E,onBlur:I,id:m,ref:t}),l.createElement(rbe,{value:j},N)))}),pbe=l.memo(fbe);var gbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=l.useContext(ut),{prefixCls:r}=e,a=gbe(e,["prefixCls"]),o=n("radio",r);return l.createElement(abe,{value:"button"},l.createElement(Hb,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},hbe=l.forwardRef(mbe),Co=Hb;Co.Button=hbe;Co.Group=pbe;Co.__ANT_RADIO=!0;function Im(e){return Bt(e,{inputAffixPadding:e.paddingXXS})}const Tm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:p,colorFillAlter:g,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:b,controlOutline:x,colorErrorOutline:S,colorWarningOutline:v,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:p-a,addonBg:g,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${b}px ${x}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},vbe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_y=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},vbe(Bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),hN=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ND=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),vN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_y(e))}),ND(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ND(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),WG=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},kD(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),kD(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},_y(e))}})}),bN=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},GG=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),AD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},GG(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),yN=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GG(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_y(e))}),AD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),AD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),MD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),qG=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},MD(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),MD(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),xN=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),KG=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${G(t)} ${G(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},SN=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Rm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},xN(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},KG(e)),"&-sm":Object.assign({},SN(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),YG=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},KG(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},SN(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-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 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${G(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},$i()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -306,35 +306,35 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},bbe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),Tm(e)),vN(e)),yN(e)),bN(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ybe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G(e.inputAffixPadding)}`}}}},xbe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Tm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ybe(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[u]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},Sbe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},an(e)),YG(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},WG(e)),qG(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Cbe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},bbe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),Rm(e)),vN(e)),yN(e)),bN(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ybe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G(e.inputAffixPadding)}`}}}},xbe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Rm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ybe(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[u]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},Sbe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},an(e)),YG(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},WG(e)),qG(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},wbe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},wbe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Cbe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Ebe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},CN=on("Input",e=>{const t=Ft(e,Em(e));return[bbe(t),wbe(t),xbe(t),Sbe(t),Cbe(t),Ebe(t),dm(t)]},Im,{resetFont:!1}),LS=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=mW(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:G(o.itemLineHeight)}}}]},Ibe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Ft(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Ft(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[LS(a,"small"),LS(e),LS(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},hW(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Tbe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:p,colorTextDisabled:g,cellBgDisabled:m,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:G(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Ebe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},wN=on("Input",e=>{const t=Bt(e,Im(e));return[bbe(t),Cbe(t),xbe(t),Sbe(t),wbe(t),Ebe(t),fm(t)]},Tm,{resetFont:!1}),FS=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=mW(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:G(o.itemLineHeight)}}}]},Ibe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Bt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Bt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[FS(a,"small"),FS(e),FS(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},hW(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Tbe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:p,colorTextDisabled:g,cellBgDisabled:m,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:G(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${G(s)} ${c} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:p,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:g,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:m}},[`&-disabled${t}-today ${n}::before`]:{borderColor:g}}},Rbe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:p,lineType:g,borderRadiusLG:m,colorPrimary:h,colorTextHeading:b,colorSplit:x,pickerControlIconBorderWidth:S,colorIcon:v,textHeight:y,motionDurationMid:C,colorIconHover:w,fontWeightStrong:E,cellHeight:I,pickerCellPaddingVertical:T,colorTextDisabled:R,colorText:_,fontSize:$,motionDurationSlow:M,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:D,borderRadiusSM:O,colorTextLightSolid:k,cellHoverBg:N,timeColumnHeight:A,timeColumnWidth:L,timeCellHeight:j,controlItemBgActive:F,marginXXS:B,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:U}=e,H=e.calc(i).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:m,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:p,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:g,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:m}},[`&-disabled${t}-today ${n}::before`]:{borderColor:g}}},Rbe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:p,lineType:g,borderRadiusLG:m,colorPrimary:h,colorTextHeading:b,colorSplit:x,pickerControlIconBorderWidth:S,colorIcon:v,textHeight:y,motionDurationMid:w,colorIconHover:C,fontWeightStrong:E,cellHeight:I,pickerCellPaddingVertical:T,colorTextDisabled:R,colorText:_,fontSize:$,motionDurationSlow:M,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:D,borderRadiusSM:O,colorTextLightSolid:k,cellHoverBg:N,timeColumnHeight:A,timeColumnWidth:L,timeCellHeight:j,controlItemBgActive:F,marginXXS:B,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:U}=e,H=e.calc(i).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:m,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${G(c)}`,color:b,borderBottom:`${G(p)} ${g} ${x}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:G(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:$,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:G(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${G(S)} 0`,borderInlineWidth:`${G(S)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${G(S)} 0`,borderInlineWidth:`${G(S)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:e.calc(I).add(e.calc(T).mul(2)).equal(),color:_,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${G(T)} 0`,color:R,cursor:"pointer","&-in-view":{color:_}},Tbe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${G(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${G(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${G(c)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${G(c)} ${G(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${G(c)}`,color:b,borderBottom:`${G(p)} ${g} ${x}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:G(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:$,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:G(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${G(S)} 0`,borderInlineWidth:`${G(S)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${G(S)} 0`,borderInlineWidth:`${G(S)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:e.calc(I).add(e.calc(T).mul(2)).equal(),color:_,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${G(T)} 0`,color:R,cursor:"pointer","&-in-view":{color:_}},Tbe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${G(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${G(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${G(c)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${G(c)} ${G(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, - ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child:before":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover td":{"&:before":{background:N}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new sn(k).setAlpha(.5).toHexString()},[r]:{color:k}}},"&-range-hover td:before":{background:F}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${G(c)} ${G(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${G(p)} ${g} ${x}`},[`${t}-date-panel, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child:before":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover td":{"&:before":{background:N}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new sn(k).setAlpha(.5).toHexString()},[r]:{color:k}}},"&-range-hover td:before":{background:F}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${G(c)} ${G(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${G(p)} ${g} ${x}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:L,margin:`${G(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(j).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${G(p)} ${g} ${x}`},"&-active":{background:new sn(F).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(B).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(j).div(2).equal(),color:_,lineHeight:G(j),borderRadius:O,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:F}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},_be=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${G(r)} ${u} ${d}`,"&-extra":{padding:`0 ${G(a)}`,lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${G(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:G(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},$be=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},Obe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,s=o*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),p=Math.min(a-s,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new sn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new sn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:p,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Nbe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Im(e)),Obe(e)),py(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),kbe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},vN(e)),yN(e)),bN(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},jS=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),i=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${G(o)} ${G(r)} ${G(i)}`}},Abe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Mbe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:p,controlHeightLG:g,fontSizeLG:m,controlHeightSM:h,paddingInlineSM:b,paddingXS:x,marginXS:S,colorTextDescription:v,lineWidthBold:y,colorPrimary:C,motionDurationSlow:w,zIndexPopup:E,paddingXXS:I,sizePopupArrow:T,colorBgElevated:R,borderRadiusLG:_,boxShadowSecondary:$,borderRadiusSM:M,colorSplit:P,cellHoverBg:D,presetsWidth:O,presetsMaxWidth:k,boxShadowPopoverArrow:N,fontHeight:A,fontHeightLG:L,lineHeightLG:j}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},an(e)),jS(e,r,A,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},xN(p)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:p}}},"&-large":Object.assign(Object.assign({},jS(e,g,L,a)),{[`${t}-input > input`]:{fontSize:m,lineHeight:j}}),"&-small":Object.assign({},jS(e,h,A,b)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:v}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:m,color:d,fontSize:m,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:v},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:y,background:C,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${G(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},an(e)),Rbe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:L,margin:`${G(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(j).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${G(p)} ${g} ${x}`},"&-active":{background:new sn(F).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(B).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(j).div(2).equal(),color:_,lineHeight:G(j),borderRadius:O,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:F}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},_be=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${G(r)} ${u} ${d}`,"&-extra":{padding:`0 ${G(a)}`,lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${G(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:G(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:G(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},$be=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},Obe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,s=o*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),p=Math.min(a-s,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new sn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new sn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:p,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Nbe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Tm(e)),Obe(e)),my(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),kbe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},vN(e)),yN(e)),bN(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},BS=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),i=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${G(o)} ${G(r)} ${G(i)}`}},Abe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Mbe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:p,controlHeightLG:g,fontSizeLG:m,controlHeightSM:h,paddingInlineSM:b,paddingXS:x,marginXS:S,colorTextDescription:v,lineWidthBold:y,colorPrimary:w,motionDurationSlow:C,zIndexPopup:E,paddingXXS:I,sizePopupArrow:T,colorBgElevated:R,borderRadiusLG:_,boxShadowSecondary:$,borderRadiusSM:M,colorSplit:P,cellHoverBg:D,presetsWidth:O,presetsMaxWidth:k,boxShadowPopoverArrow:N,fontHeight:A,fontHeightLG:L,lineHeightLG:j}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},an(e)),BS(e,r,A,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},xN(p)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:p}}},"&-large":Object.assign(Object.assign({},BS(e,g,L,a)),{[`${t}-input > input`]:{fontSize:m,lineHeight:j}}),"&-small":Object.assign({},BS(e,h,A,b)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:v}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:m,color:d,fontSize:m,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:v},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:y,background:w,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${G(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},an(e)),Rbe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:ny},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:ay},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:ey},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:ry},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:ty},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},wW(e,R,N)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:_,boxShadow:$,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:O,maxWidth:k,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${G(o)} ${i} ${P}`,li:Object.assign(Object.assign({},Oo),{borderRadius:M,paddingInline:x,paddingBlock:e.calc(h).sub(A).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:S},"&:hover":{background:D}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${G(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Qi(e,"slide-up"),Qi(e,"slide-down"),Md(e,"move-up"),Md(e,"move-down")]},XG=on("DatePicker",e=>{const t=Ft(Em(e),$be(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_be(t),Mbe(t),kbe(t),Abe(t),Ibe(t),dm(e,{focusElCls:`${e.componentCls}-focused`})]},Nbe);var Dbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Pbe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Dbe}))},Rm=l.forwardRef(Pbe);const Ry=l.createContext(null);var Lbe=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),p=le(d,2),g=p[0],m=p[1],h=l.useRef(),b=de.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function x(){Ht.cancel(h.current)}return l.useEffect(function(){var S={};if(n)if(r){S.width=b(n.width);var v=a?"right":"left";u==="start"&&(S[v]=n[v]),u==="center"&&(S[v]=n[v]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[v]=n[v]+n.width,S.transform="translateX(-100%)")}else S.height=b(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return x(),h.current=Ht(function(){m(S)}),x},[n,r,a,u,b]),{style:g}},DD={width:0,height:0,left:0,top:0};function jbe(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||DD,i=o.left+o.width,s=0;sD?(M=_,E.current="x"):(M=$,E.current="y"),t(-M,-M)&&R.preventDefault()}var T=l.useRef(null);T.current={onTouchStart:y,onTouchMove:C,onTouchEnd:w,onWheel:I},l.useEffect(function(){function R(P){T.current.onTouchStart(P)}function _(P){T.current.onTouchMove(P)}function $(P){T.current.onTouchEnd(P)}function M(P){T.current.onWheel(P)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",$)}},[])}function ZG(e){var t=l.useState(0),n=le(t,2),r=n[0],a=n[1],o=l.useRef(0),i=l.useRef();return i.current=e,Cc(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function zbe(e){var t=l.useRef([]),n=l.useState({}),r=le(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),i=ZG(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function s(c){t.current.push(c),i()}return[o.current,s]}var FD={width:0,height:0,left:0,top:0,right:0};function Hbe(e,t,n,r,a,o,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,p,g;return["top","bottom"].includes(c)?(d="width",p=u?"right":"left",g=Math.abs(n)):(d="height",p="top",g=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,h=m,b=0;bMath.floor(g+t)){h=b-1;break}}for(var S=0,v=m-1;v>=0;v-=1){var y=e.get(s[v].key)||FD;if(y[p]=h?[0,0]:[S,h]},[e,t,r,a,o,g,c,s.map(function(m){return m.key}).join("_"),u])}function BD(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Ube="TABS_DQ";function QG(e){return String(e).replace(/"/g,Ube)}function JG(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var eq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),zD=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return mt(a)==="object"&&!l.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Vbe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,p=e.editable,g=e.tabBarGutter,m=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,x=e.getPopupContainer,S=e.popupClassName,v=l.useState(!1),y=le(v,2),C=y[0],w=y[1],E=l.useState(null),I=le(E,2),T=I[0],R=I[1],_=c.icon,$=_===void 0?"More":_,M="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),D=T!==null?"".concat(M,"-").concat(T):null,O=o==null?void 0:o.dropdownAriaLabel;function k(z,U){z.preventDefault(),z.stopPropagation(),p.onEdit("remove",{key:U,event:z})}var N=l.createElement(pf,{onClick:function(U){var H=U.key,Y=U.domEvent;b(H,Y),w(!1)},prefixCls:"".concat(P,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[T],"aria-label":O!==void 0?O:"expanded dropdown"},a.map(function(z){var U=z.closable,H=z.disabled,Y=z.closeIcon,K=z.key,J=z.label,ne=JG(U,Y,p,H);return l.createElement(xm,{key:K,id:"".concat(M,"-").concat(K),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(K),disabled:H},l.createElement("span",null,J),ne&&l.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(q){q.stopPropagation(),k(q,K)}},Y||p.removeIcon||"×"))}));function A(z){for(var U=a.filter(function(ne){return!ne.disabled}),H=U.findIndex(function(ne){return ne.key===T})||0,Y=U.length,K=0;Ktt?"left":"right"})}),P=le(M,2),D=P[0],O=P[1],k=PD(0,function(et,tt){!$&&b&&b({direction:et>tt?"top":"bottom"})}),N=le(k,2),A=N[0],L=N[1],j=l.useState([0,0]),F=le(j,2),B=F[0],z=F[1],U=l.useState([0,0]),H=le(U,2),Y=H[0],K=H[1],J=l.useState([0,0]),ne=le(J,2),W=ne[0],q=ne[1],Z=l.useState([0,0]),Q=le(Z,2),ee=Q[0],oe=Q[1],se=zbe(new Map),fe=le(se,2),te=fe[0],ie=fe[1],pe=jbe(y,te,Y[0]),me=Lh(B,$),re=Lh(Y,$),ce=Lh(W,$),ge=Lh(ee,$),ye=Math.floor(me)Pe?Pe:et}var Ve=l.useRef(null),je=l.useState(),De=le(je,2),Se=De[0],Oe=De[1];function Re(){Oe(Date.now())}function Ce(){Ve.current&&clearTimeout(Ve.current)}Bbe(I,function(et,tt){function bt(Ot,ht){Ot(function(it){var Et=Le(it+ht);return Et})}return ye?($?bt(O,et):bt(L,tt),Ce(),Re(),!0):!1}),l.useEffect(function(){return Ce(),Se&&(Ve.current=setTimeout(function(){Oe(0)},100)),Ce},[Se]);var xe=Hbe(pe,Ee,$?D:A,re,ce,ge,X(X({},e),{},{tabs:y})),$e=le(xe,2),Fe=$e[0],be=$e[1],ue=Gt(function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,tt=pe.get(et)||{width:0,height:0,left:0,right:0,top:0};if($){var bt=D;s?tt.rightD+Ee&&(bt=tt.right+tt.width-Ee):tt.left<-D?bt=-tt.left:tt.left+tt.width>-D+Ee&&(bt=-(tt.left+tt.width-Ee)),L(0),O(Le(bt))}else{var Ot=A;tt.top<-A?Ot=-tt.top:tt.top+tt.height>-A+Ee&&(Ot=-(tt.top+tt.height-Ee)),O(0),L(Le(Ot))}}),Ie={};p==="top"||p==="bottom"?Ie[s?"marginRight":"marginLeft"]=g:Ie.marginTop=g;var We=y.map(function(et,tt){var bt=et.key;return l.createElement(Gbe,{id:a,prefixCls:v,key:bt,tab:et,style:tt===0?void 0:Ie,closable:et.closable,editable:u,active:bt===i,renderWrapper:m,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(ht){h(bt,ht)},onFocus:function(){ue(bt),Re(),I.current&&(s||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),He=function(){return ie(function(){var tt,bt=new Map,Ot=(tt=T.current)===null||tt===void 0?void 0:tt.getBoundingClientRect();return y.forEach(function(ht){var it,Et=ht.key,Ze=(it=T.current)===null||it===void 0?void 0:it.querySelector('[data-node-key="'.concat(QG(Et),'"]'));if(Ze){var st=qbe(Ze,Ot),ft=le(st,4),Je=ft[0],Xe=ft[1],_t=ft[2],Mt=ft[3];bt.set(Et,{width:Je,height:Xe,left:_t,top:Mt})}}),bt})};l.useEffect(function(){He()},[y.map(function(et){return et.key}).join("_")]);var Be=ZG(function(){var et=Ru(C),tt=Ru(w),bt=Ru(E);z([et[0]-tt[0]-bt[0],et[1]-tt[1]-bt[1]]);var Ot=Ru(_);q(Ot);var ht=Ru(R);oe(ht);var it=Ru(T);K([it[0]-Ot[0],it[1]-Ot[1]]),He()}),ke=y.slice(0,Fe),Ae=y.slice(be+1),Ue=[].concat(Me(ke),Me(Ae)),ct=pe.get(i),rt=Lbe({activeTabOffset:ct,horizontal:$,indicator:x,rtl:s}),qe=rt.style;l.useEffect(function(){ue()},[i,_e,Pe,BD(ct),BD(pe),$]),l.useEffect(function(){Be()},[s]);var Ye=!!Ue.length,at="".concat(v,"-nav-wrap"),ut,Ct,kt,xt;return $?s?(Ct=D>0,ut=D!==Pe):(ut=D<0,Ct=D!==_e):(kt=A<0,xt=A!==_e),l.createElement(Sa,{onResize:Be},l.createElement("div",{ref:Ms(t,C),role:"tablist",className:ae("".concat(v,"-nav"),n),style:r,onKeyDown:function(){Re()}},l.createElement(zD,{ref:w,position:"left",extra:c,prefixCls:v}),l.createElement(Sa,{onResize:Be},l.createElement("div",{className:ae(at,V(V(V(V({},"".concat(at,"-ping-left"),ut),"".concat(at,"-ping-right"),Ct),"".concat(at,"-ping-top"),kt),"".concat(at,"-ping-bottom"),xt)),ref:I},l.createElement(Sa,{onResize:Be},l.createElement("div",{ref:T,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(A,"px)"),transition:Se?"none":void 0}},We,l.createElement(eq,{ref:_,prefixCls:v,locale:d,editable:u,style:X(X({},We.length===0?void 0:Ie),{},{visibility:Ye?"hidden":null})}),l.createElement("div",{className:ae("".concat(v,"-ink-bar"),V({},"".concat(v,"-ink-bar-animated"),o.inkBar)),style:qe}))))),l.createElement(Wbe,he({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:v,tabs:Ue,className:!Ye&&Ne,tabMoving:!!Se})),l.createElement(zD,{ref:E,position:"right",extra:c,prefixCls:v})))}),tq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:ae(n,i&&"".concat(n,"-active"),r),ref:t},c)}),Kbe=["renderTabBar"],Ybe=["label","key"],Xbe=function(t){var n=t.renderTabBar,r=wt(t,Kbe),a=l.useContext(Ry),o=a.tabs;if(n){var i=X(X({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=wt(s,Ybe);return l.createElement(tq,he({tab:c,key:u,tabKey:u},d))})});return n(i,HD)}return l.createElement(HD,r)},Zbe=["key","forceRender","style","className","destroyInactiveTabPane"],Qbe=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(Ry),c=s.prefixCls,u=s.tabs,d=a.tabPane,p="".concat(c,"-tabpane");return l.createElement("div",{className:ae("".concat(c,"-content-holder"))},l.createElement("div",{className:ae("".concat(c,"-content"),"".concat(c,"-content-").concat(o),V({},"".concat(c,"-content-animated"),d))},u.map(function(g){var m=g.key,h=g.forceRender,b=g.style,x=g.className,S=g.destroyInactiveTabPane,v=wt(g,Zbe),y=m===r;return l.createElement(Qr,he({key:m,visible:y,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(p,"-hidden")},a.tabPaneMotion),function(C,w){var E=C.style,I=C.className;return l.createElement(tq,he({},v,{prefixCls:p,id:n,tabKey:m,animated:d,active:y,style:X(X({},b),E),className:ae(x,I),ref:w}))})})))};function Jbe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=X({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var e0e=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],UD=0,t0e=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,p=e.animated,g=e.tabPosition,m=g===void 0?"top":g,h=e.tabBarGutter,b=e.tabBarStyle,x=e.tabBarExtraContent,S=e.locale,v=e.more,y=e.destroyInactiveTabPane,C=e.renderTabBar,w=e.onChange,E=e.onTabClick,I=e.onTabScroll,T=e.getPopupContainer,R=e.popupClassName,_=e.indicator,$=wt(e,e0e),M=l.useMemo(function(){return(i||[]).filter(function(ee){return ee&&mt(ee)==="object"&&"key"in ee})},[i]),P=s==="rtl",D=Jbe(p),O=l.useState(!1),k=le(O,2),N=k[0],A=k[1];l.useEffect(function(){A(sy())},[]);var L=fn(function(){var ee;return(ee=M[0])===null||ee===void 0?void 0:ee.key},{value:c,defaultValue:u}),j=le(L,2),F=j[0],B=j[1],z=l.useState(function(){return M.findIndex(function(ee){return ee.key===F})}),U=le(z,2),H=U[0],Y=U[1];l.useEffect(function(){var ee=M.findIndex(function(se){return se.key===F});if(ee===-1){var oe;ee=Math.max(0,Math.min(H,M.length-1)),B((oe=M[ee])===null||oe===void 0?void 0:oe.key)}Y(ee)},[M.map(function(ee){return ee.key}).join("_"),F,H]);var K=fn(null,{value:n}),J=le(K,2),ne=J[0],W=J[1];l.useEffect(function(){n||(W("rc-tabs-".concat(UD)),UD+=1)},[]);function q(ee,oe){E==null||E(ee,oe);var se=ee!==F;B(ee),se&&(w==null||w(ee))}var Z={id:ne,activeKey:F,animated:D,tabPosition:m,rtl:P,mobile:N},Q=X(X({},Z),{},{editable:d,locale:S,more:v,tabBarGutter:h,onTabClick:q,onTabScroll:I,extra:x,style:b,panes:null,getPopupContainer:T,popupClassName:R,indicator:_});return l.createElement(Ry.Provider,{value:{tabs:M,prefixCls:a}},l.createElement("div",he({ref:t,id:n,className:ae(a,"".concat(a,"-").concat(m),V(V(V({},"".concat(a,"-mobile"),N),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),P),o)},$),l.createElement(Xbe,he({},Q,{renderTabBar:C})),l.createElement(Qbe,he({destroyInactiveTabPane:y},Z,{animated:D}))))});const n0e={motionAppear:!1,motionEnter:!0,motionLeave:!0};function r0e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},n0e),{motionName:Da(e,"switch")})),n}var a0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function i0e(e,t){if(e)return e;const n=_r(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=a0e(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return o0e(n)}const s0e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Qi(e,"slide-up"),Qi(e,"slide-down")]]},l0e=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${G(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:G(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:G(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadiusLG)} 0 0 ${G(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},c0e=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},an(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${G(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Oo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${G(e.paddingXXS)} ${G(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},u0e=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${G(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:ny},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:oy},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:ry},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},CW(e,R,N)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:_,boxShadow:$,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:O,maxWidth:k,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${G(o)} ${i} ${P}`,li:Object.assign(Object.assign({},Oo),{borderRadius:M,paddingInline:x,paddingBlock:e.calc(h).sub(A).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:S},"&:hover":{background:D}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${G(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Ji(e,"slide-up"),Ji(e,"slide-down"),Md(e,"move-up"),Md(e,"move-down")]},XG=on("DatePicker",e=>{const t=Bt(Im(e),$be(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_be(t),Mbe(t),kbe(t),Abe(t),Ibe(t),fm(e,{focusElCls:`${e.componentCls}-focused`})]},Nbe);var Dbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Pbe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Dbe}))},_m=l.forwardRef(Pbe);const $y=l.createContext(null);var Lbe=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),p=ce(d,2),g=p[0],m=p[1],h=l.useRef(),b=de.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function x(){Ut.cancel(h.current)}return l.useEffect(function(){var S={};if(n)if(r){S.width=b(n.width);var v=a?"right":"left";u==="start"&&(S[v]=n[v]),u==="center"&&(S[v]=n[v]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[v]=n[v]+n.width,S.transform="translateX(-100%)")}else S.height=b(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return x(),h.current=Ut(function(){m(S)}),x},[n,r,a,u,b]),{style:g}},DD={width:0,height:0,left:0,top:0};function jbe(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||DD,i=o.left+o.width,s=0;sD?(M=_,E.current="x"):(M=$,E.current="y"),t(-M,-M)&&R.preventDefault()}var T=l.useRef(null);T.current={onTouchStart:y,onTouchMove:w,onTouchEnd:C,onWheel:I},l.useEffect(function(){function R(P){T.current.onTouchStart(P)}function _(P){T.current.onTouchMove(P)}function $(P){T.current.onTouchEnd(P)}function M(P){T.current.onWheel(P)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",$)}},[])}function ZG(e){var t=l.useState(0),n=ce(t,2),r=n[0],a=n[1],o=l.useRef(0),i=l.useRef();return i.current=e,wc(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function zbe(e){var t=l.useRef([]),n=l.useState({}),r=ce(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),i=ZG(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function s(c){t.current.push(c),i()}return[o.current,s]}var FD={width:0,height:0,left:0,top:0,right:0};function Hbe(e,t,n,r,a,o,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,p,g;return["top","bottom"].includes(c)?(d="width",p=u?"right":"left",g=Math.abs(n)):(d="height",p="top",g=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,h=m,b=0;bMath.floor(g+t)){h=b-1;break}}for(var S=0,v=m-1;v>=0;v-=1){var y=e.get(s[v].key)||FD;if(y[p]=h?[0,0]:[S,h]},[e,t,r,a,o,g,c,s.map(function(m){return m.key}).join("_"),u])}function BD(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Ube="TABS_DQ";function QG(e){return String(e).replace(/"/g,Ube)}function JG(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var eq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),zD=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return mt(a)==="object"&&!l.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Vbe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,p=e.editable,g=e.tabBarGutter,m=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,x=e.getPopupContainer,S=e.popupClassName,v=l.useState(!1),y=ce(v,2),w=y[0],C=y[1],E=l.useState(null),I=ce(E,2),T=I[0],R=I[1],_=c.icon,$=_===void 0?"More":_,M="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),D=T!==null?"".concat(M,"-").concat(T):null,O=o==null?void 0:o.dropdownAriaLabel;function k(z,U){z.preventDefault(),z.stopPropagation(),p.onEdit("remove",{key:U,event:z})}var N=l.createElement(pf,{onClick:function(U){var H=U.key,K=U.domEvent;b(H,K),C(!1)},prefixCls:"".concat(P,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[T],"aria-label":O!==void 0?O:"expanded dropdown"},a.map(function(z){var U=z.closable,H=z.disabled,K=z.closeIcon,Y=z.key,ee=z.label,ae=JG(U,K,p,H);return l.createElement(Sm,{key:Y,id:"".concat(M,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:H},l.createElement("span",null,ee),ae&&l.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(q){q.stopPropagation(),k(q,Y)}},K||p.removeIcon||"×"))}));function A(z){for(var U=a.filter(function(ae){return!ae.disabled}),H=U.findIndex(function(ae){return ae.key===T})||0,K=U.length,Y=0;Yrt?"left":"right"})}),P=ce(M,2),D=P[0],O=P[1],k=PD(0,function(nt,rt){!$&&b&&b({direction:nt>rt?"top":"bottom"})}),N=ce(k,2),A=N[0],L=N[1],j=l.useState([0,0]),F=ce(j,2),B=F[0],z=F[1],U=l.useState([0,0]),H=ce(U,2),K=H[0],Y=H[1],ee=l.useState([0,0]),ae=ce(ee,2),W=ae[0],q=ae[1],Z=l.useState([0,0]),Q=ce(Z,2),J=Q[0],ie=Q[1],le=zbe(new Map),fe=ce(le,2),te=fe[0],se=fe[1],pe=jbe(y,te,K[0]),he=jh(B,$),re=jh(K,$),ue=jh(W,$),me=jh(J,$),xe=Math.floor(he)Le?Le:nt}var He=l.useRef(null),Be=l.useState(),Pe=ce(Be,2),Se=Pe[0],Ne=Pe[1];function Te(){Ne(Date.now())}function we(){He.current&&clearTimeout(He.current)}Bbe(I,function(nt,rt){function bt(Ot,ht){Ot(function(lt){var Et=je(lt+ht);return Et})}return xe?($?bt(O,nt):bt(L,rt),we(),Te(),!0):!1}),l.useEffect(function(){return we(),Se&&(He.current=setTimeout(function(){Ne(0)},100)),we},[Se]);var Me=Hbe(pe,Ee,$?D:A,re,ue,me,X(X({},e),{},{tabs:y})),Ge=ce(Me,2),st=Ge[0],ge=Ge[1],ne=qt(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,rt=pe.get(nt)||{width:0,height:0,left:0,right:0,top:0};if($){var bt=D;s?rt.rightD+Ee&&(bt=rt.right+rt.width-Ee):rt.left<-D?bt=-rt.left:rt.left+rt.width>-D+Ee&&(bt=-(rt.left+rt.width-Ee)),L(0),O(je(bt))}else{var Ot=A;rt.top<-A?Ot=-rt.top:rt.top+rt.height>-A+Ee&&(Ot=-(rt.top+rt.height-Ee)),O(0),L(je(Ot))}}),ve={};p==="top"||p==="bottom"?ve[s?"marginRight":"marginLeft"]=g:ve.marginTop=g;var _e=y.map(function(nt,rt){var bt=nt.key;return l.createElement(Gbe,{id:a,prefixCls:v,key:bt,tab:nt,style:rt===0?void 0:ve,closable:nt.closable,editable:u,active:bt===i,renderWrapper:m,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(ht){h(bt,ht)},onFocus:function(){ne(bt),Te(),I.current&&(s||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),ze=function(){return se(function(){var rt,bt=new Map,Ot=(rt=T.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();return y.forEach(function(ht){var lt,Et=ht.key,Ze=(lt=T.current)===null||lt===void 0?void 0:lt.querySelector('[data-node-key="'.concat(QG(Et),'"]'));if(Ze){var ct=qbe(Ze,Ot),ft=ce(ct,4),et=ft[0],Xe=ft[1],_t=ft[2],Mt=ft[3];bt.set(Et,{width:et,height:Xe,left:_t,top:Mt})}}),bt})};l.useEffect(function(){ze()},[y.map(function(nt){return nt.key}).join("_")]);var Ue=ZG(function(){var nt=Ru(w),rt=Ru(C),bt=Ru(E);z([nt[0]-rt[0]-bt[0],nt[1]-rt[1]-bt[1]]);var Ot=Ru(_);q(Ot);var ht=Ru(R);ie(ht);var lt=Ru(T);Y([lt[0]-Ot[0],lt[1]-Ot[1]]),ze()}),Ae=y.slice(0,st),Oe=y.slice(ge+1),Re=[].concat(De(Ae),De(Oe)),at=pe.get(i),Ye=Lbe({activeTabOffset:at,horizontal:$,indicator:x,rtl:s}),We=Ye.style;l.useEffect(function(){ne()},[i,$e,Le,BD(at),BD(pe),$]),l.useEffect(function(){Ue()},[s]);var qe=!!Re.length,Qe="".concat(v,"-nav-wrap"),ot,wt,kt,xt;return $?s?(wt=D>0,ot=D!==Le):(ot=D<0,wt=D!==$e):(kt=A<0,xt=A!==$e),l.createElement(wa,{onResize:Ue},l.createElement("div",{ref:Ds(t,w),role:"tablist",className:oe("".concat(v,"-nav"),n),style:r,onKeyDown:function(){Te()}},l.createElement(zD,{ref:C,position:"left",extra:c,prefixCls:v}),l.createElement(wa,{onResize:Ue},l.createElement("div",{className:oe(Qe,V(V(V(V({},"".concat(Qe,"-ping-left"),ot),"".concat(Qe,"-ping-right"),wt),"".concat(Qe,"-ping-top"),kt),"".concat(Qe,"-ping-bottom"),xt)),ref:I},l.createElement(wa,{onResize:Ue},l.createElement("div",{ref:T,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(A,"px)"),transition:Se?"none":void 0}},_e,l.createElement(eq,{ref:_,prefixCls:v,locale:d,editable:u,style:X(X({},_e.length===0?void 0:ve),{},{visibility:qe?"hidden":null})}),l.createElement("div",{className:oe("".concat(v,"-ink-bar"),V({},"".concat(v,"-ink-bar-animated"),o.inkBar)),style:We}))))),l.createElement(Wbe,be({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:v,tabs:Re,className:!qe&&ke,tabMoving:!!Se})),l.createElement(zD,{ref:E,position:"right",extra:c,prefixCls:v})))}),tq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:oe(n,i&&"".concat(n,"-active"),r),ref:t},c)}),Kbe=["renderTabBar"],Ybe=["label","key"],Xbe=function(t){var n=t.renderTabBar,r=Ct(t,Kbe),a=l.useContext($y),o=a.tabs;if(n){var i=X(X({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=Ct(s,Ybe);return l.createElement(tq,be({tab:c,key:u,tabKey:u},d))})});return n(i,HD)}return l.createElement(HD,r)},Zbe=["key","forceRender","style","className","destroyInactiveTabPane"],Qbe=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext($y),c=s.prefixCls,u=s.tabs,d=a.tabPane,p="".concat(c,"-tabpane");return l.createElement("div",{className:oe("".concat(c,"-content-holder"))},l.createElement("div",{className:oe("".concat(c,"-content"),"".concat(c,"-content-").concat(o),V({},"".concat(c,"-content-animated"),d))},u.map(function(g){var m=g.key,h=g.forceRender,b=g.style,x=g.className,S=g.destroyInactiveTabPane,v=Ct(g,Zbe),y=m===r;return l.createElement(Qr,be({key:m,visible:y,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(p,"-hidden")},a.tabPaneMotion),function(w,C){var E=w.style,I=w.className;return l.createElement(tq,be({},v,{prefixCls:p,id:n,tabKey:m,animated:d,active:y,style:X(X({},b),E),className:oe(x,I),ref:C}))})})))};function Jbe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=X({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var e0e=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],UD=0,t0e=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,p=e.animated,g=e.tabPosition,m=g===void 0?"top":g,h=e.tabBarGutter,b=e.tabBarStyle,x=e.tabBarExtraContent,S=e.locale,v=e.more,y=e.destroyInactiveTabPane,w=e.renderTabBar,C=e.onChange,E=e.onTabClick,I=e.onTabScroll,T=e.getPopupContainer,R=e.popupClassName,_=e.indicator,$=Ct(e,e0e),M=l.useMemo(function(){return(i||[]).filter(function(J){return J&&mt(J)==="object"&&"key"in J})},[i]),P=s==="rtl",D=Jbe(p),O=l.useState(!1),k=ce(O,2),N=k[0],A=k[1];l.useEffect(function(){A(cy())},[]);var L=fn(function(){var J;return(J=M[0])===null||J===void 0?void 0:J.key},{value:c,defaultValue:u}),j=ce(L,2),F=j[0],B=j[1],z=l.useState(function(){return M.findIndex(function(J){return J.key===F})}),U=ce(z,2),H=U[0],K=U[1];l.useEffect(function(){var J=M.findIndex(function(le){return le.key===F});if(J===-1){var ie;J=Math.max(0,Math.min(H,M.length-1)),B((ie=M[J])===null||ie===void 0?void 0:ie.key)}K(J)},[M.map(function(J){return J.key}).join("_"),F,H]);var Y=fn(null,{value:n}),ee=ce(Y,2),ae=ee[0],W=ee[1];l.useEffect(function(){n||(W("rc-tabs-".concat(UD)),UD+=1)},[]);function q(J,ie){E==null||E(J,ie);var le=J!==F;B(J),le&&(C==null||C(J))}var Z={id:ae,activeKey:F,animated:D,tabPosition:m,rtl:P,mobile:N},Q=X(X({},Z),{},{editable:d,locale:S,more:v,tabBarGutter:h,onTabClick:q,onTabScroll:I,extra:x,style:b,panes:null,getPopupContainer:T,popupClassName:R,indicator:_});return l.createElement($y.Provider,{value:{tabs:M,prefixCls:a}},l.createElement("div",be({ref:t,id:n,className:oe(a,"".concat(a,"-").concat(m),V(V(V({},"".concat(a,"-mobile"),N),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),P),o)},$),l.createElement(Xbe,be({},Q,{renderTabBar:w})),l.createElement(Qbe,be({destroyInactiveTabPane:y},Z,{animated:D}))))});const n0e={motionAppear:!1,motionEnter:!0,motionLeave:!0};function r0e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},n0e),{motionName:Da(e,"switch")})),n}var a0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function i0e(e,t){if(e)return e;const n=_r(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=a0e(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return o0e(n)}const s0e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Ji(e,"slide-up"),Ji(e,"slide-down")]]},l0e=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${G(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:G(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:G(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadiusLG)} 0 0 ${G(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},c0e=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},an(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${G(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Oo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${G(e.paddingXXS)} ${G(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},u0e=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${G(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:G(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},d0e=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadius)} ${G(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${G(e.borderRadius)} ${G(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadius)} ${G(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadius)} 0 0 ${G(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},f0e=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ni(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},p0e=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:G(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:G(e.marginXS)},marginLeft:{_skip_check_:!0,value:G(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},g0e=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${G(e.paddingXS)}`,background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},ni(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),f0e(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},m0e=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},h0e=on("Tabs",e=>{const t=Ft(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${G(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${G(e.horizontalItemGutter)}`});return[d0e(t),p0e(t),u0e(t),c0e(t),l0e(t),g0e(t),s0e(t)]},m0e),v0e=()=>null;var b0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,i,s,c,u,d,p;const{type:g,className:m,rootClassName:h,size:b,onEdit:x,hideAdd:S,centered:v,addIcon:y,removeIcon:C,moreIcon:w,more:E,popupClassName:I,children:T,items:R,animated:_,style:$,indicatorSize:M,indicator:P}=e,D=b0e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=D,{direction:k,tabs:N,getPrefixCls:A,getPopupContainer:L}=l.useContext(lt),j=A("tabs",O),F=ar(j),[B,z,U]=h0e(j,F);let H;g==="editable-card"&&(H={onEdit:(Z,Q)=>{let{key:ee,event:oe}=Q;x==null||x(Z==="add"?oe:ee,Z)},removeIcon:(t=C??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:l.createElement(pa,null),addIcon:(y??(N==null?void 0:N.addIcon))||l.createElement(Rm,null),showAdd:S!==!0});const Y=A(),K=Lr(b),J=i0e(R,T),ne=r0e(j,_),W=Object.assign(Object.assign({},N==null?void 0:N.style),$),q={align:(n=P==null?void 0:P.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=P==null?void 0:P.size)!==null&&a!==void 0?a:M)!==null&&o!==void 0?o:(i=N==null?void 0:N.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(l.createElement(t0e,Object.assign({direction:k,getPopupContainer:L},D,{items:J,className:ae({[`${j}-${K}`]:K,[`${j}-card`]:["card","editable-card"].includes(g),[`${j}-editable-card`]:g==="editable-card",[`${j}-centered`]:v},N==null?void 0:N.className,m,h,z,U,F),popupClassName:ae(I,z,U,F),style:W,editable:H,more:Object.assign({icon:(p=(d=(u=(c=N==null?void 0:N.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:N==null?void 0:N.moreIcon)!==null&&d!==void 0?d:w)!==null&&p!==void 0?p:l.createElement(cN,null),transitionName:`${Y}-slide-up`},E),prefixCls:j,animated:ne,indicator:q})))};Ld.TabPane=v0e;var y0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=y0e(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=l.useContext(lt),i=o("card",t),s=ae(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:s}))},x0e=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${G(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},_i()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Oo),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:G(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},d0e=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadius)} ${G(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${G(e.borderRadius)} ${G(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadius)} ${G(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadius)} 0 0 ${G(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},f0e=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ri(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},p0e=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:G(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:G(e.marginXS)},marginLeft:{_skip_check_:!0,value:G(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},g0e=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${G(e.paddingXS)}`,background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},ri(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),f0e(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},m0e=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},h0e=on("Tabs",e=>{const t=Bt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${G(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${G(e.horizontalItemGutter)}`});return[d0e(t),p0e(t),u0e(t),c0e(t),l0e(t),g0e(t),s0e(t)]},m0e),v0e=()=>null;var b0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,i,s,c,u,d,p;const{type:g,className:m,rootClassName:h,size:b,onEdit:x,hideAdd:S,centered:v,addIcon:y,removeIcon:w,moreIcon:C,more:E,popupClassName:I,children:T,items:R,animated:_,style:$,indicatorSize:M,indicator:P}=e,D=b0e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=D,{direction:k,tabs:N,getPrefixCls:A,getPopupContainer:L}=l.useContext(ut),j=A("tabs",O),F=ar(j),[B,z,U]=h0e(j,F);let H;g==="editable-card"&&(H={onEdit:(Z,Q)=>{let{key:J,event:ie}=Q;x==null||x(Z==="add"?ie:J,Z)},removeIcon:(t=w??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:l.createElement(ga,null),addIcon:(y??(N==null?void 0:N.addIcon))||l.createElement(_m,null),showAdd:S!==!0});const K=A(),Y=Lr(b),ee=i0e(R,T),ae=r0e(j,_),W=Object.assign(Object.assign({},N==null?void 0:N.style),$),q={align:(n=P==null?void 0:P.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=P==null?void 0:P.size)!==null&&a!==void 0?a:M)!==null&&o!==void 0?o:(i=N==null?void 0:N.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:N==null?void 0:N.indicatorSize};return B(l.createElement(t0e,Object.assign({direction:k,getPopupContainer:L},D,{items:ee,className:oe({[`${j}-${Y}`]:Y,[`${j}-card`]:["card","editable-card"].includes(g),[`${j}-editable-card`]:g==="editable-card",[`${j}-centered`]:v},N==null?void 0:N.className,m,h,z,U,F),popupClassName:oe(I,z,U,F),style:W,editable:H,more:Object.assign({icon:(p=(d=(u=(c=N==null?void 0:N.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:N==null?void 0:N.moreIcon)!==null&&d!==void 0?d:C)!==null&&p!==void 0?p:l.createElement(cN,null),transitionName:`${K}-slide-up`},E),prefixCls:j,animated:ae,indicator:q})))};Ld.TabPane=v0e;var y0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=y0e(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=l.useContext(ut),i=o("card",t),s=oe(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:s}))},x0e=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${G(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},$i()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Oo),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},S0e=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -343,16 +343,16 @@ html body { ${G(a)} ${G(a)} 0 0 ${n}, ${G(a)} 0 0 0 ${n} inset, 0 ${G(a)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},C0e=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${G(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},_i()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:G(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:G(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${o}`}}})},w0e=e=>Object.assign(Object.assign({margin:`${G(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},_i()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Oo),"&-description":{color:e.colorTextDescription}}),E0e=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${G(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${G(e.padding)} ${G(n)}`}}},I0e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},T0e=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:x0e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},_i()),[`${t}-grid`]:S0e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:C0e(e),[`${t}-meta`]:w0e(e)}),[`${t}-bordered`]:{border:`${G(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:E0e(e),[`${t}-loading`]:I0e(e),[`${t}-rtl`]:{direction:"rtl"}}},R0e=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${G(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},_0e=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),$0e=on("Card",e=>{const t=Ft(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[T0e(t),R0e(t)]},_0e);var VD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,a))}))},N0e=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:p=!0,size:g,type:m,cover:h,actions:b,tabList:x,children:S,activeTabKey:v,defaultActiveTabKey:y,tabBarExtraContent:C,hoverable:w,tabProps:E={},classNames:I,styles:T}=e,R=VD(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:M}=l.useContext(lt),P=te=>{var ie;(ie=e.onTabChange)===null||ie===void 0||ie.call(e,te)},D=te=>{var ie;return ae((ie=M==null?void 0:M.classNames)===null||ie===void 0?void 0:ie[te],I==null?void 0:I[te])},O=te=>{var ie;return Object.assign(Object.assign({},(ie=M==null?void 0:M.styles)===null||ie===void 0?void 0:ie[te]),T==null?void 0:T[te])},k=l.useMemo(()=>{let te=!1;return l.Children.forEach(S,ie=>{(ie==null?void 0:ie.type)===nq&&(te=!0)}),te},[S]),N=_("card",n),[A,L,j]=$0e(N),F=l.createElement(Ul,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),B=v!==void 0,z=Object.assign(Object.assign({},E),{[B?"activeKey":"defaultActiveKey"]:B?v:y,tabBarExtraContent:C});let U;const H=Lr(g),Y=!H||H==="default"?"large":H,K=x?l.createElement(Ld,Object.assign({size:Y},z,{className:`${N}-head-tabs`,onChange:P,items:x.map(te=>{var{tab:ie}=te,pe=VD(te,["tab"]);return Object.assign({label:ie},pe)})})):null;if(u||i||K){const te=ae(`${N}-head`,D("header")),ie=ae(`${N}-head-title`,D("title")),pe=ae(`${N}-extra`,D("extra")),me=Object.assign(Object.assign({},s),O("header"));U=l.createElement("div",{className:te,style:me},l.createElement("div",{className:`${N}-head-wrapper`},u&&l.createElement("div",{className:ie,style:O("title")},u),i&&l.createElement("div",{className:pe,style:O("extra")},i)),K)}const J=ae(`${N}-cover`,D("cover")),ne=h?l.createElement("div",{className:J,style:O("cover")},h):null,W=ae(`${N}-body`,D("body")),q=Object.assign(Object.assign({},c),O("body")),Z=l.createElement("div",{className:W,style:q},d?F:S),Q=ae(`${N}-actions`,D("actions")),ee=b!=null&&b.length?l.createElement(O0e,{actionClasses:Q,actionStyle:O("actions"),actions:b}):null,oe=Mn(R,["onTabChange"]),se=ae(N,M==null?void 0:M.className,{[`${N}-loading`]:d,[`${N}-bordered`]:p,[`${N}-hoverable`]:w,[`${N}-contain-grid`]:k,[`${N}-contain-tabs`]:x==null?void 0:x.length,[`${N}-${H}`]:H,[`${N}-type-${m}`]:!!m,[`${N}-rtl`]:$==="rtl"},r,a,L,j),fe=Object.assign(Object.assign({},M==null?void 0:M.style),o);return A(l.createElement("div",Object.assign({ref:t},oe,{className:se,style:fe}),U,ne,Z,ee))});var k0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=k0e(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(lt),c=s("card",t),u=ae(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,p=a?l.createElement("div",{className:`${c}-meta-title`},a):null,g=o?l.createElement("div",{className:`${c}-meta-description`},o):null,m=p||g?l.createElement("div",{className:`${c}-meta-detail`},p,g):null;return l.createElement("div",Object.assign({},i,{className:u}),d,m)},nu=N0e;nu.Grid=nq;nu.Meta=A0e;function M0e(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,p=!1,g=0;function m(){d&&clearTimeout(d)}function h(x){var S=x||{},v=S.upcomingOnly,y=v===void 0?!1:v;m(),p=!y}function b(){for(var x=arguments.length,S=new Array(x),v=0;ve?s?(g=Date.now(),o||(d=setTimeout(u?E:w,e))):w():o!==!0&&(d=setTimeout(u?E:w,u===void 0?e-C:e))}return b.cancel=h,b}function D0e(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return M0e(e,t,{debounceMode:o!==!1})}function Ja(e,t){return e[t]}var P0e=["children"];function rq(e,t){return"".concat(e,"-").concat(t)}function L0e(e){return e&&e.type&&e.type.isTreeNode}function _m(e,t){return e??t}function jd(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function aq(e){function t(n){var r=_r(n);return r.map(function(a){if(!L0e(a))return _n(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,s=i.children,c=wt(i,P0e),u=X({key:o},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(a){return a})}return t(e)}function FS(e,t,n){var r=jd(n),a=r._title,o=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(g,m){for(var h=rq(p?p.pos:"0",m),b=_m(g[o],h),x,S=0;S1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},p={},g={posEntities:d,keyEntities:p};return n&&(g=n(g)||g),j0e(e,function(m){var h=m.node,b=m.index,x=m.pos,S=m.key,v=m.parentPos,y=m.level,C=m.nodes,w={node:h,nodes:C,index:b,key:S,pos:x,level:y},E=_m(S,x);d[x]=w,p[E]=w,w.parent=d[v],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,g)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),a&&a(g),g}function jp(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,p=Ja(d,e),g={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(p?p.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return g}function Fr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,p=e.pos,g=e.active,m=e.eventKey,h=X(X({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:p,active:g,key:m});return"props"in h||Object.defineProperty(h,"props",{get:function(){return _n(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function oq(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function F0e(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function B0e(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(p){var g=p.key,m=p.node,h=p.children,b=h===void 0?[]:h;a.has(g)&&!r(m)&&b.filter(function(x){return!r(x.node)}).forEach(function(x){a.add(x.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(p){var g=p.parent,m=p.node;if(!(r(m)||!p.parent||c.has(p.parent.key))){if(r(p.parent.node)){c.add(g.key);return}var h=!0,b=!1;(g.children||[]).filter(function(x){return!r(x.node)}).forEach(function(x){var S=x.key,v=a.has(S);h&&!v&&(h=!1),!b&&(v||o.has(S))&&(b=!0)}),h&&a.add(g.key),b&&o.add(g.key),c.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(oq(o,a))}}function z0e(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(g){var m=g.key,h=g.node,b=g.children,x=b===void 0?[]:b;!o.has(m)&&!i.has(m)&&!a(h)&&x.filter(function(S){return!a(S.node)}).forEach(function(S){o.delete(S.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var p=n.get(d)||new Set;p.forEach(function(g){var m=g.parent,h=g.node;if(!(a(h)||!g.parent||u.has(g.parent.key))){if(a(g.parent.node)){u.add(m.key);return}var b=!0,x=!1;(m.children||[]).filter(function(S){return!a(S.node)}).forEach(function(S){var v=S.key,y=o.has(v);b&&!y&&(b=!1),!x&&(y||i.has(v))&&(x=!0)}),b||o.delete(m.key),x&&i.add(m.key),u.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(oq(i,o))}}function xs(e,t,n,r){var a=[],o;r?o=r:o=F0e;var i=new Set(e.filter(function(d){var p=!!Ja(n,d);return p||a.push(d),p})),s=new Map,c=0;Object.keys(n).forEach(function(d){var p=n[d],g=p.level,m=s.get(g);m||(m=new Set,s.set(g,m)),m.add(p),c=Math.max(c,g)}),_n(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=B0e(i,s,c,o):u=z0e(i,t.halfCheckedKeys,s,c,o),u}const H0e=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},an(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ts(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${G(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},w0e=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${G(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},$i()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:G(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:G(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${o}`}}})},C0e=e=>Object.assign(Object.assign({margin:`${G(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},$i()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Oo),"&-description":{color:e.colorTextDescription}}),E0e=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${G(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${G(e.padding)} ${G(n)}`}}},I0e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},T0e=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:x0e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},$i()),[`${t}-grid`]:S0e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:w0e(e),[`${t}-meta`]:C0e(e)}),[`${t}-bordered`]:{border:`${G(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:E0e(e),[`${t}-loading`]:I0e(e),[`${t}-rtl`]:{direction:"rtl"}}},R0e=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${G(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},_0e=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),$0e=on("Card",e=>{const t=Bt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[T0e(t),R0e(t)]},_0e);var VD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,a))}))},N0e=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:p=!0,size:g,type:m,cover:h,actions:b,tabList:x,children:S,activeTabKey:v,defaultActiveTabKey:y,tabBarExtraContent:w,hoverable:C,tabProps:E={},classNames:I,styles:T}=e,R=VD(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:M}=l.useContext(ut),P=te=>{var se;(se=e.onTabChange)===null||se===void 0||se.call(e,te)},D=te=>{var se;return oe((se=M==null?void 0:M.classNames)===null||se===void 0?void 0:se[te],I==null?void 0:I[te])},O=te=>{var se;return Object.assign(Object.assign({},(se=M==null?void 0:M.styles)===null||se===void 0?void 0:se[te]),T==null?void 0:T[te])},k=l.useMemo(()=>{let te=!1;return l.Children.forEach(S,se=>{(se==null?void 0:se.type)===nq&&(te=!0)}),te},[S]),N=_("card",n),[A,L,j]=$0e(N),F=l.createElement(Ul,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),B=v!==void 0,z=Object.assign(Object.assign({},E),{[B?"activeKey":"defaultActiveKey"]:B?v:y,tabBarExtraContent:w});let U;const H=Lr(g),K=!H||H==="default"?"large":H,Y=x?l.createElement(Ld,Object.assign({size:K},z,{className:`${N}-head-tabs`,onChange:P,items:x.map(te=>{var{tab:se}=te,pe=VD(te,["tab"]);return Object.assign({label:se},pe)})})):null;if(u||i||Y){const te=oe(`${N}-head`,D("header")),se=oe(`${N}-head-title`,D("title")),pe=oe(`${N}-extra`,D("extra")),he=Object.assign(Object.assign({},s),O("header"));U=l.createElement("div",{className:te,style:he},l.createElement("div",{className:`${N}-head-wrapper`},u&&l.createElement("div",{className:se,style:O("title")},u),i&&l.createElement("div",{className:pe,style:O("extra")},i)),Y)}const ee=oe(`${N}-cover`,D("cover")),ae=h?l.createElement("div",{className:ee,style:O("cover")},h):null,W=oe(`${N}-body`,D("body")),q=Object.assign(Object.assign({},c),O("body")),Z=l.createElement("div",{className:W,style:q},d?F:S),Q=oe(`${N}-actions`,D("actions")),J=b!=null&&b.length?l.createElement(O0e,{actionClasses:Q,actionStyle:O("actions"),actions:b}):null,ie=Mn(R,["onTabChange"]),le=oe(N,M==null?void 0:M.className,{[`${N}-loading`]:d,[`${N}-bordered`]:p,[`${N}-hoverable`]:C,[`${N}-contain-grid`]:k,[`${N}-contain-tabs`]:x==null?void 0:x.length,[`${N}-${H}`]:H,[`${N}-type-${m}`]:!!m,[`${N}-rtl`]:$==="rtl"},r,a,L,j),fe=Object.assign(Object.assign({},M==null?void 0:M.style),o);return A(l.createElement("div",Object.assign({ref:t},ie,{className:le,style:fe}),U,ae,Z,J))});var k0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=k0e(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(ut),c=s("card",t),u=oe(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,p=a?l.createElement("div",{className:`${c}-meta-title`},a):null,g=o?l.createElement("div",{className:`${c}-meta-description`},o):null,m=p||g?l.createElement("div",{className:`${c}-meta-detail`},p,g):null;return l.createElement("div",Object.assign({},i,{className:u}),d,m)},nu=N0e;nu.Grid=nq;nu.Meta=A0e;function M0e(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,p=!1,g=0;function m(){d&&clearTimeout(d)}function h(x){var S=x||{},v=S.upcomingOnly,y=v===void 0?!1:v;m(),p=!y}function b(){for(var x=arguments.length,S=new Array(x),v=0;ve?s?(g=Date.now(),o||(d=setTimeout(u?E:C,e))):C():o!==!0&&(d=setTimeout(u?E:C,u===void 0?e-w:e))}return b.cancel=h,b}function D0e(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return M0e(e,t,{debounceMode:o!==!1})}function Ja(e,t){return e[t]}var P0e=["children"];function rq(e,t){return"".concat(e,"-").concat(t)}function L0e(e){return e&&e.type&&e.type.isTreeNode}function $m(e,t){return e??t}function jd(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function aq(e){function t(n){var r=_r(n);return r.map(function(a){if(!L0e(a))return $n(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,s=i.children,c=Ct(i,P0e),u=X({key:o},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(a){return a})}return t(e)}function zS(e,t,n){var r=jd(n),a=r._title,o=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(g,m){for(var h=rq(p?p.pos:"0",m),b=$m(g[o],h),x,S=0;S1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},p={},g={posEntities:d,keyEntities:p};return n&&(g=n(g)||g),j0e(e,function(m){var h=m.node,b=m.index,x=m.pos,S=m.key,v=m.parentPos,y=m.level,w=m.nodes,C={node:h,nodes:w,index:b,key:S,pos:x,level:y},E=$m(S,x);d[x]=C,p[E]=C,C.parent=d[v],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,g)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),a&&a(g),g}function Fp(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,p=Ja(d,e),g={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(p?p.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return g}function Fr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,p=e.pos,g=e.active,m=e.eventKey,h=X(X({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:p,active:g,key:m});return"props"in h||Object.defineProperty(h,"props",{get:function(){return $n(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function oq(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function F0e(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function B0e(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(p){var g=p.key,m=p.node,h=p.children,b=h===void 0?[]:h;a.has(g)&&!r(m)&&b.filter(function(x){return!r(x.node)}).forEach(function(x){a.add(x.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(p){var g=p.parent,m=p.node;if(!(r(m)||!p.parent||c.has(p.parent.key))){if(r(p.parent.node)){c.add(g.key);return}var h=!0,b=!1;(g.children||[]).filter(function(x){return!r(x.node)}).forEach(function(x){var S=x.key,v=a.has(S);h&&!v&&(h=!1),!b&&(v||o.has(S))&&(b=!0)}),h&&a.add(g.key),b&&o.add(g.key),c.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(oq(o,a))}}function z0e(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(g){var m=g.key,h=g.node,b=g.children,x=b===void 0?[]:b;!o.has(m)&&!i.has(m)&&!a(h)&&x.filter(function(S){return!a(S.node)}).forEach(function(S){o.delete(S.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var p=n.get(d)||new Set;p.forEach(function(g){var m=g.parent,h=g.node;if(!(a(h)||!g.parent||u.has(g.parent.key))){if(a(g.parent.node)){u.add(m.key);return}var b=!0,x=!1;(m.children||[]).filter(function(S){return!a(S.node)}).forEach(function(S){var v=S.key,y=o.has(v);b&&!y&&(b=!1),!x&&(y||i.has(v))&&(x=!0)}),b||o.delete(m.key),x&&i.add(m.key),u.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(oq(i,o))}}function ws(e,t,n,r){var a=[],o;r?o=r:o=F0e;var i=new Set(e.filter(function(d){var p=!!Ja(n,d);return p||a.push(d),p})),s=new Map,c=0;Object.keys(n).forEach(function(d){var p=n[d],g=p.level,m=s.get(g);m||(m=new Set,s.set(g,m)),m.add(p),c=Math.max(c,g)}),$n(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=B0e(i,s,c,o):u=z0e(i,t.halfCheckedKeys,s,c,o),u}const H0e=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},an(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},an(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},_s(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${G(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function wN(e,t){const n=Ft(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[H0e(n)]}const iq=on("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[wN(n,e)]}),sq=de.createContext(null);var U0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:g}=e,m=U0e(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:x}=l.useContext(lt),S=l.useContext(sq),{isFormItemInput:v}=l.useContext(ea),y=l.useContext(fa),C=(n=(S==null?void 0:S.disabled)||g)!==null&&n!==void 0?n:y,w=l.useRef(m.value);l.useEffect(()=>{S==null||S.registerValue(m.value)},[]),l.useEffect(()=>{if(!p)return m.value!==w.current&&(S==null||S.cancelValue(w.current),S==null||S.registerValue(m.value),w.current=m.value),()=>S==null?void 0:S.cancelValue(m.value)},[m.value]);const E=h("checkbox",r),I=ar(E),[T,R,_]=iq(E,I),$=Object.assign({},m);S&&!p&&($.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),S.toggleOption&&S.toggleOption({label:i,value:m.value})},$.name=S.name,$.checked=S.value.includes(m.value));const M=ae(`${E}-wrapper`,{[`${E}-rtl`]:b==="rtl",[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:v},x==null?void 0:x.className,a,o,_,I,R),P=ae({[`${E}-indeterminate`]:s},X0,R),D=s?"mixed":void 0;return T(l.createElement(cm,{component:"Checkbox",disabled:C},l.createElement("label",{className:M,style:Object.assign(Object.assign({},x==null?void 0:x.style),c),onMouseEnter:u,onMouseLeave:d},l.createElement(UG,Object.assign({"aria-checked":D},$,{prefixCls:E,className:P,disabled:C,ref:t})),i!==void 0&&l.createElement("span",null,i))))},lq=l.forwardRef(V0e);var W0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:s,style:c,onChange:u}=e,d=W0e(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:g}=l.useContext(lt),[m,h]=l.useState(d.value||n||[]),[b,x]=l.useState([]);l.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const S=l.useMemo(()=>a.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[a]),v=O=>{x(k=>k.filter(N=>N!==O))},y=O=>{x(k=>[].concat(Me(k),[O]))},C=O=>{const k=m.indexOf(O.value),N=Me(m);k===-1?N.push(O.value):N.splice(k,1),"value"in d||h(N),u==null||u(N.filter(A=>b.includes(A)).sort((A,L)=>{const j=S.findIndex(B=>B.value===A),F=S.findIndex(B=>B.value===L);return j-F}))},w=p("checkbox",o),E=`${w}-group`,I=ar(w),[T,R,_]=iq(w,I),$=Mn(d,["value","disabled"]),M=a.length?S.map(O=>l.createElement(lq,{prefixCls:w,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:m.includes(O.value),onChange:O.onChange,className:`${E}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):r,P={toggleOption:C,value:m,disabled:d.disabled,name:d.name,registerValue:y,cancelValue:v},D=ae(E,{[`${E}-rtl`]:g==="rtl"},i,s,_,I,R);return T(l.createElement("div",Object.assign({className:D,style:c},$,{ref:t}),l.createElement(sq.Provider,{value:P},M)))}),Ns=lq;Ns.Group=G0e;Ns.__ANT_CHECKBOX=!0;const cq=l.createContext({}),q0e=e=>{const{componentCls:t}=e;return{[t]:{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"}}}},K0e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Y0e=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},l_=(e,t)=>Y0e(e,t),X0e=(e,t,n)=>({[`@media (min-width: ${G(t)})`]:Object.assign({},l_(e,n))}),Z0e=()=>({}),Q0e=()=>({}),J0e=on("Grid",q0e,Z0e),eye=on("Grid",e=>{const t=Ft(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[K0e(t),l_(t,""),l_(t,"-xs"),Object.keys(n).map(r=>X0e(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Q0e);var tye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(lt),{gutter:a,wrap:o}=l.useContext(cq),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:p,className:g,children:m,flex:h,style:b}=e,x=tye(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[v,y,C]=eye(S),w={};let E={};nye.forEach(R=>{let _={};const $=e[R];typeof $=="number"?_.span=$:typeof $=="object"&&(_=$||{}),delete x[R],E=Object.assign(Object.assign({},E),{[`${S}-${R}-${_.span}`]:_.span!==void 0,[`${S}-${R}-order-${_.order}`]:_.order||_.order===0,[`${S}-${R}-offset-${_.offset}`]:_.offset||_.offset===0,[`${S}-${R}-push-${_.push}`]:_.push||_.push===0,[`${S}-${R}-pull-${_.pull}`]:_.pull||_.pull===0,[`${S}-rtl`]:r==="rtl"}),_.flex&&(E[`${S}-${R}-flex`]=!0,w[`--${S}-${R}-flex`]=WD(_.flex))});const I=ae(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${p}`]:p},g,E,y,C),T={};if(a&&a[0]>0){const R=a[0]/2;T.paddingLeft=R,T.paddingRight=R}return h&&(T.flex=WD(h),o===!1&&!T.minWidth&&(T.minWidth=0)),v(l.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},T),b),w),className:I,ref:t}),m))});var rye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const Oa=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:s,gutter:c=0,wrap:u}=e,d=rye(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:g}=l.useContext(lt),[m,h]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,x]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=GD(a,b),v=GD(r,b),y=l.useRef(c),C=CW();l.useEffect(()=>{const N=C.subscribe(A=>{x(A);const L=y.current||0;(!Array.isArray(L)&&typeof L=="object"||Array.isArray(L)&&(typeof L[0]=="object"||typeof L[1]=="object"))&&h(A)});return()=>C.unsubscribe(N)},[]);const w=()=>{const N=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((L,j)=>{if(typeof L=="object")for(let F=0;F0?_[0]/-2:void 0;P&&(M.marginLeft=P,M.marginRight=P);const[D,O]=_;M.rowGap=O;const k=l.useMemo(()=>({gutter:[D,O],wrap:u}),[D,O,u]);return I(l.createElement(cq.Provider,{value:k},l.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},M),i),ref:t}),s)))}),aye=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},an(e)),{borderBlockStart:`${G(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${G(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${G(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${G(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${G(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},oye=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),iye=on("Divider",e=>{const t=Ft(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[aye(t)]},oye,{unitless:{orientationMargin:!0}});var sye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(lt),{prefixCls:a,type:o="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:p,variant:g="solid",plain:m,style:h}=e,b=sye(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),x=t("divider",a),[S,v,y]=iye(x),C=!!d,w=i==="left"&&s!=null,E=i==="right"&&s!=null,I=ae(x,r==null?void 0:r.className,v,y,`${x}-${o}`,{[`${x}-with-text`]:C,[`${x}-with-text-${i}`]:C,[`${x}-dashed`]:!!p,[`${x}-${g}`]:g!=="solid",[`${x}-plain`]:!!m,[`${x}-rtl`]:n==="rtl",[`${x}-no-default-orientation-margin-left`]:w,[`${x}-no-default-orientation-margin-right`]:E},c,u),T=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),R=Object.assign(Object.assign({},w&&{marginLeft:T}),E&&{marginRight:T});return S(l.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},b,{role:"separator"}),d&&o!=="vertical"&&l.createElement("span",{className:`${x}-inner-text`,style:R},d)))};var lye={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"},cye=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:lye}))},uye=l.forwardRef(cye);function c_(){return typeof BigInt=="function"}function uq(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ec(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function EN(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function gc(e){var t=String(e);if(EN(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&IN(t)?t.length-t.indexOf(".")-1:0}function $y(e){var t=String(e);if(EN(e)){if(e>Number.MAX_SAFE_INTEGER)return String(c_()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ec("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),fye=function(){function e(t){if(Jn(this,e),V(this,"origin",""),V(this,"number",void 0),V(this,"empty",void 0),uq(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return er(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":$y(this.number):this.origin}}]),e}();function fi(e){return c_()?new dye(e):new fye(e)}function Dv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Ec(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,c="".concat(t).concat(s),u="".concat(o).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var p=fi(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return Dv(p.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function pye(e){return!!(e.addonBefore||e.addonAfter)}function gye(e){return!!(e.prefix||e.suffix||e.allowClear)}function qD(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Hb(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=qD(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=qD(t,e,r),n(a);return}n(a)}}function dq(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var TN=de.forwardRef(function(e,t){var n,r,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,g=e.style,m=e.disabled,h=e.readOnly,b=e.focused,x=e.triggerFocus,S=e.allowClear,v=e.value,y=e.handleReset,C=e.hidden,w=e.classes,E=e.classNames,I=e.dataAttrs,T=e.styles,R=e.components,_=e.onClear,$=o??a,M=(R==null?void 0:R.affixWrapper)||"span",P=(R==null?void 0:R.groupWrapper)||"span",D=(R==null?void 0:R.wrapper)||"span",O=(R==null?void 0:R.groupAddon)||"span",k=l.useRef(null),N=function(ee){var oe;(oe=k.current)!==null&&oe!==void 0&&oe.contains(ee.target)&&(x==null||x())},A=gye(e),L=l.cloneElement($,{value:v,className:ae($.props.className,!A&&(E==null?void 0:E.variant))||null}),j=l.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:j.current||k.current}}),A){var F=null;if(S){var B=!m&&!h&&v,z="".concat(i,"-clear-icon"),U=mt(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";F=de.createElement("span",{onClick:function(ee){y==null||y(ee),_==null||_()},onMouseDown:function(ee){return ee.preventDefault()},className:ae(z,V(V({},"".concat(z,"-hidden"),!B),"".concat(z,"-has-suffix"),!!c)),role:"button",tabIndex:-1},U)}var H="".concat(i,"-affix-wrapper"),Y=ae(H,V(V(V(V(V({},"".concat(i,"-disabled"),m),"".concat(H,"-disabled"),m),"".concat(H,"-focused"),b),"".concat(H,"-readonly"),h),"".concat(H,"-input-with-clear-btn"),c&&S&&v),w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),K=(c||S)&&de.createElement("span",{className:ae("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:T==null?void 0:T.suffix},F,c);L=de.createElement(M,he({className:Y,style:T==null?void 0:T.affixWrapper,onClick:N},I==null?void 0:I.affixWrapper,{ref:k}),s&&de.createElement("span",{className:ae("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:T==null?void 0:T.prefix},s),L,K)}if(pye(e)){var J="".concat(i,"-group"),ne="".concat(J,"-addon"),W="".concat(J,"-wrapper"),q=ae("".concat(i,"-wrapper"),J,w==null?void 0:w.wrapper,E==null?void 0:E.wrapper),Z=ae(W,V({},"".concat(W,"-disabled"),m),w==null?void 0:w.group,E==null?void 0:E.groupWrapper);L=de.createElement(P,{className:Z,ref:j},de.createElement(D,{className:q},u&&de.createElement(O,{className:ne},u),L,d&&de.createElement(O,{className:ne},d)))}return de.cloneElement(L,{className:ae((n=L.props)===null||n===void 0?void 0:n.className,p)||null,style:X(X({},(r=L.props)===null||r===void 0?void 0:r.style),g),hidden:C})}),mye=["show"];function fq(e,t){return l.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=X(X({},n),e);var r=n,a=r.show,o=wt(r,mye);return X(X({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var hye=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],vye=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,p=e.disabled,g=e.htmlSize,m=e.className,h=e.maxLength,b=e.suffix,x=e.showCount,S=e.count,v=e.type,y=v===void 0?"text":v,C=e.classes,w=e.classNames,E=e.styles,I=e.onCompositionStart,T=e.onCompositionEnd,R=wt(e,hye),_=l.useState(!1),$=le(_,2),M=$[0],P=$[1],D=l.useRef(!1),O=l.useRef(!1),k=l.useRef(null),N=l.useRef(null),A=function(ge){k.current&&dq(k.current,ge)},L=fn(e.defaultValue,{value:e.value}),j=le(L,2),F=j[0],B=j[1],z=F==null?"":String(F),U=l.useState(null),H=le(U,2),Y=H[0],K=H[1],J=fq(S,x),ne=J.max||h,W=J.strategy(z),q=!!ne&&W>ne;l.useImperativeHandle(t,function(){var ce;return{focus:A,blur:function(){var ye;(ye=k.current)===null||ye===void 0||ye.blur()},setSelectionRange:function(ye,Ee,Ne){var _e;(_e=k.current)===null||_e===void 0||_e.setSelectionRange(ye,Ee,Ne)},select:function(){var ye;(ye=k.current)===null||ye===void 0||ye.select()},input:k.current,nativeElement:((ce=N.current)===null||ce===void 0?void 0:ce.nativeElement)||k.current}}),l.useEffect(function(){P(function(ce){return ce&&p?!1:ce})},[p]);var Z=function(ge,ye,Ee){var Ne=ye;if(!D.current&&J.exceedFormatter&&J.max&&J.strategy(ye)>J.max){if(Ne=J.exceedFormatter(ye,{max:J.max}),ye!==Ne){var _e,Pe;K([((_e=k.current)===null||_e===void 0?void 0:_e.selectionStart)||0,((Pe=k.current)===null||Pe===void 0?void 0:Pe.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;B(Ne),k.current&&Hb(k.current,ge,r,Ne)};l.useEffect(function(){if(Y){var ce;(ce=k.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,Me(Y))}},[Y]);var Q=function(ge){Z(ge,ge.target.value,{source:"change"})},ee=function(ge){D.current=!1,Z(ge,ge.currentTarget.value,{source:"compositionEnd"}),T==null||T(ge)},oe=function(ge){i&&ge.key==="Enter"&&!O.current&&(O.current=!0,i(ge)),s==null||s(ge)},se=function(ge){ge.key==="Enter"&&(O.current=!1),c==null||c(ge)},fe=function(ge){P(!0),a==null||a(ge)},te=function(ge){P(!1),o==null||o(ge)},ie=function(ge){B(""),A(),k.current&&Hb(k.current,ge,r)},pe=q&&"".concat(d,"-out-of-range"),me=function(){var ge=Mn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return de.createElement("input",he({autoComplete:n},ge,{onChange:Q,onFocus:fe,onBlur:te,onKeyDown:oe,onKeyUp:se,className:ae(d,V({},"".concat(d,"-disabled"),p),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:k,size:g,type:y,onCompositionStart:function(Ee){D.current=!0,I==null||I(Ee)},onCompositionEnd:ee}))},re=function(){var ge=Number(ne)>0;if(b||J.show){var ye=J.showFormatter?J.showFormatter({value:z,count:W,maxLength:ne}):"".concat(W).concat(ge?" / ".concat(ne):"");return de.createElement(de.Fragment,null,J.show&&de.createElement("span",{className:ae("".concat(d,"-show-count-suffix"),V({},"".concat(d,"-show-count-has-suffix"),!!b),w==null?void 0:w.count),style:X({},E==null?void 0:E.count)},ye),b)}return null};return de.createElement(TN,he({},R,{prefixCls:d,className:ae(m,pe),handleReset:ie,value:z,focused:M,triggerFocus:A,suffix:re(),disabled:p,classes:C,classNames:w,styles:E}),me())});function bye(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function yye(e,t){var n=l.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,o),u=s.substring(i);n.current={start:o,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(s))d=s.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var p=s[u-1],g=o.indexOf(p,u-1);g!==-1&&(d=g+1)}e.setSelectionRange(d,d)}catch(m){_n(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[r,a]}var xye=function(){var t=l.useState(!1),n=le(t,2),r=n[0],a=n[1];return Yt(function(){a(sy())},[]),r},Sye=200,Cye=600;function wye(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},p=function(y,C){y.preventDefault(),d(),u.current(C);function w(){u.current(C),s.current=setTimeout(w,Sye)}s.current=setTimeout(w,Cye)};l.useEffect(function(){return function(){d(),c.current.forEach(function(v){return Ht.cancel(v)})}},[]);var g=xye();if(g)return null;var m="".concat(t,"-handler"),h=ae(m,"".concat(m,"-up"),V({},"".concat(m,"-up-disabled"),a)),b=ae(m,"".concat(m,"-down"),V({},"".concat(m,"-down-disabled"),o)),x=function(){return c.current.push(Ht(d))},S={unselectable:"on",role:"button",onMouseUp:x,onMouseLeave:x};return l.createElement("div",{className:"".concat(m,"-wrap")},l.createElement("span",he({},S,{onMouseDown:function(y){p(y,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",he({},S,{onMouseDown:function(y){p(y,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function KD(e){var t=typeof e=="number"?$y(e):Ec(e).fullStr,n=t.includes(".");return n?Ec(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Eye=function(){var e=l.useRef(0),t=function(){Ht.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=Ht(function(){n()})}};var Iye=["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"],Tye=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],YD=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},XD=function(t){var n=fi(t);return n.isInvalidate()?null:n},Rye=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,p=e.disabled,g=e.readOnly,m=e.upHandler,h=e.downHandler,b=e.keyboard,x=e.changeOnWheel,S=x===void 0?!1:x,v=e.controls,y=v===void 0?!0:v;e.classNames;var C=e.stringMode,w=e.parser,E=e.formatter,I=e.precision,T=e.decimalSeparator,R=e.onChange,_=e.onInput,$=e.onPressEnter,M=e.onStep,P=e.changeOnBlur,D=P===void 0?!0:P,O=e.domRef,k=wt(e,Iye),N="".concat(n,"-input"),A=l.useRef(null),L=l.useState(!1),j=le(L,2),F=j[0],B=j[1],z=l.useRef(!1),U=l.useRef(!1),H=l.useRef(!1),Y=l.useState(function(){return fi(d??u)}),K=le(Y,2),J=K[0],ne=K[1];function W(ue){d===void 0&&ne(ue)}var q=l.useCallback(function(ue,Ie){if(!Ie)return I>=0?I:Math.max(gc(ue),gc(c))},[I,c]),Z=l.useCallback(function(ue){var Ie=String(ue);if(w)return w(Ie);var We=Ie;return T&&(We=We.replace(T,".")),We.replace(/[^\w.-]+/g,"")},[w,T]),Q=l.useRef(""),ee=l.useCallback(function(ue,Ie){if(E)return E(ue,{userTyping:Ie,input:String(Q.current)});var We=typeof ue=="number"?$y(ue):ue;if(!Ie){var He=q(We,Ie);if(IN(We)&&(T||He>=0)){var Be=T||".";We=Dv(We,Be,He)}}return We},[E,q,T]),oe=l.useState(function(){var ue=u??d;return J.isInvalidate()&&["string","number"].includes(mt(ue))?Number.isNaN(ue)?"":ue:ee(J.toString(),!1)}),se=le(oe,2),fe=se[0],te=se[1];Q.current=fe;function ie(ue,Ie){te(ee(ue.isInvalidate()?ue.toString(!1):ue.toString(!Ie),Ie))}var pe=l.useMemo(function(){return XD(i)},[i,I]),me=l.useMemo(function(){return XD(o)},[o,I]),re=l.useMemo(function(){return!pe||!J||J.isInvalidate()?!1:pe.lessEquals(J)},[pe,J]),ce=l.useMemo(function(){return!me||!J||J.isInvalidate()?!1:J.lessEquals(me)},[me,J]),ge=yye(A.current,F),ye=le(ge,2),Ee=ye[0],Ne=ye[1],_e=function(Ie){return pe&&!Ie.lessEquals(pe)?pe:me&&!me.lessEquals(Ie)?me:null},Pe=function(Ie){return!_e(Ie)},Le=function(Ie,We){var He=Ie,Be=Pe(He)||He.isEmpty();if(!He.isEmpty()&&!We&&(He=_e(He)||He,Be=!0),!g&&!p&&Be){var ke=He.toString(),Ae=q(ke,We);return Ae>=0&&(He=fi(Dv(ke,".",Ae)),Pe(He)||(He=fi(Dv(ke,".",Ae,!0)))),He.equals(J)||(W(He),R==null||R(He.isEmpty()?null:YD(C,He)),d===void 0&&ie(He,We)),He}return J},Ve=Eye(),je=function ue(Ie){if(Ee(),Q.current=Ie,te(Ie),!U.current){var We=Z(Ie),He=fi(We);He.isNaN()||Le(He,!0)}_==null||_(Ie),Ve(function(){var Be=Ie;w||(Be=Ie.replace(/。/g,".")),Be!==Ie&&ue(Be)})},De=function(){U.current=!0},Se=function(){U.current=!1,je(A.current.value)},Oe=function(Ie){je(Ie.target.value)},Re=function(Ie){var We;if(!(Ie&&re||!Ie&&ce)){z.current=!1;var He=fi(H.current?KD(c):c);Ie||(He=He.negate());var Be=(J||fi(0)).add(He.toString()),ke=Le(Be,!1);M==null||M(YD(C,ke),{offset:H.current?KD(c):c,type:Ie?"up":"down"}),(We=A.current)===null||We===void 0||We.focus()}},Ce=function(Ie){var We=fi(Z(fe)),He;We.isNaN()?He=Le(J,Ie):He=Le(We,Ie),d!==void 0?ie(J,!1):He.isNaN()||ie(He,!1)},xe=function(){z.current=!0},$e=function(Ie){var We=Ie.key,He=Ie.shiftKey;z.current=!0,H.current=He,We==="Enter"&&(U.current||(z.current=!1),Ce(!1),$==null||$(Ie)),b!==!1&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(We)&&(Re(We==="Up"||We==="ArrowUp"),Ie.preventDefault())},Fe=function(){z.current=!1,H.current=!1};l.useEffect(function(){if(S&&F){var ue=function(He){Re(He.deltaY<0),He.preventDefault()},Ie=A.current;if(Ie)return Ie.addEventListener("wheel",ue,{passive:!1}),function(){return Ie.removeEventListener("wheel",ue)}}});var be=function(){D&&Ce(!1),B(!1),z.current=!1};return Cc(function(){J.isInvalidate()||ie(J,!1)},[I,E]),Cc(function(){var ue=fi(d);ne(ue);var Ie=fi(Z(fe));(!ue.equals(Ie)||!z.current||E)&&ie(ue,z.current)},[d]),Cc(function(){E&&Ne()},[fe]),l.createElement("div",{ref:O,className:ae(n,r,V(V(V(V(V({},"".concat(n,"-focused"),F),"".concat(n,"-disabled"),p),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),J.isNaN()),"".concat(n,"-out-of-range"),!J.isInvalidate()&&!Pe(J))),style:a,onFocus:function(){B(!0)},onBlur:be,onKeyDown:$e,onKeyUp:Fe,onCompositionStart:De,onCompositionEnd:Se,onBeforeInput:xe},y&&l.createElement(wye,{prefixCls:n,upNode:m,downNode:h,upDisabled:re,downDisabled:ce,onStep:Re}),l.createElement("div",{className:"".concat(N,"-wrap")},l.createElement("input",he({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:c},k,{ref:ga(A,t),className:N,value:fe,onChange:Oe,disabled:p,readOnly:g}))))}),_ye=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,g=e.classNames,m=wt(e,Tye),h=l.useRef(null),b=l.useRef(null),x=l.useRef(null),S=function(y){x.current&&dq(x.current,y)};return l.useImperativeHandle(t,function(){return bye(x.current,{nativeElement:h.current.nativeElement||b.current})}),l.createElement(TN,{className:p,triggerFocus:S,prefixCls:o,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},l.createElement(Rye,he({prefixCls:o,disabled:n,ref:x,domRef:b,className:g==null?void 0:g.input},m)))});const $ye=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},Im(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new sn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},ZD=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},Oye=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:p,paddingBlockLG:g,paddingInlineLG:m,colorTextDescription:h,motionDurationMid:b,handleHoverColor:x,handleOpacity:S,paddingInline:v,paddingBlock:y,handleBg:C,handleActiveBg:w,colorTextDisabled:E,borderRadiusSM:I,borderRadiusLG:T,controlWidth:R,handleBorderColor:_,filledHandleBg:$,lineHeightLG:M,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),Tm(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:a}),vN(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}}})),yN(e,{[`${t}-handler-wrap`]:{background:$,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),bN(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:M,borderRadius:T,[`input${t}-input`]:{height:P(s).sub(P(n).mul(2)).equal(),padding:`${G(g)} ${G(m)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:I,[`input${t}-input`]:{height:P(c).sub(P(n).mul(2)).equal(),padding:`${G(p)} ${G(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},an(e)),YG(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:T,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:I}}},WG(e)),qG(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{width:"100%",padding:`${G(y)} ${G(v)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),xN(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function CN(e,t){const n=Bt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[H0e(n)]}const iq=on("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[CN(n,e)]}),sq=de.createContext(null);var U0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:p=!1,disabled:g}=e,m=U0e(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:x}=l.useContext(ut),S=l.useContext(sq),{isFormItemInput:v}=l.useContext(ea),y=l.useContext(pa),w=(n=(S==null?void 0:S.disabled)||g)!==null&&n!==void 0?n:y,C=l.useRef(m.value);l.useEffect(()=>{S==null||S.registerValue(m.value)},[]),l.useEffect(()=>{if(!p)return m.value!==C.current&&(S==null||S.cancelValue(C.current),S==null||S.registerValue(m.value),C.current=m.value),()=>S==null?void 0:S.cancelValue(m.value)},[m.value]);const E=h("checkbox",r),I=ar(E),[T,R,_]=iq(E,I),$=Object.assign({},m);S&&!p&&($.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),S.toggleOption&&S.toggleOption({label:i,value:m.value})},$.name=S.name,$.checked=S.value.includes(m.value));const M=oe(`${E}-wrapper`,{[`${E}-rtl`]:b==="rtl",[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:w,[`${E}-wrapper-in-form-item`]:v},x==null?void 0:x.className,a,o,_,I,R),P=oe({[`${E}-indeterminate`]:s},Q0,R),D=s?"mixed":void 0;return T(l.createElement(um,{component:"Checkbox",disabled:w},l.createElement("label",{className:M,style:Object.assign(Object.assign({},x==null?void 0:x.style),c),onMouseEnter:u,onMouseLeave:d},l.createElement(UG,Object.assign({"aria-checked":D},$,{prefixCls:E,className:P,disabled:w,ref:t})),i!==void 0&&l.createElement("span",null,i))))},lq=l.forwardRef(V0e);var W0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:s,style:c,onChange:u}=e,d=W0e(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:g}=l.useContext(ut),[m,h]=l.useState(d.value||n||[]),[b,x]=l.useState([]);l.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const S=l.useMemo(()=>a.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[a]),v=O=>{x(k=>k.filter(N=>N!==O))},y=O=>{x(k=>[].concat(De(k),[O]))},w=O=>{const k=m.indexOf(O.value),N=De(m);k===-1?N.push(O.value):N.splice(k,1),"value"in d||h(N),u==null||u(N.filter(A=>b.includes(A)).sort((A,L)=>{const j=S.findIndex(B=>B.value===A),F=S.findIndex(B=>B.value===L);return j-F}))},C=p("checkbox",o),E=`${C}-group`,I=ar(C),[T,R,_]=iq(C,I),$=Mn(d,["value","disabled"]),M=a.length?S.map(O=>l.createElement(lq,{prefixCls:C,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:m.includes(O.value),onChange:O.onChange,className:`${E}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):r,P={toggleOption:w,value:m,disabled:d.disabled,name:d.name,registerValue:y,cancelValue:v},D=oe(E,{[`${E}-rtl`]:g==="rtl"},i,s,_,I,R);return T(l.createElement("div",Object.assign({className:D,style:c},$,{ref:t}),l.createElement(sq.Provider,{value:P},M)))}),ts=lq;ts.Group=G0e;ts.__ANT_CHECKBOX=!0;const cq=l.createContext({}),q0e=e=>{const{componentCls:t}=e;return{[t]:{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"}}}},K0e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Y0e=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},c_=(e,t)=>Y0e(e,t),X0e=(e,t,n)=>({[`@media (min-width: ${G(t)})`]:Object.assign({},c_(e,n))}),Z0e=()=>({}),Q0e=()=>({}),J0e=on("Grid",q0e,Z0e),eye=on("Grid",e=>{const t=Bt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[K0e(t),c_(t,""),c_(t,"-xs"),Object.keys(n).map(r=>X0e(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Q0e);var tye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(ut),{gutter:a,wrap:o}=l.useContext(cq),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:p,className:g,children:m,flex:h,style:b}=e,x=tye(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[v,y,w]=eye(S),C={};let E={};nye.forEach(R=>{let _={};const $=e[R];typeof $=="number"?_.span=$:typeof $=="object"&&(_=$||{}),delete x[R],E=Object.assign(Object.assign({},E),{[`${S}-${R}-${_.span}`]:_.span!==void 0,[`${S}-${R}-order-${_.order}`]:_.order||_.order===0,[`${S}-${R}-offset-${_.offset}`]:_.offset||_.offset===0,[`${S}-${R}-push-${_.push}`]:_.push||_.push===0,[`${S}-${R}-pull-${_.pull}`]:_.pull||_.pull===0,[`${S}-rtl`]:r==="rtl"}),_.flex&&(E[`${S}-${R}-flex`]=!0,C[`--${S}-${R}-flex`]=WD(_.flex))});const I=oe(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${p}`]:p},g,E,y,w),T={};if(a&&a[0]>0){const R=a[0]/2;T.paddingLeft=R,T.paddingRight=R}return h&&(T.flex=WD(h),o===!1&&!T.minWidth&&(T.minWidth=0)),v(l.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},T),b),C),className:I,ref:t}),m))});var rye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const la=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:s,gutter:c=0,wrap:u}=e,d=rye(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:g}=l.useContext(ut),[m,h]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,x]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=GD(a,b),v=GD(r,b),y=l.useRef(c),w=wW();l.useEffect(()=>{const N=w.subscribe(A=>{x(A);const L=y.current||0;(!Array.isArray(L)&&typeof L=="object"||Array.isArray(L)&&(typeof L[0]=="object"||typeof L[1]=="object"))&&h(A)});return()=>w.unsubscribe(N)},[]);const C=()=>{const N=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((L,j)=>{if(typeof L=="object")for(let F=0;F0?_[0]/-2:void 0;P&&(M.marginLeft=P,M.marginRight=P);const[D,O]=_;M.rowGap=O;const k=l.useMemo(()=>({gutter:[D,O],wrap:u}),[D,O,u]);return I(l.createElement(cq.Provider,{value:k},l.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},M),i),ref:t}),s)))}),aye=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},an(e)),{borderBlockStart:`${G(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${G(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${G(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${G(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${G(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${G(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},oye=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),iye=on("Divider",e=>{const t=Bt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[aye(t)]},oye,{unitless:{orientationMargin:!0}});var sye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(ut),{prefixCls:a,type:o="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:p,variant:g="solid",plain:m,style:h}=e,b=sye(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),x=t("divider",a),[S,v,y]=iye(x),w=!!d,C=i==="left"&&s!=null,E=i==="right"&&s!=null,I=oe(x,r==null?void 0:r.className,v,y,`${x}-${o}`,{[`${x}-with-text`]:w,[`${x}-with-text-${i}`]:w,[`${x}-dashed`]:!!p,[`${x}-${g}`]:g!=="solid",[`${x}-plain`]:!!m,[`${x}-rtl`]:n==="rtl",[`${x}-no-default-orientation-margin-left`]:C,[`${x}-no-default-orientation-margin-right`]:E},c,u),T=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),R=Object.assign(Object.assign({},C&&{marginLeft:T}),E&&{marginRight:T});return S(l.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},b,{role:"separator"}),d&&o!=="vertical"&&l.createElement("span",{className:`${x}-inner-text`,style:R},d)))};var lye={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"},cye=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:lye}))},uye=l.forwardRef(cye);function u_(){return typeof BigInt=="function"}function uq(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ec(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function EN(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function gc(e){var t=String(e);if(EN(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&IN(t)?t.length-t.indexOf(".")-1:0}function Ny(e){var t=String(e);if(EN(e)){if(e>Number.MAX_SAFE_INTEGER)return String(u_()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ec("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),fye=function(){function e(t){if(Jn(this,e),V(this,"origin",""),V(this,"number",void 0),V(this,"empty",void 0),uq(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return er(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ny(this.number):this.origin}}]),e}();function pi(e){return u_()?new dye(e):new fye(e)}function Lv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Ec(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,c="".concat(t).concat(s),u="".concat(o).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var p=pi(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return Lv(p.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function pye(e){return!!(e.addonBefore||e.addonAfter)}function gye(e){return!!(e.prefix||e.suffix||e.allowClear)}function qD(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Ub(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=qD(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=qD(t,e,r),n(a);return}n(a)}}function dq(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var TN=de.forwardRef(function(e,t){var n,r,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,g=e.style,m=e.disabled,h=e.readOnly,b=e.focused,x=e.triggerFocus,S=e.allowClear,v=e.value,y=e.handleReset,w=e.hidden,C=e.classes,E=e.classNames,I=e.dataAttrs,T=e.styles,R=e.components,_=e.onClear,$=o??a,M=(R==null?void 0:R.affixWrapper)||"span",P=(R==null?void 0:R.groupWrapper)||"span",D=(R==null?void 0:R.wrapper)||"span",O=(R==null?void 0:R.groupAddon)||"span",k=l.useRef(null),N=function(J){var ie;(ie=k.current)!==null&&ie!==void 0&&ie.contains(J.target)&&(x==null||x())},A=gye(e),L=l.cloneElement($,{value:v,className:oe($.props.className,!A&&(E==null?void 0:E.variant))||null}),j=l.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:j.current||k.current}}),A){var F=null;if(S){var B=!m&&!h&&v,z="".concat(i,"-clear-icon"),U=mt(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";F=de.createElement("span",{onClick:function(J){y==null||y(J),_==null||_()},onMouseDown:function(J){return J.preventDefault()},className:oe(z,V(V({},"".concat(z,"-hidden"),!B),"".concat(z,"-has-suffix"),!!c)),role:"button",tabIndex:-1},U)}var H="".concat(i,"-affix-wrapper"),K=oe(H,V(V(V(V(V({},"".concat(i,"-disabled"),m),"".concat(H,"-disabled"),m),"".concat(H,"-focused"),b),"".concat(H,"-readonly"),h),"".concat(H,"-input-with-clear-btn"),c&&S&&v),C==null?void 0:C.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),Y=(c||S)&&de.createElement("span",{className:oe("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:T==null?void 0:T.suffix},F,c);L=de.createElement(M,be({className:K,style:T==null?void 0:T.affixWrapper,onClick:N},I==null?void 0:I.affixWrapper,{ref:k}),s&&de.createElement("span",{className:oe("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:T==null?void 0:T.prefix},s),L,Y)}if(pye(e)){var ee="".concat(i,"-group"),ae="".concat(ee,"-addon"),W="".concat(ee,"-wrapper"),q=oe("".concat(i,"-wrapper"),ee,C==null?void 0:C.wrapper,E==null?void 0:E.wrapper),Z=oe(W,V({},"".concat(W,"-disabled"),m),C==null?void 0:C.group,E==null?void 0:E.groupWrapper);L=de.createElement(P,{className:Z,ref:j},de.createElement(D,{className:q},u&&de.createElement(O,{className:ae},u),L,d&&de.createElement(O,{className:ae},d)))}return de.cloneElement(L,{className:oe((n=L.props)===null||n===void 0?void 0:n.className,p)||null,style:X(X({},(r=L.props)===null||r===void 0?void 0:r.style),g),hidden:w})}),mye=["show"];function fq(e,t){return l.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=X(X({},n),e);var r=n,a=r.show,o=Ct(r,mye);return X(X({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var hye=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],vye=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,p=e.disabled,g=e.htmlSize,m=e.className,h=e.maxLength,b=e.suffix,x=e.showCount,S=e.count,v=e.type,y=v===void 0?"text":v,w=e.classes,C=e.classNames,E=e.styles,I=e.onCompositionStart,T=e.onCompositionEnd,R=Ct(e,hye),_=l.useState(!1),$=ce(_,2),M=$[0],P=$[1],D=l.useRef(!1),O=l.useRef(!1),k=l.useRef(null),N=l.useRef(null),A=function(me){k.current&&dq(k.current,me)},L=fn(e.defaultValue,{value:e.value}),j=ce(L,2),F=j[0],B=j[1],z=F==null?"":String(F),U=l.useState(null),H=ce(U,2),K=H[0],Y=H[1],ee=fq(S,x),ae=ee.max||h,W=ee.strategy(z),q=!!ae&&W>ae;l.useImperativeHandle(t,function(){var ue;return{focus:A,blur:function(){var xe;(xe=k.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,Ee,ke){var $e;($e=k.current)===null||$e===void 0||$e.setSelectionRange(xe,Ee,ke)},select:function(){var xe;(xe=k.current)===null||xe===void 0||xe.select()},input:k.current,nativeElement:((ue=N.current)===null||ue===void 0?void 0:ue.nativeElement)||k.current}}),l.useEffect(function(){P(function(ue){return ue&&p?!1:ue})},[p]);var Z=function(me,xe,Ee){var ke=xe;if(!D.current&&ee.exceedFormatter&&ee.max&&ee.strategy(xe)>ee.max){if(ke=ee.exceedFormatter(xe,{max:ee.max}),xe!==ke){var $e,Le;Y([(($e=k.current)===null||$e===void 0?void 0:$e.selectionStart)||0,((Le=k.current)===null||Le===void 0?void 0:Le.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;B(ke),k.current&&Ub(k.current,me,r,ke)};l.useEffect(function(){if(K){var ue;(ue=k.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,De(K))}},[K]);var Q=function(me){Z(me,me.target.value,{source:"change"})},J=function(me){D.current=!1,Z(me,me.currentTarget.value,{source:"compositionEnd"}),T==null||T(me)},ie=function(me){i&&me.key==="Enter"&&!O.current&&(O.current=!0,i(me)),s==null||s(me)},le=function(me){me.key==="Enter"&&(O.current=!1),c==null||c(me)},fe=function(me){P(!0),a==null||a(me)},te=function(me){P(!1),o==null||o(me)},se=function(me){B(""),A(),k.current&&Ub(k.current,me,r)},pe=q&&"".concat(d,"-out-of-range"),he=function(){var me=Mn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return de.createElement("input",be({autoComplete:n},me,{onChange:Q,onFocus:fe,onBlur:te,onKeyDown:ie,onKeyUp:le,className:oe(d,V({},"".concat(d,"-disabled"),p),C==null?void 0:C.input),style:E==null?void 0:E.input,ref:k,size:g,type:y,onCompositionStart:function(Ee){D.current=!0,I==null||I(Ee)},onCompositionEnd:J}))},re=function(){var me=Number(ae)>0;if(b||ee.show){var xe=ee.showFormatter?ee.showFormatter({value:z,count:W,maxLength:ae}):"".concat(W).concat(me?" / ".concat(ae):"");return de.createElement(de.Fragment,null,ee.show&&de.createElement("span",{className:oe("".concat(d,"-show-count-suffix"),V({},"".concat(d,"-show-count-has-suffix"),!!b),C==null?void 0:C.count),style:X({},E==null?void 0:E.count)},xe),b)}return null};return de.createElement(TN,be({},R,{prefixCls:d,className:oe(m,pe),handleReset:se,value:z,focused:M,triggerFocus:A,suffix:re(),disabled:p,classes:w,classNames:C,styles:E}),he())});function bye(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function yye(e,t){var n=l.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,o),u=s.substring(i);n.current={start:o,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(s))d=s.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var p=s[u-1],g=o.indexOf(p,u-1);g!==-1&&(d=g+1)}e.setSelectionRange(d,d)}catch(m){$n(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[r,a]}var xye=function(){var t=l.useState(!1),n=ce(t,2),r=n[0],a=n[1];return Yt(function(){a(cy())},[]),r},Sye=200,wye=600;function Cye(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},p=function(y,w){y.preventDefault(),d(),u.current(w);function C(){u.current(w),s.current=setTimeout(C,Sye)}s.current=setTimeout(C,wye)};l.useEffect(function(){return function(){d(),c.current.forEach(function(v){return Ut.cancel(v)})}},[]);var g=xye();if(g)return null;var m="".concat(t,"-handler"),h=oe(m,"".concat(m,"-up"),V({},"".concat(m,"-up-disabled"),a)),b=oe(m,"".concat(m,"-down"),V({},"".concat(m,"-down-disabled"),o)),x=function(){return c.current.push(Ut(d))},S={unselectable:"on",role:"button",onMouseUp:x,onMouseLeave:x};return l.createElement("div",{className:"".concat(m,"-wrap")},l.createElement("span",be({},S,{onMouseDown:function(y){p(y,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",be({},S,{onMouseDown:function(y){p(y,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function KD(e){var t=typeof e=="number"?Ny(e):Ec(e).fullStr,n=t.includes(".");return n?Ec(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Eye=function(){var e=l.useRef(0),t=function(){Ut.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=Ut(function(){n()})}};var Iye=["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"],Tye=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],YD=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},XD=function(t){var n=pi(t);return n.isInvalidate()?null:n},Rye=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,p=e.disabled,g=e.readOnly,m=e.upHandler,h=e.downHandler,b=e.keyboard,x=e.changeOnWheel,S=x===void 0?!1:x,v=e.controls,y=v===void 0?!0:v;e.classNames;var w=e.stringMode,C=e.parser,E=e.formatter,I=e.precision,T=e.decimalSeparator,R=e.onChange,_=e.onInput,$=e.onPressEnter,M=e.onStep,P=e.changeOnBlur,D=P===void 0?!0:P,O=e.domRef,k=Ct(e,Iye),N="".concat(n,"-input"),A=l.useRef(null),L=l.useState(!1),j=ce(L,2),F=j[0],B=j[1],z=l.useRef(!1),U=l.useRef(!1),H=l.useRef(!1),K=l.useState(function(){return pi(d??u)}),Y=ce(K,2),ee=Y[0],ae=Y[1];function W(ne){d===void 0&&ae(ne)}var q=l.useCallback(function(ne,ve){if(!ve)return I>=0?I:Math.max(gc(ne),gc(c))},[I,c]),Z=l.useCallback(function(ne){var ve=String(ne);if(C)return C(ve);var _e=ve;return T&&(_e=_e.replace(T,".")),_e.replace(/[^\w.-]+/g,"")},[C,T]),Q=l.useRef(""),J=l.useCallback(function(ne,ve){if(E)return E(ne,{userTyping:ve,input:String(Q.current)});var _e=typeof ne=="number"?Ny(ne):ne;if(!ve){var ze=q(_e,ve);if(IN(_e)&&(T||ze>=0)){var Ue=T||".";_e=Lv(_e,Ue,ze)}}return _e},[E,q,T]),ie=l.useState(function(){var ne=u??d;return ee.isInvalidate()&&["string","number"].includes(mt(ne))?Number.isNaN(ne)?"":ne:J(ee.toString(),!1)}),le=ce(ie,2),fe=le[0],te=le[1];Q.current=fe;function se(ne,ve){te(J(ne.isInvalidate()?ne.toString(!1):ne.toString(!ve),ve))}var pe=l.useMemo(function(){return XD(i)},[i,I]),he=l.useMemo(function(){return XD(o)},[o,I]),re=l.useMemo(function(){return!pe||!ee||ee.isInvalidate()?!1:pe.lessEquals(ee)},[pe,ee]),ue=l.useMemo(function(){return!he||!ee||ee.isInvalidate()?!1:ee.lessEquals(he)},[he,ee]),me=yye(A.current,F),xe=ce(me,2),Ee=xe[0],ke=xe[1],$e=function(ve){return pe&&!ve.lessEquals(pe)?pe:he&&!he.lessEquals(ve)?he:null},Le=function(ve){return!$e(ve)},je=function(ve,_e){var ze=ve,Ue=Le(ze)||ze.isEmpty();if(!ze.isEmpty()&&!_e&&(ze=$e(ze)||ze,Ue=!0),!g&&!p&&Ue){var Ae=ze.toString(),Oe=q(Ae,_e);return Oe>=0&&(ze=pi(Lv(Ae,".",Oe)),Le(ze)||(ze=pi(Lv(Ae,".",Oe,!0)))),ze.equals(ee)||(W(ze),R==null||R(ze.isEmpty()?null:YD(w,ze)),d===void 0&&se(ze,_e)),ze}return ee},He=Eye(),Be=function ne(ve){if(Ee(),Q.current=ve,te(ve),!U.current){var _e=Z(ve),ze=pi(_e);ze.isNaN()||je(ze,!0)}_==null||_(ve),He(function(){var Ue=ve;C||(Ue=ve.replace(/。/g,".")),Ue!==ve&&ne(Ue)})},Pe=function(){U.current=!0},Se=function(){U.current=!1,Be(A.current.value)},Ne=function(ve){Be(ve.target.value)},Te=function(ve){var _e;if(!(ve&&re||!ve&&ue)){z.current=!1;var ze=pi(H.current?KD(c):c);ve||(ze=ze.negate());var Ue=(ee||pi(0)).add(ze.toString()),Ae=je(Ue,!1);M==null||M(YD(w,Ae),{offset:H.current?KD(c):c,type:ve?"up":"down"}),(_e=A.current)===null||_e===void 0||_e.focus()}},we=function(ve){var _e=pi(Z(fe)),ze;_e.isNaN()?ze=je(ee,ve):ze=je(_e,ve),d!==void 0?se(ee,!1):ze.isNaN()||se(ze,!1)},Me=function(){z.current=!0},Ge=function(ve){var _e=ve.key,ze=ve.shiftKey;z.current=!0,H.current=ze,_e==="Enter"&&(U.current||(z.current=!1),we(!1),$==null||$(ve)),b!==!1&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(_e)&&(Te(_e==="Up"||_e==="ArrowUp"),ve.preventDefault())},st=function(){z.current=!1,H.current=!1};l.useEffect(function(){if(S&&F){var ne=function(ze){Te(ze.deltaY<0),ze.preventDefault()},ve=A.current;if(ve)return ve.addEventListener("wheel",ne,{passive:!1}),function(){return ve.removeEventListener("wheel",ne)}}});var ge=function(){D&&we(!1),B(!1),z.current=!1};return wc(function(){ee.isInvalidate()||se(ee,!1)},[I,E]),wc(function(){var ne=pi(d);ae(ne);var ve=pi(Z(fe));(!ne.equals(ve)||!z.current||E)&&se(ne,z.current)},[d]),wc(function(){E&&ke()},[fe]),l.createElement("div",{ref:O,className:oe(n,r,V(V(V(V(V({},"".concat(n,"-focused"),F),"".concat(n,"-disabled"),p),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),ee.isNaN()),"".concat(n,"-out-of-range"),!ee.isInvalidate()&&!Le(ee))),style:a,onFocus:function(){B(!0)},onBlur:ge,onKeyDown:Ge,onKeyUp:st,onCompositionStart:Pe,onCompositionEnd:Se,onBeforeInput:Me},y&&l.createElement(Cye,{prefixCls:n,upNode:m,downNode:h,upDisabled:re,downDisabled:ue,onStep:Te}),l.createElement("div",{className:"".concat(N,"-wrap")},l.createElement("input",be({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":ee.isInvalidate()?null:ee.toString(),step:c},k,{ref:ma(A,t),className:N,value:fe,onChange:Ne,disabled:p,readOnly:g}))))}),_ye=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,g=e.classNames,m=Ct(e,Tye),h=l.useRef(null),b=l.useRef(null),x=l.useRef(null),S=function(y){x.current&&dq(x.current,y)};return l.useImperativeHandle(t,function(){return bye(x.current,{nativeElement:h.current.nativeElement||b.current})}),l.createElement(TN,{className:p,triggerFocus:S,prefixCls:o,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},l.createElement(Rye,be({prefixCls:o,disabled:n,ref:x,domRef:b,className:g==null?void 0:g.input},m)))});const $ye=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},Tm(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new sn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},ZD=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},Oye=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:p,paddingBlockLG:g,paddingInlineLG:m,colorTextDescription:h,motionDurationMid:b,handleHoverColor:x,handleOpacity:S,paddingInline:v,paddingBlock:y,handleBg:w,handleActiveBg:C,colorTextDisabled:E,borderRadiusSM:I,borderRadiusLG:T,controlWidth:R,handleBorderColor:_,filledHandleBg:$,lineHeightLG:M,calc:P}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),Rm(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:a}),vN(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}}})),yN(e,{[`${t}-handler-wrap`]:{background:$,[`${t}-handler-down`]:{borderBlockStart:`${G(n)} ${r} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),bN(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:M,borderRadius:T,[`input${t}-input`]:{height:P(s).sub(P(n).mul(2)).equal(),padding:`${G(g)} ${G(m)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:I,[`input${t}-input`]:{height:P(c).sub(P(n).mul(2)).equal(),padding:`${G(p)} ${G(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},an(e)),YG(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:T,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:I}}},WG(e)),qG(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{width:"100%",padding:`${G(y)} ${G(v)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),xN(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${G(n)} ${r} ${_}`,transition:`all ${b} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${G(n)} ${r} ${_}`,transition:`all ${b} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:x}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},rf()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},ZD(e,"lg")),ZD(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` @@ -361,7 +361,7 @@ html body { `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:E}})}]},Nye=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:p,motionDurationMid:g}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${G(n)} 0`}},Tm(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${G(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${G(p)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${g}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},kye=on("InputNumber",e=>{const t=Ft(e,Em(e));return[Oye(t),Nye(t),dm(t)]},$ye,{unitless:{handleOpacity:!0}});var Aye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(lt),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:p,prefix:g,suffix:m,bordered:h,readOnly:b,status:x,controls:S,variant:v}=e,y=Aye(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),w=ar(C),[E,I,T]=kye(C,w),{compactSize:R,compactItemClassnames:_}=Ds(C,r);let $=l.createElement(uye,{className:`${C}-handler-up-inner`}),M=l.createElement(dy,{className:`${C}-handler-down-inner`});const P=typeof S=="boolean"?S:void 0;typeof S=="object"&&($=typeof S.upIcon>"u"?$:l.createElement("span",{className:`${C}-handler-up-inner`},S.upIcon),M=typeof S.downIcon>"u"?M:l.createElement("span",{className:`${C}-handler-down-inner`},S.downIcon));const{hasFeedback:D,status:O,isFormItemInput:k,feedbackIcon:N}=l.useContext(ea),A=Vl(O,x),L=Lr(J=>{var ne;return(ne=s??R)!==null&&ne!==void 0?ne:J}),j=l.useContext(fa),F=c??j,[B,z]=Jc("inputNumber",v,h),U=D&&l.createElement(l.Fragment,null,N),H=ae({[`${C}-lg`]:L==="large",[`${C}-sm`]:L==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:k},I),Y=`${C}-group`,K=l.createElement(_ye,Object.assign({ref:a,disabled:F,className:ae(T,w,o,i,_),upHandler:$,downHandler:M,prefixCls:C,readOnly:b,controls:P,prefix:g,suffix:U||m,addonBefore:d&&l.createElement(Ji,{form:!0,space:!0},d),addonAfter:p&&l.createElement(Ji,{form:!0,space:!0},p),classNames:{input:H,variant:ae({[`${C}-${B}`]:z},$s(C,A,D)),affixWrapper:ae({[`${C}-affix-wrapper-sm`]:L==="small",[`${C}-affix-wrapper-lg`]:L==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:S===!1},I),wrapper:ae({[`${Y}-rtl`]:r==="rtl"},I),groupWrapper:ae({[`${C}-group-wrapper-sm`]:L==="small",[`${C}-group-wrapper-lg`]:L==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${B}`]:z},$s(`${C}-group-wrapper`,A,D),I)}},y));return E(K)}),gq=pq,Mye=e=>l.createElement(ki,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(pq,Object.assign({},e)));gq._InternalPanelDoNotUseOrYouWillBeFired=Mye;const Dye=e=>{const{getPrefixCls:t,direction:n}=l.useContext(lt),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[s,c]=CN(i),u=ae(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),d=l.useContext(ea),p=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(ea.Provider,{value:p},e.children)))},mq=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(Hl,null)}),t};function hq(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Pye(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Lye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,status:o,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:p,addonAfter:g,addonBefore:m,className:h,style:b,styles:x,rootClassName:S,onChange:v,classNames:y,variant:C}=e,w=Lye(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:I,input:T}=de.useContext(lt),R=E("input",r),_=l.useRef(null),$=ar(R),[M,P,D]=CN(R,$),{compactSize:O,compactItemClassnames:k}=Ds(R,I),N=Lr(Q=>{var ee;return(ee=i??O)!==null&&ee!==void 0?ee:Q}),A=de.useContext(fa),L=s??A,{status:j,hasFeedback:F,feedbackIcon:B}=l.useContext(ea),z=Vl(j,o),U=Pye(e)||!!F;l.useRef(U);const H=hq(_,!0),Y=Q=>{H(),c==null||c(Q)},K=Q=>{H(),u==null||u(Q)},J=Q=>{H(),v==null||v(Q)},ne=(F||d)&&de.createElement(de.Fragment,null,d,F&&B),W=mq(p??(T==null?void 0:T.allowClear)),[q,Z]=Jc("input",C,a);return M(de.createElement(vye,Object.assign({ref:ga(t,_),prefixCls:R,autoComplete:T==null?void 0:T.autoComplete},w,{disabled:L,onBlur:Y,onFocus:K,style:Object.assign(Object.assign({},T==null?void 0:T.style),b),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),x),suffix:ne,allowClear:W,className:ae(h,S,D,$,k,T==null?void 0:T.className),onChange:J,addonBefore:m&&de.createElement(Ji,{form:!0,space:!0},m),addonAfter:g&&de.createElement(Ji,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},y),T==null?void 0:T.classNames),{input:ae({[`${R}-sm`]:N==="small",[`${R}-lg`]:N==="large",[`${R}-rtl`]:I==="rtl"},y==null?void 0:y.input,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.input,P),variant:ae({[`${R}-${q}`]:Z},$s(R,z)),affixWrapper:ae({[`${R}-affix-wrapper-sm`]:N==="small",[`${R}-affix-wrapper-lg`]:N==="large",[`${R}-affix-wrapper-rtl`]:I==="rtl"},P),wrapper:ae({[`${R}-group-rtl`]:I==="rtl"},P),groupWrapper:ae({[`${R}-group-wrapper-sm`]:N==="small",[`${R}-group-wrapper-lg`]:N==="large",[`${R}-group-wrapper-rtl`]:I==="rtl",[`${R}-group-wrapper-${q}`]:Z},$s(`${R}-group-wrapper`,z,F),P)})})))}),Fye=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Bye=on(["Input","OTP"],e=>{const t=Ft(e,Em(e));return[Fye(t)]},Im);var zye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:n,onChange:r,onActiveChange:a,index:o,mask:i}=e,s=zye(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=h=>{r(o,h.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const p=()=>{Ht(()=>{var h;const b=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===b&&b&&b.select()})},g=h=>{let{key:b}=h;b==="ArrowLeft"?a(o-1):b==="ArrowRight"&&a(o+1),p()},m=h=>{h.key==="Backspace"&&!n&&a(o-1),p()};return l.createElement(Oy,Object.assign({type:i===!0?"password":"text"},s,{ref:d,value:c,onInput:u,onFocus:p,onKeyDown:g,onKeyUp:m,onMouseDown:p,onMouseUp:p}))});var Uye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:p,autoFocus:g,mask:m,type:h}=e,b=Uye(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]),{getPrefixCls:x,direction:S}=l.useContext(lt),v=x("otp",n),y=ur(b,{aria:!0,data:!0,attr:!0}),C=ar(v),[w,E,I]=Bye(v,C),T=Lr(B=>a??B),R=l.useContext(ea),_=Vl(R.status,p),$=l.useMemo(()=>Object.assign(Object.assign({},R),{status:_,hasFeedback:!1,feedbackIcon:null}),[R,_]),M=l.useRef(null),P=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var B;(B=P.current[0])===null||B===void 0||B.focus()},blur:()=>{var B;for(let z=0;zc?c(B):B,[O,k]=l.useState(jh(D(o||"")));l.useEffect(()=>{i!==void 0&&k(jh(i))},[i]);const N=Gt(B=>{k(B),s&&B.length===r&&B.every(z=>z)&&B.some((z,U)=>O[U]!==z)&&s(B.join(""))}),A=Gt((B,z)=>{let U=Me(O);for(let Y=0;Y=0&&!U[Y];Y-=1)U.pop();const H=D(U.map(Y=>Y||" ").join(""));return U=jh(H).map((Y,K)=>Y===" "&&!U[K]?U[K]:Y),U}),L=(B,z)=>{var U;const H=A(B,z),Y=Math.min(B+z.length,r-1);Y!==B&&((U=P.current[Y])===null||U===void 0||U.focus()),N(H)},j=B=>{var z;(z=P.current[B])===null||z===void 0||z.focus()},F={variant:u,disabled:d,status:_,mask:m,type:h};return w(l.createElement("div",Object.assign({},y,{ref:M,className:ae(v,{[`${v}-sm`]:T==="small",[`${v}-lg`]:T==="large",[`${v}-rtl`]:S==="rtl"},I,E)}),l.createElement(ea.Provider,{value:$},Array.from({length:r}).map((B,z)=>{const U=`otp-${z}`,H=O[z]||"";return l.createElement(Hye,Object.assign({ref:Y=>{P.current[z]=Y},key:U,index:z,size:T,htmlSize:1,className:`${v}-input`,onChange:L,value:H,onActiveChange:j,autoFocus:z===0&&g},F))}))))});var Wye={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"},Gye=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Wye}))},qye=l.forwardRef(Gye),Kye={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"},Yye=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Kye}))},kl=l.forwardRef(Yye),Xye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae?l.createElement(kl,null):l.createElement(qye,null),Qye={click:"onClick",hover:"onMouseOver"},Jye=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=Zye}=e,i=l.useContext(fa),s=n??i,c=typeof a=="object"&&a.visible!==void 0,[u,d]=l.useState(()=>c?a.visible:!1),p=l.useRef(null);l.useEffect(()=>{c&&d(a.visible)},[c,a]);const g=hq(p),m=()=>{s||(u&&g(),d(_=>{var $;const M=!_;return typeof a=="object"&&(($=a.onVisibleChange)===null||$===void 0||$.call(a,M)),M}))},h=_=>{const $=Qye[r]||"",M=o(u),P={[$]:m,className:`${_}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return l.cloneElement(l.isValidElement(M)?M:l.createElement("span",null,M),P)},{className:b,prefixCls:x,inputPrefixCls:S,size:v}=e,y=Xye(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=l.useContext(lt),w=C("input",S),E=C("input-password",x),I=a&&h(E),T=ae(E,b,{[`${E}-${v}`]:!!v}),R=Object.assign(Object.assign({},Mn(y,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:T,prefixCls:w,suffix:I});return v&&(R.size=v),l.createElement(Oy,Object.assign({ref:ga(t,p)},R))});var exe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:g,onCompositionStart:m,onCompositionEnd:h}=e,b=exe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:S}=l.useContext(lt),v=l.useRef(!1),y=x("input-search",n),C=x("input",r),{compactSize:w}=Ds(y,S),E=Lr(j=>{var F;return(F=o??w)!==null&&F!==void 0?F:j}),I=l.useRef(null),T=j=>{j!=null&&j.target&&j.type==="click"&&p&&p(j.target.value,j,{source:"clear"}),g==null||g(j)},R=j=>{var F;document.activeElement===((F=I.current)===null||F===void 0?void 0:F.input)&&j.preventDefault()},_=j=>{var F,B;p&&p((B=(F=I.current)===null||F===void 0?void 0:F.input)===null||B===void 0?void 0:B.value,j,{source:"input"})},$=j=>{v.current||u||_(j)},M=typeof s=="boolean"?l.createElement(ym,null):null,P=`${y}-button`;let D;const O=s||{},k=O.type&&O.type.__ANT_BUTTON===!0;k||O.type==="button"?D=$r(O,Object.assign({onMouseDown:R,onClick:j=>{var F,B;(B=(F=O==null?void 0:O.props)===null||F===void 0?void 0:F.onClick)===null||B===void 0||B.call(F,j),_(j)},key:"enterButton"},k?{className:P,size:E}:{})):D=l.createElement(nt,{className:P,type:s?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:R,onClick:_,loading:u,icon:M},s),c&&(D=[D,$r(c,{key:"addonAfter"})]);const N=ae(y,{[`${y}-rtl`]:S==="rtl",[`${y}-${E}`]:!!E,[`${y}-with-button`]:!!s},a),A=j=>{v.current=!0,m==null||m(j)},L=j=>{v.current=!1,h==null||h(j)};return l.createElement(Oy,Object.assign({ref:ga(I,t),onPressEnter:$},b,{size:E,onCompositionStart:A,onCompositionEnd:L,prefixCls:C,addonAfter:D,suffix:i,onChange:T,className:N,disabled:d}))});var nxe=` + `]:{color:E}})}]},Nye=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:p,motionDurationMid:g}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${G(n)} 0`}},Rm(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${G(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${G(p)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${g}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},kye=on("InputNumber",e=>{const t=Bt(e,Im(e));return[Oye(t),Nye(t),fm(t)]},$ye,{unitless:{handleOpacity:!0}});var Aye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(ut),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:p,prefix:g,suffix:m,bordered:h,readOnly:b,status:x,controls:S,variant:v}=e,y=Aye(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",u),C=ar(w),[E,I,T]=kye(w,C),{compactSize:R,compactItemClassnames:_}=Ps(w,r);let $=l.createElement(uye,{className:`${w}-handler-up-inner`}),M=l.createElement(py,{className:`${w}-handler-down-inner`});const P=typeof S=="boolean"?S:void 0;typeof S=="object"&&($=typeof S.upIcon>"u"?$:l.createElement("span",{className:`${w}-handler-up-inner`},S.upIcon),M=typeof S.downIcon>"u"?M:l.createElement("span",{className:`${w}-handler-down-inner`},S.downIcon));const{hasFeedback:D,status:O,isFormItemInput:k,feedbackIcon:N}=l.useContext(ea),A=Vl(O,x),L=Lr(ee=>{var ae;return(ae=s??R)!==null&&ae!==void 0?ae:ee}),j=l.useContext(pa),F=c??j,[B,z]=Jc("inputNumber",v,h),U=D&&l.createElement(l.Fragment,null,N),H=oe({[`${w}-lg`]:L==="large",[`${w}-sm`]:L==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:k},I),K=`${w}-group`,Y=l.createElement(_ye,Object.assign({ref:a,disabled:F,className:oe(T,C,o,i,_),upHandler:$,downHandler:M,prefixCls:w,readOnly:b,controls:P,prefix:g,suffix:U||m,addonBefore:d&&l.createElement(es,{form:!0,space:!0},d),addonAfter:p&&l.createElement(es,{form:!0,space:!0},p),classNames:{input:H,variant:oe({[`${w}-${B}`]:z},Ns(w,A,D)),affixWrapper:oe({[`${w}-affix-wrapper-sm`]:L==="small",[`${w}-affix-wrapper-lg`]:L==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:S===!1},I),wrapper:oe({[`${K}-rtl`]:r==="rtl"},I),groupWrapper:oe({[`${w}-group-wrapper-sm`]:L==="small",[`${w}-group-wrapper-lg`]:L==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${B}`]:z},Ns(`${w}-group-wrapper`,A,D),I)}},y));return E(Y)}),gq=pq,Mye=e=>l.createElement(Ai,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(pq,Object.assign({},e)));gq._InternalPanelDoNotUseOrYouWillBeFired=Mye;const Dye=e=>{const{getPrefixCls:t,direction:n}=l.useContext(ut),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[s,c]=wN(i),u=oe(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),d=l.useContext(ea),p=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(ea.Provider,{value:p},e.children)))},mq=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(Hl,null)}),t};function hq(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Pye(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Lye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,status:o,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:p,addonAfter:g,addonBefore:m,className:h,style:b,styles:x,rootClassName:S,onChange:v,classNames:y,variant:w}=e,C=Lye(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:I,input:T}=de.useContext(ut),R=E("input",r),_=l.useRef(null),$=ar(R),[M,P,D]=wN(R,$),{compactSize:O,compactItemClassnames:k}=Ps(R,I),N=Lr(Q=>{var J;return(J=i??O)!==null&&J!==void 0?J:Q}),A=de.useContext(pa),L=s??A,{status:j,hasFeedback:F,feedbackIcon:B}=l.useContext(ea),z=Vl(j,o),U=Pye(e)||!!F;l.useRef(U);const H=hq(_,!0),K=Q=>{H(),c==null||c(Q)},Y=Q=>{H(),u==null||u(Q)},ee=Q=>{H(),v==null||v(Q)},ae=(F||d)&&de.createElement(de.Fragment,null,d,F&&B),W=mq(p??(T==null?void 0:T.allowClear)),[q,Z]=Jc("input",w,a);return M(de.createElement(vye,Object.assign({ref:ma(t,_),prefixCls:R,autoComplete:T==null?void 0:T.autoComplete},C,{disabled:L,onBlur:K,onFocus:Y,style:Object.assign(Object.assign({},T==null?void 0:T.style),b),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),x),suffix:ae,allowClear:W,className:oe(h,S,D,$,k,T==null?void 0:T.className),onChange:ee,addonBefore:m&&de.createElement(es,{form:!0,space:!0},m),addonAfter:g&&de.createElement(es,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},y),T==null?void 0:T.classNames),{input:oe({[`${R}-sm`]:N==="small",[`${R}-lg`]:N==="large",[`${R}-rtl`]:I==="rtl"},y==null?void 0:y.input,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.input,P),variant:oe({[`${R}-${q}`]:Z},Ns(R,z)),affixWrapper:oe({[`${R}-affix-wrapper-sm`]:N==="small",[`${R}-affix-wrapper-lg`]:N==="large",[`${R}-affix-wrapper-rtl`]:I==="rtl"},P),wrapper:oe({[`${R}-group-rtl`]:I==="rtl"},P),groupWrapper:oe({[`${R}-group-wrapper-sm`]:N==="small",[`${R}-group-wrapper-lg`]:N==="large",[`${R}-group-wrapper-rtl`]:I==="rtl",[`${R}-group-wrapper-${q}`]:Z},Ns(`${R}-group-wrapper`,z,F),P)})})))}),Fye=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Bye=on(["Input","OTP"],e=>{const t=Bt(e,Im(e));return[Fye(t)]},Tm);var zye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:n,onChange:r,onActiveChange:a,index:o,mask:i}=e,s=zye(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=h=>{r(o,h.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const p=()=>{Ut(()=>{var h;const b=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===b&&b&&b.select()})},g=h=>{let{key:b}=h;b==="ArrowLeft"?a(o-1):b==="ArrowRight"&&a(o+1),p()},m=h=>{h.key==="Backspace"&&!n&&a(o-1),p()};return l.createElement(ky,Object.assign({type:i===!0?"password":"text"},s,{ref:d,value:c,onInput:u,onFocus:p,onKeyDown:g,onKeyUp:m,onMouseDown:p,onMouseUp:p}))});var Uye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:p,autoFocus:g,mask:m,type:h}=e,b=Uye(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type"]),{getPrefixCls:x,direction:S}=l.useContext(ut),v=x("otp",n),y=ur(b,{aria:!0,data:!0,attr:!0}),w=ar(v),[C,E,I]=Bye(v,w),T=Lr(B=>a??B),R=l.useContext(ea),_=Vl(R.status,p),$=l.useMemo(()=>Object.assign(Object.assign({},R),{status:_,hasFeedback:!1,feedbackIcon:null}),[R,_]),M=l.useRef(null),P=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var B;(B=P.current[0])===null||B===void 0||B.focus()},blur:()=>{var B;for(let z=0;zc?c(B):B,[O,k]=l.useState(Fh(D(o||"")));l.useEffect(()=>{i!==void 0&&k(Fh(i))},[i]);const N=qt(B=>{k(B),s&&B.length===r&&B.every(z=>z)&&B.some((z,U)=>O[U]!==z)&&s(B.join(""))}),A=qt((B,z)=>{let U=De(O);for(let K=0;K=0&&!U[K];K-=1)U.pop();const H=D(U.map(K=>K||" ").join(""));return U=Fh(H).map((K,Y)=>K===" "&&!U[Y]?U[Y]:K),U}),L=(B,z)=>{var U;const H=A(B,z),K=Math.min(B+z.length,r-1);K!==B&&((U=P.current[K])===null||U===void 0||U.focus()),N(H)},j=B=>{var z;(z=P.current[B])===null||z===void 0||z.focus()},F={variant:u,disabled:d,status:_,mask:m,type:h};return C(l.createElement("div",Object.assign({},y,{ref:M,className:oe(v,{[`${v}-sm`]:T==="small",[`${v}-lg`]:T==="large",[`${v}-rtl`]:S==="rtl"},I,E)}),l.createElement(ea.Provider,{value:$},Array.from({length:r}).map((B,z)=>{const U=`otp-${z}`,H=O[z]||"";return l.createElement(Hye,Object.assign({ref:K=>{P.current[z]=K},key:U,index:z,size:T,htmlSize:1,className:`${v}-input`,onChange:L,value:H,onActiveChange:j,autoFocus:z===0&&g},F))}))))});var Wye={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"},Gye=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Wye}))},qye=l.forwardRef(Gye),Kye={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"},Yye=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Kye}))},kl=l.forwardRef(Yye),Xye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae?l.createElement(kl,null):l.createElement(qye,null),Qye={click:"onClick",hover:"onMouseOver"},Jye=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=Zye}=e,i=l.useContext(pa),s=n??i,c=typeof a=="object"&&a.visible!==void 0,[u,d]=l.useState(()=>c?a.visible:!1),p=l.useRef(null);l.useEffect(()=>{c&&d(a.visible)},[c,a]);const g=hq(p),m=()=>{s||(u&&g(),d(_=>{var $;const M=!_;return typeof a=="object"&&(($=a.onVisibleChange)===null||$===void 0||$.call(a,M)),M}))},h=_=>{const $=Qye[r]||"",M=o(u),P={[$]:m,className:`${_}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return l.cloneElement(l.isValidElement(M)?M:l.createElement("span",null,M),P)},{className:b,prefixCls:x,inputPrefixCls:S,size:v}=e,y=Xye(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=l.useContext(ut),C=w("input",S),E=w("input-password",x),I=a&&h(E),T=oe(E,b,{[`${E}-${v}`]:!!v}),R=Object.assign(Object.assign({},Mn(y,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:T,prefixCls:C,suffix:I});return v&&(R.size=v),l.createElement(ky,Object.assign({ref:ma(t,p)},R))});var exe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:p,onChange:g,onCompositionStart:m,onCompositionEnd:h}=e,b=exe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:S}=l.useContext(ut),v=l.useRef(!1),y=x("input-search",n),w=x("input",r),{compactSize:C}=Ps(y,S),E=Lr(j=>{var F;return(F=o??C)!==null&&F!==void 0?F:j}),I=l.useRef(null),T=j=>{j!=null&&j.target&&j.type==="click"&&p&&p(j.target.value,j,{source:"clear"}),g==null||g(j)},R=j=>{var F;document.activeElement===((F=I.current)===null||F===void 0?void 0:F.input)&&j.preventDefault()},_=j=>{var F,B;p&&p((B=(F=I.current)===null||F===void 0?void 0:F.input)===null||B===void 0?void 0:B.value,j,{source:"input"})},$=j=>{v.current||u||_(j)},M=typeof s=="boolean"?l.createElement(xm,null):null,P=`${y}-button`;let D;const O=s||{},k=O.type&&O.type.__ANT_BUTTON===!0;k||O.type==="button"?D=$r(O,Object.assign({onMouseDown:R,onClick:j=>{var F,B;(B=(F=O==null?void 0:O.props)===null||F===void 0?void 0:F.onClick)===null||B===void 0||B.call(F,j),_(j)},key:"enterButton"},k?{className:P,size:E}:{})):D=l.createElement(tt,{className:P,type:s?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:R,onClick:_,loading:u,icon:M},s),c&&(D=[D,$r(c,{key:"addonAfter"})]);const N=oe(y,{[`${y}-rtl`]:S==="rtl",[`${y}-${E}`]:!!E,[`${y}-with-button`]:!!s},a),A=j=>{v.current=!0,m==null||m(j)},L=j=>{v.current=!1,h==null||h(j)};return l.createElement(ky,Object.assign({ref:ma(I,t),onPressEnter:$},b,{size:E,onCompositionStart:A,onCompositionEnd:L,prefixCls:w,addonAfter:D,suffix:i,onChange:T,className:N,disabled:d}))});var nxe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -372,7 +372,7 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,rxe=["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"],BS={},po;function axe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&BS[n])return BS[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=rxe.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(BS[n]=c),c}function oxe(e){var t=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;po||(po=document.createElement("textarea"),po.setAttribute("tab-index","-1"),po.setAttribute("aria-hidden","true"),po.setAttribute("name","hiddenTextarea"),document.body.appendChild(po)),e.getAttribute("wrap")?po.setAttribute("wrap",e.getAttribute("wrap")):po.removeAttribute("wrap");var a=axe(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,c=a.sizingStyle;po.setAttribute("style","".concat(c,";").concat(nxe)),po.value=e.value||e.placeholder||"";var u=void 0,d=void 0,p,g=po.scrollHeight;if(s==="border-box"?g+=i:s==="content-box"&&(g-=o),n!==null||r!==null){po.value=" ";var m=po.scrollHeight-o;n!==null&&(u=m*n,s==="border-box"&&(u=u+o+i),g=Math.max(u,g)),r!==null&&(d=m*r,s==="border-box"&&(d=d+o+i),p=g>d?"":"hidden",g=Math.min(d,g))}var h={height:g,overflowY:p,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var ixe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],zS=0,HS=1,US=2,sxe=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,p=n.onChange;n.onInternalAutoSize;var g=wt(n,ixe),m=fn(a,{value:o,postState:function(U){return U??""}}),h=le(m,2),b=h[0],x=h[1],S=function(U){x(U.target.value),p==null||p(U)},v=l.useRef();l.useImperativeHandle(t,function(){return{textArea:v.current}});var y=l.useMemo(function(){return i&&mt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=le(y,2),w=C[0],E=C[1],I=!!i,T=function(){try{if(document.activeElement===v.current){var U=v.current,H=U.selectionStart,Y=U.selectionEnd,K=U.scrollTop;v.current.setSelectionRange(H,Y),v.current.scrollTop=K}}catch{}},R=l.useState(US),_=le(R,2),$=_[0],M=_[1],P=l.useState(),D=le(P,2),O=D[0],k=D[1],N=function(){M(zS)};Yt(function(){I&&N()},[o,w,E,I]),Yt(function(){if($===zS)M(HS);else if($===HS){var z=oxe(v.current,!1,w,E);M(US),k(z)}else T()},[$]);var A=l.useRef(),L=function(){Ht.cancel(A.current)},j=function(U){$===US&&(s==null||s(U),i&&(L(),A.current=Ht(function(){N()})))};l.useEffect(function(){return L},[]);var F=I?O:null,B=X(X({},u),F);return($===zS||$===HS)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(Sa,{onResize:j,disabled:!(i||s)},l.createElement("textarea",he({},g,{ref:v,style:B,className:ae(r,c,V({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:S})))}),lxe=["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"],cxe=de.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,p=e.onCompositionEnd,g=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,b=e.showCount,x=e.count,S=e.className,v=e.style,y=e.disabled,C=e.hidden,w=e.classNames,E=e.styles,I=e.onResize,T=e.onClear,R=e.onPressEnter,_=e.readOnly,$=e.autoSize,M=e.onKeyDown,P=wt(e,lxe),D=fn(r,{value:a,defaultValue:r}),O=le(D,2),k=O[0],N=O[1],A=k==null?"":String(k),L=de.useState(!1),j=le(L,2),F=j[0],B=j[1],z=de.useRef(!1),U=de.useState(null),H=le(U,2),Y=H[0],K=H[1],J=l.useRef(null),ne=l.useRef(null),W=function(){var Se;return(Se=ne.current)===null||Se===void 0?void 0:Se.textArea},q=function(){W().focus()};l.useImperativeHandle(t,function(){var De;return{resizableTextArea:ne.current,focus:q,blur:function(){W().blur()},nativeElement:((De=J.current)===null||De===void 0?void 0:De.nativeElement)||W()}}),l.useEffect(function(){B(function(De){return!y&&De})},[y]);var Z=de.useState(null),Q=le(Z,2),ee=Q[0],oe=Q[1];de.useEffect(function(){if(ee){var De;(De=W()).setSelectionRange.apply(De,Me(ee))}},[ee]);var se=fq(x,b),fe=(n=se.max)!==null&&n!==void 0?n:u,te=Number(fe)>0,ie=se.strategy(A),pe=!!fe&&ie>fe,me=function(Se,Oe){var Re=Oe;!z.current&&se.exceedFormatter&&se.max&&se.strategy(Oe)>se.max&&(Re=se.exceedFormatter(Oe,{max:se.max}),Oe!==Re&&oe([W().selectionStart||0,W().selectionEnd||0])),N(Re),Hb(Se.currentTarget,Se,s,Re)},re=function(Se){z.current=!0,d==null||d(Se)},ce=function(Se){z.current=!1,me(Se,Se.currentTarget.value),p==null||p(Se)},ge=function(Se){me(Se,Se.target.value)},ye=function(Se){Se.key==="Enter"&&R&&R(Se),M==null||M(Se)},Ee=function(Se){B(!0),o==null||o(Se)},Ne=function(Se){B(!1),i==null||i(Se)},_e=function(Se){N(""),q(),Hb(W(),Se,s)},Pe=g,Le;se.show&&(se.showFormatter?Le=se.showFormatter({value:A,count:ie,maxLength:fe}):Le="".concat(ie).concat(te?" / ".concat(fe):""),Pe=de.createElement(de.Fragment,null,Pe,de.createElement("span",{className:ae("".concat(h,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},Le)));var Ve=function(Se){var Oe;I==null||I(Se),(Oe=W())!==null&&Oe!==void 0&&Oe.style.height&&K(!0)},je=!$&&!b&&!c;return de.createElement(TN,{ref:J,value:A,allowClear:c,handleReset:_e,suffix:Pe,prefixCls:h,classNames:X(X({},w),{},{affixWrapper:ae(w==null?void 0:w.affixWrapper,V(V({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:y,focused:F,className:ae(S,pe&&"".concat(h,"-out-of-range")),style:X(X({},v),Y&&!je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Le=="string"?Le:void 0}},hidden:C,readOnly:_,onClear:T},de.createElement(sxe,he({},P,{autoSize:$,maxLength:u,onKeyDown:ye,onChange:ge,onFocus:Ee,onBlur:Ne,onCompositionStart:re,onCompositionEnd:ce,className:ae(w==null?void 0:w.textarea),style:X(X({},E==null?void 0:E.textarea),{},{resize:v==null?void 0:v.resize}),disabled:y,prefixCls:h,onResize:Ve,ref:ne,readOnly:_})))}),uxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:p,className:g,style:m,styles:h,variant:b}=e,x=uxe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:S,direction:v,textArea:y}=l.useContext(lt),C=Lr(i),w=l.useContext(fa),E=s??w,{status:I,hasFeedback:T,feedbackIcon:R}=l.useContext(ea),_=Vl(I,c),$=l.useRef(null);l.useImperativeHandle(t,()=>{var j;return{resizableTextArea:(j=$.current)===null||j===void 0?void 0:j.resizableTextArea,focus:F=>{var B,z;jye((z=(B=$.current)===null||B===void 0?void 0:B.resizableTextArea)===null||z===void 0?void 0:z.textArea,F)},blur:()=>{var F;return(F=$.current)===null||F===void 0?void 0:F.blur()}}});const M=S("input",a),P=ar(M),[D,O,k]=CN(M,P),[N,A]=Jc("textArea",b,o),L=mq(u??(y==null?void 0:y.allowClear));return D(l.createElement(cxe,Object.assign({autoComplete:y==null?void 0:y.autoComplete},x,{style:Object.assign(Object.assign({},y==null?void 0:y.style),m),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:E,allowClear:L,className:ae(k,P,g,p,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:ae({[`${M}-sm`]:C==="small",[`${M}-lg`]:C==="large"},O,d==null?void 0:d.textarea,(n=y==null?void 0:y.classNames)===null||n===void 0?void 0:n.textarea),variant:ae({[`${M}-${N}`]:A},$s(M,_)),affixWrapper:ae(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:v==="rtl",[`${M}-affix-wrapper-sm`]:C==="small",[`${M}-affix-wrapper-lg`]:C==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},O)}),prefixCls:M,suffix:T&&l.createElement("span",{className:`${M}-textarea-suffix`},R),ref:$})))}),Jt=Oy;Jt.Group=Dye;Jt.Search=txe;Jt.TextArea=vq;Jt.Password=Jye;Jt.OTP=Vye;function u_(e,t,n){return(e-t)/(n-t)}function RN(e,t,n,r){var a=u_(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function ed(e,t){return Array.isArray(e)?e[t]:e}var ru=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),dxe=l.createContext({}),fxe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],QD=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,s=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,p=e.onOffsetChange,g=e.onChangeComplete,m=e.onFocus,h=e.onMouseEnter,b=wt(e,fxe),x=l.useContext(ru),S=x.min,v=x.max,y=x.direction,C=x.disabled,w=x.keyboard,E=x.range,I=x.tabIndex,T=x.ariaLabelForHandle,R=x.ariaLabelledByForHandle,_=x.ariaValueTextFormatterForHandle,$=x.styles,M=x.classNames,P="".concat(n,"-handle"),D=function(U){C||o(U,a)},O=function(U){m==null||m(U,a)},k=function(U){h(U,a)},N=function(U){if(!C&&w){var H=null;switch(U.which||U.keyCode){case ze.LEFT:H=y==="ltr"||y==="btt"?-1:1;break;case ze.RIGHT:H=y==="ltr"||y==="btt"?1:-1;break;case ze.UP:H=y!=="ttb"?1:-1;break;case ze.DOWN:H=y!=="ttb"?-1:1;break;case ze.HOME:H="min";break;case ze.END:H="max";break;case ze.PAGE_UP:H=2;break;case ze.PAGE_DOWN:H=-2;break;case ze.BACKSPACE:case ze.DELETE:i(a);break}H!==null&&(U.preventDefault(),p(H,a))}},A=function(U){switch(U.which||U.keyCode){case ze.LEFT:case ze.RIGHT:case ze.UP:case ze.DOWN:case ze.HOME:case ze.END:case ze.PAGE_UP:case ze.PAGE_DOWN:g==null||g();break}},L=RN(y,r,S,v),j={};if(a!==null){var F;j={tabIndex:C?null:ed(I,a),role:"slider","aria-valuemin":S,"aria-valuemax":v,"aria-valuenow":r,"aria-disabled":C,"aria-label":ed(T,a),"aria-labelledby":ed(R,a),"aria-valuetext":(F=ed(_,a))===null||F===void 0?void 0:F(r),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:O,onMouseEnter:k,onKeyDown:N,onKeyUp:A}}var B=l.createElement("div",he({ref:t,className:ae(P,V(V(V({},"".concat(P,"-").concat(a+1),a!==null&&E),"".concat(P,"-dragging"),u),"".concat(P,"-dragging-delete"),d),M.handle),style:X(X(X({},L),s),$.handle)},j,b));return c&&(B=c(B,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B}),pxe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],gxe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,s=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,p=e.onFocus,g=wt(e,pxe),m=l.useRef({}),h=l.useState(!1),b=le(h,2),x=b[0],S=b[1],v=l.useState(-1),y=le(v,2),C=y[0],w=y[1],E=function($){w($),S(!0)},I=function($,M){E(M),p==null||p($)},T=function($,M){E(M)};l.useImperativeHandle(t,function(){return{focus:function($){var M;(M=m.current[$])===null||M===void 0||M.focus()},hideHelp:function(){Kr.flushSync(function(){S(!1)})}}});var R=X({prefixCls:n,onStartMove:a,onOffsetChange:o,render:s,onFocus:I,onMouseEnter:T},g);return l.createElement(l.Fragment,null,i.map(function(_,$){var M=u===$;return l.createElement(QD,he({ref:function(D){D?m.current[$]=D:delete m.current[$]},dragging:M,draggingDelete:M&&d,style:ed(r,$),key:$,value:_,valueIndex:$},R))}),c&&x&&l.createElement(QD,he({key:"a11y"},R,{value:i[C],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),mxe=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=l.useContext(ru),c=s.min,u=s.max,d=s.direction,p=s.includedStart,g=s.includedEnd,m=s.included,h="".concat(n,"-text"),b=RN(d,o,c,u);return l.createElement("span",{className:ae(h,V({},"".concat(h,"-active"),m&&p<=o&&o<=g)),style:X(X({},b),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){i(o)}},a)},hxe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?l.createElement("div",{className:o},r.map(function(i){var s=i.value,c=i.style,u=i.label;return l.createElement(mxe,{key:s,prefixCls:o,style:c,value:s,onClick:a},u)})):null},vxe=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=l.useContext(ru),s=i.min,c=i.max,u=i.direction,d=i.included,p=i.includedStart,g=i.includedEnd,m="".concat(n,"-dot"),h=d&&p<=r&&r<=g,b=X(X({},RN(u,r,s,c)),typeof a=="function"?a(r):a);return h&&(b=X(X({},b),typeof o=="function"?o(r):o)),l.createElement("span",{className:ae(m,V({},"".concat(m,"-active"),h)),style:b})},bxe=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=l.useContext(ru),c=s.min,u=s.max,d=s.step,p=l.useMemo(function(){var g=new Set;if(r.forEach(function(h){g.add(h.value)}),a&&d!==null)for(var m=c;m<=u;)g.add(m),m+=d;return Array.from(g)},[c,u,d,a,r]);return l.createElement("div",{className:"".concat(n,"-step")},p.map(function(g){return l.createElement(vxe,{prefixCls:n,key:g,value:g,style:o,activeStyle:i})}))},JD=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,s=t.onStartMove,c=t.replaceCls,u=l.useContext(ru),d=u.direction,p=u.min,g=u.max,m=u.disabled,h=u.range,b=u.classNames,x="".concat(n,"-track"),S=u_(a,p,g),v=u_(o,p,g),y=function(I){!m&&s&&s(I,-1)},C={};switch(d){case"rtl":C.right="".concat(S*100,"%"),C.width="".concat(v*100-S*100,"%");break;case"btt":C.bottom="".concat(S*100,"%"),C.height="".concat(v*100-S*100,"%");break;case"ttb":C.top="".concat(S*100,"%"),C.height="".concat(v*100-S*100,"%");break;default:C.left="".concat(S*100,"%"),C.width="".concat(v*100-S*100,"%")}var w=c||ae(x,V(V({},"".concat(x,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),s),b.track);return l.createElement("div",{className:w,style:X(X({},C),r),onMouseDown:y,onTouchStart:y})},yxe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=l.useContext(ru),c=s.included,u=s.range,d=s.min,p=s.styles,g=s.classNames,m=l.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??d,x=a[0];return[{start:Math.min(b,x),end:Math.max(b,x)}]}for(var S=[],v=0;vxxe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var v,y=h[x],C=y+b,w=[];r.forEach(function(_){w.push(_.value)}),w.push(e,t),w.push(s(y));var E=b>0?1:-1;S==="unit"?w.push(s(y+E*n)):w.push(s(C)),w=w.filter(function(_){return _!==null}).filter(function(_){return b<0?_<=y:_>=y}),S==="unit"&&(w=w.filter(function(_){return _!==y}));var I=S==="unit"?y:C;v=w[0];var T=Math.abs(v-I);if(w.forEach(function(_){var $=Math.abs(_-I);$1){var R=Me(h);return R[x]=v,m(R,b-E,x,S)}return v}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,x){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",v=h[x],y=u(h,b,x,S);return{value:y,changed:y!==v}},p=function(h){return o===null&&h===0||typeof o=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",v=h.map(c),y=v[x],C=u(v,b,x,S);if(v[x]=C,a===!1){var w=o||0;x>0&&v[x-1]!==y&&(v[x]=Math.max(v[x],v[x-1]+w)),x0;R-=1)for(var _=!0;p(v[R]-v[R-1])&&_;){var $=d(v,-1,R-1);v[R-1]=$.value,_=$.changed}for(var M=v.length-1;M>0;M-=1)for(var P=!0;p(v[M]-v[M-1])&&P;){var D=d(v,-1,M-1);v[M-1]=D.value,P=D.changed}for(var O=0;O=0?N:!1},[N,Le]),je=l.useMemo(function(){return Object.keys(J||{}).map(function(Je){var Xe=J[Je],_t={value:Number(Je)};return Xe&&mt(Xe)==="object"&&!l.isValidElement(Xe)&&("label"in Xe||"style"in Xe)?(_t.style=Xe.style,_t.label=Xe.label):_t.label=Xe,_t}).filter(function(Je){var Xe=Je.label;return Xe||typeof Xe=="number"}).sort(function(Je,Xe){return Je.value-Xe.value})},[J]),De=Cxe(_e,Pe,Le,je,O,Ve),Se=le(De,2),Oe=Se[0],Re=Se[1],Ce=fn(I,{value:E}),xe=le(Ce,2),$e=xe[0],Fe=xe[1],be=l.useMemo(function(){var Je=$e==null?[]:Array.isArray($e)?$e:[$e],Xe=le(Je,1),_t=Xe[0],Mt=_t===void 0?_e:_t,Ut=$e===null?[]:[Mt];if(ce){if(Ut=Me(Je),R||$e===void 0){var mn=R>=0?R+1:2;for(Ut=Ut.slice(0,mn);Ut.length=0&&te.current.focus(Je)}xt(null)},[kt]);var tt=l.useMemo(function(){return ye&&Le===null?!1:ye},[ye,Le]),bt=Gt(function(Je,Xe){qe(Je,Xe),$==null||$(ue(be))}),Ot=Ae!==-1;l.useEffect(function(){if(!Ot){var Je=be.lastIndexOf(Ue);te.current.focus(Je)}},[Ot]);var ht=l.useMemo(function(){return Me(rt).sort(function(Je,Xe){return Je-Xe})},[rt]),it=l.useMemo(function(){return ce?[ht[0],ht[ht.length-1]]:[_e,ht[0]]},[ht,ce,_e]),Et=le(it,2),Ze=Et[0],st=Et[1];l.useImperativeHandle(t,function(){return{focus:function(){te.current.focus(0)},blur:function(){var Xe,_t=document,Mt=_t.activeElement;(Xe=ie.current)!==null&&Xe!==void 0&&Xe.contains(Mt)&&(Mt==null||Mt.blur())}}}),l.useEffect(function(){m&&te.current.focus(0)},[]);var ft=l.useMemo(function(){return{min:_e,max:Pe,direction:pe,disabled:d,keyboard:g,step:Le,included:F,includedStart:Ze,includedEnd:st,range:ce,tabIndex:ee,ariaLabelForHandle:oe,ariaLabelledByForHandle:se,ariaValueTextFormatterForHandle:fe,styles:s||{},classNames:i||{}}},[_e,Pe,pe,d,g,Le,F,Ze,st,ce,ee,oe,se,fe,s,i]);return l.createElement(ru.Provider,{value:ft},l.createElement("div",{ref:ie,className:ae(r,a,V(V(V(V({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),L),"".concat(r,"-horizontal"),!L),"".concat(r,"-with-marks"),je.length)),style:o,onMouseDown:at,id:c},l.createElement("div",{className:ae("".concat(r,"-rail"),i==null?void 0:i.rail),style:X(X({},H),s==null?void 0:s.rail)}),Z!==!1&&l.createElement(yxe,{prefixCls:r,style:z,values:be,startPoint:B,onStartMove:tt?bt:void 0}),l.createElement(bxe,{prefixCls:r,marks:je,dots:ne,style:Y,activeStyle:K}),l.createElement(gxe,{ref:te,prefixCls:r,style:U,values:rt,draggingIndex:Ae,draggingDelete:ct,onStartMove:bt,onOffsetChange:et,onFocus:h,onBlur:b,handleRender:W,activeHandleRender:q,onChangeComplete:We,onDelete:ge?He:void 0}),l.createElement(hxe,{prefixCls:r,marks:je,onClick:Ye})))});const tP=l.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,a=l.useRef(null),o=n&&!r,i=l.useRef(null);function s(){Ht.cancel(i.current),i.current=null}function c(){i.current=Ht(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),i.current=null})}return l.useEffect(()=>(o?c():s(),s),[o,e.title]),l.createElement(Wt,Object.assign({ref:ga(a,t)},e,{open:o}))}),Ixe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:s,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:p,handleActiveColor:g,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:x}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative",height:r,margin:`${G(i)} ${G(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${G(o)} ${G(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${x}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${x}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${G(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${G(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` +`,rxe=["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"],HS={},po;function axe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&HS[n])return HS[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=rxe.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(HS[n]=c),c}function oxe(e){var t=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;po||(po=document.createElement("textarea"),po.setAttribute("tab-index","-1"),po.setAttribute("aria-hidden","true"),po.setAttribute("name","hiddenTextarea"),document.body.appendChild(po)),e.getAttribute("wrap")?po.setAttribute("wrap",e.getAttribute("wrap")):po.removeAttribute("wrap");var a=axe(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,c=a.sizingStyle;po.setAttribute("style","".concat(c,";").concat(nxe)),po.value=e.value||e.placeholder||"";var u=void 0,d=void 0,p,g=po.scrollHeight;if(s==="border-box"?g+=i:s==="content-box"&&(g-=o),n!==null||r!==null){po.value=" ";var m=po.scrollHeight-o;n!==null&&(u=m*n,s==="border-box"&&(u=u+o+i),g=Math.max(u,g)),r!==null&&(d=m*r,s==="border-box"&&(d=d+o+i),p=g>d?"":"hidden",g=Math.min(d,g))}var h={height:g,overflowY:p,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var ixe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],US=0,VS=1,WS=2,sxe=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,p=n.onChange;n.onInternalAutoSize;var g=Ct(n,ixe),m=fn(a,{value:o,postState:function(U){return U??""}}),h=ce(m,2),b=h[0],x=h[1],S=function(U){x(U.target.value),p==null||p(U)},v=l.useRef();l.useImperativeHandle(t,function(){return{textArea:v.current}});var y=l.useMemo(function(){return i&&mt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=ce(y,2),C=w[0],E=w[1],I=!!i,T=function(){try{if(document.activeElement===v.current){var U=v.current,H=U.selectionStart,K=U.selectionEnd,Y=U.scrollTop;v.current.setSelectionRange(H,K),v.current.scrollTop=Y}}catch{}},R=l.useState(WS),_=ce(R,2),$=_[0],M=_[1],P=l.useState(),D=ce(P,2),O=D[0],k=D[1],N=function(){M(US)};Yt(function(){I&&N()},[o,C,E,I]),Yt(function(){if($===US)M(VS);else if($===VS){var z=oxe(v.current,!1,C,E);M(WS),k(z)}else T()},[$]);var A=l.useRef(),L=function(){Ut.cancel(A.current)},j=function(U){$===WS&&(s==null||s(U),i&&(L(),A.current=Ut(function(){N()})))};l.useEffect(function(){return L},[]);var F=I?O:null,B=X(X({},u),F);return($===US||$===VS)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(wa,{onResize:j,disabled:!(i||s)},l.createElement("textarea",be({},g,{ref:v,style:B,className:oe(r,c,V({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:S})))}),lxe=["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"],cxe=de.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,p=e.onCompositionEnd,g=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,b=e.showCount,x=e.count,S=e.className,v=e.style,y=e.disabled,w=e.hidden,C=e.classNames,E=e.styles,I=e.onResize,T=e.onClear,R=e.onPressEnter,_=e.readOnly,$=e.autoSize,M=e.onKeyDown,P=Ct(e,lxe),D=fn(r,{value:a,defaultValue:r}),O=ce(D,2),k=O[0],N=O[1],A=k==null?"":String(k),L=de.useState(!1),j=ce(L,2),F=j[0],B=j[1],z=de.useRef(!1),U=de.useState(null),H=ce(U,2),K=H[0],Y=H[1],ee=l.useRef(null),ae=l.useRef(null),W=function(){var Se;return(Se=ae.current)===null||Se===void 0?void 0:Se.textArea},q=function(){W().focus()};l.useImperativeHandle(t,function(){var Pe;return{resizableTextArea:ae.current,focus:q,blur:function(){W().blur()},nativeElement:((Pe=ee.current)===null||Pe===void 0?void 0:Pe.nativeElement)||W()}}),l.useEffect(function(){B(function(Pe){return!y&&Pe})},[y]);var Z=de.useState(null),Q=ce(Z,2),J=Q[0],ie=Q[1];de.useEffect(function(){if(J){var Pe;(Pe=W()).setSelectionRange.apply(Pe,De(J))}},[J]);var le=fq(x,b),fe=(n=le.max)!==null&&n!==void 0?n:u,te=Number(fe)>0,se=le.strategy(A),pe=!!fe&&se>fe,he=function(Se,Ne){var Te=Ne;!z.current&&le.exceedFormatter&&le.max&&le.strategy(Ne)>le.max&&(Te=le.exceedFormatter(Ne,{max:le.max}),Ne!==Te&&ie([W().selectionStart||0,W().selectionEnd||0])),N(Te),Ub(Se.currentTarget,Se,s,Te)},re=function(Se){z.current=!0,d==null||d(Se)},ue=function(Se){z.current=!1,he(Se,Se.currentTarget.value),p==null||p(Se)},me=function(Se){he(Se,Se.target.value)},xe=function(Se){Se.key==="Enter"&&R&&R(Se),M==null||M(Se)},Ee=function(Se){B(!0),o==null||o(Se)},ke=function(Se){B(!1),i==null||i(Se)},$e=function(Se){N(""),q(),Ub(W(),Se,s)},Le=g,je;le.show&&(le.showFormatter?je=le.showFormatter({value:A,count:se,maxLength:fe}):je="".concat(se).concat(te?" / ".concat(fe):""),Le=de.createElement(de.Fragment,null,Le,de.createElement("span",{className:oe("".concat(h,"-data-count"),C==null?void 0:C.count),style:E==null?void 0:E.count},je)));var He=function(Se){var Ne;I==null||I(Se),(Ne=W())!==null&&Ne!==void 0&&Ne.style.height&&Y(!0)},Be=!$&&!b&&!c;return de.createElement(TN,{ref:ee,value:A,allowClear:c,handleReset:$e,suffix:Le,prefixCls:h,classNames:X(X({},C),{},{affixWrapper:oe(C==null?void 0:C.affixWrapper,V(V({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:y,focused:F,className:oe(S,pe&&"".concat(h,"-out-of-range")),style:X(X({},v),K&&!Be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof je=="string"?je:void 0}},hidden:w,readOnly:_,onClear:T},de.createElement(sxe,be({},P,{autoSize:$,maxLength:u,onKeyDown:xe,onChange:me,onFocus:Ee,onBlur:ke,onCompositionStart:re,onCompositionEnd:ue,className:oe(C==null?void 0:C.textarea),style:X(X({},E==null?void 0:E.textarea),{},{resize:v==null?void 0:v.resize}),disabled:y,prefixCls:h,onResize:He,ref:ae,readOnly:_})))}),uxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:p,className:g,style:m,styles:h,variant:b}=e,x=uxe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:S,direction:v,textArea:y}=l.useContext(ut),w=Lr(i),C=l.useContext(pa),E=s??C,{status:I,hasFeedback:T,feedbackIcon:R}=l.useContext(ea),_=Vl(I,c),$=l.useRef(null);l.useImperativeHandle(t,()=>{var j;return{resizableTextArea:(j=$.current)===null||j===void 0?void 0:j.resizableTextArea,focus:F=>{var B,z;jye((z=(B=$.current)===null||B===void 0?void 0:B.resizableTextArea)===null||z===void 0?void 0:z.textArea,F)},blur:()=>{var F;return(F=$.current)===null||F===void 0?void 0:F.blur()}}});const M=S("input",a),P=ar(M),[D,O,k]=wN(M,P),[N,A]=Jc("textArea",b,o),L=mq(u??(y==null?void 0:y.allowClear));return D(l.createElement(cxe,Object.assign({autoComplete:y==null?void 0:y.autoComplete},x,{style:Object.assign(Object.assign({},y==null?void 0:y.style),m),styles:Object.assign(Object.assign({},y==null?void 0:y.styles),h),disabled:E,allowClear:L,className:oe(k,P,g,p,y==null?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},d),y==null?void 0:y.classNames),{textarea:oe({[`${M}-sm`]:w==="small",[`${M}-lg`]:w==="large"},O,d==null?void 0:d.textarea,(n=y==null?void 0:y.classNames)===null||n===void 0?void 0:n.textarea),variant:oe({[`${M}-${N}`]:A},Ns(M,_)),affixWrapper:oe(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:v==="rtl",[`${M}-affix-wrapper-sm`]:w==="small",[`${M}-affix-wrapper-lg`]:w==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},O)}),prefixCls:M,suffix:T&&l.createElement("span",{className:`${M}-textarea-suffix`},R),ref:$})))}),Jt=ky;Jt.Group=Dye;Jt.Search=txe;Jt.TextArea=vq;Jt.Password=Jye;Jt.OTP=Vye;function d_(e,t,n){return(e-t)/(n-t)}function RN(e,t,n,r){var a=d_(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function ed(e,t){return Array.isArray(e)?e[t]:e}var ru=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),dxe=l.createContext({}),fxe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],QD=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,s=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,p=e.onOffsetChange,g=e.onChangeComplete,m=e.onFocus,h=e.onMouseEnter,b=Ct(e,fxe),x=l.useContext(ru),S=x.min,v=x.max,y=x.direction,w=x.disabled,C=x.keyboard,E=x.range,I=x.tabIndex,T=x.ariaLabelForHandle,R=x.ariaLabelledByForHandle,_=x.ariaValueTextFormatterForHandle,$=x.styles,M=x.classNames,P="".concat(n,"-handle"),D=function(U){w||o(U,a)},O=function(U){m==null||m(U,a)},k=function(U){h(U,a)},N=function(U){if(!w&&C){var H=null;switch(U.which||U.keyCode){case Fe.LEFT:H=y==="ltr"||y==="btt"?-1:1;break;case Fe.RIGHT:H=y==="ltr"||y==="btt"?1:-1;break;case Fe.UP:H=y!=="ttb"?1:-1;break;case Fe.DOWN:H=y!=="ttb"?-1:1;break;case Fe.HOME:H="min";break;case Fe.END:H="max";break;case Fe.PAGE_UP:H=2;break;case Fe.PAGE_DOWN:H=-2;break;case Fe.BACKSPACE:case Fe.DELETE:i(a);break}H!==null&&(U.preventDefault(),p(H,a))}},A=function(U){switch(U.which||U.keyCode){case Fe.LEFT:case Fe.RIGHT:case Fe.UP:case Fe.DOWN:case Fe.HOME:case Fe.END:case Fe.PAGE_UP:case Fe.PAGE_DOWN:g==null||g();break}},L=RN(y,r,S,v),j={};if(a!==null){var F;j={tabIndex:w?null:ed(I,a),role:"slider","aria-valuemin":S,"aria-valuemax":v,"aria-valuenow":r,"aria-disabled":w,"aria-label":ed(T,a),"aria-labelledby":ed(R,a),"aria-valuetext":(F=ed(_,a))===null||F===void 0?void 0:F(r),"aria-orientation":y==="ltr"||y==="rtl"?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:O,onMouseEnter:k,onKeyDown:N,onKeyUp:A}}var B=l.createElement("div",be({ref:t,className:oe(P,V(V(V({},"".concat(P,"-").concat(a+1),a!==null&&E),"".concat(P,"-dragging"),u),"".concat(P,"-dragging-delete"),d),M.handle),style:X(X(X({},L),s),$.handle)},j,b));return c&&(B=c(B,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B}),pxe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],gxe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,s=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,p=e.onFocus,g=Ct(e,pxe),m=l.useRef({}),h=l.useState(!1),b=ce(h,2),x=b[0],S=b[1],v=l.useState(-1),y=ce(v,2),w=y[0],C=y[1],E=function($){C($),S(!0)},I=function($,M){E(M),p==null||p($)},T=function($,M){E(M)};l.useImperativeHandle(t,function(){return{focus:function($){var M;(M=m.current[$])===null||M===void 0||M.focus()},hideHelp:function(){Kr.flushSync(function(){S(!1)})}}});var R=X({prefixCls:n,onStartMove:a,onOffsetChange:o,render:s,onFocus:I,onMouseEnter:T},g);return l.createElement(l.Fragment,null,i.map(function(_,$){var M=u===$;return l.createElement(QD,be({ref:function(D){D?m.current[$]=D:delete m.current[$]},dragging:M,draggingDelete:M&&d,style:ed(r,$),key:$,value:_,valueIndex:$},R))}),c&&x&&l.createElement(QD,be({key:"a11y"},R,{value:i[w],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),mxe=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=l.useContext(ru),c=s.min,u=s.max,d=s.direction,p=s.includedStart,g=s.includedEnd,m=s.included,h="".concat(n,"-text"),b=RN(d,o,c,u);return l.createElement("span",{className:oe(h,V({},"".concat(h,"-active"),m&&p<=o&&o<=g)),style:X(X({},b),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){i(o)}},a)},hxe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?l.createElement("div",{className:o},r.map(function(i){var s=i.value,c=i.style,u=i.label;return l.createElement(mxe,{key:s,prefixCls:o,style:c,value:s,onClick:a},u)})):null},vxe=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=l.useContext(ru),s=i.min,c=i.max,u=i.direction,d=i.included,p=i.includedStart,g=i.includedEnd,m="".concat(n,"-dot"),h=d&&p<=r&&r<=g,b=X(X({},RN(u,r,s,c)),typeof a=="function"?a(r):a);return h&&(b=X(X({},b),typeof o=="function"?o(r):o)),l.createElement("span",{className:oe(m,V({},"".concat(m,"-active"),h)),style:b})},bxe=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=l.useContext(ru),c=s.min,u=s.max,d=s.step,p=l.useMemo(function(){var g=new Set;if(r.forEach(function(h){g.add(h.value)}),a&&d!==null)for(var m=c;m<=u;)g.add(m),m+=d;return Array.from(g)},[c,u,d,a,r]);return l.createElement("div",{className:"".concat(n,"-step")},p.map(function(g){return l.createElement(vxe,{prefixCls:n,key:g,value:g,style:o,activeStyle:i})}))},JD=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,s=t.onStartMove,c=t.replaceCls,u=l.useContext(ru),d=u.direction,p=u.min,g=u.max,m=u.disabled,h=u.range,b=u.classNames,x="".concat(n,"-track"),S=d_(a,p,g),v=d_(o,p,g),y=function(I){!m&&s&&s(I,-1)},w={};switch(d){case"rtl":w.right="".concat(S*100,"%"),w.width="".concat(v*100-S*100,"%");break;case"btt":w.bottom="".concat(S*100,"%"),w.height="".concat(v*100-S*100,"%");break;case"ttb":w.top="".concat(S*100,"%"),w.height="".concat(v*100-S*100,"%");break;default:w.left="".concat(S*100,"%"),w.width="".concat(v*100-S*100,"%")}var C=c||oe(x,V(V({},"".concat(x,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),s),b.track);return l.createElement("div",{className:C,style:X(X({},w),r),onMouseDown:y,onTouchStart:y})},yxe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=l.useContext(ru),c=s.included,u=s.range,d=s.min,p=s.styles,g=s.classNames,m=l.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??d,x=a[0];return[{start:Math.min(b,x),end:Math.max(b,x)}]}for(var S=[],v=0;vxxe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var v,y=h[x],w=y+b,C=[];r.forEach(function(_){C.push(_.value)}),C.push(e,t),C.push(s(y));var E=b>0?1:-1;S==="unit"?C.push(s(y+E*n)):C.push(s(w)),C=C.filter(function(_){return _!==null}).filter(function(_){return b<0?_<=y:_>=y}),S==="unit"&&(C=C.filter(function(_){return _!==y}));var I=S==="unit"?y:w;v=C[0];var T=Math.abs(v-I);if(C.forEach(function(_){var $=Math.abs(_-I);$1){var R=De(h);return R[x]=v,m(R,b-E,x,S)}return v}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,x){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",v=h[x],y=u(h,b,x,S);return{value:y,changed:y!==v}},p=function(h){return o===null&&h===0||typeof o=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",v=h.map(c),y=v[x],w=u(v,b,x,S);if(v[x]=w,a===!1){var C=o||0;x>0&&v[x-1]!==y&&(v[x]=Math.max(v[x],v[x-1]+C)),x0;R-=1)for(var _=!0;p(v[R]-v[R-1])&&_;){var $=d(v,-1,R-1);v[R-1]=$.value,_=$.changed}for(var M=v.length-1;M>0;M-=1)for(var P=!0;p(v[M]-v[M-1])&&P;){var D=d(v,-1,M-1);v[M-1]=D.value,P=D.changed}for(var O=0;O=0?N:!1},[N,je]),Be=l.useMemo(function(){return Object.keys(ee||{}).map(function(et){var Xe=ee[et],_t={value:Number(et)};return Xe&&mt(Xe)==="object"&&!l.isValidElement(Xe)&&("label"in Xe||"style"in Xe)?(_t.style=Xe.style,_t.label=Xe.label):_t.label=Xe,_t}).filter(function(et){var Xe=et.label;return Xe||typeof Xe=="number"}).sort(function(et,Xe){return et.value-Xe.value})},[ee]),Pe=wxe($e,Le,je,Be,O,He),Se=ce(Pe,2),Ne=Se[0],Te=Se[1],we=fn(I,{value:E}),Me=ce(we,2),Ge=Me[0],st=Me[1],ge=l.useMemo(function(){var et=Ge==null?[]:Array.isArray(Ge)?Ge:[Ge],Xe=ce(et,1),_t=Xe[0],Mt=_t===void 0?$e:_t,Vt=Ge===null?[]:[Mt];if(ue){if(Vt=De(et),R||Ge===void 0){var mn=R>=0?R+1:2;for(Vt=Vt.slice(0,mn);Vt.length=0&&te.current.focus(et)}xt(null)},[kt]);var rt=l.useMemo(function(){return xe&&je===null?!1:xe},[xe,je]),bt=qt(function(et,Xe){We(et,Xe),$==null||$(ne(ge))}),Ot=Oe!==-1;l.useEffect(function(){if(!Ot){var et=ge.lastIndexOf(Re);te.current.focus(et)}},[Ot]);var ht=l.useMemo(function(){return De(Ye).sort(function(et,Xe){return et-Xe})},[Ye]),lt=l.useMemo(function(){return ue?[ht[0],ht[ht.length-1]]:[$e,ht[0]]},[ht,ue,$e]),Et=ce(lt,2),Ze=Et[0],ct=Et[1];l.useImperativeHandle(t,function(){return{focus:function(){te.current.focus(0)},blur:function(){var Xe,_t=document,Mt=_t.activeElement;(Xe=se.current)!==null&&Xe!==void 0&&Xe.contains(Mt)&&(Mt==null||Mt.blur())}}}),l.useEffect(function(){m&&te.current.focus(0)},[]);var ft=l.useMemo(function(){return{min:$e,max:Le,direction:pe,disabled:d,keyboard:g,step:je,included:F,includedStart:Ze,includedEnd:ct,range:ue,tabIndex:J,ariaLabelForHandle:ie,ariaLabelledByForHandle:le,ariaValueTextFormatterForHandle:fe,styles:s||{},classNames:i||{}}},[$e,Le,pe,d,g,je,F,Ze,ct,ue,J,ie,le,fe,s,i]);return l.createElement(ru.Provider,{value:ft},l.createElement("div",{ref:se,className:oe(r,a,V(V(V(V({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),L),"".concat(r,"-horizontal"),!L),"".concat(r,"-with-marks"),Be.length)),style:o,onMouseDown:Qe,id:c},l.createElement("div",{className:oe("".concat(r,"-rail"),i==null?void 0:i.rail),style:X(X({},H),s==null?void 0:s.rail)}),Z!==!1&&l.createElement(yxe,{prefixCls:r,style:z,values:ge,startPoint:B,onStartMove:rt?bt:void 0}),l.createElement(bxe,{prefixCls:r,marks:Be,dots:ae,style:K,activeStyle:Y}),l.createElement(gxe,{ref:te,prefixCls:r,style:U,values:Ye,draggingIndex:Oe,draggingDelete:at,onStartMove:bt,onOffsetChange:nt,onFocus:h,onBlur:b,handleRender:W,activeHandleRender:q,onChangeComplete:_e,onDelete:me?ze:void 0}),l.createElement(hxe,{prefixCls:r,marks:Be,onClick:qe})))});const tP=l.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,a=l.useRef(null),o=n&&!r,i=l.useRef(null);function s(){Ut.cancel(i.current),i.current=null}function c(){i.current=Ut(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),i.current=null})}return l.useEffect(()=>(o?c():s(),s),[o,e.title]),l.createElement(Ft,Object.assign({ref:ma(a,t)},e,{open:o}))}),Ixe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:s,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:p,handleActiveColor:g,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:x}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative",height:r,margin:`${G(i)} ${G(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${G(o)} ${G(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${x}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${x}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${G(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${G(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${x}, inset-block-start ${x}, width ${x}, @@ -384,21 +384,21 @@ html body { `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${G(h)} ${c}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},bq=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:s}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",p=t?"insetBlockStart":"insetInlineStart",g=t?"top":"insetInlineStart",m=s(r).mul(3).sub(a).div(2).equal(),h=s(a).sub(r).div(2).equal(),b=t?{borderWidth:`${G(h)} 0`,transform:`translateY(${G(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${G(h)}`,transform:`translateX(${G(e.calc(h).mul(-1).equal())})`};return{[c]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[p]:m},[`${n}-mark`]:{insetInlineStart:0,top:0,[g]:s(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[g]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[p]:s(r).sub(o).div(2).equal()}}},Txe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},bq(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Rxe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},bq(e,!1)),{height:"100%"})}},_xe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,s=new sn(i).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:s,handleColorDisabled:new sn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},$xe=on("Slider",e=>{const t=Ft(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Ixe(t),Txe(t),Rxe(t)]},_xe),Oxe=l.createContext({});function VS(){const[e,t]=l.useState(!1),n=l.useRef(),r=()=>{Ht.cancel(n.current)},a=o=>{r(),o?t(o):n.current=Ht(()=>{t(o)})};return l.useEffect(()=>r,[]),[e,a]}var Nxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const Axe=de.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:s,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:p,tooltipPlacement:g,tooltip:m={},onChangeComplete:h}=e,b=Nxe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:x}=e,{direction:S,slider:v,getPrefixCls:y,getPopupContainer:C}=de.useContext(lt),w=de.useContext(fa),E=s??w,{handleRender:I,direction:T}=de.useContext(Oxe),_=(T||S)==="rtl",[$,M]=VS(),[P,D]=VS(),O=Object.assign({},m),{open:k,placement:N,getPopupContainer:A,prefixCls:L,formatter:j}=O,F=k??d,B=($||P)&&F!==!1,z=kxe(j,u),[U,H]=VS(),Y=fe=>{h==null||h(fe),H(!1)},K=(fe,te)=>fe||(te?_?"left":"right":"top"),J=y("slider",n),[ne,W,q]=$xe(J),Z=ae(a,v==null?void 0:v.className,o,{[`${J}-rtl`]:_,[`${J}-lock`]:U},W,q);_&&!b.vertical&&(b.reverse=!b.reverse),de.useEffect(()=>{const fe=()=>{Ht(()=>{D(!1)},1)};return document.addEventListener("mouseup",fe),()=>{document.removeEventListener("mouseup",fe)}},[]);const Q=r&&!F,ee=I||((fe,te)=>{const{index:ie}=te,pe=fe.props;function me(ye,Ee,Ne){var _e,Pe,Le,Ve;Ne&&((Pe=(_e=b)[ye])===null||Pe===void 0||Pe.call(_e,Ee)),(Ve=(Le=pe)[ye])===null||Ve===void 0||Ve.call(Le,Ee)}const re=Object.assign(Object.assign({},pe),{onMouseEnter:ye=>{M(!0),me("onMouseEnter",ye)},onMouseLeave:ye=>{M(!1),me("onMouseLeave",ye)},onMouseDown:ye=>{D(!0),H(!0),me("onMouseDown",ye)},onFocus:ye=>{var Ee;D(!0),(Ee=b.onFocus)===null||Ee===void 0||Ee.call(b,ye),me("onFocus",ye,!0)},onBlur:ye=>{var Ee;D(!1),(Ee=b.onBlur)===null||Ee===void 0||Ee.call(b,ye),me("onBlur",ye,!0)}}),ce=de.cloneElement(fe,re),ge=(!!F||B)&&z!==null;return Q?ce:de.createElement(tP,Object.assign({},O,{prefixCls:y("tooltip",L??c),title:z?z(te.value):"",open:ge,placement:K(N??g,x),key:ie,overlayClassName:`${J}-tooltip`,getPopupContainer:A||p||C}),ce)}),oe=Q?(fe,te)=>{const ie=de.cloneElement(fe,{style:Object.assign(Object.assign({},fe.props.style),{visibility:"hidden"})});return de.createElement(tP,Object.assign({},O,{prefixCls:y("tooltip",L??c),title:z?z(te.value):"",open:z!==null&&B,placement:K(N??g,x),key:"tooltip",overlayClassName:`${J}-tooltip`,getPopupContainer:A||p||C,draggingDelete:te.draggingDelete}),ie)}:void 0,se=Object.assign(Object.assign({},v==null?void 0:v.style),i);return ne(de.createElement(Exe,Object.assign({},b,{step:b.step,range:r,className:Z,style:se,disabled:E,ref:t,prefixCls:J,handleRender:ee,activeHandleRender:oe,onChangeComplete:Y})))});var Mxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Dxe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Mxe}))},yq=l.forwardRef(Dxe),Pxe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Lxe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Pxe}))},xq=l.forwardRef(Lxe),jxe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Fxe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:jxe}))},Bxe=l.forwardRef(Fxe);function zxe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Hxe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function _N(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function Sq(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=ZO(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Uxe,Vxe]=["week","WeekPicker"],[Wxe,Gxe]=["month","MonthPicker"],[qxe,Kxe]=["year","YearPicker"],[Yxe,Xxe]=["quarter","QuarterPicker"],[Cq,nP]=["time","TimePicker"],Zxe=e=>l.createElement(nt,Object.assign({size:"small",type:"primary"},e));function wq(e){return l.useMemo(()=>Object.assign({button:Zxe},e),[e])}var Qxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:p,disabled:g,bordered:m=!0,placeholder:h,popupClassName:b,dropdownClassName:x,status:S,rootClassName:v,variant:y,picker:C}=n,w=Qxe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),E=l.useRef(null),{getPrefixCls:I,direction:T,getPopupContainer:R,rangePicker:_}=l.useContext(lt),$=I("picker",o),{compactSize:M,compactItemClassnames:P}=Ds($,T),D=I(),[O,k]=Jc("rangePicker",y,m),N=ar($),[A,L,j]=XG($,N),[F]=Sq(n,$),B=wq(s),z=Lr(ee=>{var oe;return(oe=p??M)!==null&&oe!==void 0?oe:ee}),U=l.useContext(fa),H=g??U,Y=l.useContext(ea),{hasFeedback:K,status:J,feedbackIcon:ne}=Y,W=l.createElement(l.Fragment,null,C===Cq?l.createElement(xq,null):l.createElement(yq,null),K&&ne);l.useImperativeHandle(r,()=>E.current);const[q]=es("Calendar",Ob),Z=Object.assign(Object.assign({},q),n.locale),[Q]=Ai("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return A(l.createElement(Ji,{space:!0},l.createElement(Xve,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${$}-separator`},l.createElement(Bxe,null)),disabled:H,ref:E,popupAlign:_N(T,d),placement:d,placeholder:Hxe(Z,C,h),suffixIcon:W,prevIcon:l.createElement("span",{className:`${$}-prev-icon`}),nextIcon:l.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:C},w,{className:ae({[`${$}-${z}`]:z,[`${$}-${O}`]:k},$s($,Vl(J,S),K),L,P,c,_==null?void 0:_.className,j,N,v),style:Object.assign(Object.assign({},_==null?void 0:_.style),u),locale:Z.lang,prefixCls:$,getPopupContainer:i||R,generateConfig:e,components:B,direction:T,classNames:{popup:ae(L,b||x,j,N,v)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Q})},allowClear:F}))))});var eSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===nP?"timePicker":"datePicker";return l.forwardRef((g,m)=>{var h;const{prefixCls:b,getPopupContainer:x,components:S,style:v,className:y,rootClassName:C,size:w,bordered:E,placement:I,placeholder:T,popupClassName:R,dropdownClassName:_,disabled:$,status:M,variant:P,onCalendarChange:D}=g,O=eSe(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:N,getPopupContainer:A,[d]:L}=l.useContext(lt),j=k("picker",b),{compactSize:F,compactItemClassnames:B}=Ds(j,N),z=l.useRef(null),[U,H]=Jc("datePicker",P,E),Y=ar(j),[K,J,ne]=XG(j,Y);l.useImperativeHandle(m,()=>z.current);const W={showToday:!0},q=c||g.picker,Z=k(),{onSelect:Q,multiple:ee}=O,oe=Q&&c==="time"&&!ee,se=(Ve,je,De)=>{D==null||D(Ve,je,De),oe&&Q(Ve)},[fe,te]=Sq(g,j),ie=wq(S),pe=Lr(Ve=>{var je;return(je=w??F)!==null&&je!==void 0?je:Ve}),me=l.useContext(fa),re=$??me,ce=l.useContext(ea),{hasFeedback:ge,status:ye,feedbackIcon:Ee}=ce,Ne=l.createElement(l.Fragment,null,q==="time"?l.createElement(xq,null):l.createElement(yq,null),ge&&Ee),[_e]=es("DatePicker",Ob),Pe=Object.assign(Object.assign({},_e),g.locale),[Le]=Ai("DatePicker",(h=g.popupStyle)===null||h===void 0?void 0:h.zIndex);return K(l.createElement(Ji,{space:!0},l.createElement(nbe,Object.assign({ref:z,placeholder:zxe(Pe,q,T),suffixIcon:Ne,dropdownAlign:_N(N,I),placement:I,prevIcon:l.createElement("span",{className:`${j}-prev-icon`}),nextIcon:l.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${Z}-slide-up`,picker:c,onCalendarChange:se},W,O,{locale:Pe.lang,className:ae({[`${j}-${pe}`]:pe,[`${j}-${U}`]:H},$s(j,Vl(ye,M),ge),J,B,L==null?void 0:L.className,y,ne,Y,C),style:Object.assign(Object.assign({},L==null?void 0:L.style),v),prefixCls:j,getPopupContainer:x||A,generateConfig:e,components:ie,direction:N,disabled:re,classNames:{popup:ae(J,ne,Y,C,R||_)},styles:{popup:Object.assign(Object.assign({},g.popupStyle),{zIndex:Le})},allowClear:fe,removeIcon:te}))))})},n=t(),r=t(Uxe,Vxe),a=t(Wxe,Gxe),o=t(qxe,Kxe),i=t(Yxe,Xxe),s=t(Cq,nP);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:i}},Eq=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=tSe(e),s=Jxe(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=s,c.TimePicker=o,c.QuarterPicker=i,c},hf=Eq(ive);function Iq(e){const t=_N(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const nSe=hm(hf,"picker",null,Iq);hf._InternalPanelDoNotUseOrYouWillBeFired=nSe;const rSe=hm(hf.RangePicker,"picker",null,Iq);hf._InternalRangePanelDoNotUseOrYouWillBeFired=rSe;hf.generatePicker=Eq;var rP=l.createContext(null),Tq=l.createContext({}),aSe=["prefixCls","className","containerRef"],oSe=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=wt(t,aSe),i=l.useContext(Tq),s=i.panel,c=Ms(s,a);return l.createElement("div",he({className:ae("".concat(n,"-content"),r),role:"dialog",ref:c},ur(t,{aria:!0}),{"aria-modal":"true"},o))};function aP(e){return typeof e=="string"&&String(Number(e))===e?(_n(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var oP={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function iSe(e,t){var n,r,a,o=e.prefixCls,i=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,p=e.autoFocus,g=e.keyboard,m=e.classNames,h=e.rootClassName,b=e.rootStyle,x=e.zIndex,S=e.className,v=e.id,y=e.style,C=e.motion,w=e.width,E=e.height,I=e.children,T=e.mask,R=e.maskClosable,_=e.maskMotion,$=e.maskClassName,M=e.maskStyle,P=e.afterOpenChange,D=e.onClose,O=e.onMouseEnter,k=e.onMouseOver,N=e.onMouseLeave,A=e.onClick,L=e.onKeyDown,j=e.onKeyUp,F=e.styles,B=e.drawerRender,z=l.useRef(),U=l.useRef(),H=l.useRef();l.useImperativeHandle(t,function(){return z.current});var Y=function(re){var ce=re.keyCode,ge=re.shiftKey;switch(ce){case ze.TAB:{if(ce===ze.TAB){if(!ge&&document.activeElement===H.current){var ye;(ye=U.current)===null||ye===void 0||ye.focus({preventScroll:!0})}else if(ge&&document.activeElement===U.current){var Ee;(Ee=H.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}}break}case ze.ESC:{D&&g&&(re.stopPropagation(),D(re));break}}};l.useEffect(function(){if(i&&p){var me;(me=z.current)===null||me===void 0||me.focus({preventScroll:!0})}},[i]);var K=l.useState(!1),J=le(K,2),ne=J[0],W=J[1],q=l.useContext(rP),Z;typeof u=="boolean"?Z=u?{}:{distance:0}:Z=u||{};var Q=(n=(r=(a=Z)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:q==null?void 0:q.pushDistance)!==null&&n!==void 0?n:180,ee=l.useMemo(function(){return{pushDistance:Q,push:function(){W(!0)},pull:function(){W(!1)}}},[Q]);l.useEffect(function(){if(i){var me;q==null||(me=q.push)===null||me===void 0||me.call(q)}else{var re;q==null||(re=q.pull)===null||re===void 0||re.call(q)}},[i]),l.useEffect(function(){return function(){var me;q==null||(me=q.pull)===null||me===void 0||me.call(q)}},[]);var oe=T&&l.createElement(Qr,he({key:"mask"},_,{visible:i}),function(me,re){var ce=me.className,ge=me.style;return l.createElement("div",{className:ae("".concat(o,"-mask"),ce,m==null?void 0:m.mask,$),style:X(X(X({},ge),M),F==null?void 0:F.mask),onClick:R&&i?D:void 0,ref:re})}),se=typeof C=="function"?C(s):C,fe={};if(ne&&Q)switch(s){case"top":fe.transform="translateY(".concat(Q,"px)");break;case"bottom":fe.transform="translateY(".concat(-Q,"px)");break;case"left":fe.transform="translateX(".concat(Q,"px)");break;default:fe.transform="translateX(".concat(-Q,"px)");break}s==="left"||s==="right"?fe.width=aP(w):fe.height=aP(E);var te={onMouseEnter:O,onMouseOver:k,onMouseLeave:N,onClick:A,onKeyDown:L,onKeyUp:j},ie=l.createElement(Qr,he({key:"panel"},se,{visible:i,forceRender:d,onVisibleChanged:function(re){P==null||P(re)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(me,re){var ce=me.className,ge=me.style,ye=l.createElement(oSe,he({id:v,containerRef:re,prefixCls:o,className:ae(S,m==null?void 0:m.content),style:X(X({},y),F==null?void 0:F.content)},ur(e,{aria:!0}),te),I);return l.createElement("div",he({className:ae("".concat(o,"-content-wrapper"),m==null?void 0:m.wrapper,ce),style:X(X(X({},fe),ge),F==null?void 0:F.wrapper)},ur(e,{data:!0})),B?B(ye):ye)}),pe=X({},b);return x&&(pe.zIndex=x),l.createElement(rP.Provider,{value:ee},l.createElement("div",{className:ae(o,"".concat(o,"-").concat(s),h,V(V({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:pe,tabIndex:-1,ref:z,onKeyDown:Y},oe,l.createElement("div",{tabIndex:0,ref:U,style:oP,"aria-hidden":"true","data-sentinel":"start"}),ie,l.createElement("div",{tabIndex:0,ref:H,style:oP,"aria-hidden":"true","data-sentinel":"end"})))}var sSe=l.forwardRef(iSe),lSe=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,s=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,p=d===void 0?!0:d,g=t.width,m=g===void 0?378:g,h=t.mask,b=h===void 0?!0:h,x=t.maskClosable,S=x===void 0?!0:x,v=t.getContainer,y=t.forceRender,C=t.afterOpenChange,w=t.destroyOnClose,E=t.onMouseEnter,I=t.onMouseOver,T=t.onMouseLeave,R=t.onClick,_=t.onKeyDown,$=t.onKeyUp,M=t.panelRef,P=l.useState(!1),D=le(P,2),O=D[0],k=D[1],N=l.useState(!1),A=le(N,2),L=A[0],j=A[1];Yt(function(){j(!0)},[]);var F=L?r:!1,B=l.useRef(),z=l.useRef();Yt(function(){F&&(z.current=document.activeElement)},[F]);var U=function(ne){var W;if(k(ne),C==null||C(ne),!ne&&z.current&&!((W=B.current)!==null&&W!==void 0&&W.contains(z.current))){var q;(q=z.current)===null||q===void 0||q.focus({preventScroll:!0})}},H=l.useMemo(function(){return{panel:M}},[M]);if(!y&&!O&&!F&&w)return null;var Y={onMouseEnter:E,onMouseOver:I,onMouseLeave:T,onClick:R,onKeyDown:_,onKeyUp:$},K=X(X({},t),{},{open:F,prefixCls:o,placement:s,autoFocus:u,keyboard:p,width:m,mask:b,maskClosable:S,inline:v===!1,afterOpenChange:U,ref:B},Y);return l.createElement(Tq.Provider,{value:H},l.createElement(pm,{open:F||y||O,autoDestroy:!1,getContainer:v,autoLock:b&&(F||O)},l.createElement(sSe,K)))};const Rq=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:i,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:p,children:g,classNames:m,styles:h}=e,{drawer:b}=l.useContext(lt),x=l.useCallback(w=>l.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},w),[c]),[S,v]=WO(Pd(e),Pd(b),{closable:!0,closeIconRender:x}),y=l.useMemo(()=>{var w,E;return!a&&!S?null:l.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=b==null?void 0:b.styles)===null||w===void 0?void 0:w.header),u),h==null?void 0:h.header),className:ae(`${r}-header`,{[`${r}-header-close-only`]:S&&!a&&!i},(E=b==null?void 0:b.classNames)===null||E===void 0?void 0:E.header,m==null?void 0:m.header)},l.createElement("div",{className:`${r}-header-title`},v,a&&l.createElement("div",{className:`${r}-title`},a)),i&&l.createElement("div",{className:`${r}-extra`},i))},[S,v,i,u,r,a]),C=l.useMemo(()=>{var w,E;if(!o)return null;const I=`${r}-footer`;return l.createElement("div",{className:ae(I,(w=b==null?void 0:b.classNames)===null||w===void 0?void 0:w.footer,m==null?void 0:m.footer),style:Object.assign(Object.assign(Object.assign({},(E=b==null?void 0:b.styles)===null||E===void 0?void 0:E.footer),p),h==null?void 0:h.footer)},o)},[o,p,r]);return l.createElement(l.Fragment,null,y,l.createElement("div",{className:ae(`${r}-body`,m==null?void 0:m.body,(t=b==null?void 0:b.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=b==null?void 0:b.styles)===null||n===void 0?void 0:n.body),d),h==null?void 0:h.body)},s?l.createElement(Ul,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):g),C)},cSe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},_q=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),$q=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},_q({opacity:e},{opacity:1})),uSe=(e,t)=>[$q(.7,t),_q({transform:cSe(e)},{transform:"none"})],dSe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:$q(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:uSe(a,n)}),{})}}},fSe=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:s,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:p,lineHeightLG:g,lineWidth:m,lineType:h,colorSplit:b,marginXS:x,colorIcon:S,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:C,colorText:w,fontWeightStrong:E,footerPaddingBlock:I,footerPaddingInline:T,calc:R}=e,_=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:w,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[_]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${_}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${_}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${_}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${_}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${G(u)} ${G(d)}`,fontSize:p,lineHeight:g,borderBottom:`${G(m)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:R(p).add(c).equal(),height:R(p).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:x,color:S,fontWeight:E,fontSize:p,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:v,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:C}},ni(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:p,lineHeight:g},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${G(I)} ${G(T)}`,borderTop:`${G(m)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},pSe=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Oq=on("Drawer",e=>{const t=Ft(e,{});return[fSe(t),dSe(t)]},pSe);var Nq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=gSe,open:s,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:p,style:g,className:m,visible:h,afterVisibleChange:b,maskStyle:x,drawerStyle:S,contentWrapperStyle:v}=e,y=Nq(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:C,getPrefixCls:w,direction:E,drawer:I}=l.useContext(lt),T=w("drawer",d),[R,_,$]=Oq(T),M=p===void 0&&C?()=>C(document.body):p,P=ae({"no-mask":!o,[`${T}-rtl`]:E==="rtl"},t,_,$),D=l.useMemo(()=>n??(a==="large"?736:378),[n,a]),O=l.useMemo(()=>r??(a==="large"?736:378),[r,a]),k={motionName:Da(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=H=>({motionName:Da(T,`panel-motion-${H}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),A=RV(),[L,j]=Ai("Drawer",y.zIndex),{classNames:F={},styles:B={}}=y,{classNames:z={},styles:U={}}=I||{};return R(l.createElement(Ji,{form:!0,space:!0},l.createElement(sm.Provider,{value:j},l.createElement(lSe,Object.assign({prefixCls:T,onClose:u,maskMotion:k,motion:N},y,{classNames:{mask:ae(F.mask,z.mask),content:ae(F.content,z.content),wrapper:ae(F.wrapper,z.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),x),U.mask),content:Object.assign(Object.assign(Object.assign({},B.content),S),U.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),v),U.wrapper)},open:s??h,mask:o,push:i,width:D,height:O,style:Object.assign(Object.assign({},I==null?void 0:I.style),g),className:ae(I==null?void 0:I.className,m),rootClassName:P,getContainer:M,afterOpenChange:c??b,panelRef:A,zIndex:L}),l.createElement(Rq,Object.assign({prefixCls:T},y,{onClose:u}))))))},mSe=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=Nq(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=l.useContext(lt),s=i("drawer",t),[c,u,d]=Oq(s),p=ae(s,`${s}-pure`,`${s}-${a}`,u,d,r);return c(l.createElement("div",{className:p,style:n},l.createElement(Rq,Object.assign({prefixCls:s},o))))};d_._InternalPanelDoNotUseOrYouWillBeFired=mSe;function iP(e){return["small","middle","large"].includes(e)}function sP(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const kq=de.createContext({latestIndex:0}),hSe=kq.Provider,vSe=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:i}=l.useContext(kq);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:o},r),n{var n,r,a;const{getPrefixCls:o,space:i,direction:s}=l.useContext(lt),{size:c=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:p,children:g,direction:m="horizontal",prefixCls:h,split:b,style:x,wrap:S=!1,classNames:v,styles:y}=e,C=bSe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,E]=Array.isArray(c)?c:[c,c],I=iP(E),T=iP(w),R=sP(E),_=sP(w),$=_r(g,{keepEmpty:!0}),M=u===void 0&&m==="horizontal"?"center":u,P=o("space",h),[D,O,k]=QU(P),N=ae(P,i==null?void 0:i.className,O,`${P}-${m}`,{[`${P}-rtl`]:s==="rtl",[`${P}-align-${M}`]:M,[`${P}-gap-row-${E}`]:I,[`${P}-gap-col-${w}`]:T},d,p,k),A=ae(`${P}-item`,(r=v==null?void 0:v.item)!==null&&r!==void 0?r:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let L=0;const j=$.map((z,U)=>{var H,Y;z!=null&&(L=U);const K=(z==null?void 0:z.key)||`${A}-${U}`;return l.createElement(vSe,{className:A,key:K,index:U,split:b,style:(H=y==null?void 0:y.item)!==null&&H!==void 0?H:(Y=i==null?void 0:i.styles)===null||Y===void 0?void 0:Y.item},z)}),F=l.useMemo(()=>({latestIndex:L}),[L]);if($.length===0)return null;const B={};return S&&(B.flexWrap="wrap"),!T&&_&&(B.columnGap=w),!I&&R&&(B.rowGap=E),D(l.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),i==null?void 0:i.style),x)},C),l.createElement(hSe,{value:F},j)))}),Ha=ySe;Ha.Compact=Lle;var xSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(lt),{prefixCls:a,type:o="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:p,className:g,menu:m,arrow:h,autoFocus:b,overlay:x,trigger:S,align:v,open:y,onOpenChange:C,placement:w,getPopupContainer:E,href:I,icon:T=l.createElement(cN,null),title:R,buttonsRender:_=J=>J,mouseEnterDelay:$,mouseLeaveDelay:M,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:O,dropdownRender:k}=e,N=xSe(e,["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"]),A=n("dropdown",a),L=`${A}-button`,j={menu:m,arrow:h,autoFocus:b,align:v,disabled:s,trigger:s?[]:S,onOpenChange:C,getPopupContainer:E||t,mouseEnterDelay:$,mouseLeaveDelay:M,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:O,dropdownRender:k},{compactSize:F,compactItemClassnames:B}=Ds(A,r),z=ae(L,B,g);"overlay"in e&&(j.overlay=x),"open"in e&&(j.open=y),"placement"in e?j.placement=w:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const U=l.createElement(nt,{type:o,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:I,title:R},p),H=l.createElement(nt,{type:o,danger:i,icon:T}),[Y,K]=_([U,H]);return l.createElement(Ha.Compact,Object.assign({className:z,size:F,block:!0},N),Y,l.createElement(Sm,Object.assign({},j),K))};Aq.__ANT_BUTTON=!0;const Ny=Sm;Ny.Button=Aq;var SSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},CSe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:SSe}))},wSe=l.forwardRef(CSe);function Ub(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const ESe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},bq=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:s}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",p=t?"insetBlockStart":"insetInlineStart",g=t?"top":"insetInlineStart",m=s(r).mul(3).sub(a).div(2).equal(),h=s(a).sub(r).div(2).equal(),b=t?{borderWidth:`${G(h)} 0`,transform:`translateY(${G(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${G(h)}`,transform:`translateX(${G(e.calc(h).mul(-1).equal())})`};return{[c]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[p]:m},[`${n}-mark`]:{insetInlineStart:0,top:0,[g]:s(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[g]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[p]:s(r).sub(o).div(2).equal()}}},Txe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},bq(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Rxe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},bq(e,!1)),{height:"100%"})}},_xe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,s=new sn(i).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:s,handleColorDisabled:new sn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},$xe=on("Slider",e=>{const t=Bt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Ixe(t),Txe(t),Rxe(t)]},_xe),Oxe=l.createContext({});function GS(){const[e,t]=l.useState(!1),n=l.useRef(),r=()=>{Ut.cancel(n.current)},a=o=>{r(),o?t(o):n.current=Ut(()=>{t(o)})};return l.useEffect(()=>r,[]),[e,a]}var Nxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const Axe=de.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:s,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:p,tooltipPlacement:g,tooltip:m={},onChangeComplete:h}=e,b=Nxe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:x}=e,{direction:S,slider:v,getPrefixCls:y,getPopupContainer:w}=de.useContext(ut),C=de.useContext(pa),E=s??C,{handleRender:I,direction:T}=de.useContext(Oxe),_=(T||S)==="rtl",[$,M]=GS(),[P,D]=GS(),O=Object.assign({},m),{open:k,placement:N,getPopupContainer:A,prefixCls:L,formatter:j}=O,F=k??d,B=($||P)&&F!==!1,z=kxe(j,u),[U,H]=GS(),K=fe=>{h==null||h(fe),H(!1)},Y=(fe,te)=>fe||(te?_?"left":"right":"top"),ee=y("slider",n),[ae,W,q]=$xe(ee),Z=oe(a,v==null?void 0:v.className,o,{[`${ee}-rtl`]:_,[`${ee}-lock`]:U},W,q);_&&!b.vertical&&(b.reverse=!b.reverse),de.useEffect(()=>{const fe=()=>{Ut(()=>{D(!1)},1)};return document.addEventListener("mouseup",fe),()=>{document.removeEventListener("mouseup",fe)}},[]);const Q=r&&!F,J=I||((fe,te)=>{const{index:se}=te,pe=fe.props;function he(xe,Ee,ke){var $e,Le,je,He;ke&&((Le=($e=b)[xe])===null||Le===void 0||Le.call($e,Ee)),(He=(je=pe)[xe])===null||He===void 0||He.call(je,Ee)}const re=Object.assign(Object.assign({},pe),{onMouseEnter:xe=>{M(!0),he("onMouseEnter",xe)},onMouseLeave:xe=>{M(!1),he("onMouseLeave",xe)},onMouseDown:xe=>{D(!0),H(!0),he("onMouseDown",xe)},onFocus:xe=>{var Ee;D(!0),(Ee=b.onFocus)===null||Ee===void 0||Ee.call(b,xe),he("onFocus",xe,!0)},onBlur:xe=>{var Ee;D(!1),(Ee=b.onBlur)===null||Ee===void 0||Ee.call(b,xe),he("onBlur",xe,!0)}}),ue=de.cloneElement(fe,re),me=(!!F||B)&&z!==null;return Q?ue:de.createElement(tP,Object.assign({},O,{prefixCls:y("tooltip",L??c),title:z?z(te.value):"",open:me,placement:Y(N??g,x),key:se,overlayClassName:`${ee}-tooltip`,getPopupContainer:A||p||w}),ue)}),ie=Q?(fe,te)=>{const se=de.cloneElement(fe,{style:Object.assign(Object.assign({},fe.props.style),{visibility:"hidden"})});return de.createElement(tP,Object.assign({},O,{prefixCls:y("tooltip",L??c),title:z?z(te.value):"",open:z!==null&&B,placement:Y(N??g,x),key:"tooltip",overlayClassName:`${ee}-tooltip`,getPopupContainer:A||p||w,draggingDelete:te.draggingDelete}),se)}:void 0,le=Object.assign(Object.assign({},v==null?void 0:v.style),i);return ae(de.createElement(Exe,Object.assign({},b,{step:b.step,range:r,className:Z,style:le,disabled:E,ref:t,prefixCls:ee,handleRender:J,activeHandleRender:ie,onChangeComplete:K})))});var Mxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Dxe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Mxe}))},yq=l.forwardRef(Dxe),Pxe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Lxe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Pxe}))},xq=l.forwardRef(Lxe),jxe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Fxe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:jxe}))},Bxe=l.forwardRef(Fxe);function zxe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Hxe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function _N(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function Sq(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=ZO(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Uxe,Vxe]=["week","WeekPicker"],[Wxe,Gxe]=["month","MonthPicker"],[qxe,Kxe]=["year","YearPicker"],[Yxe,Xxe]=["quarter","QuarterPicker"],[wq,nP]=["time","TimePicker"],Zxe=e=>l.createElement(tt,Object.assign({size:"small",type:"primary"},e));function Cq(e){return l.useMemo(()=>Object.assign({button:Zxe},e),[e])}var Qxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:p,disabled:g,bordered:m=!0,placeholder:h,popupClassName:b,dropdownClassName:x,status:S,rootClassName:v,variant:y,picker:w}=n,C=Qxe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),E=l.useRef(null),{getPrefixCls:I,direction:T,getPopupContainer:R,rangePicker:_}=l.useContext(ut),$=I("picker",o),{compactSize:M,compactItemClassnames:P}=Ps($,T),D=I(),[O,k]=Jc("rangePicker",y,m),N=ar($),[A,L,j]=XG($,N),[F]=Sq(n,$),B=Cq(s),z=Lr(J=>{var ie;return(ie=p??M)!==null&&ie!==void 0?ie:J}),U=l.useContext(pa),H=g??U,K=l.useContext(ea),{hasFeedback:Y,status:ee,feedbackIcon:ae}=K,W=l.createElement(l.Fragment,null,w===wq?l.createElement(xq,null):l.createElement(yq,null),Y&&ae);l.useImperativeHandle(r,()=>E.current);const[q]=ns("Calendar",Nb),Z=Object.assign(Object.assign({},q),n.locale),[Q]=Mi("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return A(l.createElement(es,{space:!0},l.createElement(Xve,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${$}-separator`},l.createElement(Bxe,null)),disabled:H,ref:E,popupAlign:_N(T,d),placement:d,placeholder:Hxe(Z,w,h),suffixIcon:W,prevIcon:l.createElement("span",{className:`${$}-prev-icon`}),nextIcon:l.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:w},C,{className:oe({[`${$}-${z}`]:z,[`${$}-${O}`]:k},Ns($,Vl(ee,S),Y),L,P,c,_==null?void 0:_.className,j,N,v),style:Object.assign(Object.assign({},_==null?void 0:_.style),u),locale:Z.lang,prefixCls:$,getPopupContainer:i||R,generateConfig:e,components:B,direction:T,classNames:{popup:oe(L,b||x,j,N,v)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Q})},allowClear:F}))))});var eSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===nP?"timePicker":"datePicker";return l.forwardRef((g,m)=>{var h;const{prefixCls:b,getPopupContainer:x,components:S,style:v,className:y,rootClassName:w,size:C,bordered:E,placement:I,placeholder:T,popupClassName:R,dropdownClassName:_,disabled:$,status:M,variant:P,onCalendarChange:D}=g,O=eSe(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:N,getPopupContainer:A,[d]:L}=l.useContext(ut),j=k("picker",b),{compactSize:F,compactItemClassnames:B}=Ps(j,N),z=l.useRef(null),[U,H]=Jc("datePicker",P,E),K=ar(j),[Y,ee,ae]=XG(j,K);l.useImperativeHandle(m,()=>z.current);const W={showToday:!0},q=c||g.picker,Z=k(),{onSelect:Q,multiple:J}=O,ie=Q&&c==="time"&&!J,le=(He,Be,Pe)=>{D==null||D(He,Be,Pe),ie&&Q(He)},[fe,te]=Sq(g,j),se=Cq(S),pe=Lr(He=>{var Be;return(Be=C??F)!==null&&Be!==void 0?Be:He}),he=l.useContext(pa),re=$??he,ue=l.useContext(ea),{hasFeedback:me,status:xe,feedbackIcon:Ee}=ue,ke=l.createElement(l.Fragment,null,q==="time"?l.createElement(xq,null):l.createElement(yq,null),me&&Ee),[$e]=ns("DatePicker",Nb),Le=Object.assign(Object.assign({},$e),g.locale),[je]=Mi("DatePicker",(h=g.popupStyle)===null||h===void 0?void 0:h.zIndex);return Y(l.createElement(es,{space:!0},l.createElement(nbe,Object.assign({ref:z,placeholder:zxe(Le,q,T),suffixIcon:ke,dropdownAlign:_N(N,I),placement:I,prevIcon:l.createElement("span",{className:`${j}-prev-icon`}),nextIcon:l.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${Z}-slide-up`,picker:c,onCalendarChange:le},W,O,{locale:Le.lang,className:oe({[`${j}-${pe}`]:pe,[`${j}-${U}`]:H},Ns(j,Vl(xe,M),me),ee,B,L==null?void 0:L.className,y,ae,K,w),style:Object.assign(Object.assign({},L==null?void 0:L.style),v),prefixCls:j,getPopupContainer:x||A,generateConfig:e,components:se,direction:N,disabled:re,classNames:{popup:oe(ee,ae,K,w,R||_)},styles:{popup:Object.assign(Object.assign({},g.popupStyle),{zIndex:je})},allowClear:fe,removeIcon:te}))))})},n=t(),r=t(Uxe,Vxe),a=t(Wxe,Gxe),o=t(qxe,Kxe),i=t(Yxe,Xxe),s=t(wq,nP);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:i}},Eq=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=tSe(e),s=Jxe(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=s,c.TimePicker=o,c.QuarterPicker=i,c},hf=Eq(ive);function Iq(e){const t=_N(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const nSe=vm(hf,"picker",null,Iq);hf._InternalPanelDoNotUseOrYouWillBeFired=nSe;const rSe=vm(hf.RangePicker,"picker",null,Iq);hf._InternalRangePanelDoNotUseOrYouWillBeFired=rSe;hf.generatePicker=Eq;var rP=l.createContext(null),Tq=l.createContext({}),aSe=["prefixCls","className","containerRef"],oSe=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=Ct(t,aSe),i=l.useContext(Tq),s=i.panel,c=Ds(s,a);return l.createElement("div",be({className:oe("".concat(n,"-content"),r),role:"dialog",ref:c},ur(t,{aria:!0}),{"aria-modal":"true"},o))};function aP(e){return typeof e=="string"&&String(Number(e))===e?($n(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var oP={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function iSe(e,t){var n,r,a,o=e.prefixCls,i=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,p=e.autoFocus,g=e.keyboard,m=e.classNames,h=e.rootClassName,b=e.rootStyle,x=e.zIndex,S=e.className,v=e.id,y=e.style,w=e.motion,C=e.width,E=e.height,I=e.children,T=e.mask,R=e.maskClosable,_=e.maskMotion,$=e.maskClassName,M=e.maskStyle,P=e.afterOpenChange,D=e.onClose,O=e.onMouseEnter,k=e.onMouseOver,N=e.onMouseLeave,A=e.onClick,L=e.onKeyDown,j=e.onKeyUp,F=e.styles,B=e.drawerRender,z=l.useRef(),U=l.useRef(),H=l.useRef();l.useImperativeHandle(t,function(){return z.current});var K=function(re){var ue=re.keyCode,me=re.shiftKey;switch(ue){case Fe.TAB:{if(ue===Fe.TAB){if(!me&&document.activeElement===H.current){var xe;(xe=U.current)===null||xe===void 0||xe.focus({preventScroll:!0})}else if(me&&document.activeElement===U.current){var Ee;(Ee=H.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}}break}case Fe.ESC:{D&&g&&(re.stopPropagation(),D(re));break}}};l.useEffect(function(){if(i&&p){var he;(he=z.current)===null||he===void 0||he.focus({preventScroll:!0})}},[i]);var Y=l.useState(!1),ee=ce(Y,2),ae=ee[0],W=ee[1],q=l.useContext(rP),Z;typeof u=="boolean"?Z=u?{}:{distance:0}:Z=u||{};var Q=(n=(r=(a=Z)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:q==null?void 0:q.pushDistance)!==null&&n!==void 0?n:180,J=l.useMemo(function(){return{pushDistance:Q,push:function(){W(!0)},pull:function(){W(!1)}}},[Q]);l.useEffect(function(){if(i){var he;q==null||(he=q.push)===null||he===void 0||he.call(q)}else{var re;q==null||(re=q.pull)===null||re===void 0||re.call(q)}},[i]),l.useEffect(function(){return function(){var he;q==null||(he=q.pull)===null||he===void 0||he.call(q)}},[]);var ie=T&&l.createElement(Qr,be({key:"mask"},_,{visible:i}),function(he,re){var ue=he.className,me=he.style;return l.createElement("div",{className:oe("".concat(o,"-mask"),ue,m==null?void 0:m.mask,$),style:X(X(X({},me),M),F==null?void 0:F.mask),onClick:R&&i?D:void 0,ref:re})}),le=typeof w=="function"?w(s):w,fe={};if(ae&&Q)switch(s){case"top":fe.transform="translateY(".concat(Q,"px)");break;case"bottom":fe.transform="translateY(".concat(-Q,"px)");break;case"left":fe.transform="translateX(".concat(Q,"px)");break;default:fe.transform="translateX(".concat(-Q,"px)");break}s==="left"||s==="right"?fe.width=aP(C):fe.height=aP(E);var te={onMouseEnter:O,onMouseOver:k,onMouseLeave:N,onClick:A,onKeyDown:L,onKeyUp:j},se=l.createElement(Qr,be({key:"panel"},le,{visible:i,forceRender:d,onVisibleChanged:function(re){P==null||P(re)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(he,re){var ue=he.className,me=he.style,xe=l.createElement(oSe,be({id:v,containerRef:re,prefixCls:o,className:oe(S,m==null?void 0:m.content),style:X(X({},y),F==null?void 0:F.content)},ur(e,{aria:!0}),te),I);return l.createElement("div",be({className:oe("".concat(o,"-content-wrapper"),m==null?void 0:m.wrapper,ue),style:X(X(X({},fe),me),F==null?void 0:F.wrapper)},ur(e,{data:!0})),B?B(xe):xe)}),pe=X({},b);return x&&(pe.zIndex=x),l.createElement(rP.Provider,{value:J},l.createElement("div",{className:oe(o,"".concat(o,"-").concat(s),h,V(V({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:pe,tabIndex:-1,ref:z,onKeyDown:K},ie,l.createElement("div",{tabIndex:0,ref:U,style:oP,"aria-hidden":"true","data-sentinel":"start"}),se,l.createElement("div",{tabIndex:0,ref:H,style:oP,"aria-hidden":"true","data-sentinel":"end"})))}var sSe=l.forwardRef(iSe),lSe=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,s=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,p=d===void 0?!0:d,g=t.width,m=g===void 0?378:g,h=t.mask,b=h===void 0?!0:h,x=t.maskClosable,S=x===void 0?!0:x,v=t.getContainer,y=t.forceRender,w=t.afterOpenChange,C=t.destroyOnClose,E=t.onMouseEnter,I=t.onMouseOver,T=t.onMouseLeave,R=t.onClick,_=t.onKeyDown,$=t.onKeyUp,M=t.panelRef,P=l.useState(!1),D=ce(P,2),O=D[0],k=D[1],N=l.useState(!1),A=ce(N,2),L=A[0],j=A[1];Yt(function(){j(!0)},[]);var F=L?r:!1,B=l.useRef(),z=l.useRef();Yt(function(){F&&(z.current=document.activeElement)},[F]);var U=function(ae){var W;if(k(ae),w==null||w(ae),!ae&&z.current&&!((W=B.current)!==null&&W!==void 0&&W.contains(z.current))){var q;(q=z.current)===null||q===void 0||q.focus({preventScroll:!0})}},H=l.useMemo(function(){return{panel:M}},[M]);if(!y&&!O&&!F&&C)return null;var K={onMouseEnter:E,onMouseOver:I,onMouseLeave:T,onClick:R,onKeyDown:_,onKeyUp:$},Y=X(X({},t),{},{open:F,prefixCls:o,placement:s,autoFocus:u,keyboard:p,width:m,mask:b,maskClosable:S,inline:v===!1,afterOpenChange:U,ref:B},K);return l.createElement(Tq.Provider,{value:H},l.createElement(gm,{open:F||y||O,autoDestroy:!1,getContainer:v,autoLock:b&&(F||O)},l.createElement(sSe,Y)))};const Rq=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:i,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:p,children:g,classNames:m,styles:h}=e,{drawer:b}=l.useContext(ut),x=l.useCallback(C=>l.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},C),[c]),[S,v]=WO(Pd(e),Pd(b),{closable:!0,closeIconRender:x}),y=l.useMemo(()=>{var C,E;return!a&&!S?null:l.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=b==null?void 0:b.styles)===null||C===void 0?void 0:C.header),u),h==null?void 0:h.header),className:oe(`${r}-header`,{[`${r}-header-close-only`]:S&&!a&&!i},(E=b==null?void 0:b.classNames)===null||E===void 0?void 0:E.header,m==null?void 0:m.header)},l.createElement("div",{className:`${r}-header-title`},v,a&&l.createElement("div",{className:`${r}-title`},a)),i&&l.createElement("div",{className:`${r}-extra`},i))},[S,v,i,u,r,a]),w=l.useMemo(()=>{var C,E;if(!o)return null;const I=`${r}-footer`;return l.createElement("div",{className:oe(I,(C=b==null?void 0:b.classNames)===null||C===void 0?void 0:C.footer,m==null?void 0:m.footer),style:Object.assign(Object.assign(Object.assign({},(E=b==null?void 0:b.styles)===null||E===void 0?void 0:E.footer),p),h==null?void 0:h.footer)},o)},[o,p,r]);return l.createElement(l.Fragment,null,y,l.createElement("div",{className:oe(`${r}-body`,m==null?void 0:m.body,(t=b==null?void 0:b.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=b==null?void 0:b.styles)===null||n===void 0?void 0:n.body),d),h==null?void 0:h.body)},s?l.createElement(Ul,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):g),w)},cSe=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},_q=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),$q=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},_q({opacity:e},{opacity:1})),uSe=(e,t)=>[$q(.7,t),_q({transform:cSe(e)},{transform:"none"})],dSe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:$q(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:uSe(a,n)}),{})}}},fSe=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:s,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:p,lineHeightLG:g,lineWidth:m,lineType:h,colorSplit:b,marginXS:x,colorIcon:S,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:w,colorText:C,fontWeightStrong:E,footerPaddingBlock:I,footerPaddingInline:T,calc:R}=e,_=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:C,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[_]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${_}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${_}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${_}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${_}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${G(u)} ${G(d)}`,fontSize:p,lineHeight:g,borderBottom:`${G(m)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:R(p).add(c).equal(),height:R(p).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:x,color:S,fontWeight:E,fontSize:p,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:v,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:w}},ri(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:p,lineHeight:g},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${G(I)} ${G(T)}`,borderTop:`${G(m)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},pSe=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Oq=on("Drawer",e=>{const t=Bt(e,{});return[fSe(t),dSe(t)]},pSe);var Nq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=gSe,open:s,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:p,style:g,className:m,visible:h,afterVisibleChange:b,maskStyle:x,drawerStyle:S,contentWrapperStyle:v}=e,y=Nq(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:C,direction:E,drawer:I}=l.useContext(ut),T=C("drawer",d),[R,_,$]=Oq(T),M=p===void 0&&w?()=>w(document.body):p,P=oe({"no-mask":!o,[`${T}-rtl`]:E==="rtl"},t,_,$),D=l.useMemo(()=>n??(a==="large"?736:378),[n,a]),O=l.useMemo(()=>r??(a==="large"?736:378),[r,a]),k={motionName:Da(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=H=>({motionName:Da(T,`panel-motion-${H}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),A=RV(),[L,j]=Mi("Drawer",y.zIndex),{classNames:F={},styles:B={}}=y,{classNames:z={},styles:U={}}=I||{};return R(l.createElement(es,{form:!0,space:!0},l.createElement(lm.Provider,{value:j},l.createElement(lSe,Object.assign({prefixCls:T,onClose:u,maskMotion:k,motion:N},y,{classNames:{mask:oe(F.mask,z.mask),content:oe(F.content,z.content),wrapper:oe(F.wrapper,z.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),x),U.mask),content:Object.assign(Object.assign(Object.assign({},B.content),S),U.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),v),U.wrapper)},open:s??h,mask:o,push:i,width:D,height:O,style:Object.assign(Object.assign({},I==null?void 0:I.style),g),className:oe(I==null?void 0:I.className,m),rootClassName:P,getContainer:M,afterOpenChange:c??b,panelRef:A,zIndex:L}),l.createElement(Rq,Object.assign({prefixCls:T},y,{onClose:u}))))))},mSe=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=Nq(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=l.useContext(ut),s=i("drawer",t),[c,u,d]=Oq(s),p=oe(s,`${s}-pure`,`${s}-${a}`,u,d,r);return c(l.createElement("div",{className:p,style:n},l.createElement(Rq,Object.assign({prefixCls:s},o))))};f_._InternalPanelDoNotUseOrYouWillBeFired=mSe;function iP(e){return["small","middle","large"].includes(e)}function sP(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const kq=de.createContext({latestIndex:0}),hSe=kq.Provider,vSe=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:i}=l.useContext(kq);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:o},r),n{var n,r,a;const{getPrefixCls:o,space:i,direction:s}=l.useContext(ut),{size:c=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:p,children:g,direction:m="horizontal",prefixCls:h,split:b,style:x,wrap:S=!1,classNames:v,styles:y}=e,w=bSe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,E]=Array.isArray(c)?c:[c,c],I=iP(E),T=iP(C),R=sP(E),_=sP(C),$=_r(g,{keepEmpty:!0}),M=u===void 0&&m==="horizontal"?"center":u,P=o("space",h),[D,O,k]=QU(P),N=oe(P,i==null?void 0:i.className,O,`${P}-${m}`,{[`${P}-rtl`]:s==="rtl",[`${P}-align-${M}`]:M,[`${P}-gap-row-${E}`]:I,[`${P}-gap-col-${C}`]:T},d,p,k),A=oe(`${P}-item`,(r=v==null?void 0:v.item)!==null&&r!==void 0?r:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let L=0;const j=$.map((z,U)=>{var H,K;z!=null&&(L=U);const Y=(z==null?void 0:z.key)||`${A}-${U}`;return l.createElement(vSe,{className:A,key:Y,index:U,split:b,style:(H=y==null?void 0:y.item)!==null&&H!==void 0?H:(K=i==null?void 0:i.styles)===null||K===void 0?void 0:K.item},z)}),F=l.useMemo(()=>({latestIndex:L}),[L]);if($.length===0)return null;const B={};return S&&(B.flexWrap="wrap"),!T&&_&&(B.columnGap=C),!I&&R&&(B.rowGap=E),D(l.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},B),i==null?void 0:i.style),x)},w),l.createElement(hSe,{value:F},j)))}),Ha=ySe;Ha.Compact=Lle;var xSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(ut),{prefixCls:a,type:o="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:p,className:g,menu:m,arrow:h,autoFocus:b,overlay:x,trigger:S,align:v,open:y,onOpenChange:w,placement:C,getPopupContainer:E,href:I,icon:T=l.createElement(cN,null),title:R,buttonsRender:_=ee=>ee,mouseEnterDelay:$,mouseLeaveDelay:M,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:O,dropdownRender:k}=e,N=xSe(e,["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"]),A=n("dropdown",a),L=`${A}-button`,j={menu:m,arrow:h,autoFocus:b,align:v,disabled:s,trigger:s?[]:S,onOpenChange:w,getPopupContainer:E||t,mouseEnterDelay:$,mouseLeaveDelay:M,overlayClassName:P,overlayStyle:D,destroyPopupOnHide:O,dropdownRender:k},{compactSize:F,compactItemClassnames:B}=Ps(A,r),z=oe(L,B,g);"overlay"in e&&(j.overlay=x),"open"in e&&(j.open=y),"placement"in e?j.placement=C:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const U=l.createElement(tt,{type:o,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:I,title:R},p),H=l.createElement(tt,{type:o,danger:i,icon:T}),[K,Y]=_([U,H]);return l.createElement(Ha.Compact,Object.assign({className:z,size:F,block:!0},N),K,l.createElement(wm,Object.assign({},j),Y))};Aq.__ANT_BUTTON=!0;const Ay=wm;Ay.Button=Aq;var SSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},wSe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:SSe}))},CSe=l.forwardRef(wSe);function Vb(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const ESe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},ISe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),lP=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},TSe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},an(e)),ISe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},lP(e,e.controlHeightSM)),"&-large":Object.assign({},lP(e,e.controlHeightLG))})}},RSe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:a,antCls:o,labelRequiredMarkColor:i,labelColor:s,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:p,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},an(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:p},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${a}-col-'"]):not([class*="' ${a}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:AO,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},cP=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},_Se=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},yi=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Mq=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:yi(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},$Se=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},xi=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Mq=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:xi(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},$Se=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:yi(e)}},[`@media (max-width: ${G(e.screenXSMax)})`]:[Mq(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:yi(e)}}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:yi(e)}}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:yi(e)}}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:yi(e)}}}}},OSe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${r}-col-xl-24${n}-label`]:xi(e)}},[`@media (max-width: ${G(e.screenXSMax)})`]:[Mq(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:xi(e)}}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:xi(e)}}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:xi(e)}}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:xi(e)}}}}},OSe=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:yi(e),[`@media (max-width: ${G(e.screenXSMax)})`]:[Mq(e),{[t]:{[`${n}-col-xs-24${t}-label`]:yi(e)}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:yi(e)}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:yi(e)}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:yi(e)}}}},NSe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Dq=(e,t)=>Ft(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$N=on("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Dq(e,n);return[TSe(r),RSe(r),ESe(r),cP(r,r.componentCls),cP(r,r.formItemCls),_Se(r),$Se(r),OSe(r),um(r),AO]},NSe,{order:-1e3}),uP=[];function WS(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Pq=e=>{let{help:t,helpStatus:n,errors:r=uP,warnings:a=uP,className:o,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(VO),u=`${c}-item-explain`,d=ar(c),[p,g,m]=$N(c,d),h=l.useMemo(()=>Ad(c),[c]),b=Ub(r),x=Ub(a),S=l.useMemo(()=>t!=null?[WS(t,"help",n)]:[].concat(Me(b.map((y,C)=>WS(y,"error","error",C))),Me(x.map((y,C)=>WS(y,"warning","warning",C)))),[t,n,b,x]),v={};return i&&(v.id=`${i}_help`),p(l.createElement(Qr,{motionDeadline:h.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:s},y=>{const{className:C,style:w}=y;return l.createElement("div",Object.assign({},v,{className:ae(u,C,m,d,o,g),style:w,role:"alert"}),l.createElement(_O,Object.assign({keys:S},Ad(c),{motionName:`${c}-show-help-item`,component:!1}),E=>{const{key:I,error:T,errorStatus:R,className:_,style:$}=E;return l.createElement("div",{key:I,className:ae(_,{[`${u}-${R}`]:R}),style:$},T)}))}))},kSe=["parentNode"],ASe="form_item";function Fp(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Lq(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:kSe.includes(n)?`${ASe}_${n}`:n}function jq(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}function dP(e){return Fp(e).join("_")}function MSe(e,t){const n=t.getFieldInstance(e),r=dO(n);if(r)return r;const a=Lq(Fp(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function Fq(e){const[t]=UO(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=dP(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=MSe(a,r);i&&Qse(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:a=>{const o=dP(a);return n.current[o]}}),[e,t]);return[r]}var DSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(fa),{getPrefixCls:r,direction:a,form:o}=l.useContext(lt),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:p,colon:g,labelAlign:m,labelWrap:h,labelCol:b,wrapperCol:x,hideRequiredMark:S,layout:v="horizontal",scrollToFirstError:y,requiredMark:C,onFinishFailed:w,name:E,style:I,feedbackIcons:T,variant:R}=e,_=DSe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=Lr(u),M=l.useContext(uU),P=l.useMemo(()=>C!==void 0?C:S?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[S,C,o]),D=g??(o==null?void 0:o.colon),O=r("form",i),k=ar(O),[N,A,L]=$N(O,k),j=ae(O,`${O}-${v}`,{[`${O}-hide-required-mark`]:P===!1,[`${O}-rtl`]:a==="rtl",[`${O}-${$}`]:$},L,k,A,o==null?void 0:o.className,s,c),[F]=Fq(p),{__INTERNAL__:B}=F;B.name=E;const z=l.useMemo(()=>({name:E,labelAlign:m,labelCol:b,labelWrap:h,wrapperCol:x,vertical:v==="vertical",colon:D,requiredMark:P,itemRef:B.itemRef,form:F,feedbackIcons:T}),[E,m,b,x,v,D,P,F,T]),U=l.useRef(null);l.useImperativeHandle(t,()=>{var K;return Object.assign(Object.assign({},F),{nativeElement:(K=U.current)===null||K===void 0?void 0:K.nativeElement})});const H=(K,J)=>{if(K){let ne={block:"nearest"};typeof K=="object"&&(ne=K),F.scrollToField(J,ne)}},Y=K=>{if(w==null||w(K),K.errorFields.length){const J=K.errorFields[0].name;if(y!==void 0){H(y,J);return}o&&o.scrollToFirstError!==void 0&&H(o.scrollToFirstError,J)}};return N(l.createElement(IV.Provider,{value:R},l.createElement(EO,{disabled:d},l.createElement(Lc.Provider,{value:$},l.createElement(EV,{validateMessages:M},l.createElement(_s.Provider,{value:z},l.createElement(cf,Object.assign({id:E},_,{name:E,onFinishFailed:Y,form:F,ref:U,style:Object.assign(Object.assign({},o==null?void 0:o.style),I),className:j}))))))))},LSe=l.forwardRef(PSe);function jSe(e){if(typeof e=="function")return e;const t=_r(e);return t.length<=1?t[0]:t}const Bq=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(ea);return{status:e,errors:t,warnings:n}};Bq.Context=ea;function FSe(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),o=l.useRef(!1);l.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ht.cancel(r.current),r.current=null}),[]);function i(s){o.current||(r.current===null&&(a.current=[],r.current=Ht(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(s))}return[t,i]}function BSe(){const{itemRef:e}=l.useContext(_s),t=l.useRef({});function n(r,a){const o=a&&typeof a=="object"&&a.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=ga(e(r),o)),t.current.ref}return n}const zSe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},HSe=Qc(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Dq(e,n);return[zSe(r)]}),USe=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:o,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:p,onErrorVisibleChanged:g}=e,m=`${t}-item`,h=l.useContext(_s),b=r||h.wrapperCol||{},x=ae(`${m}-control`,b.className),S=l.useMemo(()=>Object.assign({},h),[h]);delete S.labelCol,delete S.wrapperCol;const v=l.createElement("div",{className:`${m}-control-input`},l.createElement("div",{className:`${m}-control-input-content`},a)),y=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),C=p!==null||o.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(VO.Provider,{value:y},l.createElement(Pq,{fieldId:d,errors:o,warnings:i,help:u,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:g})),!!p&&l.createElement("div",{style:{width:0,height:p}})):null,w={};d&&(w.id=`${d}_extra`);const E=c?l.createElement("div",Object.assign({},w,{className:`${m}-extra`}),c):null,I=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:v,errorList:C,extra:E}):l.createElement(l.Fragment,null,v,C,E);return l.createElement(_s.Provider,{value:S},l.createElement(Nn,Object.assign({},b,{className:x}),I),l.createElement(HSe,{prefixCls:t}))};var VSe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},WSe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:VSe}))},Mg=l.forwardRef(WSe),GSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:i,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var p;const[g]=es("Form"),{labelAlign:m,labelCol:h,labelWrap:b,colon:x}=l.useContext(_s);if(!n)return null;const S=a||h||{},v=o||m,y=`${t}-item-label`,C=ae(y,v==="left"&&`${y}-left`,S.className,{[`${y}-wrap`]:!!b});let w=n;const E=i===!0||x!==!1&&i!==!1;E&&!d&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const T=qSe(u);if(T){const{icon:M=l.createElement(Mg,null)}=T,P=GSe(T,["icon"]),D=l.createElement(Wt,Object.assign({},P),l.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:O=>{O.preventDefault()},tabIndex:null}));w=l.createElement(l.Fragment,null,w,D)}const R=c==="optional",_=typeof c=="function";_?w=c(w,{required:!!s}):R&&!s&&(w=l.createElement(l.Fragment,null,w,l.createElement("span",{className:`${t}-item-optional`,title:""},(g==null?void 0:g.optional)||((p=ti.Form)===null||p===void 0?void 0:p.optional))));const $=ae({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:R||_,[`${t}-item-no-colon`]:!E});return l.createElement(Nn,Object.assign({},S,{className:C}),l.createElement("label",{htmlFor:r,className:$,title:typeof n=="string"?n:""},w))},YSe={success:of,warning:im,error:Hl,validating:Zi};function zq(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(_s),p=jq(n,r,s,null,!!a,o),{isFormItemInput:g,status:m,hasFeedback:h,feedbackIcon:b}=l.useContext(ea),x=l.useMemo(()=>{var S;let v;if(a){const C=a!==!0&&a.icons||d,w=p&&((S=C==null?void 0:C({status:p,errors:n,warnings:r}))===null||S===void 0?void 0:S[p]),E=p&&YSe[p];v=w!==!1&&E?l.createElement("span",{className:ae(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},w||l.createElement(E,null)):null}const y={status:p||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:v,isFormItemInput:!0};return c&&(y.status=(p??m)||"",y.isFormItemInput=g,y.hasFeedback=!!(a??h),y.feedbackIcon=a!==void 0?y.feedbackIcon:b),y},[p,a,c,g,m]);return l.createElement(ea.Provider,{value:x},t)}var XSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if($&&I.current){const L=getComputedStyle(I.current);D(parseInt(L.marginBottom,10))}},[$,M]);const O=L=>{L||D(null)},N=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const j=L?T:u.errors,F=L?R:u.warnings;return jq(j,F,u,"",!!d,c)}(),A=ae(y,n,r,{[`${y}-with-help`]:_||T.length||R.length,[`${y}-has-feedback`]:N&&d,[`${y}-has-success`]:N==="success",[`${y}-has-warning`]:N==="warning",[`${y}-has-error`]:N==="error",[`${y}-is-validating`]:N==="validating",[`${y}-hidden`]:p,[`${y}-${S}`]:S});return l.createElement("div",{className:A,style:a,ref:I},l.createElement(Oa,Object.assign({className:`${y}-row`},Mn(v,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(KSe,Object.assign({htmlFor:m},e,{requiredMark:C,required:h??b,prefixCls:t,vertical:E})),l.createElement(USe,Object.assign({},e,u,{errors:T,warnings:R,prefixCls:t,status:N,help:o,marginBottom:P,onErrorVisibleChanged:O}),l.createElement(wV.Provider,{value:x},l.createElement(zq,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:N},g)))),!!P&&l.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-P}}))}const QSe="__SPLIT__";function JSe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const e1e=l.memo(e=>{let{children:t}=e;return t},(e,t)=>JSe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function fP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function t1e(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:p,trigger:g="onChange",validateTrigger:m,hidden:h,help:b,layout:x}=e,{getPrefixCls:S}=l.useContext(lt),{name:v}=l.useContext(_s),y=jSe(c),C=typeof y=="function",w=l.useContext(wV),{validateTrigger:E}=l.useContext(Fc),I=m!==void 0?m:E,T=t!=null,R=S("form",o),_=ar(R),[$,M,P]=$N(R,_);zl();const D=l.useContext(Ng),O=l.useRef(),[k,N]=FSe({}),[A,L]=jc(()=>fP()),j=K=>{const J=D==null?void 0:D.getKey(K.name);if(L(K.destroy?fP():K,!0),n&&b!==!1&&w){let ne=K.name;if(K.destroy)ne=O.current||ne;else if(J!==void 0){const[W,q]=J;ne=[W].concat(Me(q)),O.current=ne}w(K,ne)}},F=(K,J)=>{N(ne=>{const W=Object.assign({},ne),Z=[].concat(Me(K.name.slice(0,-1)),Me(J)).join(QSe);return K.destroy?delete W[Z]:W[Z]=K,W})},[B,z]=l.useMemo(()=>{const K=Me(A.errors),J=Me(A.warnings);return Object.values(k).forEach(ne=>{K.push.apply(K,Me(ne.errors||[])),J.push.apply(J,Me(ne.warnings||[]))}),[K,J]},[k,A.errors,A.warnings]),U=BSe();function H(K,J,ne){return n&&!h?l.createElement(zq,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:A,errors:B,warnings:z,noStyle:!0},K):l.createElement(ZSe,Object.assign({key:"row"},e,{className:ae(r,P,_,M),prefixCls:R,fieldId:J,isRequired:ne,errors:B,warnings:z,meta:A,onSubItemMetaChange:F,layout:x}),K)}if(!T&&!C&&!a)return $(H(y));let Y={};return typeof d=="string"?Y.label=d:t&&(Y.label=String(t)),p&&(Y=Object.assign(Object.assign({},Y),p)),$(l.createElement(HO,Object.assign({},e,{messageVariables:Y,trigger:g,validateTrigger:I,onMetaChange:j}),(K,J,ne)=>{const W=Fp(t).length&&J?J.name:[],q=Lq(W,v),Z=u!==void 0?u:!!(s!=null&&s.some(oe=>{if(oe&&typeof oe=="object"&&oe.required&&!oe.warningOnly)return!0;if(typeof oe=="function"){const se=oe(ne);return(se==null?void 0:se.required)&&!(se!=null&&se.warningOnly)}return!1})),Q=Object.assign({},K);let ee=null;if(Array.isArray(y)&&T)ee=y;else if(!(C&&(!(i||a)||T))){if(!(a&&!C&&!T))if(l.isValidElement(y)){const oe=Object.assign(Object.assign({},y.props),Q);if(oe.id||(oe.id=q),b||B.length>0||z.length>0||e.extra){const te=[];(b||B.length>0)&&te.push(`${q}_help`),e.extra&&te.push(`${q}_extra`),oe["aria-describedby"]=te.join(" ")}B.length>0&&(oe["aria-invalid"]="true"),Z&&(oe["aria-required"]="true"),Ri(y)&&(oe.ref=U(W,y)),new Set([].concat(Me(Fp(g)),Me(Fp(I)))).forEach(te=>{oe[te]=function(){for(var ie,pe,me,re,ce,ge=arguments.length,ye=new Array(ge),Ee=0;Ee{var{prefixCls:t,children:n}=e,r=n1e(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(lt),o=a("form",t),i=l.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return l.createElement(yV,Object.assign({},r),(s,c,u)=>l.createElement(VO.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function a1e(){const{form:e}=l.useContext(_s);return e}const Kt=LSe;Kt.Item=$m;Kt.List=r1e;Kt.ErrorList=Pq;Kt.useForm=Fq;Kt.useFormInstance=a1e;Kt.useWatch=CV;Kt.Provider=EV;Kt.create=()=>{};function Hq(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function f_(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Gi(e,t,n,r){var a=gg.unstable_batchedUpdates?function(i){gg.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var Om=l.createContext(null),o1e=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,o=t.prefixCls,i=t.rootClassName,s=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,p=t.current,g=t.transform,m=t.count,h=t.scale,b=t.minScale,x=t.maxScale,S=t.closeIcon,v=t.onActive,y=t.onClose,C=t.onZoomIn,w=t.onZoomOut,E=t.onRotateRight,I=t.onRotateLeft,T=t.onFlipX,R=t.onFlipY,_=t.onReset,$=t.toolbarRender,M=t.zIndex,P=t.image,D=l.useContext(Om),O=s.rotateLeft,k=s.rotateRight,N=s.zoomIn,A=s.zoomOut,L=s.close,j=s.left,F=s.right,B=s.flipX,z=s.flipY,U="".concat(o,"-operations-operation");l.useEffect(function(){var se=function(te){te.keyCode===ze.ESC&&y()};return n&&window.addEventListener("keydown",se),function(){window.removeEventListener("keydown",se)}},[n]);var H=function(fe,te){fe.preventDefault(),fe.stopPropagation(),v(te)},Y=l.useCallback(function(se){var fe=se.type,te=se.disabled,ie=se.onClick,pe=se.icon;return l.createElement("div",{key:fe,className:ae(U,"".concat(o,"-operations-operation-").concat(fe),V({},"".concat(o,"-operations-operation-disabled"),!!te)),onClick:ie},pe)},[U,o]),K=u?Y({icon:j,onClick:function(fe){return H(fe,-1)},type:"prev",disabled:p===0}):void 0,J=u?Y({icon:F,onClick:function(fe){return H(fe,1)},type:"next",disabled:p===m-1}):void 0,ne=Y({icon:z,onClick:R,type:"flipY"}),W=Y({icon:B,onClick:T,type:"flipX"}),q=Y({icon:O,onClick:I,type:"rotateLeft"}),Z=Y({icon:k,onClick:E,type:"rotateRight"}),Q=Y({icon:A,onClick:w,type:"zoomOut",disabled:h<=b}),ee=Y({icon:N,onClick:C,type:"zoomIn",disabled:h===x}),oe=l.createElement("div",{className:"".concat(o,"-operations")},ne,W,q,Z,Q,ee);return l.createElement(Qr,{visible:n,motionName:r},function(se){var fe=se.className,te=se.style;return l.createElement(pm,{open:!0,getContainer:a??document.body},l.createElement("div",{className:ae("".concat(o,"-operations-wrapper"),fe,i),style:X(X({},te),{},{zIndex:M})},S===null?null:l.createElement("button",{className:"".concat(o,"-close"),onClick:y},S||L),u&&l.createElement(l.Fragment,null,l.createElement("div",{className:ae("".concat(o,"-switch-left"),V({},"".concat(o,"-switch-left-disabled"),p===0)),onClick:function(pe){return H(pe,-1)}},j),l.createElement("div",{className:ae("".concat(o,"-switch-right"),V({},"".concat(o,"-switch-right-disabled"),p===m-1)),onClick:function(pe){return H(pe,1)}},F)),l.createElement("div",{className:"".concat(o,"-footer")},d&&l.createElement("div",{className:"".concat(o,"-progress")},c?c(p+1,m):"".concat(p+1," / ").concat(m)),$?$(oe,X(X({icons:{prevIcon:K,nextIcon:J,flipYIcon:ne,flipXIcon:W,rotateLeftIcon:q,rotateRightIcon:Z,zoomOutIcon:Q,zoomInIcon:ee},actions:{onActive:v,onFlipY:R,onFlipX:T,onRotateLeft:I,onRotateRight:E,onZoomOut:w,onZoomIn:C,onReset:_,onClose:y},transform:g},D?{current:p,total:m}:{}),{},{image:P})):oe)))})},Fh={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function i1e(e,t,n,r){var a=l.useRef(null),o=l.useRef([]),i=l.useState(Fh),s=le(i,2),c=s[0],u=s[1],d=function(h){u(Fh),Jo(Fh,c)||r==null||r({transform:Fh,action:h})},p=function(h,b){a.current===null&&(o.current=[],a.current=Ht(function(){u(function(x){var S=x;return o.current.forEach(function(v){S=X(X({},S),v)}),a.current=null,r==null||r({transform:S,action:b}),S})})),o.current.push(X(X({},c),h))},g=function(h,b,x,S,v){var y=e.current,C=y.width,w=y.height,E=y.offsetWidth,I=y.offsetHeight,T=y.offsetLeft,R=y.offsetTop,_=h,$=c.scale*h;$>n?($=n,_=n/c.scale):$r){if(t>0)return V({},e,o);if(t<0&&ar)return V({},e,t<0?o:-o);return{}}function Uq(e,t,n,r){var a=Hq(),o=a.width,i=a.height,s=null;return e<=o&&t<=i?s={x:0,y:0}:(e>o||t>i)&&(s=X(X({},pP("x",n,e,o)),pP("y",r,t,i))),s}var td=1,s1e=1;function l1e(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,p=l.useState(!1),g=le(p,2),m=g[0],h=g[1],b=l.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),x=function(w){!t||w.button!==0||(w.preventDefault(),w.stopPropagation(),b.current={diffX:w.pageX-u,diffY:w.pageY-d,transformX:u,transformY:d},h(!0))},S=function(w){n&&m&&o({x:w.pageX-b.current.diffX,y:w.pageY-b.current.diffY},"move")},v=function(){if(n&&m){h(!1);var w=b.current,E=w.transformX,I=w.transformY,T=u!==E&&d!==I;if(!T)return;var R=e.current.offsetWidth*c,_=e.current.offsetHeight*c,$=e.current.getBoundingClientRect(),M=$.left,P=$.top,D=s%180!==0,O=Uq(D?_:R,D?R:_,M,P);O&&o(X({},O),"dragRebound")}},y=function(w){if(!(!n||w.deltaY==0)){var E=Math.abs(w.deltaY/100),I=Math.min(E,s1e),T=td+I*r;w.deltaY>0&&(T=td/T),i(T,"wheel",w.clientX,w.clientY)}};return l.useEffect(function(){var C,w,E,I;if(t){E=Gi(window,"mouseup",v,!1),I=Gi(window,"mousemove",S,!1);try{window.top!==window.self&&(C=Gi(window.top,"mouseup",v,!1),w=Gi(window.top,"mousemove",S,!1))}catch{}}return function(){var T,R,_,$;(T=E)===null||T===void 0||T.remove(),(R=I)===null||R===void 0||R.remove(),(_=C)===null||_===void 0||_.remove(),($=w)===null||$===void 0||$.remove()}},[n,m,u,d,s,t]),{isMoving:m,onMouseDown:x,onMouseMove:S,onMouseUp:v,onWheel:y}}function c1e(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function Vq(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=l.useState(n?"loading":"normal"),o=le(a,2),i=o[0],s=o[1],c=l.useRef(!1),u=i==="error";l.useEffect(function(){var m=!0;return c1e(t).then(function(h){!h&&m&&s("error")}),function(){m=!1}},[t]),l.useEffect(function(){n&&!c.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},p=function(h){c.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(c.current=!0,d())},g=u&&r?{src:r}:{onLoad:d,src:t};return[p,g,i]}function Vb(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function u1e(e,t,n,r){var a=Vb(e,n),o=Vb(t,r);if(a===0&&o===0)return[e.x,e.y];var i=a/(a+o),s=e.x+i*(t.x-e.x),c=e.y+i*(t.y-e.y);return[s,c]}function d1e(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,p=l.useState(!1),g=le(p,2),m=g[0],h=g[1],b=l.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(w){b.current=X(X({},b.current),w)},S=function(w){if(t){w.stopPropagation(),h(!0);var E=w.touches,I=E===void 0?[]:E;I.length>1?x({point1:{x:I[0].clientX,y:I[0].clientY},point2:{x:I[1].clientX,y:I[1].clientY},eventType:"touchZoom"}):x({point1:{x:I[0].clientX-u,y:I[0].clientY-d},eventType:"move"})}},v=function(w){var E=w.touches,I=E===void 0?[]:E,T=b.current,R=T.point1,_=T.point2,$=T.eventType;if(I.length>1&&$==="touchZoom"){var M={x:I[0].clientX,y:I[0].clientY},P={x:I[1].clientX,y:I[1].clientY},D=u1e(R,_,M,P),O=le(D,2),k=O[0],N=O[1],A=Vb(M,P)/Vb(R,_);i(A,"touchZoom",k,N,!0),x({point1:M,point2:P,eventType:"touchZoom"})}else $==="move"&&(o({x:I[0].clientX-R.x,y:I[0].clientY-R.y},"move"),x({eventType:"move"}))},y=function(){if(n){if(m&&h(!1),x({eventType:"none"}),r>c)return o({x:0,y:0,scale:r},"touchZoom");var w=e.current.offsetWidth*c,E=e.current.offsetHeight*c,I=e.current.getBoundingClientRect(),T=I.left,R=I.top,_=s%180!==0,$=Uq(_?E:w,_?w:E,T,R);$&&o(X({},$),"dragRebound")}};return l.useEffect(function(){var C;return n&&t&&(C=Gi(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=C)===null||w===void 0||w.remove()}},[n,t]),{isTouching:m,onTouchStart:S,onTouchMove:v,onTouchEnd:y}}var f1e=["fallback","src","imgRef"],p1e=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],g1e=function(t){var n=t.fallback,r=t.src,a=t.imgRef,o=wt(t,f1e),i=Vq({src:r,fallback:n}),s=le(i,2),c=s[0],u=s[1];return de.createElement("img",he({ref:function(p){a.current=p,c(p)}},o,u))},Wq=function(t){var n=t.prefixCls,r=t.src,a=t.alt,o=t.imageInfo,i=t.fallback,s=t.movable,c=s===void 0?!0:s,u=t.onClose,d=t.visible,p=t.icons,g=p===void 0?{}:p,m=t.rootClassName,h=t.closeIcon,b=t.getContainer,x=t.current,S=x===void 0?0:x,v=t.count,y=v===void 0?1:v,C=t.countRender,w=t.scaleStep,E=w===void 0?.5:w,I=t.minScale,T=I===void 0?1:I,R=t.maxScale,_=R===void 0?50:R,$=t.transitionName,M=$===void 0?"zoom":$,P=t.maskTransitionName,D=P===void 0?"fade":P,O=t.imageRender,k=t.imgCommonProps,N=t.toolbarRender,A=t.onTransform,L=t.onChange,j=wt(t,p1e),F=l.useRef(),B=l.useContext(Om),z=B&&y>1,U=B&&y>=1,H=l.useState(!0),Y=le(H,2),K=Y[0],J=Y[1],ne=i1e(F,T,_,A),W=ne.transform,q=ne.resetTransform,Z=ne.updateTransform,Q=ne.dispatchZoomChange,ee=l1e(F,c,d,E,W,Z,Q),oe=ee.isMoving,se=ee.onMouseDown,fe=ee.onWheel,te=d1e(F,c,d,T,W,Z,Q),ie=te.isTouching,pe=te.onTouchStart,me=te.onTouchMove,re=te.onTouchEnd,ce=W.rotate,ge=W.scale,ye=ae(V({},"".concat(n,"-moving"),oe));l.useEffect(function(){K||J(!0)},[K]);var Ee=function(){q("close")},Ne=function(){Q(td+E,"zoomIn")},_e=function(){Q(td/(td+E),"zoomOut")},Pe=function(){Z({rotate:ce+90},"rotateRight")},Le=function(){Z({rotate:ce-90},"rotateLeft")},Ve=function(){Z({flipX:!W.flipX},"flipX")},je=function(){Z({flipY:!W.flipY},"flipY")},De=function(){q("reset")},Se=function(Fe){var be=S+Fe;!Number.isInteger(be)||be<0||be>y-1||(J(!1),q(Fe<0?"prev":"next"),L==null||L(be,S))},Oe=function(Fe){!d||!z||(Fe.keyCode===ze.LEFT?Se(-1):Fe.keyCode===ze.RIGHT&&Se(1))},Re=function(Fe){d&&(ge!==1?Z({x:0,y:0,scale:1},"doubleClick"):Q(td+E,"doubleClick",Fe.clientX,Fe.clientY))};l.useEffect(function(){var $e=Gi(window,"keydown",Oe,!1);return function(){$e.remove()}},[d,z,S]);var Ce=de.createElement(g1e,he({},k,{width:t.width,height:t.height,imgRef:F,className:"".concat(n,"-img"),alt:a,style:{transform:"translate3d(".concat(W.x,"px, ").concat(W.y,"px, 0) scale3d(").concat(W.flipX?"-":"").concat(ge,", ").concat(W.flipY?"-":"").concat(ge,", 1) rotate(").concat(ce,"deg)"),transitionDuration:(!K||ie)&&"0s"},fallback:i,src:r,onWheel:fe,onMouseDown:se,onDoubleClick:Re,onTouchStart:pe,onTouchMove:me,onTouchEnd:re,onTouchCancel:re})),xe=X({url:r,alt:a},o);return de.createElement(de.Fragment,null,de.createElement(BO,he({transitionName:M,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:u,visible:d,classNames:{wrapper:ye},rootClassName:m,getContainer:b},j,{afterClose:Ee}),de.createElement("div",{className:"".concat(n,"-img-wrapper")},O?O(Ce,X({transform:W,image:xe},B?{current:S}:{})):Ce)),de.createElement(o1e,{visible:d,transform:W,maskTransitionName:D,closeIcon:h,getContainer:b,prefixCls:n,rootClassName:m,icons:g,countRender:C,showSwitch:z,showProgress:U,current:S,count:y,scale:ge,minScale:T,maxScale:_,toolbarRender:N,onActive:Se,onZoomIn:Ne,onZoomOut:_e,onRotateRight:Pe,onRotateLeft:Le,onFlipX:Ve,onFlipY:je,onClose:u,onReset:De,zIndex:j.zIndex!==void 0?j.zIndex+1:void 0,image:xe}))},p_=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function m1e(e){var t=l.useState({}),n=le(t,2),r=n[0],a=n[1],o=l.useCallback(function(s,c){return a(function(u){return X(X({},u),{},V({},s,c))}),function(){a(function(u){var d=X({},u);return delete d[s],d})}},[]),i=l.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var c={};return Object.keys(s).forEach(function(u){["src"].concat(Me(p_)).includes(u)&&(c[u]=s[u])}),{data:c}}):Object.keys(r).reduce(function(s,c){var u=r[c],d=u.canPreview,p=u.data;return d&&s.push({data:p,id:c}),s},[])},[e,r]);return[i,o,!!e]}var h1e=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],v1e=["src"],b1e=function(t){var n,r=t.previewPrefixCls,a=r===void 0?"rc-image-preview":r,o=t.children,i=t.icons,s=i===void 0?{}:i,c=t.items,u=t.preview,d=t.fallback,p=mt(u)==="object"?u:{},g=p.visible,m=p.onVisibleChange,h=p.getContainer,b=p.current,x=p.movable,S=p.minScale,v=p.maxScale,y=p.countRender,C=p.closeIcon,w=p.onChange,E=p.onTransform,I=p.toolbarRender,T=p.imageRender,R=wt(p,h1e),_=m1e(c),$=le(_,3),M=$[0],P=$[1],D=$[2],O=fn(0,{value:b}),k=le(O,2),N=k[0],A=k[1],L=l.useState(!1),j=le(L,2),F=j[0],B=j[1],z=((n=M[N])===null||n===void 0?void 0:n.data)||{},U=z.src,H=wt(z,v1e),Y=fn(!!g,{value:g,onChange:function(ie,pe){m==null||m(ie,pe,N)}}),K=le(Y,2),J=K[0],ne=K[1],W=l.useState(null),q=le(W,2),Z=q[0],Q=q[1],ee=l.useCallback(function(te,ie,pe,me){var re=D?M.findIndex(function(ce){return ce.data.src===ie}):M.findIndex(function(ce){return ce.id===te});A(re<0?0:re),ne(!0),Q({x:pe,y:me}),B(!0)},[M,D]);l.useEffect(function(){J?F||A(0):B(!1)},[J]);var oe=function(ie,pe){A(ie),w==null||w(ie,pe)},se=function(){ne(!1),Q(null)},fe=l.useMemo(function(){return{register:P,onPreview:ee}},[P,ee]);return l.createElement(Om.Provider,{value:fe},o,l.createElement(Wq,he({"aria-hidden":!J,movable:x,visible:J,prefixCls:a,closeIcon:C,onClose:se,mousePosition:Z,imgCommonProps:H,src:U,fallback:d,icons:s,minScale:S,maxScale:v,getContainer:h,current:N,count:M.length,countRender:y,onTransform:E,toolbarRender:I,imageRender:T,onChange:oe},R)))},gP=0;function y1e(e,t){var n=l.useState(function(){return gP+=1,String(gP)}),r=le(n,1),a=r[0],o=l.useContext(Om),i={data:t,canPreview:e};return l.useEffect(function(){if(o)return o.register(a,i)},[]),l.useEffect(function(){o&&o.register(a,i)},[e,t]),a}var x1e=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],S1e=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ON=function(t){var n=t.src,r=t.alt,a=t.onPreviewClose,o=t.prefixCls,i=o===void 0?"rc-image":o,s=t.previewPrefixCls,c=s===void 0?"".concat(i,"-preview"):s,u=t.placeholder,d=t.fallback,p=t.width,g=t.height,m=t.style,h=t.preview,b=h===void 0?!0:h,x=t.className,S=t.onClick,v=t.onError,y=t.wrapperClassName,C=t.wrapperStyle,w=t.rootClassName,E=wt(t,x1e),I=u&&u!==!0,T=mt(b)==="object"?b:{},R=T.src,_=T.visible,$=_===void 0?void 0:_,M=T.onVisibleChange,P=M===void 0?a:M,D=T.getContainer,O=D===void 0?void 0:D,k=T.mask,N=T.maskClassName,A=T.movable,L=T.icons,j=T.scaleStep,F=T.minScale,B=T.maxScale,z=T.imageRender,U=T.toolbarRender,H=wt(T,S1e),Y=R??n,K=fn(!!$,{value:$,onChange:P}),J=le(K,2),ne=J[0],W=J[1],q=Vq({src:n,isCustomPlaceholder:I,fallback:d}),Z=le(q,3),Q=Z[0],ee=Z[1],oe=Z[2],se=l.useState(null),fe=le(se,2),te=fe[0],ie=fe[1],pe=l.useContext(Om),me=!!b,re=function(){W(!1),ie(null)},ce=ae(i,y,w,V({},"".concat(i,"-error"),oe==="error")),ge=l.useMemo(function(){var _e={};return p_.forEach(function(Pe){t[Pe]!==void 0&&(_e[Pe]=t[Pe])}),_e},p_.map(function(_e){return t[_e]})),ye=l.useMemo(function(){return X(X({},ge),{},{src:Y})},[Y,ge]),Ee=y1e(me,ye),Ne=function(Pe){var Le=f_(Pe.target),Ve=Le.left,je=Le.top;pe?pe.onPreview(Ee,Y,Ve,je):(ie({x:Ve,y:je}),W(!0)),S==null||S(Pe)};return l.createElement(l.Fragment,null,l.createElement("div",he({},E,{className:ce,onClick:me?Ne:S,style:X({width:p,height:g},C)}),l.createElement("img",he({},ge,{className:ae("".concat(i,"-img"),V({},"".concat(i,"-img-placeholder"),u===!0),x),style:X({height:g},m),ref:Q},ee,{width:p,height:g,onError:v})),oe==="loading"&&l.createElement("div",{"aria-hidden":"true",className:"".concat(i,"-placeholder")},u),k&&me&&l.createElement("div",{className:ae("".concat(i,"-mask"),N),style:{display:(m==null?void 0:m.display)==="none"?"none":void 0}},k)),!pe&&me&&l.createElement(Wq,he({"aria-hidden":!ne,visible:ne,prefixCls:c,onClose:re,mousePosition:te,src:Y,alt:r,imageInfo:{width:p,height:g},fallback:d,getContainer:O,icons:L,movable:A,scaleStep:j,minScale:F,maxScale:B,rootClassName:w,imageRender:z,imgCommonProps:ge,toolbarRender:U},H)))};ON.PreviewGroup=b1e;var C1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},w1e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:C1e}))},E1e=l.forwardRef(w1e),I1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},T1e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:I1e}))},R1e=l.forwardRef(T1e),_1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},$1e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:_1e}))},mP=l.forwardRef($1e),O1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},N1e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:O1e}))},k1e=l.forwardRef(N1e),A1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},M1e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:A1e}))},D1e=l.forwardRef(M1e);const g_=e=>({position:e||"absolute",inset:0}),P1e=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:o,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new sn("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Oo),{padding:`0 ${G(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},L1e=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:o,paddingLG:i,previewOperationColorDisabled:s,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:p}=e,g=new sn(n).setAlpha(.1),m=g.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:p,backgroundColor:g.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${G(i)}`,backgroundColor:g.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},j1e=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:o,motionDurationSlow:i}=e,s=new sn(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},F1e=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},g_()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},g_()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[L1e(e),j1e(e)]}]},B1e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},P1e(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},g_())}}},z1e=e=>{const{previewCls:t}=e;return{[`${t}-root`]:lf(e,"zoom"),"&":kO(e,!0)}},H1e=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new sn(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new sn(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new sn(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Gq=on("Image",e=>{const t=`${e.componentCls}-preview`,n=Ft(e,{previewCls:t,modalMaskBg:new sn("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[B1e(n),F1e(n),OV(Ft(n,{componentCls:t})),z1e(n)]},H1e);var U1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=U1e(e,["previewPrefixCls","preview"]);const{getPrefixCls:a}=l.useContext(lt),o=a("image",t),i=`${o}-preview`,s=a(),c=ar(o),[u,d,p]=Gq(o,c),[g]=Ai("ImagePreview",typeof n=="object"?n.zIndex:void 0),m=l.useMemo(()=>{var h;if(n===!1)return n;const b=typeof n=="object"?n:{},x=ae(d,p,c,(h=b.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},b),{transitionName:Da(s,"zoom",b.transitionName),maskTransitionName:Da(s,"fade",b.maskTransitionName),rootClassName:x,zIndex:g})},[n]);return u(l.createElement(ON.PreviewGroup,Object.assign({preview:m,previewPrefixCls:i,icons:qq},r)))};var hP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,preview:r,className:a,rootClassName:o,style:i}=e,s=hP(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=ti,getPopupContainer:d,image:p}=l.useContext(lt),g=c("image",n),m=c(),h=u.Image||ti.Image,b=ar(g),[x,S,v]=Gq(g,b),y=ae(o,S,v,b),C=ae(a,S,p==null?void 0:p.className),[w]=Ai("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=l.useMemo(()=>{var T;if(r===!1)return r;const R=typeof r=="object"?r:{},{getContainer:_,closeIcon:$}=R,M=hP(R,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:l.createElement("div",{className:`${g}-mask-info`},l.createElement(kl,null),h==null?void 0:h.preview),icons:qq},M),{getContainer:_??d,transitionName:Da(m,"zoom",R.transitionName),maskTransitionName:Da(m,"fade",R.maskTransitionName),zIndex:w,closeIcon:$??((T=p==null?void 0:p.preview)===null||T===void 0?void 0:T.closeIcon)})},[r,h,(t=p==null?void 0:p.preview)===null||t===void 0?void 0:t.closeIcon]),I=Object.assign(Object.assign({},p==null?void 0:p.style),i);return x(l.createElement(ON,Object.assign({prefixCls:g,preview:E,rootClassName:y,className:C,style:I},s)))};dn.PreviewGroup=V1e;function W1e(e,t,n){return typeof n=="boolean"?n:e.length?!0:_r(t).some(a=>a.type===lN)}var Kq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((i,s)=>l.createElement(a,Object.assign({ref:s,suffixCls:t,tagName:n},i)))}const NN=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=Kq(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(lt),c=s("layout",n),[u,d,p]=YW(c),g=r?`${c}-${r}`:c;return u(l.createElement(o,Object.assign({className:ae(n||g,a,d,p),ref:t},i)))}),G1e=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(lt),[r,a]=l.useState([]),{prefixCls:o,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:p}=e,g=Kq(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=Mn(g,["suffixCls"]),{getPrefixCls:h,layout:b}=l.useContext(lt),x=h("layout",o),S=W1e(r,c,u),[v,y,C]=YW(x),w=ae(x,{[`${x}-has-sider`]:S,[`${x}-rtl`]:n==="rtl"},b==null?void 0:b.className,i,s,y,C),E=l.useMemo(()=>({siderHook:{addSider:I=>{a(T=>[].concat(Me(T),[I]))},removeSider:I=>{a(T=>T.filter(R=>R!==I))}}}),[]);return v(l.createElement(GW.Provider,{value:E},l.createElement(d,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},b==null?void 0:b.style),p)},m),c)))}),q1e=ky({tagName:"div",displayName:"Layout"})(G1e),Yq=ky({suffixCls:"header",tagName:"header",displayName:"Header"})(NN),Xq=ky({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(NN),K1e=ky({suffixCls:"content",tagName:"main",displayName:"Content"})(NN),ks=q1e;ks.Header=Yq;ks.Footer=Xq;ks.Content=K1e;ks.Sider=lN;ks._InternalSiderContext=by;const Zq=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var Y1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},X1e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Y1e}))},vP=l.forwardRef(X1e),Z1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Q1e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Z1e}))},bP=l.forwardRef(Q1e),J1e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},eCe=["10","20","50","100"],tCe=function(t){var n=t.pageSizeOptions,r=n===void 0?eCe:n,a=t.locale,o=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,p=t.selectPrefixCls,g=t.disabled,m=t.buildOptionText,h=t.showSizeChanger,b=de.useState(""),x=le(b,2),S=x[0],v=x[1],y=function(){return!S||Number.isNaN(S)?void 0:Number(S)},C=typeof m=="function"?m:function(A){return"".concat(A," ").concat(a.items_per_page)},w=function(L,j){if(o==null||o(Number(L)),mt(h)==="object"){var F;(F=h.onChange)===null||F===void 0||F.call(h,L,j)}},E=function(L){v(L.target.value)},I=function(L){s||S===""||(v(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(y())))},T=function(L){S!==""&&(L.keyCode===ze.ENTER||L.type==="click")&&(v(""),c==null||c(y()))},R=function(){return r.some(function(L){return L.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(L,j){var F=Number.isNaN(Number(L))?0:Number(L),B=Number.isNaN(Number(j))?0:Number(j);return F-B})},_="".concat(u,"-options");if(!h&&!c)return null;var $=null,M=null,P=null;if(h&&d){var D=mt(h)==="object"?h:{},O=D.options,k=D.className,N=O?void 0:R().map(function(A,L){return de.createElement(d.Option,{key:L,value:A.toString()},C(A))});$=de.createElement(d,he({disabled:g,prefixCls:p,showSearch:!1,optionLabelProp:O?"label":"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),getPopupContainer:function(L){return L.parentNode},"aria-label":a.page_size,defaultOpen:!1},mt(h)==="object"?h:null,{className:ae("".concat(_,"-size-changer"),k),options:O,onChange:w}),N)}return c&&(s&&(P=typeof s=="boolean"?de.createElement("button",{type:"button",onClick:T,onKeyUp:T,disabled:g,className:"".concat(_,"-quick-jumper-button")},a.jump_to_confirm):de.createElement("span",{onClick:T,onKeyUp:T},s)),M=de.createElement("div",{className:"".concat(_,"-quick-jumper")},a.jump_to,de.createElement("input",{disabled:g,type:"text",value:S,onChange:E,onKeyUp:T,onBlur:I,"aria-label":a.page}),a.page,P)),de.createElement("li",{className:_},$,M)},Qf=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,i=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),p=ae(d,"".concat(d,"-").concat(r),V(V({},"".concat(d,"-active"),a),"".concat(d,"-disabled"),!r),o),g=function(){s(r)},m=function(x){c(x,s,r)},h=u(r,"page",de.createElement("a",{rel:"nofollow"},r));return h?de.createElement("li",{title:i?String(r):null,className:p,onClick:g,onKeyDown:m,tabIndex:0},h):null},nCe=function(t,n,r){return r};function yP(){}function xP(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ql(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var rCe=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,i=t.className,s=t.selectComponentClass,c=t.current,u=t.defaultCurrent,d=u===void 0?1:u,p=t.total,g=p===void 0?0:p,m=t.pageSize,h=t.defaultPageSize,b=h===void 0?10:h,x=t.onChange,S=x===void 0?yP:x,v=t.hideOnSinglePage,y=t.align,C=t.showPrevNextJumpers,w=C===void 0?!0:C,E=t.showQuickJumper,I=t.showLessItems,T=t.showTitle,R=T===void 0?!0:T,_=t.onShowSizeChange,$=_===void 0?yP:_,M=t.locale,P=M===void 0?J1e:M,D=t.style,O=t.totalBoundaryShowSizeChanger,k=O===void 0?50:O,N=t.disabled,A=t.simple,L=t.showTotal,j=t.showSizeChanger,F=j===void 0?g>k:j,B=t.pageSizeOptions,z=t.itemRender,U=z===void 0?nCe:z,H=t.jumpPrevIcon,Y=t.jumpNextIcon,K=t.prevIcon,J=t.nextIcon,ne=de.useRef(null),W=fn(10,{value:m,defaultValue:b}),q=le(W,2),Z=q[0],Q=q[1],ee=fn(1,{value:c,defaultValue:d,postState:function(At){return Math.max(1,Math.min(At,Ql(void 0,Z,g)))}}),oe=le(ee,2),se=oe[0],fe=oe[1],te=de.useState(se),ie=le(te,2),pe=ie[0],me=ie[1];l.useEffect(function(){me(se)},[se]);var re=Math.max(1,se-(I?3:5)),ce=Math.min(Ql(void 0,Z,g),se+(I?3:5));function ge(yt,At){var jt=yt||de.createElement("button",{type:"button","aria-label":At,className:"".concat(r,"-item-link")});return typeof yt=="function"&&(jt=de.createElement(yt,X({},t))),jt}function ye(yt){var At=yt.target.value,jt=Ql(void 0,Z,g),tn;return At===""?tn=At:Number.isNaN(Number(At))?tn=pe:At>=jt?tn=jt:tn=Number(At),tn}function Ee(yt){return xP(yt)&&yt!==se&&xP(g)&&g>0}var Ne=g>Z?E:!1;function _e(yt){(yt.keyCode===ze.UP||yt.keyCode===ze.DOWN)&&yt.preventDefault()}function Pe(yt){var At=ye(yt);switch(At!==pe&&me(At),yt.keyCode){case ze.ENTER:je(At);break;case ze.UP:je(At-1);break;case ze.DOWN:je(At+1);break}}function Le(yt){je(ye(yt))}function Ve(yt){var At=Ql(yt,Z,g),jt=se>At&&At!==0?At:se;Q(yt),me(jt),$==null||$(se,yt),fe(jt),S==null||S(jt,yt)}function je(yt){if(Ee(yt)&&!N){var At=Ql(void 0,Z,g),jt=yt;return yt>At?jt=At:yt<1&&(jt=1),jt!==pe&&me(jt),fe(jt),S==null||S(jt,Z),jt}return se}var De=se>1,Se=se2?jt-2:0),An=2;Ang?g:se*Z])),ct=null,rt=Ql(void 0,Z,g);if(v&&g<=Z)return null;var qe=[],Ye={rootPrefixCls:r,onClick:je,onKeyPress:$e,showTitle:R,itemRender:U,page:-1},at=se-1>0?se-1:0,ut=se+1=tt*2&&se!==3&&(qe[0]=de.cloneElement(qe[0],{className:ae("".concat(r,"-item-after-jump-prev"),qe[0].props.className)}),qe.unshift(ke)),rt-se>=tt*2&&se!==rt-2){var Je=qe[qe.length-1];qe[qe.length-1]=de.cloneElement(Je,{className:ae("".concat(r,"-item-before-jump-next"),Je.props.className)}),qe.push(ct)}Ze!==1&&qe.unshift(de.createElement(Qf,he({},Ye,{key:1,page:1}))),st!==rt&&qe.push(de.createElement(Qf,he({},Ye,{key:rt,page:rt})))}var Xe=We(at);if(Xe){var _t=!De||!rt;Xe=de.createElement("li",{title:R?P.prev_page:null,onClick:Oe,tabIndex:_t?null:0,onKeyDown:Fe,className:ae("".concat(r,"-prev"),V({},"".concat(r,"-disabled"),_t)),"aria-disabled":_t},Xe)}var Mt=He(ut);if(Mt){var Ut,mn;A?(Ut=!Se,mn=De?0:null):(Ut=!Se||!rt,mn=Ut?null:0),Mt=de.createElement("li",{title:R?P.next_page:null,onClick:Re,tabIndex:mn,onKeyDown:be,className:ae("".concat(r,"-next"),V({},"".concat(r,"-disabled"),Ut)),"aria-disabled":Ut},Mt)}var pn=ae(r,i,V(V(V(V(V({},"".concat(r,"-start"),y==="start"),"".concat(r,"-center"),y==="center"),"".concat(r,"-end"),y==="end"),"".concat(r,"-simple"),A),"".concat(r,"-disabled"),N));return de.createElement("ul",he({className:pn,style:D,ref:ne},Ae),Ue,Xe,A?et:qe,Mt,de.createElement(tCe,{locale:P,rootPrefixCls:r,disabled:N,selectComponentClass:s,selectPrefixCls:o,changeSize:Ve,pageSize:Z,pageSizeOptions:B,quickGo:Ne?je:null,goButton:xt,showSizeChanger:F}))};const Qq=e=>l.createElement(cr,Object.assign({},e,{showSearch:!0,size:"small"})),Jq=e=>l.createElement(cr,Object.assign({},e,{showSearch:!0,size:"middle"}));Qq.Option=cr.Option;Jq.Option=cr.Option;const aCe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},oCe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + ${n}-col-xl-24${t}-label`]:xi(e),[`@media (max-width: ${G(e.screenXSMax)})`]:[Mq(e),{[t]:{[`${n}-col-xs-24${t}-label`]:xi(e)}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:xi(e)}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:xi(e)}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:xi(e)}}}},NSe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Dq=(e,t)=>Bt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$N=on("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Dq(e,n);return[TSe(r),RSe(r),ESe(r),cP(r,r.componentCls),cP(r,r.formItemCls),_Se(r),$Se(r),OSe(r),dm(r),AO]},NSe,{order:-1e3}),uP=[];function qS(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Pq=e=>{let{help:t,helpStatus:n,errors:r=uP,warnings:a=uP,className:o,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(VO),u=`${c}-item-explain`,d=ar(c),[p,g,m]=$N(c,d),h=l.useMemo(()=>Ad(c),[c]),b=Vb(r),x=Vb(a),S=l.useMemo(()=>t!=null?[qS(t,"help",n)]:[].concat(De(b.map((y,w)=>qS(y,"error","error",w))),De(x.map((y,w)=>qS(y,"warning","warning",w)))),[t,n,b,x]),v={};return i&&(v.id=`${i}_help`),p(l.createElement(Qr,{motionDeadline:h.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:s},y=>{const{className:w,style:C}=y;return l.createElement("div",Object.assign({},v,{className:oe(u,w,m,d,o,g),style:C,role:"alert"}),l.createElement(_O,Object.assign({keys:S},Ad(c),{motionName:`${c}-show-help-item`,component:!1}),E=>{const{key:I,error:T,errorStatus:R,className:_,style:$}=E;return l.createElement("div",{key:I,className:oe(_,{[`${u}-${R}`]:R}),style:$},T)}))}))},kSe=["parentNode"],ASe="form_item";function Bp(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Lq(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:kSe.includes(n)?`${ASe}_${n}`:n}function jq(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}function dP(e){return Bp(e).join("_")}function MSe(e,t){const n=t.getFieldInstance(e),r=dO(n);if(r)return r;const a=Lq(Bp(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function Fq(e){const[t]=UO(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=dP(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=MSe(a,r);i&&Qse(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:a=>{const o=dP(a);return n.current[o]}}),[e,t]);return[r]}var DSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(pa),{getPrefixCls:r,direction:a,form:o}=l.useContext(ut),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:p,colon:g,labelAlign:m,labelWrap:h,labelCol:b,wrapperCol:x,hideRequiredMark:S,layout:v="horizontal",scrollToFirstError:y,requiredMark:w,onFinishFailed:C,name:E,style:I,feedbackIcons:T,variant:R}=e,_=DSe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=Lr(u),M=l.useContext(uU),P=l.useMemo(()=>w!==void 0?w:S?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[S,w,o]),D=g??(o==null?void 0:o.colon),O=r("form",i),k=ar(O),[N,A,L]=$N(O,k),j=oe(O,`${O}-${v}`,{[`${O}-hide-required-mark`]:P===!1,[`${O}-rtl`]:a==="rtl",[`${O}-${$}`]:$},L,k,A,o==null?void 0:o.className,s,c),[F]=Fq(p),{__INTERNAL__:B}=F;B.name=E;const z=l.useMemo(()=>({name:E,labelAlign:m,labelCol:b,labelWrap:h,wrapperCol:x,vertical:v==="vertical",colon:D,requiredMark:P,itemRef:B.itemRef,form:F,feedbackIcons:T}),[E,m,b,x,v,D,P,F,T]),U=l.useRef(null);l.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},F),{nativeElement:(Y=U.current)===null||Y===void 0?void 0:Y.nativeElement})});const H=(Y,ee)=>{if(Y){let ae={block:"nearest"};typeof Y=="object"&&(ae=Y),F.scrollToField(ee,ae)}},K=Y=>{if(C==null||C(Y),Y.errorFields.length){const ee=Y.errorFields[0].name;if(y!==void 0){H(y,ee);return}o&&o.scrollToFirstError!==void 0&&H(o.scrollToFirstError,ee)}};return N(l.createElement(IV.Provider,{value:R},l.createElement(EO,{disabled:d},l.createElement(Lc.Provider,{value:$},l.createElement(EV,{validateMessages:M},l.createElement(Os.Provider,{value:z},l.createElement(cf,Object.assign({id:E},_,{name:E,onFinishFailed:K,form:F,ref:U,style:Object.assign(Object.assign({},o==null?void 0:o.style),I),className:j}))))))))},LSe=l.forwardRef(PSe);function jSe(e){if(typeof e=="function")return e;const t=_r(e);return t.length<=1?t[0]:t}const Bq=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(ea);return{status:e,errors:t,warnings:n}};Bq.Context=ea;function FSe(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),o=l.useRef(!1);l.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ut.cancel(r.current),r.current=null}),[]);function i(s){o.current||(r.current===null&&(a.current=[],r.current=Ut(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(s))}return[t,i]}function BSe(){const{itemRef:e}=l.useContext(Os),t=l.useRef({});function n(r,a){const o=a&&typeof a=="object"&&a.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=ma(e(r),o)),t.current.ref}return n}const zSe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},HSe=Qc(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Dq(e,n);return[zSe(r)]}),USe=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:o,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:p,onErrorVisibleChanged:g}=e,m=`${t}-item`,h=l.useContext(Os),b=r||h.wrapperCol||{},x=oe(`${m}-control`,b.className),S=l.useMemo(()=>Object.assign({},h),[h]);delete S.labelCol,delete S.wrapperCol;const v=l.createElement("div",{className:`${m}-control-input`},l.createElement("div",{className:`${m}-control-input-content`},a)),y=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),w=p!==null||o.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(VO.Provider,{value:y},l.createElement(Pq,{fieldId:d,errors:o,warnings:i,help:u,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:g})),!!p&&l.createElement("div",{style:{width:0,height:p}})):null,C={};d&&(C.id=`${d}_extra`);const E=c?l.createElement("div",Object.assign({},C,{className:`${m}-extra`}),c):null,I=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:v,errorList:w,extra:E}):l.createElement(l.Fragment,null,v,w,E);return l.createElement(Os.Provider,{value:S},l.createElement(Cn,Object.assign({},b,{className:x}),I),l.createElement(HSe,{prefixCls:t}))};var VSe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},WSe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:VSe}))},Dg=l.forwardRef(WSe),GSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:i,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var p;const[g]=ns("Form"),{labelAlign:m,labelCol:h,labelWrap:b,colon:x}=l.useContext(Os);if(!n)return null;const S=a||h||{},v=o||m,y=`${t}-item-label`,w=oe(y,v==="left"&&`${y}-left`,S.className,{[`${y}-wrap`]:!!b});let C=n;const E=i===!0||x!==!1&&i!==!1;E&&!d&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const T=qSe(u);if(T){const{icon:M=l.createElement(Dg,null)}=T,P=GSe(T,["icon"]),D=l.createElement(Ft,Object.assign({},P),l.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:O=>{O.preventDefault()},tabIndex:null}));C=l.createElement(l.Fragment,null,C,D)}const R=c==="optional",_=typeof c=="function";_?C=c(C,{required:!!s}):R&&!s&&(C=l.createElement(l.Fragment,null,C,l.createElement("span",{className:`${t}-item-optional`,title:""},(g==null?void 0:g.optional)||((p=ni.Form)===null||p===void 0?void 0:p.optional))));const $=oe({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:R||_,[`${t}-item-no-colon`]:!E});return l.createElement(Cn,Object.assign({},S,{className:w}),l.createElement("label",{htmlFor:r,className:$,title:typeof n=="string"?n:""},C))},YSe={success:of,warning:sm,error:Hl,validating:Qi};function zq(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(Os),p=jq(n,r,s,null,!!a,o),{isFormItemInput:g,status:m,hasFeedback:h,feedbackIcon:b}=l.useContext(ea),x=l.useMemo(()=>{var S;let v;if(a){const w=a!==!0&&a.icons||d,C=p&&((S=w==null?void 0:w({status:p,errors:n,warnings:r}))===null||S===void 0?void 0:S[p]),E=p&&YSe[p];v=C!==!1&&E?l.createElement("span",{className:oe(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},C||l.createElement(E,null)):null}const y={status:p||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:v,isFormItemInput:!0};return c&&(y.status=(p??m)||"",y.isFormItemInput=g,y.hasFeedback=!!(a??h),y.feedbackIcon=a!==void 0?y.feedbackIcon:b),y},[p,a,c,g,m]);return l.createElement(ea.Provider,{value:x},t)}var XSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if($&&I.current){const L=getComputedStyle(I.current);D(parseInt(L.marginBottom,10))}},[$,M]);const O=L=>{L||D(null)},N=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const j=L?T:u.errors,F=L?R:u.warnings;return jq(j,F,u,"",!!d,c)}(),A=oe(y,n,r,{[`${y}-with-help`]:_||T.length||R.length,[`${y}-has-feedback`]:N&&d,[`${y}-has-success`]:N==="success",[`${y}-has-warning`]:N==="warning",[`${y}-has-error`]:N==="error",[`${y}-is-validating`]:N==="validating",[`${y}-hidden`]:p,[`${y}-${S}`]:S});return l.createElement("div",{className:A,style:a,ref:I},l.createElement(la,Object.assign({className:`${y}-row`},Mn(v,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),l.createElement(KSe,Object.assign({htmlFor:m},e,{requiredMark:w,required:h??b,prefixCls:t,vertical:E})),l.createElement(USe,Object.assign({},e,u,{errors:T,warnings:R,prefixCls:t,status:N,help:o,marginBottom:P,onErrorVisibleChanged:O}),l.createElement(CV.Provider,{value:x},l.createElement(zq,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:N},g)))),!!P&&l.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-P}}))}const QSe="__SPLIT__";function JSe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const e1e=l.memo(e=>{let{children:t}=e;return t},(e,t)=>JSe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function fP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function t1e(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:p,trigger:g="onChange",validateTrigger:m,hidden:h,help:b,layout:x}=e,{getPrefixCls:S}=l.useContext(ut),{name:v}=l.useContext(Os),y=jSe(c),w=typeof y=="function",C=l.useContext(CV),{validateTrigger:E}=l.useContext(Fc),I=m!==void 0?m:E,T=t!=null,R=S("form",o),_=ar(R),[$,M,P]=$N(R,_);zl();const D=l.useContext(kg),O=l.useRef(),[k,N]=FSe({}),[A,L]=jc(()=>fP()),j=Y=>{const ee=D==null?void 0:D.getKey(Y.name);if(L(Y.destroy?fP():Y,!0),n&&b!==!1&&C){let ae=Y.name;if(Y.destroy)ae=O.current||ae;else if(ee!==void 0){const[W,q]=ee;ae=[W].concat(De(q)),O.current=ae}C(Y,ae)}},F=(Y,ee)=>{N(ae=>{const W=Object.assign({},ae),Z=[].concat(De(Y.name.slice(0,-1)),De(ee)).join(QSe);return Y.destroy?delete W[Z]:W[Z]=Y,W})},[B,z]=l.useMemo(()=>{const Y=De(A.errors),ee=De(A.warnings);return Object.values(k).forEach(ae=>{Y.push.apply(Y,De(ae.errors||[])),ee.push.apply(ee,De(ae.warnings||[]))}),[Y,ee]},[k,A.errors,A.warnings]),U=BSe();function H(Y,ee,ae){return n&&!h?l.createElement(zq,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:A,errors:B,warnings:z,noStyle:!0},Y):l.createElement(ZSe,Object.assign({key:"row"},e,{className:oe(r,P,_,M),prefixCls:R,fieldId:ee,isRequired:ae,errors:B,warnings:z,meta:A,onSubItemMetaChange:F,layout:x}),Y)}if(!T&&!w&&!a)return $(H(y));let K={};return typeof d=="string"?K.label=d:t&&(K.label=String(t)),p&&(K=Object.assign(Object.assign({},K),p)),$(l.createElement(HO,Object.assign({},e,{messageVariables:K,trigger:g,validateTrigger:I,onMetaChange:j}),(Y,ee,ae)=>{const W=Bp(t).length&&ee?ee.name:[],q=Lq(W,v),Z=u!==void 0?u:!!(s!=null&&s.some(ie=>{if(ie&&typeof ie=="object"&&ie.required&&!ie.warningOnly)return!0;if(typeof ie=="function"){const le=ie(ae);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),Q=Object.assign({},Y);let J=null;if(Array.isArray(y)&&T)J=y;else if(!(w&&(!(i||a)||T))){if(!(a&&!w&&!T))if(l.isValidElement(y)){const ie=Object.assign(Object.assign({},y.props),Q);if(ie.id||(ie.id=q),b||B.length>0||z.length>0||e.extra){const te=[];(b||B.length>0)&&te.push(`${q}_help`),e.extra&&te.push(`${q}_extra`),ie["aria-describedby"]=te.join(" ")}B.length>0&&(ie["aria-invalid"]="true"),Z&&(ie["aria-required"]="true"),_i(y)&&(ie.ref=U(W,y)),new Set([].concat(De(Bp(g)),De(Bp(I)))).forEach(te=>{ie[te]=function(){for(var se,pe,he,re,ue,me=arguments.length,xe=new Array(me),Ee=0;Ee{var{prefixCls:t,children:n}=e,r=n1e(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(ut),o=a("form",t),i=l.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return l.createElement(yV,Object.assign({},r),(s,c,u)=>l.createElement(VO.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function a1e(){const{form:e}=l.useContext(Os);return e}const Gt=LSe;Gt.Item=Om;Gt.List=r1e;Gt.ErrorList=Pq;Gt.useForm=Fq;Gt.useFormInstance=a1e;Gt.useWatch=wV;Gt.Provider=EV;Gt.create=()=>{};function Hq(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function p_(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function qi(e,t,n,r){var a=mg.unstable_batchedUpdates?function(i){mg.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var Nm=l.createContext(null),o1e=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,o=t.prefixCls,i=t.rootClassName,s=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,p=t.current,g=t.transform,m=t.count,h=t.scale,b=t.minScale,x=t.maxScale,S=t.closeIcon,v=t.onActive,y=t.onClose,w=t.onZoomIn,C=t.onZoomOut,E=t.onRotateRight,I=t.onRotateLeft,T=t.onFlipX,R=t.onFlipY,_=t.onReset,$=t.toolbarRender,M=t.zIndex,P=t.image,D=l.useContext(Nm),O=s.rotateLeft,k=s.rotateRight,N=s.zoomIn,A=s.zoomOut,L=s.close,j=s.left,F=s.right,B=s.flipX,z=s.flipY,U="".concat(o,"-operations-operation");l.useEffect(function(){var le=function(te){te.keyCode===Fe.ESC&&y()};return n&&window.addEventListener("keydown",le),function(){window.removeEventListener("keydown",le)}},[n]);var H=function(fe,te){fe.preventDefault(),fe.stopPropagation(),v(te)},K=l.useCallback(function(le){var fe=le.type,te=le.disabled,se=le.onClick,pe=le.icon;return l.createElement("div",{key:fe,className:oe(U,"".concat(o,"-operations-operation-").concat(fe),V({},"".concat(o,"-operations-operation-disabled"),!!te)),onClick:se},pe)},[U,o]),Y=u?K({icon:j,onClick:function(fe){return H(fe,-1)},type:"prev",disabled:p===0}):void 0,ee=u?K({icon:F,onClick:function(fe){return H(fe,1)},type:"next",disabled:p===m-1}):void 0,ae=K({icon:z,onClick:R,type:"flipY"}),W=K({icon:B,onClick:T,type:"flipX"}),q=K({icon:O,onClick:I,type:"rotateLeft"}),Z=K({icon:k,onClick:E,type:"rotateRight"}),Q=K({icon:A,onClick:C,type:"zoomOut",disabled:h<=b}),J=K({icon:N,onClick:w,type:"zoomIn",disabled:h===x}),ie=l.createElement("div",{className:"".concat(o,"-operations")},ae,W,q,Z,Q,J);return l.createElement(Qr,{visible:n,motionName:r},function(le){var fe=le.className,te=le.style;return l.createElement(gm,{open:!0,getContainer:a??document.body},l.createElement("div",{className:oe("".concat(o,"-operations-wrapper"),fe,i),style:X(X({},te),{},{zIndex:M})},S===null?null:l.createElement("button",{className:"".concat(o,"-close"),onClick:y},S||L),u&&l.createElement(l.Fragment,null,l.createElement("div",{className:oe("".concat(o,"-switch-left"),V({},"".concat(o,"-switch-left-disabled"),p===0)),onClick:function(pe){return H(pe,-1)}},j),l.createElement("div",{className:oe("".concat(o,"-switch-right"),V({},"".concat(o,"-switch-right-disabled"),p===m-1)),onClick:function(pe){return H(pe,1)}},F)),l.createElement("div",{className:"".concat(o,"-footer")},d&&l.createElement("div",{className:"".concat(o,"-progress")},c?c(p+1,m):"".concat(p+1," / ").concat(m)),$?$(ie,X(X({icons:{prevIcon:Y,nextIcon:ee,flipYIcon:ae,flipXIcon:W,rotateLeftIcon:q,rotateRightIcon:Z,zoomOutIcon:Q,zoomInIcon:J},actions:{onActive:v,onFlipY:R,onFlipX:T,onRotateLeft:I,onRotateRight:E,onZoomOut:C,onZoomIn:w,onReset:_,onClose:y},transform:g},D?{current:p,total:m}:{}),{},{image:P})):ie)))})},Bh={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function i1e(e,t,n,r){var a=l.useRef(null),o=l.useRef([]),i=l.useState(Bh),s=ce(i,2),c=s[0],u=s[1],d=function(h){u(Bh),ei(Bh,c)||r==null||r({transform:Bh,action:h})},p=function(h,b){a.current===null&&(o.current=[],a.current=Ut(function(){u(function(x){var S=x;return o.current.forEach(function(v){S=X(X({},S),v)}),a.current=null,r==null||r({transform:S,action:b}),S})})),o.current.push(X(X({},c),h))},g=function(h,b,x,S,v){var y=e.current,w=y.width,C=y.height,E=y.offsetWidth,I=y.offsetHeight,T=y.offsetLeft,R=y.offsetTop,_=h,$=c.scale*h;$>n?($=n,_=n/c.scale):$r){if(t>0)return V({},e,o);if(t<0&&ar)return V({},e,t<0?o:-o);return{}}function Uq(e,t,n,r){var a=Hq(),o=a.width,i=a.height,s=null;return e<=o&&t<=i?s={x:0,y:0}:(e>o||t>i)&&(s=X(X({},pP("x",n,e,o)),pP("y",r,t,i))),s}var td=1,s1e=1;function l1e(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,p=l.useState(!1),g=ce(p,2),m=g[0],h=g[1],b=l.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),x=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),b.current={diffX:C.pageX-u,diffY:C.pageY-d,transformX:u,transformY:d},h(!0))},S=function(C){n&&m&&o({x:C.pageX-b.current.diffX,y:C.pageY-b.current.diffY},"move")},v=function(){if(n&&m){h(!1);var C=b.current,E=C.transformX,I=C.transformY,T=u!==E&&d!==I;if(!T)return;var R=e.current.offsetWidth*c,_=e.current.offsetHeight*c,$=e.current.getBoundingClientRect(),M=$.left,P=$.top,D=s%180!==0,O=Uq(D?_:R,D?R:_,M,P);O&&o(X({},O),"dragRebound")}},y=function(C){if(!(!n||C.deltaY==0)){var E=Math.abs(C.deltaY/100),I=Math.min(E,s1e),T=td+I*r;C.deltaY>0&&(T=td/T),i(T,"wheel",C.clientX,C.clientY)}};return l.useEffect(function(){var w,C,E,I;if(t){E=qi(window,"mouseup",v,!1),I=qi(window,"mousemove",S,!1);try{window.top!==window.self&&(w=qi(window.top,"mouseup",v,!1),C=qi(window.top,"mousemove",S,!1))}catch{}}return function(){var T,R,_,$;(T=E)===null||T===void 0||T.remove(),(R=I)===null||R===void 0||R.remove(),(_=w)===null||_===void 0||_.remove(),($=C)===null||$===void 0||$.remove()}},[n,m,u,d,s,t]),{isMoving:m,onMouseDown:x,onMouseMove:S,onMouseUp:v,onWheel:y}}function c1e(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function Vq(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=l.useState(n?"loading":"normal"),o=ce(a,2),i=o[0],s=o[1],c=l.useRef(!1),u=i==="error";l.useEffect(function(){var m=!0;return c1e(t).then(function(h){!h&&m&&s("error")}),function(){m=!1}},[t]),l.useEffect(function(){n&&!c.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},p=function(h){c.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(c.current=!0,d())},g=u&&r?{src:r}:{onLoad:d,src:t};return[p,g,i]}function Wb(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function u1e(e,t,n,r){var a=Wb(e,n),o=Wb(t,r);if(a===0&&o===0)return[e.x,e.y];var i=a/(a+o),s=e.x+i*(t.x-e.x),c=e.y+i*(t.y-e.y);return[s,c]}function d1e(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,p=l.useState(!1),g=ce(p,2),m=g[0],h=g[1],b=l.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(C){b.current=X(X({},b.current),C)},S=function(C){if(t){C.stopPropagation(),h(!0);var E=C.touches,I=E===void 0?[]:E;I.length>1?x({point1:{x:I[0].clientX,y:I[0].clientY},point2:{x:I[1].clientX,y:I[1].clientY},eventType:"touchZoom"}):x({point1:{x:I[0].clientX-u,y:I[0].clientY-d},eventType:"move"})}},v=function(C){var E=C.touches,I=E===void 0?[]:E,T=b.current,R=T.point1,_=T.point2,$=T.eventType;if(I.length>1&&$==="touchZoom"){var M={x:I[0].clientX,y:I[0].clientY},P={x:I[1].clientX,y:I[1].clientY},D=u1e(R,_,M,P),O=ce(D,2),k=O[0],N=O[1],A=Wb(M,P)/Wb(R,_);i(A,"touchZoom",k,N,!0),x({point1:M,point2:P,eventType:"touchZoom"})}else $==="move"&&(o({x:I[0].clientX-R.x,y:I[0].clientY-R.y},"move"),x({eventType:"move"}))},y=function(){if(n){if(m&&h(!1),x({eventType:"none"}),r>c)return o({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*c,E=e.current.offsetHeight*c,I=e.current.getBoundingClientRect(),T=I.left,R=I.top,_=s%180!==0,$=Uq(_?E:C,_?C:E,T,R);$&&o(X({},$),"dragRebound")}};return l.useEffect(function(){var w;return n&&t&&(w=qi(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=w)===null||C===void 0||C.remove()}},[n,t]),{isTouching:m,onTouchStart:S,onTouchMove:v,onTouchEnd:y}}var f1e=["fallback","src","imgRef"],p1e=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],g1e=function(t){var n=t.fallback,r=t.src,a=t.imgRef,o=Ct(t,f1e),i=Vq({src:r,fallback:n}),s=ce(i,2),c=s[0],u=s[1];return de.createElement("img",be({ref:function(p){a.current=p,c(p)}},o,u))},Wq=function(t){var n=t.prefixCls,r=t.src,a=t.alt,o=t.imageInfo,i=t.fallback,s=t.movable,c=s===void 0?!0:s,u=t.onClose,d=t.visible,p=t.icons,g=p===void 0?{}:p,m=t.rootClassName,h=t.closeIcon,b=t.getContainer,x=t.current,S=x===void 0?0:x,v=t.count,y=v===void 0?1:v,w=t.countRender,C=t.scaleStep,E=C===void 0?.5:C,I=t.minScale,T=I===void 0?1:I,R=t.maxScale,_=R===void 0?50:R,$=t.transitionName,M=$===void 0?"zoom":$,P=t.maskTransitionName,D=P===void 0?"fade":P,O=t.imageRender,k=t.imgCommonProps,N=t.toolbarRender,A=t.onTransform,L=t.onChange,j=Ct(t,p1e),F=l.useRef(),B=l.useContext(Nm),z=B&&y>1,U=B&&y>=1,H=l.useState(!0),K=ce(H,2),Y=K[0],ee=K[1],ae=i1e(F,T,_,A),W=ae.transform,q=ae.resetTransform,Z=ae.updateTransform,Q=ae.dispatchZoomChange,J=l1e(F,c,d,E,W,Z,Q),ie=J.isMoving,le=J.onMouseDown,fe=J.onWheel,te=d1e(F,c,d,T,W,Z,Q),se=te.isTouching,pe=te.onTouchStart,he=te.onTouchMove,re=te.onTouchEnd,ue=W.rotate,me=W.scale,xe=oe(V({},"".concat(n,"-moving"),ie));l.useEffect(function(){Y||ee(!0)},[Y]);var Ee=function(){q("close")},ke=function(){Q(td+E,"zoomIn")},$e=function(){Q(td/(td+E),"zoomOut")},Le=function(){Z({rotate:ue+90},"rotateRight")},je=function(){Z({rotate:ue-90},"rotateLeft")},He=function(){Z({flipX:!W.flipX},"flipX")},Be=function(){Z({flipY:!W.flipY},"flipY")},Pe=function(){q("reset")},Se=function(st){var ge=S+st;!Number.isInteger(ge)||ge<0||ge>y-1||(ee(!1),q(st<0?"prev":"next"),L==null||L(ge,S))},Ne=function(st){!d||!z||(st.keyCode===Fe.LEFT?Se(-1):st.keyCode===Fe.RIGHT&&Se(1))},Te=function(st){d&&(me!==1?Z({x:0,y:0,scale:1},"doubleClick"):Q(td+E,"doubleClick",st.clientX,st.clientY))};l.useEffect(function(){var Ge=qi(window,"keydown",Ne,!1);return function(){Ge.remove()}},[d,z,S]);var we=de.createElement(g1e,be({},k,{width:t.width,height:t.height,imgRef:F,className:"".concat(n,"-img"),alt:a,style:{transform:"translate3d(".concat(W.x,"px, ").concat(W.y,"px, 0) scale3d(").concat(W.flipX?"-":"").concat(me,", ").concat(W.flipY?"-":"").concat(me,", 1) rotate(").concat(ue,"deg)"),transitionDuration:(!Y||se)&&"0s"},fallback:i,src:r,onWheel:fe,onMouseDown:le,onDoubleClick:Te,onTouchStart:pe,onTouchMove:he,onTouchEnd:re,onTouchCancel:re})),Me=X({url:r,alt:a},o);return de.createElement(de.Fragment,null,de.createElement(BO,be({transitionName:M,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:u,visible:d,classNames:{wrapper:xe},rootClassName:m,getContainer:b},j,{afterClose:Ee}),de.createElement("div",{className:"".concat(n,"-img-wrapper")},O?O(we,X({transform:W,image:Me},B?{current:S}:{})):we)),de.createElement(o1e,{visible:d,transform:W,maskTransitionName:D,closeIcon:h,getContainer:b,prefixCls:n,rootClassName:m,icons:g,countRender:w,showSwitch:z,showProgress:U,current:S,count:y,scale:me,minScale:T,maxScale:_,toolbarRender:N,onActive:Se,onZoomIn:ke,onZoomOut:$e,onRotateRight:Le,onRotateLeft:je,onFlipX:He,onFlipY:Be,onClose:u,onReset:Pe,zIndex:j.zIndex!==void 0?j.zIndex+1:void 0,image:Me}))},g_=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function m1e(e){var t=l.useState({}),n=ce(t,2),r=n[0],a=n[1],o=l.useCallback(function(s,c){return a(function(u){return X(X({},u),{},V({},s,c))}),function(){a(function(u){var d=X({},u);return delete d[s],d})}},[]),i=l.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var c={};return Object.keys(s).forEach(function(u){["src"].concat(De(g_)).includes(u)&&(c[u]=s[u])}),{data:c}}):Object.keys(r).reduce(function(s,c){var u=r[c],d=u.canPreview,p=u.data;return d&&s.push({data:p,id:c}),s},[])},[e,r]);return[i,o,!!e]}var h1e=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],v1e=["src"],b1e=function(t){var n,r=t.previewPrefixCls,a=r===void 0?"rc-image-preview":r,o=t.children,i=t.icons,s=i===void 0?{}:i,c=t.items,u=t.preview,d=t.fallback,p=mt(u)==="object"?u:{},g=p.visible,m=p.onVisibleChange,h=p.getContainer,b=p.current,x=p.movable,S=p.minScale,v=p.maxScale,y=p.countRender,w=p.closeIcon,C=p.onChange,E=p.onTransform,I=p.toolbarRender,T=p.imageRender,R=Ct(p,h1e),_=m1e(c),$=ce(_,3),M=$[0],P=$[1],D=$[2],O=fn(0,{value:b}),k=ce(O,2),N=k[0],A=k[1],L=l.useState(!1),j=ce(L,2),F=j[0],B=j[1],z=((n=M[N])===null||n===void 0?void 0:n.data)||{},U=z.src,H=Ct(z,v1e),K=fn(!!g,{value:g,onChange:function(se,pe){m==null||m(se,pe,N)}}),Y=ce(K,2),ee=Y[0],ae=Y[1],W=l.useState(null),q=ce(W,2),Z=q[0],Q=q[1],J=l.useCallback(function(te,se,pe,he){var re=D?M.findIndex(function(ue){return ue.data.src===se}):M.findIndex(function(ue){return ue.id===te});A(re<0?0:re),ae(!0),Q({x:pe,y:he}),B(!0)},[M,D]);l.useEffect(function(){ee?F||A(0):B(!1)},[ee]);var ie=function(se,pe){A(se),C==null||C(se,pe)},le=function(){ae(!1),Q(null)},fe=l.useMemo(function(){return{register:P,onPreview:J}},[P,J]);return l.createElement(Nm.Provider,{value:fe},o,l.createElement(Wq,be({"aria-hidden":!ee,movable:x,visible:ee,prefixCls:a,closeIcon:w,onClose:le,mousePosition:Z,imgCommonProps:H,src:U,fallback:d,icons:s,minScale:S,maxScale:v,getContainer:h,current:N,count:M.length,countRender:y,onTransform:E,toolbarRender:I,imageRender:T,onChange:ie},R)))},gP=0;function y1e(e,t){var n=l.useState(function(){return gP+=1,String(gP)}),r=ce(n,1),a=r[0],o=l.useContext(Nm),i={data:t,canPreview:e};return l.useEffect(function(){if(o)return o.register(a,i)},[]),l.useEffect(function(){o&&o.register(a,i)},[e,t]),a}var x1e=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],S1e=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ON=function(t){var n=t.src,r=t.alt,a=t.onPreviewClose,o=t.prefixCls,i=o===void 0?"rc-image":o,s=t.previewPrefixCls,c=s===void 0?"".concat(i,"-preview"):s,u=t.placeholder,d=t.fallback,p=t.width,g=t.height,m=t.style,h=t.preview,b=h===void 0?!0:h,x=t.className,S=t.onClick,v=t.onError,y=t.wrapperClassName,w=t.wrapperStyle,C=t.rootClassName,E=Ct(t,x1e),I=u&&u!==!0,T=mt(b)==="object"?b:{},R=T.src,_=T.visible,$=_===void 0?void 0:_,M=T.onVisibleChange,P=M===void 0?a:M,D=T.getContainer,O=D===void 0?void 0:D,k=T.mask,N=T.maskClassName,A=T.movable,L=T.icons,j=T.scaleStep,F=T.minScale,B=T.maxScale,z=T.imageRender,U=T.toolbarRender,H=Ct(T,S1e),K=R??n,Y=fn(!!$,{value:$,onChange:P}),ee=ce(Y,2),ae=ee[0],W=ee[1],q=Vq({src:n,isCustomPlaceholder:I,fallback:d}),Z=ce(q,3),Q=Z[0],J=Z[1],ie=Z[2],le=l.useState(null),fe=ce(le,2),te=fe[0],se=fe[1],pe=l.useContext(Nm),he=!!b,re=function(){W(!1),se(null)},ue=oe(i,y,C,V({},"".concat(i,"-error"),ie==="error")),me=l.useMemo(function(){var $e={};return g_.forEach(function(Le){t[Le]!==void 0&&($e[Le]=t[Le])}),$e},g_.map(function($e){return t[$e]})),xe=l.useMemo(function(){return X(X({},me),{},{src:K})},[K,me]),Ee=y1e(he,xe),ke=function(Le){var je=p_(Le.target),He=je.left,Be=je.top;pe?pe.onPreview(Ee,K,He,Be):(se({x:He,y:Be}),W(!0)),S==null||S(Le)};return l.createElement(l.Fragment,null,l.createElement("div",be({},E,{className:ue,onClick:he?ke:S,style:X({width:p,height:g},w)}),l.createElement("img",be({},me,{className:oe("".concat(i,"-img"),V({},"".concat(i,"-img-placeholder"),u===!0),x),style:X({height:g},m),ref:Q},J,{width:p,height:g,onError:v})),ie==="loading"&&l.createElement("div",{"aria-hidden":"true",className:"".concat(i,"-placeholder")},u),k&&he&&l.createElement("div",{className:oe("".concat(i,"-mask"),N),style:{display:(m==null?void 0:m.display)==="none"?"none":void 0}},k)),!pe&&he&&l.createElement(Wq,be({"aria-hidden":!ae,visible:ae,prefixCls:c,onClose:re,mousePosition:te,src:K,alt:r,imageInfo:{width:p,height:g},fallback:d,getContainer:O,icons:L,movable:A,scaleStep:j,minScale:F,maxScale:B,rootClassName:C,imageRender:z,imgCommonProps:me,toolbarRender:U},H)))};ON.PreviewGroup=b1e;var w1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},C1e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:w1e}))},E1e=l.forwardRef(C1e),I1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},T1e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:I1e}))},R1e=l.forwardRef(T1e),_1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},$1e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:_1e}))},mP=l.forwardRef($1e),O1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},N1e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:O1e}))},k1e=l.forwardRef(N1e),A1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},M1e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:A1e}))},D1e=l.forwardRef(M1e);const m_=e=>({position:e||"absolute",inset:0}),P1e=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:o,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new sn("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Oo),{padding:`0 ${G(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},L1e=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:o,paddingLG:i,previewOperationColorDisabled:s,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:p}=e,g=new sn(n).setAlpha(.1),m=g.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:p,backgroundColor:g.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${G(i)}`,backgroundColor:g.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},j1e=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:o,motionDurationSlow:i}=e,s=new sn(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},F1e=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},m_()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},m_()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[L1e(e),j1e(e)]}]},B1e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},P1e(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},m_())}}},z1e=e=>{const{previewCls:t}=e;return{[`${t}-root`]:lf(e,"zoom"),"&":kO(e,!0)}},H1e=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new sn(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new sn(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new sn(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Gq=on("Image",e=>{const t=`${e.componentCls}-preview`,n=Bt(e,{previewCls:t,modalMaskBg:new sn("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[B1e(n),F1e(n),OV(Bt(n,{componentCls:t})),z1e(n)]},H1e);var U1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=U1e(e,["previewPrefixCls","preview"]);const{getPrefixCls:a}=l.useContext(ut),o=a("image",t),i=`${o}-preview`,s=a(),c=ar(o),[u,d,p]=Gq(o,c),[g]=Mi("ImagePreview",typeof n=="object"?n.zIndex:void 0),m=l.useMemo(()=>{var h;if(n===!1)return n;const b=typeof n=="object"?n:{},x=oe(d,p,c,(h=b.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},b),{transitionName:Da(s,"zoom",b.transitionName),maskTransitionName:Da(s,"fade",b.maskTransitionName),rootClassName:x,zIndex:g})},[n]);return u(l.createElement(ON.PreviewGroup,Object.assign({preview:m,previewPrefixCls:i,icons:qq},r)))};var hP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,preview:r,className:a,rootClassName:o,style:i}=e,s=hP(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=ni,getPopupContainer:d,image:p}=l.useContext(ut),g=c("image",n),m=c(),h=u.Image||ni.Image,b=ar(g),[x,S,v]=Gq(g,b),y=oe(o,S,v,b),w=oe(a,S,p==null?void 0:p.className),[C]=Mi("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=l.useMemo(()=>{var T;if(r===!1)return r;const R=typeof r=="object"?r:{},{getContainer:_,closeIcon:$}=R,M=hP(R,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:l.createElement("div",{className:`${g}-mask-info`},l.createElement(kl,null),h==null?void 0:h.preview),icons:qq},M),{getContainer:_??d,transitionName:Da(m,"zoom",R.transitionName),maskTransitionName:Da(m,"fade",R.maskTransitionName),zIndex:C,closeIcon:$??((T=p==null?void 0:p.preview)===null||T===void 0?void 0:T.closeIcon)})},[r,h,(t=p==null?void 0:p.preview)===null||t===void 0?void 0:t.closeIcon]),I=Object.assign(Object.assign({},p==null?void 0:p.style),i);return x(l.createElement(ON,Object.assign({prefixCls:g,preview:E,rootClassName:y,className:w,style:I},s)))};dn.PreviewGroup=V1e;function W1e(e,t,n){return typeof n=="boolean"?n:e.length?!0:_r(t).some(a=>a.type===lN)}var Kq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((i,s)=>l.createElement(a,Object.assign({ref:s,suffixCls:t,tagName:n},i)))}const NN=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=Kq(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(ut),c=s("layout",n),[u,d,p]=YW(c),g=r?`${c}-${r}`:c;return u(l.createElement(o,Object.assign({className:oe(n||g,a,d,p),ref:t},i)))}),G1e=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(ut),[r,a]=l.useState([]),{prefixCls:o,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:p}=e,g=Kq(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=Mn(g,["suffixCls"]),{getPrefixCls:h,layout:b}=l.useContext(ut),x=h("layout",o),S=W1e(r,c,u),[v,y,w]=YW(x),C=oe(x,{[`${x}-has-sider`]:S,[`${x}-rtl`]:n==="rtl"},b==null?void 0:b.className,i,s,y,w),E=l.useMemo(()=>({siderHook:{addSider:I=>{a(T=>[].concat(De(T),[I]))},removeSider:I=>{a(T=>T.filter(R=>R!==I))}}}),[]);return v(l.createElement(GW.Provider,{value:E},l.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},b==null?void 0:b.style),p)},m),c)))}),q1e=My({tagName:"div",displayName:"Layout"})(G1e),Yq=My({suffixCls:"header",tagName:"header",displayName:"Header"})(NN),Xq=My({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(NN),K1e=My({suffixCls:"content",tagName:"main",displayName:"Content"})(NN),As=q1e;As.Header=Yq;As.Footer=Xq;As.Content=K1e;As.Sider=lN;As._InternalSiderContext=xy;const Zq=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var Y1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},X1e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Y1e}))},vP=l.forwardRef(X1e),Z1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Q1e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Z1e}))},bP=l.forwardRef(Q1e),J1e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},ewe=["10","20","50","100"],twe=function(t){var n=t.pageSizeOptions,r=n===void 0?ewe:n,a=t.locale,o=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,p=t.selectPrefixCls,g=t.disabled,m=t.buildOptionText,h=t.showSizeChanger,b=de.useState(""),x=ce(b,2),S=x[0],v=x[1],y=function(){return!S||Number.isNaN(S)?void 0:Number(S)},w=typeof m=="function"?m:function(A){return"".concat(A," ").concat(a.items_per_page)},C=function(L,j){if(o==null||o(Number(L)),mt(h)==="object"){var F;(F=h.onChange)===null||F===void 0||F.call(h,L,j)}},E=function(L){v(L.target.value)},I=function(L){s||S===""||(v(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(y())))},T=function(L){S!==""&&(L.keyCode===Fe.ENTER||L.type==="click")&&(v(""),c==null||c(y()))},R=function(){return r.some(function(L){return L.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(L,j){var F=Number.isNaN(Number(L))?0:Number(L),B=Number.isNaN(Number(j))?0:Number(j);return F-B})},_="".concat(u,"-options");if(!h&&!c)return null;var $=null,M=null,P=null;if(h&&d){var D=mt(h)==="object"?h:{},O=D.options,k=D.className,N=O?void 0:R().map(function(A,L){return de.createElement(d.Option,{key:L,value:A.toString()},w(A))});$=de.createElement(d,be({disabled:g,prefixCls:p,showSearch:!1,optionLabelProp:O?"label":"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),getPopupContainer:function(L){return L.parentNode},"aria-label":a.page_size,defaultOpen:!1},mt(h)==="object"?h:null,{className:oe("".concat(_,"-size-changer"),k),options:O,onChange:C}),N)}return c&&(s&&(P=typeof s=="boolean"?de.createElement("button",{type:"button",onClick:T,onKeyUp:T,disabled:g,className:"".concat(_,"-quick-jumper-button")},a.jump_to_confirm):de.createElement("span",{onClick:T,onKeyUp:T},s)),M=de.createElement("div",{className:"".concat(_,"-quick-jumper")},a.jump_to,de.createElement("input",{disabled:g,type:"text",value:S,onChange:E,onKeyUp:T,onBlur:I,"aria-label":a.page}),a.page,P)),de.createElement("li",{className:_},$,M)},Qf=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,i=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),p=oe(d,"".concat(d,"-").concat(r),V(V({},"".concat(d,"-active"),a),"".concat(d,"-disabled"),!r),o),g=function(){s(r)},m=function(x){c(x,s,r)},h=u(r,"page",de.createElement("a",{rel:"nofollow"},r));return h?de.createElement("li",{title:i?String(r):null,className:p,onClick:g,onKeyDown:m,tabIndex:0},h):null},nwe=function(t,n,r){return r};function yP(){}function xP(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ql(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var rwe=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,i=t.className,s=t.selectComponentClass,c=t.current,u=t.defaultCurrent,d=u===void 0?1:u,p=t.total,g=p===void 0?0:p,m=t.pageSize,h=t.defaultPageSize,b=h===void 0?10:h,x=t.onChange,S=x===void 0?yP:x,v=t.hideOnSinglePage,y=t.align,w=t.showPrevNextJumpers,C=w===void 0?!0:w,E=t.showQuickJumper,I=t.showLessItems,T=t.showTitle,R=T===void 0?!0:T,_=t.onShowSizeChange,$=_===void 0?yP:_,M=t.locale,P=M===void 0?J1e:M,D=t.style,O=t.totalBoundaryShowSizeChanger,k=O===void 0?50:O,N=t.disabled,A=t.simple,L=t.showTotal,j=t.showSizeChanger,F=j===void 0?g>k:j,B=t.pageSizeOptions,z=t.itemRender,U=z===void 0?nwe:z,H=t.jumpPrevIcon,K=t.jumpNextIcon,Y=t.prevIcon,ee=t.nextIcon,ae=de.useRef(null),W=fn(10,{value:m,defaultValue:b}),q=ce(W,2),Z=q[0],Q=q[1],J=fn(1,{value:c,defaultValue:d,postState:function(At){return Math.max(1,Math.min(At,Ql(void 0,Z,g)))}}),ie=ce(J,2),le=ie[0],fe=ie[1],te=de.useState(le),se=ce(te,2),pe=se[0],he=se[1];l.useEffect(function(){he(le)},[le]);var re=Math.max(1,le-(I?3:5)),ue=Math.min(Ql(void 0,Z,g),le+(I?3:5));function me(yt,At){var jt=yt||de.createElement("button",{type:"button","aria-label":At,className:"".concat(r,"-item-link")});return typeof yt=="function"&&(jt=de.createElement(yt,X({},t))),jt}function xe(yt){var At=yt.target.value,jt=Ql(void 0,Z,g),tn;return At===""?tn=At:Number.isNaN(Number(At))?tn=pe:At>=jt?tn=jt:tn=Number(At),tn}function Ee(yt){return xP(yt)&&yt!==le&&xP(g)&&g>0}var ke=g>Z?E:!1;function $e(yt){(yt.keyCode===Fe.UP||yt.keyCode===Fe.DOWN)&&yt.preventDefault()}function Le(yt){var At=xe(yt);switch(At!==pe&&he(At),yt.keyCode){case Fe.ENTER:Be(At);break;case Fe.UP:Be(At-1);break;case Fe.DOWN:Be(At+1);break}}function je(yt){Be(xe(yt))}function He(yt){var At=Ql(yt,Z,g),jt=le>At&&At!==0?At:le;Q(yt),he(jt),$==null||$(le,yt),fe(jt),S==null||S(jt,yt)}function Be(yt){if(Ee(yt)&&!N){var At=Ql(void 0,Z,g),jt=yt;return yt>At?jt=At:yt<1&&(jt=1),jt!==pe&&he(jt),fe(jt),S==null||S(jt,Z),jt}return le}var Pe=le>1,Se=le2?jt-2:0),An=2;Ang?g:le*Z])),at=null,Ye=Ql(void 0,Z,g);if(v&&g<=Z)return null;var We=[],qe={rootPrefixCls:r,onClick:Be,onKeyPress:Ge,showTitle:R,itemRender:U,page:-1},Qe=le-1>0?le-1:0,ot=le+1=rt*2&&le!==3&&(We[0]=de.cloneElement(We[0],{className:oe("".concat(r,"-item-after-jump-prev"),We[0].props.className)}),We.unshift(Ae)),Ye-le>=rt*2&&le!==Ye-2){var et=We[We.length-1];We[We.length-1]=de.cloneElement(et,{className:oe("".concat(r,"-item-before-jump-next"),et.props.className)}),We.push(at)}Ze!==1&&We.unshift(de.createElement(Qf,be({},qe,{key:1,page:1}))),ct!==Ye&&We.push(de.createElement(Qf,be({},qe,{key:Ye,page:Ye})))}var Xe=_e(Qe);if(Xe){var _t=!Pe||!Ye;Xe=de.createElement("li",{title:R?P.prev_page:null,onClick:Ne,tabIndex:_t?null:0,onKeyDown:st,className:oe("".concat(r,"-prev"),V({},"".concat(r,"-disabled"),_t)),"aria-disabled":_t},Xe)}var Mt=ze(ot);if(Mt){var Vt,mn;A?(Vt=!Se,mn=Pe?0:null):(Vt=!Se||!Ye,mn=Vt?null:0),Mt=de.createElement("li",{title:R?P.next_page:null,onClick:Te,tabIndex:mn,onKeyDown:ge,className:oe("".concat(r,"-next"),V({},"".concat(r,"-disabled"),Vt)),"aria-disabled":Vt},Mt)}var pn=oe(r,i,V(V(V(V(V({},"".concat(r,"-start"),y==="start"),"".concat(r,"-center"),y==="center"),"".concat(r,"-end"),y==="end"),"".concat(r,"-simple"),A),"".concat(r,"-disabled"),N));return de.createElement("ul",be({className:pn,style:D,ref:ae},Oe),Re,Xe,A?nt:We,Mt,de.createElement(twe,{locale:P,rootPrefixCls:r,disabled:N,selectComponentClass:s,selectPrefixCls:o,changeSize:He,pageSize:Z,pageSizeOptions:B,quickGo:ke?Be:null,goButton:xt,showSizeChanger:F}))};const Qq=e=>l.createElement(cr,Object.assign({},e,{showSearch:!0,size:"small"})),Jq=e=>l.createElement(cr,Object.assign({},e,{showSearch:!0,size:"middle"}));Qq.Option=cr.Option;Jq.Option=cr.Option;const awe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},owe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),input:Object.assign(Object.assign({},SN(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},iCe=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:G(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),input:Object.assign(Object.assign({},SN(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},iwe=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${G(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${G(e.inputOutlineOffset)} 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},sCe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:G(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${G(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${G(e.inputOutlineOffset)} 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},swe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -407,7 +407,7 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:G(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:G(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Tm(e)),hN(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ty(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},lCe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},cCe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),lCe(e)),sCe(e)),iCe(e)),oCe(e)),aCe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},uCe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ni(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ts(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Ts(e))}}}},eK=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Im(e)),tK=e=>Ft(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Em(e)),dCe=on("Pagination",e=>{const t=tK(e);return[cCe(t),uCe(t)]},eK),fCe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},pCe=Qc(["Pagination","bordered"],e=>{const t=tK(e);return[fCe(t)]},eK);var gCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:s,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:p}=e,g=gCe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=fy(d),[,h]=ta(),{getPrefixCls:b,direction:x,pagination:S={}}=l.useContext(lt),v=b("pagination",n),[y,C,w]=dCe(v),E=p??S.showSizeChanger,I=l.useMemo(()=>{const O=l.createElement("span",{className:`${v}-item-ellipsis`},"•••"),k=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(io,null):l.createElement(Os,null)),N=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(Os,null):l.createElement(io,null)),A=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},x==="rtl"?l.createElement(bP,{className:`${v}-item-link-icon`}):l.createElement(vP,{className:`${v}-item-link-icon`}),O)),L=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},x==="rtl"?l.createElement(vP,{className:`${v}-item-link-icon`}):l.createElement(bP,{className:`${v}-item-link-icon`}),O));return{prevIcon:k,nextIcon:N,jumpPrevIcon:A,jumpNextIcon:L}},[x,v]),[T]=es("Pagination",dU),R=Object.assign(Object.assign({},T),c),_=Lr(s),$=_==="small"||!!(m&&!_&&d),M=b("select",r),P=ae({[`${v}-${t}`]:!!t,[`${v}-mini`]:$,[`${v}-rtl`]:x==="rtl",[`${v}-bordered`]:h.wireframe},S==null?void 0:S.className,a,o,C,w),D=Object.assign(Object.assign({},S==null?void 0:S.style),i);return y(l.createElement(l.Fragment,null,h.wireframe&&l.createElement(pCe,{prefixCls:v}),l.createElement(rCe,Object.assign({},I,g,{style:D,prefixCls:v,selectPrefixCls:M,className:P,selectComponentClass:u||($?Qq:Jq),locale:R,showSizeChanger:E}))))},Wb=100,nK=Wb/5,rK=Wb/2-nK/2,GS=rK*2*Math.PI,SP=50,CP=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:ae(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:rK,cx:SP,cy:SP,strokeWidth:nK,style:n})},mCe=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[i,s]=l.useState(!1);Yt(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!i)return null;const u={strokeDashoffset:`${GS/4}`,strokeDasharray:`${GS*c/100} ${GS*(100-c)/100}`};return l.createElement("span",{className:ae(a,`${r}-progress`,c<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${Wb} ${Wb}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},l.createElement(CP,{dotClassName:r,hasCircleCls:!0}),l.createElement(CP,{dotClassName:r,style:u})))};function hCe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:ae(a,n>0&&o)},l.createElement("span",{className:ae(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(mCe,{prefixCls:t,percent:n}))}function vCe(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&l.isValidElement(n)?$r(n,{className:ae(n.props.className,a),percent:r}):l.createElement(hCe,{prefixCls:t,percent:r})}const bCe=new en("antSpinMove",{to:{opacity:1}}),yCe=new en("antRotate",{to:{transform:"rotate(405deg)"}}),xCe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:bCe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:yCe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},SCe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},CCe=on("Spin",e=>{const t=Ft(e,{spinDotDefault:e.colorTextDescription});return[xCe(t)]},SCe),wCe=200,wP=[[30,.05],[70,.03],[96,.01]];function ECe(e,t){const[n,r]=l.useState(0),a=l.useRef(),o=t==="auto";return l.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c{clearInterval(a.current)}),[o,e]),o?n:t}var ICe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:p,fullscreen:g=!1,indicator:m,percent:h}=e,b=ICe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:x,direction:S,spin:v}=l.useContext(lt),y=x("spin",n),[C,w,E]=CCe(y),[I,T]=l.useState(()=>r&&!TCe(r,a)),R=ECe(I,h);l.useEffect(()=>{if(r){const k=D0e(a,()=>{T(!0)});return k(),()=>{var N;(N=k==null?void 0:k.cancel)===null||N===void 0||N.call(k)}}T(!1)},[a,r]);const _=l.useMemo(()=>typeof p<"u"&&!g,[p,g]),$=ae(y,v==null?void 0:v.className,{[`${y}-sm`]:s==="small",[`${y}-lg`]:s==="large",[`${y}-spinning`]:I,[`${y}-show-text`]:!!c,[`${y}-rtl`]:S==="rtl"},o,!g&&i,w,E),M=ae(`${y}-container`,{[`${y}-blur`]:I}),P=(t=m??(v==null?void 0:v.indicator))!==null&&t!==void 0?t:aK,D=Object.assign(Object.assign({},v==null?void 0:v.style),d),O=l.createElement("div",Object.assign({},b,{style:D,className:$,"aria-live":"polite","aria-busy":I}),l.createElement(vCe,{prefixCls:y,indicator:P,percent:R}),c&&(_||g)?l.createElement("div",{className:`${y}-text`},c):null);return C(_?l.createElement("div",Object.assign({},b,{className:ae(`${y}-nested-loading`,u,w,E)}),I&&l.createElement("div",{key:"loading"},O),l.createElement("div",{className:M,key:"container"},p)):g?l.createElement("div",{className:ae(`${y}-fullscreen`,{[`${y}-fullscreen-show`]:I},i,w,E)},O):O)};vf.setDefaultIndicator=e=>{aK=e};const AN=de.createContext({});AN.Consumer;var oK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=oK(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(lt),c=s("list",t),u=ae(`${c}-item-meta`,n),d=de.createElement("div",{className:`${c}-item-meta-content`},a&&de.createElement("h4",{className:`${c}-item-meta-title`},a),o&&de.createElement("div",{className:`${c}-item-meta-description`},o));return de.createElement("div",Object.assign({},i,{className:u}),r&&de.createElement("div",{className:`${c}-item-meta-avatar`},r),(a||o)&&d)},_Ce=de.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:i,className:s,classNames:c,colStyle:u}=e,d=oK(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:p,itemLayout:g}=l.useContext(AN),{getPrefixCls:m,list:h}=l.useContext(lt),b=I=>{var T,R;return ae((R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.classNames)===null||R===void 0?void 0:R[I],c==null?void 0:c[I])},x=I=>{var T,R;return Object.assign(Object.assign({},(R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.styles)===null||R===void 0?void 0:R[I]),i==null?void 0:i[I])},S=()=>{let I=!1;return l.Children.forEach(r,T=>{typeof T=="string"&&(I=!0)}),I&&l.Children.count(r)>1},v=()=>g==="vertical"?!!o:!S(),y=m("list",n),C=a&&a.length>0&&de.createElement("ul",{className:ae(`${y}-item-action`,b("actions")),key:"actions",style:x("actions")},a.map((I,T)=>de.createElement("li",{key:`${y}-item-action-${T}`},I,T!==a.length-1&&de.createElement("em",{className:`${y}-item-action-split`})))),w=p?"div":"li",E=de.createElement(w,Object.assign({},d,p?{}:{ref:t},{className:ae(`${y}-item`,{[`${y}-item-no-flex`]:!v()},s)}),g==="vertical"&&o?[de.createElement("div",{className:`${y}-item-main`,key:"content"},r,C),de.createElement("div",{className:ae(`${y}-item-extra`,b("extra")),key:"extra",style:x("extra")},o)]:[r,C,$r(o,{key:"extra"})]);return p?de.createElement(Nn,{ref:t,flex:1,style:u},E):E}),MN=_Ce;MN.Meta=RCe;const $Ce=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:i,marginLG:s,borderRadiusLG:c}=e;return{[t]:{border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${G(a)} ${G(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},OCe=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${G(i)}`}}}}}},NCe=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:i,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:p,paddingXS:g,margin:m,colorText:h,colorTextDescription:b,motionDurationSlow:x,lineWidth:S,headerBg:v,footerBg:y,emptyTextPadding:C,metaMarginBottom:w,avatarMarginRight:E,titleMarginBottom:I,descriptionFontSize:T}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${G(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${x}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:b,fontSize:T,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${G(g)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${G(s)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:m,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:w,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${G(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:p},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},kCe=e=>({contentWidth:220,itemPadding:`${G(e.paddingContentVertical)} 0`,itemPaddingSM:`${G(e.paddingContentVerticalSM)} ${G(e.paddingContentHorizontal)}`,itemPaddingLG:`${G(e.paddingContentVerticalLG)} ${G(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),ACe=on("List",e=>{const t=Ft(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[NCe(t),$Ce(t),OCe(t)]},kCe);var MCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(re,ce)=>{var ge;T(re),_(ce),n&&((ge=n==null?void 0:n[me])===null||ge===void 0||ge.call(n,re,ce))},N=k("onChange"),A=k("onShowSizeChange"),L=(me,re)=>{if(!y)return null;let ce;return typeof v=="function"?ce=v(me):v?ce=me[v]:ce=me.key,ce||(ce=`list-item-${re}`),l.createElement(l.Fragment,{key:ce},y(me,re))},j=()=>!!(p||n||x),F=$("list",r),[B,z,U]=ACe(F);let H=S;typeof H=="boolean"&&(H={spinning:H});const Y=!!(H!=null&&H.spinning),K=Lr(h);let J="";switch(K){case"large":J="lg";break;case"small":J="sm";break}const ne=ae(F,{[`${F}-vertical`]:d==="vertical",[`${F}-${J}`]:J,[`${F}-split`]:o,[`${F}-bordered`]:a,[`${F}-loading`]:Y,[`${F}-grid`]:!!g,[`${F}-something-after-last-item`]:j(),[`${F}-rtl`]:P==="rtl"},D==null?void 0:D.className,i,s,z,U),W=Zq(O,{total:m.length,current:I,pageSize:R},n||{}),q=Math.ceil(W.total/W.pageSize);W.current>q&&(W.current=q);const Z=n&&l.createElement("div",{className:ae(`${F}-pagination`)},l.createElement(kN,Object.assign({align:"end"},W,{onChange:N,onShowSizeChange:A})));let Q=Me(m);n&&m.length>(W.current-1)*W.pageSize&&(Q=Me(m).splice((W.current-1)*W.pageSize,W.pageSize));const ee=Object.keys(g||{}).some(me=>["xs","sm","md","lg","xl","xxl"].includes(me)),oe=fy(ee),se=l.useMemo(()=>{for(let me=0;me{if(!g)return;const me=se&&g[se]?g[se]:g.column;if(me)return{width:`${100/me}%`,maxWidth:`${100/me}%`}},[JSON.stringify(g),se]);let te=Y&&l.createElement("div",{style:{minHeight:53}});if(Q.length>0){const me=Q.map((re,ce)=>L(re,ce));te=g?l.createElement(Oa,{gutter:g.gutter},l.Children.map(me,re=>l.createElement("div",{key:re==null?void 0:re.key,style:fe},re))):l.createElement("ul",{className:`${F}-items`},me)}else!u&&!Y&&(te=l.createElement("div",{className:`${F}-empty-text`},(C==null?void 0:C.emptyText)||(M==null?void 0:M("List"))||l.createElement(uy,{componentName:"List"})));const ie=W.position||"bottom",pe=l.useMemo(()=>({grid:g,itemLayout:d}),[JSON.stringify(g),d]);return B(l.createElement(AN.Provider,{value:pe},l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},D==null?void 0:D.style),c),className:ne},w),(ie==="top"||ie==="both")&&Z,b&&l.createElement("div",{className:`${F}-header`},b),l.createElement(vf,Object.assign({},H),te,u),x&&l.createElement("div",{className:`${F}-footer`},x),p||(ie==="bottom"||ie==="both")&&Z)))}const PCe=l.forwardRef(DCe),Er=PCe;Er.Item=MN;function LCe(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var jCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:s,footer:c}=e,u=jCe(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(lt),p=d(),g=t||d("modal"),m=ar(p),[h,b,x]=AV(g,m),S=`${g}-confirm`;let v={};return o?v={closable:a??!1,title:"",footer:"",children:l.createElement(DV,Object.assign({},e,{prefixCls:g,confirmPrefixCls:S,rootPrefixCls:p,content:s}))}:v={closable:a??!0,title:i,footer:c!==null&&l.createElement($V,Object.assign({},e)),children:s},h(l.createElement(gV,Object.assign({prefixCls:g,className:ae(b,`${g}-pure-panel`,o&&S,o&&`${S}-${o}`,n,x,m)},u,{closeIcon:_V(g,r),closable:a},v)))},BCe=XV(FCe);function iK(e){return mm(FV(e))}const Rn=MV;Rn.useModal=ofe;Rn.info=function(t){return mm(BV(t))};Rn.success=function(t){return mm(zV(t))};Rn.error=function(t){return mm(HV(t))};Rn.warning=iK;Rn.warn=iK;Rn.confirm=function(t){return mm(UV(t))};Rn.destroyAll=function(){for(;pc.length;){const t=pc.pop();t&&t()}};Rn.config=efe;Rn._InternalPanelDoNotUseOrYouWillBeFired=BCe;let vi=null,Pv=e=>e(),Gb=[],Dg={};function EP(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}=Dg,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}}const zCe=de.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(lt),o=Dg.prefixCls||a("notification"),i=l.useContext(Rfe),[s,c]=YV(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.notification));return de.useEffect(r,[]),de.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),HCe=de.forwardRef((e,t)=>{const[n,r]=de.useState(EP),a=()=>{r(EP)};de.useEffect(a,[]);const o=BU(),i=o.getRootPrefixCls(),s=o.getIconPrefixCls(),c=o.getTheme(),u=de.createElement(zCe,{ref:t,sync:a,notificationConfig:n});return de.createElement(ki,{prefixCls:i,iconPrefixCls:s,theme:c},o.holderRender?o.holderRender(u):u)});function DN(){if(!vi){const e=document.createDocumentFragment(),t={fragment:e};vi=t,Pv(()=>{OO(de.createElement(HCe,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,DN())})}}),e)});return}vi.instance&&(Gb.forEach(e=>{switch(e.type){case"open":{Pv(()=>{vi.instance.open(Object.assign(Object.assign({},Dg),e.config))});break}case"destroy":Pv(()=>{vi==null||vi.instance.destroy(e.key)});break}}),Gb=[])}function UCe(e){Dg=Object.assign(Object.assign({},Dg),e),Pv(()=>{var t;(t=vi==null?void 0:vi.sync)===null||t===void 0||t.call(vi)})}function sK(e){Gb.push({type:"open",config:e}),DN()}const VCe=e=>{Gb.push({type:"destroy",key:e}),DN()},WCe=["success","info","warning","error"],GCe={open:sK,destroy:VCe,config:UCe,useNotification:Tfe,_InternalPanelDoNotUseOrYouWillBeFired:vfe},Lv=GCe;WCe.forEach(e=>{Lv[e]=t=>sK(Object.assign(Object.assign({},t),{type:e}))});var qCe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},KCe=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},IP=0,YCe=da();function XCe(){var e;return YCe?(e=IP,IP+=1):e="TEST_OR_SSR",e}const ZCe=function(e){var t=l.useState(),n=le(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(XCe()))},[]),e||r};var TP=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function RP(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var QCe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,g=r&&mt(r)==="object",m=g?"#FFF":void 0,h=d/2,b=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:m,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:i,ref:t});if(!g)return b;var x="".concat(a,"-conic"),S=p?"".concat(180+p/2,"deg"):"0deg",v=RP(r,(360-p)/360),y=RP(r,1),C="conic-gradient(from ".concat(S,", ").concat(v.join(", "),")"),w="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(y.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:x},b),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(x,")")},l.createElement(TP,{bg:w},l.createElement(TP,{bg:C}))))}),pp=100,qS=function(t,n,r,a,o,i,s,c,u,d){var p=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,g=r/100*360*((360-i)/360),m=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=pp/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+p,transform:"rotate(".concat(o+g+m,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},JCe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function _P(e){var t=e??[];return Array.isArray(t)?t:[t]}var ewe=function(t){var n=X(X({},qCe),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,p=n.trailColor,g=n.strokeLinecap,m=n.style,h=n.className,b=n.strokeColor,x=n.percent,S=wt(n,JCe),v=pp/2,y=ZCe(r),C="".concat(y,"-gradient"),w=v-i/2,E=Math.PI*2*w,I=u>0?90+u/2:-90,T=E*((360-u)/360),R=mt(o)==="object"?o:{count:o,gap:2},_=R.count,$=R.gap,M=_P(x),P=_P(b),D=P.find(function(F){return F&&mt(F)==="object"}),O=D&&mt(D)==="object",k=O?"butt":g,N=qS(E,T,0,100,I,u,d,p,k,i),A=KCe(),L=function(){var B=0;return M.map(function(z,U){var H=P[U]||P[P.length-1],Y=qS(E,T,B,z,I,u,d,H,k,i);return B+=z,l.createElement(QCe,{key:U,color:H,ptg:z,radius:w,prefixCls:a,gradientId:C,style:Y,strokeLinecap:k,strokeWidth:i,gapDegree:u,ref:function(J){A[U]=J},size:pp})}).reverse()},j=function(){var B=Math.round(_*(M[0]/100)),z=100/_,U=0;return new Array(_).fill(null).map(function(H,Y){var K=Y<=B-1?P[0]:p,J=K&&mt(K)==="object"?"url(#".concat(C,")"):void 0,ne=qS(E,T,U,z,I,u,d,K,"butt",i,$);return U+=(T-ne.strokeDashoffset+$)*100/T,l.createElement("circle",{key:Y,className:"".concat(a,"-circle-path"),r:w,cx:v,cy:v,stroke:J,strokeWidth:i,opacity:1,style:ne,ref:function(q){A[Y]=q}})})};return l.createElement("svg",he({className:ae("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(pp," ").concat(pp),style:m,id:r,role:"presentation"},S),!_&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:w,cx:v,cy:v,stroke:p,strokeLinecap:k,strokeWidth:s||i,style:N}),_?j():L())};function Tl(e){return!e||e<0?0:e>100?100:e}function qb(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const twe=e=>{let{percent:t,success:n,successPercent:r}=e;const a=Tl(qb({success:n,successPercent:r}));return[a,Tl(Tl(t)-a)]},nwe=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||fd.green,n||null]},Ay=(e,t,n)=>{var r,a,o,i;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[s,c]},rwe=3,awe=e=>rwe/e*100,owe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:s,children:c,success:u,size:d=i,steps:p}=e,[g,m]=Ay(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(awe(g),6));const b={width:g,height:m,fontSize:g*.15+6},x=l.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),S=twe(e),v=a||s==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=nwe({success:u,strokeColor:e.strokeColor}),w=ae(`${t}-inner`,{[`${t}-circle-gradient`]:y}),E=l.createElement(ewe,{steps:p,percent:p?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:p?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:x,gapPosition:v}),I=g<=20,T=l.createElement("div",{className:w,style:b},E,!I&&c);return I?l.createElement(Wt,{title:c},T):T},Kb="--progress-line-stroke-color",lK="--progress-percent",$P=e=>{const t=e?"100%":"-100%";return new en(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},iwe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},an(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Kb})`]},height:"100%",width:`calc(1 / var(${lK}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${G(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:$P(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:$P(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},swe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},lwe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},cwe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},uwe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),dwe=on("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ft(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[iwe(n),swe(n),lwe(n),cwe(n)]},uwe);var fwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},gwe=(e,t)=>{const{from:n=fd.blue,to:r=fd.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=fwe(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=pwe(o),c=`linear-gradient(${a}, ${s})`;return{background:c,[Kb]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[Kb]:i}},mwe=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:p}=e,{align:g,type:m}=d,h=i&&typeof i!="string"?gwe(i,n):{[Kb]:i,background:i},b=s==="square"||s==="butt"?0:void 0,x=a??[-1,o||(a==="small"?6:8)],[S,v]=Ay(x,"line",{strokeWidth:o}),y={backgroundColor:u||void 0,borderRadius:b},C=Object.assign(Object.assign({width:`${Tl(r)}%`,height:v,borderRadius:b},h),{[lK]:Tl(r)/100}),w=qb(e),E={width:`${Tl(w)}%`,height:v,borderRadius:b,backgroundColor:p==null?void 0:p.strokeColor},I={width:S<0?"100%":S},T=l.createElement("div",{className:`${t}-inner`,style:y},l.createElement("div",{className:ae(`${t}-bg`,`${t}-bg-${m}`),style:C},m==="inner"&&c),w!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:E})),R=m==="outer"&&g==="start",_=m==="outer"&&g==="end";return m==="outer"&&g==="center"?l.createElement("div",{className:`${t}-layout-bottom`},T,c):l.createElement("div",{className:`${t}-outer`,style:I},R&&c,T,_&&c)},hwe=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:a=8,strokeColor:o,trailColor:i=null,prefixCls:s,children:c}=e,u=Math.round(n*(r/100)),p=t??[t==="small"?2:14,a],[g,m]=Ay(p,"step",{steps:n,strokeWidth:a}),h=g/n,b=new Array(n);for(let x=0;x{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:p,format:g,style:m,percentPosition:h={}}=e,b=vwe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:x="end",type:S="outer"}=h,v=Array.isArray(i)?i[0]:i,y=typeof i=="string"||Array.isArray(i)?i:void 0,C=l.useMemo(()=>{if(v){const L=typeof v=="string"?v:Object.values(v)[0];return new sn(L).isLight()}return!1},[i]),w=l.useMemo(()=>{var L,j;const F=qb(e);return parseInt(F!==void 0?(L=F??0)===null||L===void 0?void 0:L.toString():(j=s??0)===null||j===void 0?void 0:j.toString(),10)},[s,e.success,e.successPercent]),E=l.useMemo(()=>!bwe.includes(p)&&w>=100?"success":p||"normal",[p,w]),{getPrefixCls:I,direction:T,progress:R}=l.useContext(lt),_=I("progress",n),[$,M,P]=dwe(_),D=d==="line",O=D&&!o,k=l.useMemo(()=>{if(!u)return null;const L=qb(e);let j;const F=g||(z=>`${z}%`),B=D&&C&&S==="inner";return S==="inner"||g||E!=="exception"&&E!=="success"?j=F(Tl(s),Tl(L)):E==="exception"?j=D?l.createElement(Hl,null):l.createElement(pa,null):E==="success"&&(j=D?l.createElement(of,null):l.createElement(df,null)),l.createElement("span",{className:ae(`${_}-text`,{[`${_}-text-bright`]:B,[`${_}-text-${x}`]:O,[`${_}-text-${S}`]:O}),title:typeof j=="string"?j:void 0},j)},[u,s,w,E,d,_,g]);let N;d==="line"?N=o?l.createElement(hwe,Object.assign({},e,{strokeColor:y,prefixCls:_,steps:typeof o=="object"?o.count:o}),k):l.createElement(mwe,Object.assign({},e,{strokeColor:v,prefixCls:_,direction:T,percentPosition:{align:x,type:S}}),k):(d==="circle"||d==="dashboard")&&(N=l.createElement(owe,Object.assign({},e,{strokeColor:v,prefixCls:_,progressStatus:E}),k));const A=ae(_,`${_}-status-${E}`,{[`${_}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${_}-inline-circle`]:d==="circle"&&Ay(c,"circle")[0]<=20,[`${_}-line`]:O,[`${_}-line-align-${x}`]:O,[`${_}-line-position-${S}`]:O,[`${_}-steps`]:o,[`${_}-show-info`]:u,[`${_}-${c}`]:typeof c=="string",[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,r,a,M,P);return $(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},R==null?void 0:R.style),m),className:A,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Mn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});var ywe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},xwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:ywe}))},Swe=l.forwardRef(xwe),Cwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},wwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Cwe}))},cK=l.forwardRef(wwe),Ewe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},Iwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Ewe}))},Twe=l.forwardRef(Iwe),Rwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},_we=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Rwe}))},$we=l.forwardRef(_we),Owe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},Nwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Owe}))},kwe=l.forwardRef(Nwe),Awe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Mwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Awe}))},Dwe=l.forwardRef(Mwe),Pwe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Lwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Pwe}))},jwe=l.forwardRef(Lwe),Fwe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Bwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Fwe}))},zwe=l.forwardRef(Bwe),Hwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},Uwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Hwe}))},m_=l.forwardRef(Uwe),Vwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"check-square",theme:"outlined"},Wwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Vwe}))},h_=l.forwardRef(Wwe),Gwe={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},qwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Gwe}))},OP=l.forwardRef(qwe),Kwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},Ywe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Kwe}))},uK=l.forwardRef(Ywe),Xwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},Zwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Xwe}))},Yb=l.forwardRef(Zwe),Qwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},Jwe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Qwe}))},eEe=l.forwardRef(Jwe),tEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},nEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:tEe}))},PN=l.forwardRef(nEe),rEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},aEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:rEe}))},oEe=l.forwardRef(aEe),iEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"},sEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:iEe}))},lEe=l.forwardRef(sEe),cEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},uEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:cEe}))},Dy=l.forwardRef(uEe),dEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},fEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:dEe}))},Al=l.forwardRef(fEe),pEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},gEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:pEe}))},gp=l.forwardRef(gEe),mEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"},hEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:mEe}))},vEe=l.forwardRef(hEe),bEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},yEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:bEe}))},LN=l.forwardRef(yEe),xEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},SEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:xEe}))},Ml=l.forwardRef(SEe),CEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},wEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:CEe}))},EEe=l.forwardRef(wEe),IEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"},TEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:IEe}))},REe=l.forwardRef(TEe),_Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},$Ee=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:_Ee}))},dK=l.forwardRef($Ee),OEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},NEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:OEe}))},kEe=l.forwardRef(NEe),AEe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},MEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:AEe}))},DEe=l.forwardRef(MEe),PEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},LEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:PEe}))},jEe=l.forwardRef(LEe),FEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},BEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:FEe}))},zEe=l.forwardRef(BEe),HEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},UEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:HEe}))},jv=l.forwardRef(UEe),VEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},WEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:VEe}))},jN=l.forwardRef(WEe),GEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},qEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:GEe}))},Ic=l.forwardRef(qEe),KEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},YEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:KEe}))},fK=l.forwardRef(YEe),XEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},ZEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:XEe}))},pK=l.forwardRef(ZEe),QEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},JEe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:QEe}))},e2e=l.forwardRef(JEe),t2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"},n2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:t2e}))},r2e=l.forwardRef(n2e),a2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},o2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:a2e}))},i2e=l.forwardRef(o2e),s2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},l2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:s2e}))},c2e=l.forwardRef(l2e),u2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},d2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:u2e}))},f2e=l.forwardRef(d2e),p2e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},g2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:p2e}))},FN=l.forwardRef(g2e),m2e={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},h2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:m2e}))},pl=l.forwardRef(h2e),v2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},b2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:v2e}))},y2e=l.forwardRef(b2e),x2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},S2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:x2e}))},C2e=l.forwardRef(S2e),w2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},E2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:w2e}))},gK=l.forwardRef(E2e),I2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},T2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:I2e}))},R2e=l.forwardRef(T2e),_2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},$2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:_2e}))},O2e=l.forwardRef($2e),N2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},k2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:N2e}))},mK=l.forwardRef(k2e),A2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},M2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:A2e}))},D2e=l.forwardRef(M2e),P2e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},L2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:P2e}))},j2e=l.forwardRef(L2e),F2e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"},B2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:F2e}))},z2e=l.forwardRef(B2e),H2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM456 344h264v98.2c0 8.1 9.5 12.8 15.8 7.7l172.5-136.2c5-3.9 5-11.4 0-15.3L735.8 162.1c-6.4-5.1-15.8-.5-15.8 7.7V268H456c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8z"}}]},name:"node-expand",theme:"outlined"},U2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:H2e}))},Xb=l.forwardRef(U2e),V2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-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-568H336c-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 284H336c-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-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},W2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:V2e}))},G2e=l.forwardRef(W2e),q2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},K2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:q2e}))},Y2e=l.forwardRef(K2e),X2e={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},Z2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:X2e}))},NP=l.forwardRef(Z2e),Q2e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},J2e=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:Q2e}))},eIe=l.forwardRef(J2e),tIe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},nIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:tIe}))},Eo=l.forwardRef(nIe),rIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},aIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:rIe}))},hK=l.forwardRef(aIe),oIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},iIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:oIe}))},sIe=l.forwardRef(iIe),lIe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},cIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:lIe}))},kP=l.forwardRef(cIe),uIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},dIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:uIe}))},v_=l.forwardRef(dIe),fIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},pIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:fIe}))},BN=l.forwardRef(pIe),gIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},mIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:gIe}))},vK=l.forwardRef(mIe),hIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},vIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:hIe}))},zN=l.forwardRef(vIe),bIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},yIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:bIe}))},xIe=l.forwardRef(yIe),SIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},CIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:SIe}))},bK=l.forwardRef(CIe),wIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"},EIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:wIe}))},yK=l.forwardRef(EIe),IIe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"},TIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:IIe}))},RIe=l.forwardRef(TIe),_Ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"outlined"},$Ie=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:_Ie}))},OIe=l.forwardRef($Ie),NIe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},kIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:NIe}))},AIe=l.forwardRef(kIe),MIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},DIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:MIe}))},xK=l.forwardRef(DIe),PIe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z"}}]},name:"truck",theme:"outlined"},LIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:PIe}))},SK=l.forwardRef(LIe),jIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"},FIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:jIe}))},BIe=l.forwardRef(FIe),zIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},HIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:zIe}))},CK=l.forwardRef(HIe),UIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},VIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:UIe}))},WIe=l.forwardRef(VIe),GIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},qIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:GIe}))},KIe=l.forwardRef(qIe),YIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},XIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:YIe}))},wK=l.forwardRef(XIe),ZIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},QIe=function(t,n){return l.createElement(Qe,he({},t,{ref:n,icon:ZIe}))},b_=l.forwardRef(QIe),JIe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function AP(e){return typeof e=="string"}function EK(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,p=e.description,g=e.title,m=e.subTitle,h=e.progressDot,b=e.stepIcon,x=e.tailContent,S=e.icons,v=e.stepIndex,y=e.onStepClick,C=e.onClick,w=e.render,E=wt(e,JIe),I=!!y&&!d,T={};I&&(T.role="button",T.tabIndex=0,T.onClick=function(D){C==null||C(D),y(v)},T.onKeyDown=function(D){var O=D.which;(O===ze.ENTER||O===ze.SPACE)&&y(v)});var R=function(){var O,k,N=ae("".concat(r,"-icon"),"".concat(s,"icon"),(O={},V(O,"".concat(s,"icon-").concat(c),c&&AP(c)),V(O,"".concat(s,"icon-check"),!c&&i==="finish"&&(S&&!S.finish||!S)),V(O,"".concat(s,"icon-cross"),!c&&i==="error"&&(S&&!S.error||!S)),O)),A=l.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?k=l.createElement("span",{className:"".concat(r,"-icon")},h(A,{index:u-1,status:i,title:g,description:p})):k=l.createElement("span",{className:"".concat(r,"-icon")},A):c&&!AP(c)?k=l.createElement("span",{className:"".concat(r,"-icon")},c):S&&S.finish&&i==="finish"?k=l.createElement("span",{className:"".concat(r,"-icon")},S.finish):S&&S.error&&i==="error"?k=l.createElement("span",{className:"".concat(r,"-icon")},S.error):c||i==="finish"||i==="error"?k=l.createElement("span",{className:N}):k=l.createElement("span",{className:"".concat(r,"-icon")},u),b&&(k=b({index:u-1,status:i,title:g,description:p,node:k})),k},_=i||"wait",$=ae("".concat(r,"-item"),"".concat(r,"-item-").concat(_),n,(t={},V(t,"".concat(r,"-item-custom"),c),V(t,"".concat(r,"-item-active"),o),V(t,"".concat(r,"-item-disabled"),d===!0),t)),M=X({},a),P=l.createElement("div",he({},E,{className:$,style:M}),l.createElement("div",he({onClick:C},T,{className:"".concat(r,"-item-container")}),l.createElement("div",{className:"".concat(r,"-item-tail")},x),l.createElement("div",{className:"".concat(r,"-item-icon")},R()),l.createElement("div",{className:"".concat(r,"-item-content")},l.createElement("div",{className:"".concat(r,"-item-title")},g,m&&l.createElement("div",{title:typeof m=="string"?m:void 0,className:"".concat(r,"-item-subtitle")},m)),p&&l.createElement("div",{className:"".concat(r,"-item-description")},p))));return w&&(P=w(P)||null),P}var eTe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function HN(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,p=e.labelPlacement,g=p===void 0?"horizontal":p,m=e.iconPrefix,h=m===void 0?"rc":m,b=e.status,x=b===void 0?"process":b,S=e.size,v=e.current,y=v===void 0?0:v,C=e.progressDot,w=C===void 0?!1:C,E=e.stepIcon,I=e.initial,T=I===void 0?0:I,R=e.icons,_=e.onChange,$=e.itemRender,M=e.items,P=M===void 0?[]:M,D=wt(e,eTe),O=d==="navigation",k=d==="inline",N=k||w,A=k?"horizontal":c,L=k?void 0:S,j=N?"vertical":g,F=ae(r,"".concat(r,"-").concat(A),i,(t={},V(t,"".concat(r,"-").concat(L),L),V(t,"".concat(r,"-label-").concat(j),A==="horizontal"),V(t,"".concat(r,"-dot"),!!N),V(t,"".concat(r,"-navigation"),O),V(t,"".concat(r,"-inline"),k),t)),B=function(H){_&&y!==H&&_(H)},z=function(H,Y){var K=X({},H),J=T+Y;return x==="error"&&Y===y-1&&(K.className="".concat(r,"-next-error")),K.status||(J===y?K.status=x:J{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:G(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},nTe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},rTe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${G(o)} ${G(e.paddingXXS)} 0`,margin:`0 ${G(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},aTe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${G(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},oTe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Oo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${G(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${G(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${G(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},iTe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:s,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),p=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${G(d)} !important`,height:`${G(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${G(p)} !important`,height:`${G(p)} !important`}}}}},sTe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${G(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${G(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:G(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:G(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${G(e.calc(o).add(e.paddingXS).equal())} 0 ${G(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},lTe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},cTe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${G(e.marginXS)}`,fontSize:r,lineHeight:G(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:G(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:G(n),transform:"none"}}}}},uTe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:G(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${G(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${G(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:G(n)}}}}},dTe="wait",fTe="process",pTe="finish",gTe="error",Bh=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},mTe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[a]:Object.assign({},Ts(e))}},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:G(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${G(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:G(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Bh(dTe,e)),Bh(fTe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),Bh(pTe,e)),Bh(gTe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},hTe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},vTe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),mTe(e)),hTe(e)),tTe(e)),cTe(e)),uTe(e)),nTe(e)),aTe(e)),sTe(e)),oTe(e)),lTe(e)),iTe(e)),rTe(e))}},bTe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),yTe=on("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,p=Ft(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[vTe(p)]},bTe);function xTe(e){return e.filter(t=>t)}function STe(e,t){if(e)return e;const n=_r(t).map(r=>{if(l.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return xTe(n)}var CTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:s=!0,current:c=0,children:u,style:d}=e,p=CTe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:g}=fy(s),{getPrefixCls:m,direction:h,steps:b}=l.useContext(lt),x=l.useMemo(()=>s&&g?"vertical":o,[g,o]),S=Lr(n),v=m("steps",e.prefixCls),[y,C,w]=yTe(v),E=e.type==="inline",I=m("",e.iconPrefix),T=STe(i,u),R=E?void 0:t,_=Object.assign(Object.assign({},b==null?void 0:b.style),d),$=ae(b==null?void 0:b.className,{[`${v}-rtl`]:h==="rtl",[`${v}-with-progress`]:R!==void 0},r,a,C,w),M={finish:l.createElement(df,{className:`${v}-finish-icon`}),error:l.createElement(pa,{className:`${v}-error-icon`})},P=O=>{let{node:k,status:N}=O;if(N==="process"&&R!==void 0){const A=S==="small"?32:40;return l.createElement("div",{className:`${v}-progress-icon`},l.createElement(My,{type:"circle",percent:R,size:A,strokeWidth:4,format:()=>null}),k)}return k},D=(O,k)=>O.description?l.createElement(Wt,{title:O.description},k):k;return y(l.createElement(HN,Object.assign({icons:M},p,{style:_,current:c,size:S,items:T,itemRender:E?D:void 0,stepIcon:P,direction:x,prefixCls:v,iconPrefix:I,className:$})))};Ls.Step=HN.Step;var wTe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],IK=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,g=e.onClick,m=e.onChange,h=e.onKeyDown,b=wt(e,wTe),x=fn(!1,{value:i,defaultValue:s}),S=le(x,2),v=S[0],y=S[1];function C(T,R){var _=v;return c||(_=T,y(_),m==null||m(_,R)),_}function w(T){T.which===ze.LEFT?C(!1,T):T.which===ze.RIGHT&&C(!0,T),h==null||h(T)}function E(T){var R=C(!v,T);g==null||g(R,T)}var I=ae(a,o,(n={},V(n,"".concat(a,"-checked"),v),V(n,"".concat(a,"-disabled"),c),n));return l.createElement("button",he({},b,{type:"button",role:"switch","aria-checked":v,disabled:c,className:I,ref:t,onKeyDown:w,onClick:E}),u,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},d),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},p)))});IK.displayName="Switch";const ETe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=G(c(s).add(c(r).mul(2)).equal()),p=G(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:G(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${p})`,marginInlineEnd:`calc(100% - ${d} + ${p})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${p})`,marginInlineEnd:`calc(-100% + ${d} - ${p})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${G(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},ITe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},TTe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${G(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},RTe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:s}=e,c=`${t}-inner`,u=G(s(i).add(s(r).mul(2)).equal()),d=G(s(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},_Te=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:G(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ni(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},$Te=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,s=2,c=o-s*2,u=i-s*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new sn("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},OTe=on("Switch",e=>{const t=Ft(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_Te(t),RTe(t),TTe(t),ITe(t),ETe(t)]},$Te);var NTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:p,defaultValue:g,onChange:m}=e,h=NTe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,x]=fn(!1,{value:u??d,defaultValue:p??g}),{getPrefixCls:S,direction:v,switch:y}=l.useContext(lt),C=l.useContext(fa),w=(a??C)||o,E=S("switch",n),I=l.createElement("div",{className:`${E}-handle`},o&&l.createElement(Zi,{className:`${E}-loading-icon`})),[T,R,_]=OTe(E),$=Lr(r),M=ae(y==null?void 0:y.className,{[`${E}-small`]:$==="small",[`${E}-loading`]:o,[`${E}-rtl`]:v==="rtl"},i,s,R,_),P=Object.assign(Object.assign({},y==null?void 0:y.style),c),D=function(){x(arguments.length<=0?void 0:arguments[0]),m==null||m.apply(void 0,arguments)};return T(l.createElement(cm,{component:"Switch"},l.createElement(IK,Object.assign({},h,{checked:b,onChange:D,prefixCls:E,className:M,style:P,disabled:w,ref:t,loadingIcon:I}))))}),Xa=kTe;Xa.__ANT_SWITCH=!0;var tl={},Nm="rc-table-internal-hook";function UN(e){var t=l.createContext(void 0),n=function(a){var o=a.value,i=a.children,s=l.useRef(o);s.current=o;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=le(c,1),d=u[0];return Yt(function(){Kr.unstable_batchedUpdates(function(){d.listeners.forEach(function(p){p(o)})})},[o]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function Ea(e,t){var n=Gt(typeof t=="function"?t:function(p){if(t===void 0)return p;if(!Array.isArray(t))return p[t];var g={};return t.forEach(function(m){g[m]=p[m]}),g}),r=l.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=le(c,2),d=u[1];return Yt(function(){if(!r)return;function p(g){var m=n(g);Jo(s.current,m,!0)||d({})}return o.add(p),function(){o.delete(p)}},[r]),s.current}function ATe(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,o){var i=Ri(a),s=function(u,d){var p=i?{ref:d}:{},g=l.useRef(0),m=l.useRef(u),h=t();return h!==null?l.createElement(a,he({},u,p)):((!o||o(m.current,u))&&(g.current+=1),m.current=u,l.createElement(e.Provider,{value:g.current},l.createElement(a,he({},u,p))))};return i?l.forwardRef(s):s}function r(a,o){var i=Ri(a),s=function(u,d){var p=i?{ref:d}:{};return t(),l.createElement(a,he({},u,p))};return i?l.memo(l.forwardRef(s),o):l.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var VN=ATe(),TK=VN.makeImmutable,bf=VN.responseImmutable,MTe=VN.useImmutableMark,Ka=UN(),RK=l.createContext({renderWithProps:!1}),DTe="RC_TABLE_KEY";function PTe(e){return e==null?[]:Array.isArray(e)?e:[e]}function Py(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,s=o||PTe(i).join("-")||DTe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function y_(e){return e!=null}function LTe(e){return typeof e=="number"&&!Number.isNaN(e)}function jTe(e){return e&&mt(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function FTe(e,t,n,r,a,o){var i=l.useContext(RK),s=MTe(),c=Bl(function(){if(y_(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=xo(e,u),p=d,g=void 0;if(a){var m=a(d,e,n);jTe(m)?(p=m.children,g=m.props,i.renderWithProps=!0):p=m}return[p,g]},[s,e,r,t,a,n],function(u,d){if(o){var p=le(u,2),g=p[1],m=le(d,2),h=m[1];return o(h,g)}return i.renderWithProps?!0:!Jo(u,d,!0)});return c}function BTe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function zTe(e,t){return Ea(Ka,function(n){var r=BTe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var HTe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function UTe(e){var t,n,r,a,o,i,s,c,u=e.component,d=e.children,p=e.ellipsis,g=e.scope,m=e.prefixCls,h=e.className,b=e.align,x=e.record,S=e.render,v=e.dataIndex,y=e.renderIndex,C=e.shouldCellUpdate,w=e.index,E=e.rowType,I=e.colSpan,T=e.rowSpan,R=e.fixLeft,_=e.fixRight,$=e.firstFixLeft,M=e.lastFixLeft,P=e.firstFixRight,D=e.lastFixRight,O=e.appendNode,k=e.additionalProps,N=k===void 0?{}:k,A=e.isSticky,L="".concat(m,"-cell"),j=Ea(Ka,["supportSticky","allColumnsFixedLeft","rowHoverable"]),F=j.supportSticky,B=j.allColumnsFixedLeft,z=j.rowHoverable,U=FTe(x,v,y,d,S,C),H=le(U,2),Y=H[0],K=H[1],J={},ne=typeof R=="number"&&F,W=typeof _=="number"&&F;ne&&(J.position="sticky",J.left=R),W&&(J.position="sticky",J.right=_);var q=(t=(n=(r=K==null?void 0:K.colSpan)!==null&&r!==void 0?r:N.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,Z=(a=(o=(i=K==null?void 0:K.rowSpan)!==null&&i!==void 0?i:N.rowSpan)!==null&&o!==void 0?o:T)!==null&&a!==void 0?a:1,Q=zTe(w,Z),ee=le(Q,2),oe=ee[0],se=ee[1],fe=Gt(function(ge){var ye;x&&se(w,w+Z-1),N==null||(ye=N.onMouseEnter)===null||ye===void 0||ye.call(N,ge)}),te=Gt(function(ge){var ye;x&&se(-1,-1),N==null||(ye=N.onMouseLeave)===null||ye===void 0||ye.call(N,ge)});if(q===0||Z===0)return null;var ie=(s=N.title)!==null&&s!==void 0?s:HTe({rowType:E,ellipsis:p,children:Y}),pe=ae(L,h,(c={},V(V(V(V(V(V(V(V(V(V(c,"".concat(L,"-fix-left"),ne&&F),"".concat(L,"-fix-left-first"),$&&F),"".concat(L,"-fix-left-last"),M&&F),"".concat(L,"-fix-left-all"),M&&B&&F),"".concat(L,"-fix-right"),W&&F),"".concat(L,"-fix-right-first"),P&&F),"".concat(L,"-fix-right-last"),D&&F),"".concat(L,"-ellipsis"),p),"".concat(L,"-with-append"),O),"".concat(L,"-fix-sticky"),(ne||W)&&A&&F),V(c,"".concat(L,"-row-hover"),!K&&oe)),N.className,K==null?void 0:K.className),me={};b&&(me.textAlign=b);var re=X(X(X(X({},J),N.style),me),K==null?void 0:K.style),ce=Y;return mt(ce)==="object"&&!Array.isArray(ce)&&!l.isValidElement(ce)&&(ce=null),p&&(M||P)&&(ce=l.createElement("span",{className:"".concat(L,"-content")},ce)),l.createElement(u,he({},K,N,{className:pe,style:re,title:ie,scope:g,onMouseEnter:z?fe:void 0,onMouseLeave:z?te:void 0,colSpan:q!==1?q:null,rowSpan:Z!==1?Z:null}),O,ce)}const yf=l.memo(UTe);function WN(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},s,c;o.fixed==="left"?s=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,p=!1,g=!1,m=n[t+1],h=n[e-1],b=m&&!m.fixed||h&&!h.fixed||n.every(function(C){return C.fixed==="left"});if(a==="rtl"){if(s!==void 0){var x=h&&h.fixed==="left";g=!x&&b}else if(c!==void 0){var S=m&&m.fixed==="right";p=!S&&b}}else if(s!==void 0){var v=m&&m.fixed==="left";u=!v&&b}else if(c!==void 0){var y=h&&h.fixed==="right";d=!y&&b}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:p,firstFixLeft:g,isSticky:r.isSticky}}var _K=l.createContext({});function VTe(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,s=e.align,c=Ea(Ka,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,p=l.useContext(_K),g=p.scrollColumnIndex,m=p.stickyOffsets,h=p.flattenColumns,b=n+o-1,x=b+1===g?o+1:o,S=WN(n,n+x-1,h,m,d);return l.createElement(yf,he({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:x,rowSpan:i,render:function(){return r}},S))}var WTe=["children"];function GTe(e){var t=e.children,n=wt(e,WTe);return l.createElement("tr",n,t)}function Ly(e){var t=e.children;return t}Ly.Row=GTe;Ly.Cell=VTe;function qTe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=Ea(Ka,"prefixCls"),o=r.length-1,i=r[o],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return l.createElement(_K.Provider,{value:s},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const zh=bf(qTe);var $K=Ly;function KTe(e){return null}function YTe(e){return null}function OK(e,t,n,r,a,o,i){e.push({record:t,indent:n,index:i});var s=o(t),c=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?$-1:0),P=1;P<$;P++)M[P-1]=arguments[P];w==null||w.apply(void 0,[_].concat(M))},I;typeof m=="string"?I=m:typeof m=="function"&&(I=m(e,n,r));var T=Py(o);return X(X({},a),{},{columnsKey:T,nestExpandable:h,expanded:S,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:b,expandable:x,rowProps:X(X({},C),{},{className:ae(I,C==null?void 0:C.className),onClick:E})})}function AK(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=Ea(Ka,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,p=u.fixHeader,g=u.fixColumn,m=u.componentWidth,h=u.horizonScroll,b=n;return(c?h&&m:g)&&(b=l.createElement("div",{style:{width:m-(p&&!c?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),l.createElement(r,{className:o,style:{display:i?null:"none"}},l.createElement(yf,{component:a,prefixCls:t,colSpan:s},b))}function MK(e,t,n,r,a){var o=e.record,i=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,p=e.indentSize,g=e.expandIcon,m=e.expanded,h=e.hasNestChildren,b=e.onTriggerExpand,x=s[n],S=c[n],v;n===(u||0)&&d&&(v=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(i,"-row-indent indent-level-").concat(r)}),g({prefixCls:i,expanded:m,expandable:h,record:o,onExpand:b})));var y;return t.onCell&&(y=t.onCell(o,a)),{key:x,fixedInfo:S,appendCellNode:v,additionalCellProps:y||{}}}function XTe(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,i=e.rowKey,s=e.indent,c=s===void 0?0:s,u=e.rowComponent,d=e.cellComponent,p=e.scopeCellComponent,g=kK(r,i,a,c),m=g.prefixCls,h=g.flattenColumns,b=g.expandedRowClassName,x=g.expandedRowRender,S=g.rowProps,v=g.expanded,y=g.rowSupportExpand,C=l.useRef(!1);C.current||(C.current=v);var w=b&&b(r,a,c),E=l.createElement(u,he({},S,{"data-row-key":i,className:ae(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(c),S==null?void 0:S.className,c>=1?w:""),style:X(X({},n),S==null?void 0:S.style)}),h.map(function(R,_){var $=R.render,M=R.dataIndex,P=R.className,D=MK(g,R,_,c,a),O=D.key,k=D.fixedInfo,N=D.appendCellNode,A=D.additionalCellProps;return l.createElement(yf,he({className:P,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?p:d,prefixCls:m,key:O,record:r,index:a,renderIndex:o,dataIndex:M,render:$,shouldCellUpdate:R.shouldCellUpdate},k,{appendNode:N,additionalProps:A}))})),I;if(y&&(C.current||v)){var T=x(r,a,c+1,v);I=l.createElement(AK,{expanded:v,className:ae("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(c+1),w),prefixCls:m,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},T)}return l.createElement(l.Fragment,null,E,I)}const ZTe=bf(XTe);function QTe(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return l.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(Sa,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function JTe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},l.createElement(Sa.Collection,{onBatchResize:function(o){o.forEach(function(i){var s=i.data,c=i.size;r(s,c.offsetWidth)})}},n.map(function(a){return l.createElement(QTe,{key:a,columnKey:a,onColumnResize:r})})))}function eRe(e){var t=e.data,n=e.measureColumnWidth,r=Ea(Ka,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,p=r.emptyNode,g=NK(t,d,u,c),m=l.useRef({renderWithProps:!1}),h=o(["body","wrapper"],"tbody"),b=o(["body","row"],"tr"),x=o(["body","cell"],"td"),S=o(["body","cell"],"th"),v;t.length?v=g.map(function(C,w){var E=C.record,I=C.indent,T=C.index,R=c(E,w);return l.createElement(ZTe,{key:R,rowKey:R,record:E,index:w,renderIndex:T,rowComponent:b,cellComponent:x,scopeCellComponent:S,getRowKey:c,indent:I})}):v=l.createElement(AK,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:b,cellComponent:x,colSpan:s.length,isEmpty:!0},p);var y=Py(s);return l.createElement(RK.Provider,{value:m.current},l.createElement(h,{className:"".concat(a,"-tbody")},n&&l.createElement(JTe,{prefixCls:a,columnsKey:y,onColumnResize:i}),v))}const tRe=bf(eRe);var nRe=["expandable"],Bp="RC_TABLE_INTERNAL_COL_DEFINE";function rRe(e){var t=e.expandable,n=wt(e,nRe),r;return"expandable"in e?r=X(X({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var aRe=["columnType"];function DK(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=Ea(Ka,["tableLayout"]),o=a.tableLayout,i=[],s=r||n.length,c=!1,u=s-1;u>=0;u-=1){var d=t[u],p=n&&n[u],g=void 0,m=void 0;if(p&&(g=p[Bp],o==="auto"&&(m=p.minWidth)),d||m||g||c){var h=g||{};h.columnType;var b=wt(h,aRe);i.unshift(l.createElement("col",he({key:u,style:{width:d,minWidth:m}},b))),c=!0}}return l.createElement("colgroup",null,i)}var oRe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function iRe(e,t){return l.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:x.ellipsis,align:x.align,component:i,prefixCls:d,key:m[b]},S,{additionalProps:v,rowType:"header"}))}))};function cRe(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(p){var g={key:p.key,className:p.className||"",children:p.title,column:p,colStart:u},m=1,h=p.children;return h&&h.length>0&&(m=n(h,u,c+1).reduce(function(b,x){return b+x},0),g.hasSubColumns=!0),"colSpan"in p&&(m=p.colSpan),"rowSpan"in p&&(g.rowSpan=p.rowSpan),g.colSpan=m,g.colEnd=g.colStart+m-1,t[c].push(g),u+=m,m});return d}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function dRe(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(g){var m=PP(t,g.width);m?r+=m:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),s=a,c=i/a,u=0,d=e.map(function(g){var m=X({},g),h=PP(t,m.width);if(h)m.width=h;else{var b=Math.floor(c);m.width=s===1?i:b,i-=b,s-=1}return u+=m.width,m});if(u0?X(X({},t),{},{children:PK(n)}):t})}function x_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&mt(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,s="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(Me(n),Me(x_(c,s).map(function(u){return X({fixed:i},u)}))):[].concat(Me(n),[X(X({key:s},r),{},{fixed:i})])},[])}function gRe(e){return e.map(function(t){var n=t.fixed,r=wt(t,pRe),a=n;return n==="left"?a="right":n==="right"&&(a="left"),X({fixed:a},r)})}function mRe(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,p=e.rowExpandable,g=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,b=e.columnWidth,x=e.fixed,S=e.scrollWidth,v=e.clientWidth,y=l.useMemo(function(){var M=r||GN(a)||[];return PK(M.slice())},[r,a]),C=l.useMemo(function(){if(o){var M=y.slice();if(!M.includes(tl)){var P=g||0;P>=0&&M.splice(P,0,tl)}var D=M.indexOf(tl);M=M.filter(function(A,L){return A!==tl||L===D});var O=y[D],k;(x==="left"||x)&&!g?k="left":(x==="right"||x)&&g===y.length?k="right":k=O?O.fixed:null;var N=V(V(V(V(V(V({},Bp,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",k),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(L,j,F){var B=c(j,F),z=i.has(B),U=p?p(j):!0,H=d({prefixCls:n,expanded:z,expandable:U,record:j,onExpand:u});return h?l.createElement("span",{onClick:function(K){return K.stopPropagation()}},H):H});return M.map(function(A){return A===tl?N:A})}return y.filter(function(A){return A!==tl})},[o,y,c,i,d,m]),w=l.useMemo(function(){var M=C;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,C,m]),E=l.useMemo(function(){return m==="rtl"?gRe(x_(w)):x_(w)},[w,m,S]),I=l.useMemo(function(){for(var M=-1,P=E.length-1;P>=0;P-=1){var D=E[P].fixed;if(D==="left"||D===!0){M=P;break}}if(M>=0)for(var O=0;O<=M;O+=1){var k=E[O].fixed;if(k!=="left"&&k!==!0)return!0}var N=E.findIndex(function(j){var F=j.fixed;return F==="right"});if(N>=0)for(var A=N;A=p&&(A=p-g),i({scrollLeft:A/p*(d+2)}),v.current.x=D.pageX},$=function(){I.current=Ht(function(){if(o.current){var D=f_(o.current).top,O=D+o.current.offsetHeight,k=c===window?document.documentElement.scrollTop+window.innerHeight:f_(c).top+c.clientHeight;O-bM()<=k||D>=k-s?S(function(N){return X(X({},N),{},{isHiddenScrollBar:!0})}):S(function(N){return X(X({},N),{},{isHiddenScrollBar:!1})})}})},M=function(D){S(function(O){return X(X({},O),{},{scrollLeft:D/d*p||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:M,checkScrollBarVisible:$}}),l.useEffect(function(){var P=Gi(document.body,"mouseup",T,!1),D=Gi(document.body,"mousemove",_,!1);return $(),function(){P.remove(),D.remove()}},[g,w]),l.useEffect(function(){var P=Gi(c,"scroll",$,!1),D=Gi(window,"resize",$,!1);return function(){P.remove(),D.remove()}},[c]),l.useEffect(function(){x.isHiddenScrollBar||S(function(P){var D=o.current;return D?X(X({},P),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):P})},[x.isHiddenScrollBar]),d<=p||!g||x.isHiddenScrollBar?null:l.createElement("div",{style:{height:bM(),width:p,bottom:s},className:"".concat(u,"-sticky-scroll")},l.createElement("div",{onMouseDown:R,ref:m,className:ae("".concat(u,"-sticky-scroll-bar"),V({},"".concat(u,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))};const IRe=l.forwardRef(ERe);var jK="rc-table",TRe=[],RRe={};function _Re(){return"No Data"}function $Re(e,t){var n=X({rowKey:"key",prefixCls:jK,emptyText:_Re},e),r=n.prefixCls,a=n.className,o=n.rowClassName,i=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,p=n.direction,g=n.title,m=n.footer,h=n.summary,b=n.caption,x=n.id,S=n.showHeader,v=n.components,y=n.emptyText,C=n.onRow,w=n.onHeaderRow,E=n.onScroll,I=n.internalHooks,T=n.transformColumns,R=n.internalRefs,_=n.tailor,$=n.getContainerWidth,M=n.sticky,P=n.rowHoverable,D=P===void 0?!0:P,O=s||TRe,k=!!O.length,N=I===Nm,A=l.useCallback(function(pt,St){return xo(v,pt)||St},[v]),L=l.useMemo(function(){return typeof c=="function"?c:function(pt){var St=pt&&pt[c];return St}},[c]),j=A(["body"]),F=SRe(),B=le(F,3),z=B[0],U=B[1],H=B[2],Y=bRe(n,O,L),K=le(Y,6),J=K[0],ne=K[1],W=K[2],q=K[3],Z=K[4],Q=K[5],ee=u==null?void 0:u.x,oe=l.useState(0),se=le(oe,2),fe=se[0],te=se[1],ie=mRe(X(X(X({},n),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:W,getRowKey:L,onTriggerExpand:Q,expandIcon:q,expandIconColumnIndex:J.expandIconColumnIndex,direction:p,scrollWidth:N&&_&&typeof ee=="number"?ee:null,clientWidth:fe}),N?T:null),pe=le(ie,4),me=pe[0],re=pe[1],ce=pe[2],ge=pe[3],ye=ce??ee,Ee=l.useMemo(function(){return{columns:me,flattenColumns:re}},[me,re]),Ne=l.useRef(),_e=l.useRef(),Pe=l.useRef(),Le=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Ne.current,scrollTo:function(St){var ln;if(Pe.current instanceof HTMLElement){var Wn=St.index,tr=St.top,fr=St.key;if(LTe(tr)){var ha;(ha=Pe.current)===null||ha===void 0||ha.scrollTo({top:tr})}else{var Pa,La=fr??L(O[Wn]);(Pa=Pe.current.querySelector('[data-row-key="'.concat(La,'"]')))===null||Pa===void 0||Pa.scrollIntoView()}}else(ln=Pe.current)!==null&&ln!==void 0&&ln.scrollTo&&Pe.current.scrollTo(St)}}});var Ve=l.useRef(),je=l.useState(!1),De=le(je,2),Se=De[0],Oe=De[1],Re=l.useState(!1),Ce=le(Re,2),xe=Ce[0],$e=Ce[1],Fe=LK(new Map),be=le(Fe,2),ue=be[0],Ie=be[1],We=Py(re),He=We.map(function(pt){return ue.get(pt)}),Be=l.useMemo(function(){return He},[He.join("_")]),ke=wRe(Be,re,p),Ae=u&&y_(u.y),Ue=u&&y_(ye)||!!J.fixed,ct=Ue&&re.some(function(pt){var St=pt.fixed;return St}),rt=l.useRef(),qe=CRe(M,r),Ye=qe.isSticky,at=qe.offsetHeader,ut=qe.offsetSummary,Ct=qe.offsetScroll,kt=qe.stickyClassName,xt=qe.container,et=l.useMemo(function(){return h==null?void 0:h(O)},[h,O]),tt=(Ae||Ye)&&l.isValidElement(et)&&et.type===Ly&&et.props.fixed,bt,Ot,ht;Ae&&(Ot={overflowY:k?"scroll":"auto",maxHeight:u.y}),Ue&&(bt={overflowX:"auto"},Ae||(Ot={overflowY:"hidden"}),ht={width:ye===!0?"auto":ye,minWidth:"100%"});var it=l.useCallback(function(pt,St){sf(Ne.current)&&Ie(function(ln){if(ln.get(pt)!==St){var Wn=new Map(ln);return Wn.set(pt,St),Wn}return ln})},[]),Et=xRe(),Ze=le(Et,2),st=Ze[0],ft=Ze[1];function Je(pt,St){St&&(typeof St=="function"?St(pt):St.scrollLeft!==pt&&(St.scrollLeft=pt,St.scrollLeft!==pt&&setTimeout(function(){St.scrollLeft=pt},0)))}var Xe=Gt(function(pt){var St=pt.currentTarget,ln=pt.scrollLeft,Wn=p==="rtl",tr=typeof ln=="number"?ln:St.scrollLeft,fr=St||RRe;if(!ft()||ft()===fr){var ha;st(fr),Je(tr,_e.current),Je(tr,Pe.current),Je(tr,Ve.current),Je(tr,(ha=rt.current)===null||ha===void 0?void 0:ha.setScrollLeft)}var Pa=St||_e.current;if(Pa){var La=typeof ye=="number"?ye:Pa.scrollWidth,Do=Pa.clientWidth;if(La===Do){Oe(!1),$e(!1);return}Wn?(Oe(-tr0)):(Oe(tr>0),$e(tr1?x-D:0,k=X(X(X({},T),u),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:O,pointerEvents:"auto"}),N=l.useMemo(function(){return p?M<=1:_===0||M===0||M>1},[M,_,p]);N?k.visibility="hidden":p&&(k.height=g==null?void 0:g(M));var A=N?function(){return null}:m,L={};return(M===0||_===0)&&(L.rowSpan=1,L.colSpan=1),l.createElement(yf,he({className:ae(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:C,record:c,index:o,renderIndex:s,dataIndex:h,render:A,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:E,additionalProps:X(X({},I),{},{style:k},L)}))}var ARe=["data","index","className","rowKey","style","extra","getHeight"],MRe=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=wt(e,ARe),d=n.record,p=n.indent,g=n.index,m=Ea(Ka,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=m.scrollX,b=m.flattenColumns,x=m.prefixCls,S=m.fixColumn,v=m.componentWidth,y=Ea(qN,["getComponent"]),C=y.getComponent,w=kK(d,o,r,p),E=C(["body","row"],"div"),I=C(["body","cell"],"div"),T=w.rowSupportExpand,R=w.expanded,_=w.rowProps,$=w.expandedRowRender,M=w.expandedRowClassName,P;if(T&&R){var D=$(d,r,p+1,R),O=M==null?void 0:M(d,r,p),k={};S&&(k={style:V({},"--virtual-width","".concat(v,"px"))});var N="".concat(x,"-expanded-row-cell");P=l.createElement(E,{className:ae("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(p+1),O)},l.createElement(yf,{component:I,prefixCls:x,className:ae(N,V({},"".concat(N,"-fixed"),S)),additionalProps:k},D))}var A=X(X({},i),{},{width:h});s&&(A.position="absolute",A.pointerEvents="none");var L=l.createElement(E,he({},_,u,{"data-row-key":o,ref:T?null:t,className:ae(a,"".concat(x,"-row"),_==null?void 0:_.className,V({},"".concat(x,"-row-extra"),s)),style:X(X({},A),_==null?void 0:_.style)}),b.map(function(j,F){return l.createElement(kRe,{key:F,component:I,rowInfo:w,column:j,colIndex:F,indent:p,index:r,renderIndex:g,record:d,inverse:s,getHeight:c})}));return T?l.createElement("div",{ref:t},L,P):L}),FP=bf(MRe),DRe=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=Ea(Ka,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX"]),o=a.flattenColumns,i=a.onColumnResize,s=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,p=a.scrollX,g=Ea(qN),m=g.sticky,h=g.scrollY,b=g.listItemHeight,x=g.getComponent,S=g.onScroll,v=l.useRef(),y=NK(n,d,c,s),C=l.useMemo(function(){var M=0;return o.map(function(P){var D=P.width,O=P.key;return M+=D,[O,D,M]})},[o]),w=l.useMemo(function(){return C.map(function(M){return M[2]})},[C]);l.useEffect(function(){C.forEach(function(M){var P=le(M,2),D=P[0],O=P[1];i(D,O)})},[C]),l.useImperativeHandle(t,function(){var M,P={scrollTo:function(O){var k;(k=v.current)===null||k===void 0||k.scrollTo(O)},nativeElement:(M=v.current)===null||M===void 0?void 0:M.nativeElement};return Object.defineProperty(P,"scrollLeft",{get:function(){var O;return((O=v.current)===null||O===void 0?void 0:O.getScrollInfo().x)||0},set:function(O){var k;(k=v.current)===null||k===void 0||k.scrollTo({left:O})}}),P});var E=function(P,D){var O,k=(O=y[D])===null||O===void 0?void 0:O.record,N=P.onCell;if(N){var A,L=N(k,D);return(A=L==null?void 0:L.rowSpan)!==null&&A!==void 0?A:1}return 1},I=function(P){var D=P.start,O=P.end,k=P.getSize,N=P.offsetY;if(O<0)return null;for(var A=o.filter(function(W){return E(W,D)===0}),L=D,j=function(q){if(A=A.filter(function(Z){return E(Z,q)===0}),!A.length)return L=q,1},F=D;F>=0&&!j(F);F-=1);for(var B=o.filter(function(W){return E(W,O)!==1}),z=O,U=function(q){if(B=B.filter(function(Z){return E(Z,q)!==1}),!B.length)return z=Math.max(q-1,O),1},H=O;H1})&&Y.push(q)},J=L;J<=z;J+=1)K(J);var ne=Y.map(function(W){var q=y[W],Z=s(q.record,W),Q=function(se){var fe=W+se-1,te=s(y[fe].record,fe),ie=k(Z,te);return ie.bottom-ie.top},ee=k(Z);return l.createElement(FP,{key:W,data:q,rowKey:Z,index:W,style:{top:-N+ee.top},extra:!0,getHeight:Q})});return ne},T=l.useMemo(function(){return{columnsOffset:w}},[w]),R="".concat(u,"-tbody"),_=x(["body","wrapper"]),$={};return m&&($.position="sticky",$.bottom=0,mt(m)==="object"&&m.offsetScroll&&($.bottom=m.offsetScroll)),l.createElement(BK.Provider,{value:T},l.createElement(cy,{fullHeight:!1,ref:v,prefixCls:"".concat(R,"-virtual"),styles:{horizontalScrollBar:$},className:R,height:h,itemHeight:b||24,data:y,itemKey:function(P){return s(P.record)},component:_,scrollWidth:p,onVirtualScroll:function(P){var D,O=P.x;r({currentTarget:(D=v.current)===null||D===void 0?void 0:D.nativeElement,scrollLeft:O})},onScroll:S,extraRender:I},function(M,P,D){var O=s(M.record,P);return l.createElement(FP,{data:M,rowKey:O,index:P,style:D.style})}))}),PRe=bf(DRe),LRe=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(PRe,{ref:r,data:t,onScroll:a})};function jRe(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,i=e.prefixCls,s=i===void 0?jK:i,c=e.className,u=e.listItemHeight,d=e.components,p=e.onScroll,g=a||{},m=g.x,h=g.y;typeof m!="number"&&(m=1),typeof h!="number"&&(h=500);var b=Gt(function(v,y){return xo(d,v)||y}),x=Gt(p),S=l.useMemo(function(){return{sticky:o,scrollY:h,listItemHeight:u,getComponent:b,onScroll:x}},[o,h,u,b,x]);return l.createElement(qN.Provider,{value:S},l.createElement(xf,he({},e,{className:ae(c,"".concat(s,"-virtual")),scroll:X(X({},a),{},{x:m}),components:X(X({},d),{},{body:n!=null&&n.length?LRe:void 0}),columns:r,internalHooks:Nm,tailor:!0,ref:t})))}var FRe=l.forwardRef(jRe);function zK(e){return TK(FRe,e)}zK();const BRe=e=>null,zRe=e=>null;var KN=l.createContext(null),HRe=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function ss(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function YN(e){return e.split("-")}function qRe(e,t){var n=[],r=Ja(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var s=i.key,c=i.children;n.push(s),a(c)})}return a(r.children),n}function KRe(e){if(e.parent){var t=YN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function YRe(e){var t=YN(e.pos);return Number(t[t.length-1])===0}function HP(e,t,n,r,a,o,i,s,c,u){var d,p=e.clientX,g=e.clientY,m=e.target.getBoundingClientRect(),h=m.top,b=m.height,x=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-p),S=(x-12)/r,v=c.filter(function(k){var N;return(N=s[k])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),y=Ja(s,n.props.eventKey);if(g-1.5?o({dragNode:P,dropNode:D,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:D,dropPosition:0})?_=0:o({dragNode:P,dropNode:D,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:D,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:$,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:R,dropContainerKey:_===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:O}}function UP(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function KS(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return _n(!1,"`checkedKeys` is not an array or an object"),null;return t}function S_(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Ja(t,a);if(o){n.add(a);var i=o.parent,s=o.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),Me(n)}function XRe(e){const[t,n]=l.useState(null);return[l.useCallback((o,i,s)=>{const c=t??o,u=Math.min(c||0,o),d=Math.max(c||0,o),p=i.slice(u,d+1).map(h=>e(h)),g=p.some(h=>!s.has(h)),m=[];return p.forEach(h=>{g?(s.has(h)||m.push(h),s.add(h)):(s.delete(h),m.push(h))}),n(g?d:null),m},[t]),o=>{n(o)}]}const Zs={},C_="SELECT_ALL",w_="SELECT_INVERT",E_="SELECT_NONE",VP=[],HK=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Me(n),Me(HK(e,r[e]))))}),n},ZRe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:i,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:p,columnWidth:g,type:m,selections:h,fixed:b,renderCell:x,hideSelectAll:S,checkStrictly:v=!0}=t||{},{prefixCls:y,data:C,pageData:w,getRecordByKey:E,getRowKey:I,expandType:T,childrenColumnName:R,locale:_,getPopupContainer:$}=e,M=zl(),[P,D]=XRe(q=>q),[O,k]=fn(r||a||VP,{value:r}),N=l.useRef(new Map),A=l.useCallback(q=>{if(n){const Z=new Map;q.forEach(Q=>{let ee=E(Q);!ee&&N.current.has(Q)&&(ee=N.current.get(Q)),Z.set(Q,ee)}),N.current=Z}},[E,n]);l.useEffect(()=>{A(O)},[O]);const L=l.useMemo(()=>HK(R,w),[R,w]),{keyEntities:j}=l.useMemo(()=>{if(v)return{keyEntities:null};let q=C;if(n){const Z=new Set(L.map((ee,oe)=>I(ee,oe))),Q=Array.from(N.current).reduce((ee,oe)=>{let[se,fe]=oe;return Z.has(se)?ee:ee.concat(fe)},[]);q=[].concat(Me(q),Me(Q))}return _y(q,{externalGetKey:I,childrenPropName:R})},[C,I,v,R,n,L]),F=l.useMemo(()=>{const q=new Map;return L.forEach((Z,Q)=>{const ee=I(Z,Q),oe=(o?o(Z):null)||{};q.set(ee,oe)}),q},[L,I,o]),B=l.useCallback(q=>{var Z;return!!(!((Z=F.get(I(q)))===null||Z===void 0)&&Z.disabled)},[F,I]),[z,U]=l.useMemo(()=>{if(v)return[O||[],[]];const{checkedKeys:q,halfCheckedKeys:Z}=xs(O,!0,j,B);return[q||[],Z]},[O,v,j,B]),H=l.useMemo(()=>{const q=m==="radio"?z.slice(0,1):z;return new Set(q)},[z,m]),Y=l.useMemo(()=>m==="radio"?new Set:new Set(U),[U,m]);l.useEffect(()=>{t||k(VP)},[!!t]);const K=l.useCallback((q,Z)=>{let Q,ee;A(q),n?(Q=q,ee=q.map(oe=>N.current.get(oe))):(Q=[],ee=[],q.forEach(oe=>{const se=E(oe);se!==void 0&&(Q.push(oe),ee.push(se))})),k(Q),i==null||i(Q,ee,{type:Z})},[k,E,i,n]),J=l.useCallback((q,Z,Q,ee)=>{if(s){const oe=Q.map(se=>E(se));s(E(q),Z,oe,ee)}K(Q,"single")},[s,E,K]),ne=l.useMemo(()=>!h||S?null:(h===!0?[C_,w_,E_]:h).map(Z=>Z===C_?{key:"all",text:_.selectionAll,onSelect(){K(C.map((Q,ee)=>I(Q,ee)).filter(Q=>{const ee=F.get(Q);return!(ee!=null&&ee.disabled)||H.has(Q)}),"all")}}:Z===w_?{key:"invert",text:_.selectInvert,onSelect(){const Q=new Set(H);w.forEach((oe,se)=>{const fe=I(oe,se),te=F.get(fe);te!=null&&te.disabled||(Q.has(fe)?Q.delete(fe):Q.add(fe))});const ee=Array.from(Q);u&&(M.deprecated(!1,"onSelectInvert","onChange"),u(ee)),K(ee,"invert")}}:Z===E_?{key:"none",text:_.selectNone,onSelect(){d==null||d(),K(Array.from(H).filter(Q=>{const ee=F.get(Q);return ee==null?void 0:ee.disabled}),"none")}}:Z).map(Z=>Object.assign(Object.assign({},Z),{onSelect:function(){for(var Q,ee,oe=arguments.length,se=new Array(oe),fe=0;fe{var Z;if(!t)return q.filter(Le=>Le!==Zs);let Q=Me(q);const ee=new Set(H),oe=L.map(I).filter(Le=>!F.get(Le).disabled),se=oe.every(Le=>ee.has(Le)),fe=oe.some(Le=>ee.has(Le)),te=()=>{const Le=[];se?oe.forEach(je=>{ee.delete(je),Le.push(je)}):oe.forEach(je=>{ee.has(je)||(ee.add(je),Le.push(je))});const Ve=Array.from(ee);c==null||c(!se,Ve.map(je=>E(je)),Le.map(je=>E(je))),K(Ve,"all"),D(null)};let ie,pe;if(m!=="radio"){let Le;if(ne){const Oe={getPopupContainer:$,items:ne.map((Re,Ce)=>{const{key:xe,text:$e,onSelect:Fe}=Re;return{key:xe??Ce,onClick:()=>{Fe==null||Fe(oe)},label:$e}})};Le=l.createElement("div",{className:`${y}-selection-extra`},l.createElement(Ny,{menu:Oe,getPopupContainer:$},l.createElement("span",null,l.createElement(dy,null))))}const Ve=L.map((Oe,Re)=>{const Ce=I(Oe,Re),xe=F.get(Ce)||{};return Object.assign({checked:ee.has(Ce)},xe)}).filter(Oe=>{let{disabled:Re}=Oe;return Re}),je=!!Ve.length&&Ve.length===L.length,De=je&&Ve.every(Oe=>{let{checked:Re}=Oe;return Re}),Se=je&&Ve.some(Oe=>{let{checked:Re}=Oe;return Re});pe=l.createElement(Ns,{checked:je?De:!!L.length&&se,indeterminate:je?!De&&Se:!se&&fe,onChange:te,disabled:L.length===0||je,"aria-label":Le?"Custom selection":"Select all",skipGroup:!0}),ie=!S&&l.createElement("div",{className:`${y}-selection`},pe,Le)}let me;m==="radio"?me=(Le,Ve,je)=>{const De=I(Ve,je),Se=ee.has(De);return{node:l.createElement(wo,Object.assign({},F.get(De),{checked:Se,onClick:Oe=>Oe.stopPropagation(),onChange:Oe=>{ee.has(De)||J(De,!0,[De],Oe.nativeEvent)}})),checked:Se}}:me=(Le,Ve,je)=>{var De;const Se=I(Ve,je),Oe=ee.has(Se),Re=Y.has(Se),Ce=F.get(Se);let xe;return T==="nest"?xe=Re:xe=(De=Ce==null?void 0:Ce.indeterminate)!==null&&De!==void 0?De:Re,{node:l.createElement(Ns,Object.assign({},Ce,{indeterminate:xe,checked:Oe,skipGroup:!0,onClick:$e=>$e.stopPropagation(),onChange:$e=>{let{nativeEvent:Fe}=$e;const{shiftKey:be}=Fe,ue=oe.findIndex(We=>We===Se),Ie=z.some(We=>oe.includes(We));if(be&&v&&Ie){const We=P(ue,oe,ee),He=Array.from(ee);p==null||p(!Oe,He.map(Be=>E(Be)),We.map(Be=>E(Be))),K(He,"multiple")}else{const We=z;if(v){const He=Oe?Fi(We,Se):ss(We,Se);J(Se,!Oe,He,Fe)}else{const He=xs([].concat(Me(We),[Se]),!0,j,B),{checkedKeys:Be,halfCheckedKeys:ke}=He;let Ae=Be;if(Oe){const Ue=new Set(Be);Ue.delete(Se),Ae=xs(Array.from(Ue),{checked:!1,halfCheckedKeys:ke},j,B).checkedKeys}J(Se,!Oe,Ae,Fe)}}D(Oe?null:ue)}})),checked:Oe}};const re=(Le,Ve,je)=>{const{node:De,checked:Se}=me(Le,Ve,je);return x?x(Se,Ve,je,De):De};if(!Q.includes(Zs))if(Q.findIndex(Le=>{var Ve;return((Ve=Le[Bp])===null||Ve===void 0?void 0:Ve.columnType)==="EXPAND_COLUMN"})===0){const[Le,...Ve]=Q;Q=[Le,Zs].concat(Me(Ve))}else Q=[Zs].concat(Me(Q));const ce=Q.indexOf(Zs);Q=Q.filter((Le,Ve)=>Le!==Zs||Ve===ce);const ge=Q[ce-1],ye=Q[ce+1];let Ee=b;Ee===void 0&&((ye==null?void 0:ye.fixed)!==void 0?Ee=ye.fixed:(ge==null?void 0:ge.fixed)!==void 0&&(Ee=ge.fixed)),Ee&&ge&&((Z=ge[Bp])===null||Z===void 0?void 0:Z.columnType)==="EXPAND_COLUMN"&&ge.fixed===void 0&&(ge.fixed=Ee);const Ne=ae(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&m==="checkbox"}),_e=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:ie,Pe={fixed:Ee,width:g,className:`${y}-selection-column`,title:_e(),render:re,onCell:t.onCell,[Bp]:{className:Ne}};return Q.map(Le=>Le===Zs?Pe:Le)},[I,L,t,z,H,Y,g,ne,T,F,p,J,B]),H]};function QRe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function JRe(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):QRe(r,n)})}function e_e(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:ae(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&o,[`${s}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function t_e(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),s=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);o=r-s-c}return o}}const Dl=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Sf(e,t){return t?`${t}-${e}`:`${e}`}const jy=(e,t)=>typeof e=="function"?e(t):e,n_e=(e,t)=>{const n=jy(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function r_e(e){const t=l.useRef(e),n=QO();return[()=>t.current,r=>{t.current=r,n()}]}function a_e(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return l.createElement("div",{style:a})}function UK(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function o_e(e,t){var n=l.useState(!1),r=le(n,2),a=r[0],o=r[1];Yt(function(){if(a)return e(),function(){t()}},[a]),Yt(function(){return o(!0),function(){o(!1)}},[])}var i_e=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],VK=function(t,n){var r=t.className,a=t.style,o=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,p=t.treeNodeRequiredProps,g=wt(t,i_e),m=l.useState(!0),h=le(m,2),b=h[0],x=h[1],S=l.useContext(KN),v=S.prefixCls,y=i&&s!=="hide";Yt(function(){i&&y!==b&&x(y)},[i]);var C=function(){i&&c()},w=l.useRef(!1),E=function(){i&&!w.current&&(w.current=!0,u())};o_e(C,E);var I=function(R){y===R&&E()};return i?l.createElement(Qr,he({ref:n,visible:b},o,{motionAppear:s==="show",onVisibleChanged:I}),function(T,R){var _=T.className,$=T.style;return l.createElement("div",{ref:R,className:ae("".concat(v,"-treenode-motion"),_),style:$},i.map(function(M){var P=Object.assign({},(UK(M.data),M.data)),D=M.title,O=M.key,k=M.isStart,N=M.isEnd;delete P.children;var A=jp(O,p);return l.createElement(Fd,he({},P,A,{title:D,active:d,data:M.data,key:O,isStart:k,isEnd:N}))}))}):l.createElement(Fd,he({domRef:n,className:r,style:a},g,{active:d}))};VK.displayName="MotionTreeNode";var s_e=l.forwardRef(VK);function l_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var s=new Map;o.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var GK=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,p=e.disabled,g=e.dragging,m=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,x=e.height,S=e.itemHeight,v=e.virtual,y=e.focusable,C=e.activeItem,w=e.focused,E=e.tabIndex,I=e.onKeyDown,T=e.onFocus,R=e.onBlur,_=e.onActiveChange,$=e.onListChangeStart,M=e.onListChangeEnd,P=wt(e,c_e),D=l.useRef(null),O=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(me){D.current.scrollTo(me)},getIndentWidth:function(){return O.current.offsetWidth}}});var k=l.useState(a),N=le(k,2),A=N[0],L=N[1],j=l.useState(r),F=le(j,2),B=F[0],z=F[1],U=l.useState(r),H=le(U,2),Y=H[0],K=H[1],J=l.useState([]),ne=le(J,2),W=ne[0],q=ne[1],Z=l.useState(null),Q=le(Z,2),ee=Q[0],oe=Q[1],se=l.useRef(r);se.current=r;function fe(){var pe=se.current;z(pe),K(pe),q([]),oe(null),M()}Yt(function(){L(a);var pe=l_e(A,a);if(pe.key!==null)if(pe.add){var me=B.findIndex(function(Ne){var _e=Ne.key;return _e===pe.key}),re=KP(WP(B,r,pe.key),v,x,S),ce=B.slice();ce.splice(me+1,0,qP),K(ce),q(re),oe("show")}else{var ge=r.findIndex(function(Ne){var _e=Ne.key;return _e===pe.key}),ye=KP(WP(r,B,pe.key),v,x,S),Ee=r.slice();Ee.splice(ge+1,0,qP),K(Ee),q(ye),oe("hide")}else B!==r&&(z(r),K(r))},[a,r]),l.useEffect(function(){g||fe()},[g]);var te=b?Y:r,ie={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:m,dropPosition:h,keyEntities:d};return l.createElement(l.Fragment,null,w&&C&&l.createElement("span",{style:GP,"aria-live":"assertive"},d_e(C)),l.createElement("div",null,l.createElement("input",{style:GP,disabled:y===!1||p,tabIndex:y!==!1?E:null,onKeyDown:I,onFocus:T,onBlur:R,value:"",onChange:u_e,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),l.createElement(cy,he({},P,{data:te,itemKey:YP,height:x,fullHeight:!1,virtual:v,itemHeight:S,prefixCls:"".concat(n,"-list"),ref:D,onVisibleChange:function(me){me.every(function(re){return YP(re)!==Hc})&&fe()}}),function(pe){var me=pe.pos,re=Object.assign({},(UK(pe.data),pe.data)),ce=pe.title,ge=pe.key,ye=pe.isStart,Ee=pe.isEnd,Ne=_m(ge,me);delete re.key,delete re.children;var _e=jp(Ne,ie);return l.createElement(s_e,he({},re,_e,{title:ce,active:!!C&&ge===C.key,pos:me,data:pe.data,isStart:ye,isEnd:Ee,motion:b,motionNodes:ge===Hc?W:null,motionType:ee,onMotionStart:$,onMotionEnd:fe,treeNodeRequiredProps:ie,onMouseMove:function(){_(null)}}))}))});GK.displayName="NodeList";var f_e=10,Fy=function(e){so(n,e);var t=Ao(n);function n(){var r;Jn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,p=r.state,g=p.dragChildrenKeys,m=p.dropPosition,h=p.dropTargetKey,b=p.dropTargetPos,x=p.dropAllowed;if(x){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var v=X(X({},jp(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:Ja(r.state.keyEntities,h).node}),y=g.indexOf(h)!==-1;_n(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=YN(b),w={event:s,node:Fr(v),dragNode:r.dragNode?Fr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(g),dropToGap:m!==0,dropPosition:m+Number(C[C.length-1])};d||S==null||S(w),r.dragNode=null}}}),V(Ke(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),V(Ke(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,p=u.flattenNodes,g=c.expanded,m=c.key,h=c.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var b=p.filter(function(S){return S.key===m})[0],x=Fr(X(X({},jp(m,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(g?Fi(d,m):ss(d,m)),r.onNodeExpand(s,x)}}),V(Ke(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,p=u.expandAction;p==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ke(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,p=u.expandAction;p==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ke(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,p=d.keyEntities,g=d.fieldNames,m=r.props,h=m.onSelect,b=m.multiple,x=c.selected,S=c[g.key],v=!x;v?b?u=ss(u,S):u=[S]:u=Fi(u,S);var y=u.map(function(C){var w=Ja(p,C);return w?w.node:null}).filter(function(C){return C});r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:v,node:c,selectedNodes:y,nativeEvent:s.nativeEvent})}),V(Ke(r),"onNodeCheck",function(s,c,u){var d=r.state,p=d.keyEntities,g=d.checkedKeys,m=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,x=h.onCheck,S=c.key,v,y={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(b){var C=u?ss(g,S):Fi(g,S),w=Fi(m,S);v={checked:C,halfChecked:w},y.checkedNodes=C.map(function($){return Ja(p,$)}).filter(function($){return $}).map(function($){return $.node}),r.setUncontrolledState({checkedKeys:C})}else{var E=xs([].concat(Me(g),[S]),!0,p),I=E.checkedKeys,T=E.halfCheckedKeys;if(!u){var R=new Set(I);R.delete(S);var _=xs(Array.from(R),{checked:!1,halfCheckedKeys:T},p);I=_.checkedKeys,T=_.halfCheckedKeys}v=I,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=T,I.forEach(function($){var M=Ja(p,$);if(M){var P=M.node,D=M.pos;y.checkedNodes.push(P),y.checkedNodesPositions.push({node:P,pos:D})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:T})}x==null||x(v,y)}),V(Ke(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,p=Ja(d,u);if(!(p!=null&&(c=p.children)!==null&&c!==void 0&&c.length)){var g=new Promise(function(m,h){r.setState(function(b){var x=b.loadedKeys,S=x===void 0?[]:x,v=b.loadingKeys,y=v===void 0?[]:v,C=r.props,w=C.loadData,E=C.onLoad;if(!w||S.indexOf(u)!==-1||y.indexOf(u)!==-1)return null;var I=w(s);return I.then(function(){var T=r.state.loadedKeys,R=ss(T,u);E==null||E(R,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:R}),r.setState(function(_){return{loadingKeys:Fi(_.loadingKeys,u)}}),m()}).catch(function(T){if(r.setState(function(_){return{loadingKeys:Fi(_.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=f_e){var R=r.state.loadedKeys;_n(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ss(R,u)}),m()}h(T)}),{loadingKeys:ss(y,u)}})});return g.catch(function(){}),g}}),V(Ke(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),V(Ke(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),V(Ke(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),V(Ke(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,p=!0,g={};Object.keys(s).forEach(function(m){if(m in r.props){p=!1;return}d=!0,g[m]=s[m]}),d&&(!c||p)&&r.setState(X(X({},g),u))}}),V(Ke(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return er(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,s=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,i=a.flattenNodes,s=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,p=a.dropContainerKey,g=a.dropTargetKey,m=a.dropPosition,h=a.dragOverNodeKey,b=a.indent,x=this.props,S=x.prefixCls,v=x.className,y=x.style,C=x.showLine,w=x.focusable,E=x.tabIndex,I=E===void 0?0:E,T=x.selectable,R=x.showIcon,_=x.icon,$=x.switcherIcon,M=x.draggable,P=x.checkable,D=x.checkStrictly,O=x.disabled,k=x.motion,N=x.loadData,A=x.filterTreeNode,L=x.height,j=x.itemHeight,F=x.virtual,B=x.titleRender,z=x.dropIndicatorRender,U=x.onContextMenu,H=x.onScroll,Y=x.direction,K=x.rootClassName,J=x.rootStyle,ne=ur(this.props,{aria:!0,data:!0}),W;return M&&(mt(M)==="object"?W=M:typeof M=="function"?W={nodeDraggable:M}:W={}),l.createElement(KN.Provider,{value:{prefixCls:S,selectable:T,showIcon:R,icon:_,switcherIcon:$,draggable:W,draggingNodeKey:c,checkable:P,checkStrictly:D,disabled:O,keyEntities:s,dropLevelOffset:d,dropContainerKey:p,dropTargetKey:g,dropPosition:m,dragOverNodeKey:h,indent:b,direction:Y,dropIndicatorRender:z,loadData:N,filterTreeNode:A,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:ae(S,v,K,V(V(V({},"".concat(S,"-show-line"),C),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:J},l.createElement(GK,he({ref:this.listRef,prefixCls:S,style:y,data:i,disabled:O,selectable:T,checkable:!!P,motion:k,dragging:c!==null,height:L,itemHeight:j,virtual:F,focusable:w,focused:o,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:H},this.getTreeNodeRequiredProps(),ne))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,s={prevProps:a};function c(I){return!i&&I in a||i&&i[I]!==a[I]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=jd(a.fieldNames),s.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(_n(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=aq(a.children)),u){s.treeData=u;var p=_y(u,{fieldNames:d});s.keyEntities=X(V({},Hc,WK),p.keyEntities)}var g=s.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?S_(a.expandedKeys,g):a.expandedKeys;else if(!i&&a.defaultExpandAll){var m=X({},g);delete m[Hc];var h=[];Object.keys(m).forEach(function(I){var T=m[I];T.children&&T.children.length&&h.push(T.key)}),s.expandedKeys=h}else!i&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?S_(a.defaultExpandedKeys,g):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var b=FS(u||o.treeData,s.expandedKeys||o.expandedKeys,d);s.flattenNodes=b}if(a.selectable&&(c("selectedKeys")?s.selectedKeys=UP(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(s.selectedKeys=UP(a.defaultSelectedKeys,a))),a.checkable){var x;if(c("checkedKeys")?x=KS(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?x=KS(a.defaultCheckedKeys)||{}:u&&(x=KS(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),x){var S=x,v=S.checkedKeys,y=v===void 0?[]:v,C=S.halfCheckedKeys,w=C===void 0?[]:C;if(!a.checkStrictly){var E=xs(y,!0,g);y=E.checkedKeys,w=E.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=w}}return c("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n}(l.Component);V(Fy,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:a_e,allowDrop:function(){return!0},expandAction:!1});V(Fy,"TreeNode",Fd);const p_e=new en("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),g_e=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),m_e=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),h_e=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:i,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},an(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Ts(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:p_e,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${G(a)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:G(o),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},g_e(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:G(o),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal(),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${G(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:G(o),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:G(o),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:G(o),userSelect:"none"},m_e(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${G(t.calc(o).div(2).equal())} !important`}}}}})}},v_e=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:o,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent"}}}}}},qK=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=Ft(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[h_e(e,o),v_e(o)]},KK=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},b_e=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},KK(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},y_e=on("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:wN(`${n}-checkbox`,e)},qK(n,e),um(e)]},b_e),XP=4;function x_e(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",c={[i]:-n*a+XP,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+XP;break}return de.createElement("div",{style:c,className:`${r}-drop-indicator`})}const YK=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:i,expanded:s,loading:c}=r;if(c)return l.isValidElement(o)?o:l.createElement(Zi,{className:`${t}-switcher-loading-icon`});let u;if(a&&typeof a=="object"&&(u=a.showLeafIcon),i){if(!a)return null;if(typeof u!="boolean"&&u){const g=typeof u=="function"?u(r):u,m=`${t}-switcher-line-custom-icon`;return l.isValidElement(g)?$r(g,{className:ae(g.props.className||"",m)}):g}return u?l.createElement(dK,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,p=typeof n=="function"?n(r):n;return l.isValidElement(p)?$r(p,{className:ae(p.props.className||"",d)}):p!==void 0?p:a?s?l.createElement(D2e,{className:`${t}-switcher-line-icon`}):l.createElement(hK,{className:`${t}-switcher-line-icon`}):l.createElement(Dwe,{className:d})},XK=de.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=de.useContext(lt),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:p,switcherLoadingIcon:g,blockNode:m=!1,children:h,checkable:b=!1,selectable:x=!0,draggable:S,motion:v,style:y}=e,C=r("tree",s),w=r(),E=v??Object.assign(Object.assign({},Ad(w)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:b,selectable:x,showIcon:u,motion:E,blockNode:m,showLine:!!d,dropIndicatorRender:x_e}),[T,R,_]=y_e(C),[,$]=ta(),M=$.paddingXS/2+(((n=$.Tree)===null||n===void 0?void 0:n.titleHeight)||$.controlHeightSM),P=de.useMemo(()=>{if(!S)return!1;let O={};switch(typeof S){case"function":O.nodeDraggable=S;break;case"object":O=Object.assign({},S);break}return O.icon!==!1&&(O.icon=O.icon||de.createElement(c2e,null)),O},[S]),D=O=>de.createElement(YK,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:g,treeNodeProps:O,showLine:d});return T(de.createElement(Fy,Object.assign({itemHeight:M,ref:t,virtual:o},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),y),prefixCls:C,className:ae({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:m,[`${C}-unselectable`]:!x,[`${C}-rtl`]:a==="rtl"},i==null?void 0:i.className,c,R,_),direction:a,checkable:b&&de.createElement("span",{className:`${C}-checkbox-inner`}),selectable:x,switcherIcon:D,draggable:P}),h))}),ZP=0,YS=1,QP=2;function XN(e,t,n){const{key:r,children:a}=n;function o(i){const s=i[r],c=i[a];t(s,i)!==!1&&XN(c||[],t,n)}e.forEach(o)}function S_e(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const i=[];let s=ZP;if(r&&r===a)return[r];if(!r||!a)return[];function c(u){return u===r||u===a}return XN(t,u=>{if(s===QP)return!1;if(c(u)){if(i.push(u),s===ZP)s=YS;else if(s===YS)return s=QP,!1}else s===YS&&i.push(u);return n.includes(u)},jd(o)),i}function XS(e,t,n){const r=Me(t),a=[];return XN(e,(o,i)=>{const s=r.indexOf(o);return s!==-1&&(a.push(i),r.splice(s,1)),!!r.length},jd(n)),a}var JP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=JP(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:T}=_y(eL(o));let R;return n?R=Object.keys(T):r?R=S_(o.expandedKeys||a||[],T):R=o.expandedKeys||a||[],R},[u,d]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[p,g]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&g(o.expandedKeys)},[o.expandedKeys]);const m=(T,R)=>{var _;return"expandedKeys"in o||g(T),(_=o.onExpand)===null||_===void 0?void 0:_.call(o,T,R)},h=(T,R)=>{var _;const{multiple:$,fieldNames:M}=o,{node:P,nativeEvent:D}=R,{key:O=""}=P,k=eL(o),N=Object.assign(Object.assign({},R),{selected:!0}),A=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),L=D==null?void 0:D.shiftKey;let j;$&&A?(j=T,i.current=O,s.current=j,N.selectedNodes=XS(k,j,M)):$&&L?(j=Array.from(new Set([].concat(Me(s.current||[]),Me(S_e({treeData:k,expandedKeys:p,startKey:O,endKey:i.current,fieldNames:M}))))),N.selectedNodes=XS(k,j,M)):(j=[O],i.current=O,s.current=j,N.selectedNodes=XS(k,j,M)),(_=o.onSelect)===null||_===void 0||_.call(o,j,N),"selectedKeys"in o||d(j)},{getPrefixCls:b,direction:x}=l.useContext(lt),{prefixCls:S,className:v,showIcon:y=!0,expandAction:C="click"}=o,w=JP(o,["prefixCls","className","showIcon","expandAction"]),E=b("tree",S),I=ae(`${E}-directory`,{[`${E}-directory-rtl`]:x==="rtl"},v);return l.createElement(XK,Object.assign({icon:C_e,ref:t,blockNode:!0},w,{showIcon:y,expandAction:C,prefixCls:E,className:I,expandedKeys:p,selectedKeys:u,onSelect:h,onExpand:m}))},E_e=l.forwardRef(w_e),ZN=XK;ZN.DirectoryTree=E_e;ZN.TreeNode=Fd;const tL=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Jt,{prefix:l.createElement(ym,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},I_e=e=>{const{keyCode:t}=e;t===ze.ENTER&&e.stopPropagation()},T_e=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:I_e,ref:t},e.children));function md(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(Me(t),Me(md(a))))}),t}function R_e(e){return e.some(t=>{let{children:n}=t;return n})}function ZK(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function QK(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:QK({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i})};const d=a?Ns:wo,p={key:s.value!==void 0?u:c,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:r.includes(u)}),l.createElement("span",null,s.text))};return o.trim()?typeof i=="function"?i(o,s)?p:null:ZK(o,s.text)?p:null:p})}function ZS(e){return e||[]}const __e=e=>{var t,n;const{tablePrefixCls:r,prefixCls:a,column:o,dropdownPrefixCls:i,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:g,triggerFilter:m,locale:h,children:b,getPopupContainer:x,rootClassName:S}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:C,defaultFilteredValue:w,filterDropdownVisible:E,onFilterDropdownVisibleChange:I}=o,[T,R]=l.useState(!1),_=!!(g&&(!((t=g.filteredKeys)===null||t===void 0)&&t.length||g.forceFiltered)),$=te=>{R(te),y==null||y(te),I==null||I(te)},M=(n=v??E)!==null&&n!==void 0?n:T,P=g==null?void 0:g.filteredKeys,[D,O]=r_e(ZS(P)),k=te=>{let{selectedKeys:ie}=te;O(ie)},N=(te,ie)=>{let{node:pe,checked:me}=ie;k(u?{selectedKeys:te}:{selectedKeys:me&&pe.key?[pe.key]:[]})};l.useEffect(()=>{T&&k({selectedKeys:ZS(P)})},[P]);const[A,L]=l.useState([]),j=te=>{L(te)},[F,B]=l.useState(""),z=te=>{const{value:ie}=te.target;B(ie)};l.useEffect(()=>{T||B("")},[T]);const U=te=>{const ie=te!=null&&te.length?te:null;if(ie===null&&(!g||!g.filteredKeys)||Jo(ie,g==null?void 0:g.filteredKeys,!0))return null;m({column:o,key:s,filteredKeys:ie})},H=()=>{$(!1),U(D())},Y=function(){let{confirm:te,closeDropdown:ie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};te&&U([]),ie&&$(!1),B(""),O(C?(w||[]).map(pe=>String(pe)):[])},K=function(){let{closeDropdown:te}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};te&&$(!1),U(D())},J=(te,ie)=>{ie.source==="trigger"&&(te&&P!==void 0&&O(ZS(P)),$(te),!te&&!o.filterDropdown&&c&&H())},ne=ae({[`${i}-menu-without-submenu`]:!R_e(o.filters||[])}),W=te=>{if(te.target.checked){const ie=md(o==null?void 0:o.filters).map(pe=>String(pe));O(ie)}else O([])},q=te=>{let{filters:ie}=te;return(ie||[]).map((pe,me)=>{const re=String(pe.value),ce={title:pe.text,key:pe.value!==void 0?re:String(me)};return pe.children&&(ce.children=q({filters:pe.children})),ce})},Z=te=>{var ie;return Object.assign(Object.assign({},te),{text:te.title,value:te.key,children:((ie=te.children)===null||ie===void 0?void 0:ie.map(pe=>Z(pe)))||[]})};let Q;const{direction:ee,renderEmpty:oe}=l.useContext(lt);if(typeof o.filterDropdown=="function")Q=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:te=>k({selectedKeys:te}),selectedKeys:D(),confirm:K,clearFilters:Y,filters:o.filters,visible:M,close:()=>{$(!1)}});else if(o.filterDropdown)Q=o.filterDropdown;else{const te=D()||[],ie=()=>{var me;const re=(me=oe==null?void 0:oe("Table.filter"))!==null&&me!==void 0?me:l.createElement(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((o.filters||[]).length===0)return re;if(d==="tree")return l.createElement(l.Fragment,null,l.createElement(tL,{filterSearch:p,value:F,onChange:z,tablePrefixCls:r,locale:h}),l.createElement("div",{className:`${r}-filter-dropdown-tree`},u?l.createElement(Ns,{checked:te.length===md(o.filters).length,indeterminate:te.length>0&&te.lengthtypeof p=="function"?p(F,Z(ye)):ZK(F,ye.title):void 0})));const ce=QK({filters:o.filters||[],filterSearch:p,prefixCls:a,filteredKeys:D(),filterMultiple:u,searchValue:F}),ge=ce.every(ye=>ye===null);return l.createElement(l.Fragment,null,l.createElement(tL,{filterSearch:p,value:F,onChange:z,tablePrefixCls:r,locale:h}),ge?re:l.createElement(Ps,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:ne,onSelect:k,onDeselect:k,selectedKeys:te,getPopupContainer:x,openKeys:A,onOpenChange:j,items:ce}))},pe=()=>C?Jo((w||[]).map(me=>String(me)),te,!0):te.length===0;Q=l.createElement(l.Fragment,null,ie(),l.createElement("div",{className:`${a}-dropdown-btns`},l.createElement(nt,{type:"link",size:"small",disabled:pe(),onClick:()=>Y()},h.filterReset),l.createElement(nt,{type:"primary",size:"small",onClick:H},h.filterConfirm)))}o.filterDropdown&&(Q=l.createElement(QW,{selectable:void 0},Q));const se=()=>l.createElement(T_e,{className:`${a}-dropdown`},Q);let fe;return typeof o.filterIcon=="function"?fe=o.filterIcon(_):o.filterIcon?fe=o.filterIcon:fe=l.createElement(jEe,null),l.createElement("div",{className:`${a}-column`},l.createElement("span",{className:`${r}-column-title`},b),l.createElement(Ny,{dropdownRender:se,trigger:["click"],open:M,onOpenChange:J,getPopupContainer:x,placement:ee==="rtl"?"bottomLeft":"bottomRight",rootClassName:S},l.createElement("span",{role:"button",tabIndex:-1,className:ae(`${a}-trigger`,{active:_}),onClick:te=>{te.stopPropagation()}},fe)))},T_=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const s=Sf(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;"filterDropdown"in a||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:a,key:Dl(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:Dl(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Me(r),Me(T_(a.children,t,s))))}),r};function JK(e,t,n,r,a,o,i,s,c){return n.map((u,d)=>{const p=Sf(d,s),{filterOnClose:g=!0,filterMultiple:m=!0,filterMode:h,filterSearch:b}=u;let x=u;if(x.filters||x.filterDropdown){const S=Dl(x,p),v=r.find(y=>{let{key:C}=y;return S===C});x=Object.assign(Object.assign({},x),{title:y=>l.createElement(__e,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:x,columnKey:S,filterState:v,filterOnClose:g,filterMultiple:m,filterMode:h,filterSearch:b,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},jy(u.title,y))})}return"children"in x&&(x=Object.assign(Object.assign({},x),{children:JK(e,t,x.children,r,a,o,i,p,c)})),x})}const nL=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const i=r,{filters:s,filterDropdown:c}=o;if(c)t[i]=a||null;else if(Array.isArray(a)){const u=md(s);t[i]=u.filter(d=>a.includes(String(d)))}else t[i]=null}),t},R_=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const p=md(s),g=p.findIndex(h=>String(h)===String(d)),m=g!==-1?p[g]:d;return u[n]&&(u[n]=R_(u[n],t,n)),i(m,u)})):a},e),eY=e=>e.flatMap(t=>"children"in t?[t].concat(Me(eY(t.children||[]))):[t]),$_e=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:s}=e;zl();const c=l.useMemo(()=>eY(r||[]),[r]),[u,d]=l.useState(()=>T_(c,!0)),p=l.useMemo(()=>{const b=T_(c,!1);if(b.length===0)return b;let x=!0;if(b.forEach(S=>{let{filteredKeys:v}=S;v!==void 0&&(x=!1)}),x){const S=(c||[]).map((v,y)=>Dl(v,Sf(y)));return u.filter(v=>{let{key:y}=v;return S.includes(y)}).map(v=>{const y=c[S.findIndex(C=>C===v.key)];return Object.assign(Object.assign({},v),{column:Object.assign(Object.assign({},v.column),y),forceFiltered:y.filtered})})}return b},[c,u]),g=l.useMemo(()=>nL(p),[p]),m=b=>{const x=p.filter(S=>{let{key:v}=S;return v!==b.key});x.push(b),d(x),a(nL(x),x)};return[b=>JK(t,n,b,p,i,m,o,void 0,s),p,g]},O_e=(e,t,n)=>{const r=l.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((p,g)=>{const m=n(p,g);c.set(m,p),p&&typeof p=="object"&&t in p&&u(p[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var N_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function A_e(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=N_e(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:tY})),c=Zq(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(g,m)=>{s({current:g??1,pageSize:m||c.pageSize})},p=(g,m)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,g,m)),d(g,m),t(g,m||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:p}),d]}const Fv="ascend",QS="descend",Zb=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,rL=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,M_e=(e,t)=>t?e[e.indexOf(t)+1]:e[0],__=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:Dl(o,i),multiplePriority:Zb(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const s=Sf(i,n);o.children?("sortOrder"in o&&a(o,s),r=[].concat(Me(r),Me(__(o.children,t,s)))):o.sorter&&("sortOrder"in o?a(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:Dl(o,s),multiplePriority:Zb(o),sortOrder:o.defaultSortOrder}))}),r},nY=(e,t,n,r,a,o,i,s)=>(t||[]).map((u,d)=>{const p=Sf(d,s);let g=u;if(g.sorter){const m=g.sortDirections||a,h=g.showSorterTooltip===void 0?i:g.showSorterTooltip,b=Dl(g,p),x=n.find(R=>{let{key:_}=R;return _===b}),S=x?x.sortOrder:null,v=M_e(m,S);let y;if(u.sortIcon)y=u.sortIcon({sortOrder:S});else{const R=m.includes(Fv)&&l.createElement(zwe,{className:ae(`${e}-column-sorter-up`,{active:S===Fv})}),_=m.includes(QS)&&l.createElement(jwe,{className:ae(`${e}-column-sorter-down`,{active:S===QS})});y=l.createElement("span",{className:ae(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&_)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,_))}const{cancelSort:C,triggerAsc:w,triggerDesc:E}=o||{};let I=C;v===QS?I=E:v===Fv&&(I=w);const T=typeof h=="object"?Object.assign({title:I},h):{title:I};g=Object.assign(Object.assign({},g),{className:ae(g.className,{[`${e}-column-sort`]:S}),title:R=>{const _=`${e}-column-sorters`,$=l.createElement("span",{className:`${e}-column-title`},jy(u.title,R)),M=l.createElement("div",{className:_},$,y);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?l.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},$,l.createElement(Wt,Object.assign({},T),y)):l.createElement(Wt,Object.assign({},T),M):M},onHeaderCell:R=>{var _;const $=((_=u.onHeaderCell)===null||_===void 0?void 0:_.call(u,R))||{},M=$.onClick,P=$.onKeyDown;$.onClick=k=>{r({column:u,key:b,sortOrder:v,multiplePriority:Zb(u)}),M==null||M(k)},$.onKeyDown=k=>{k.keyCode===ze.ENTER&&(r({column:u,key:b,sortOrder:v,multiplePriority:Zb(u)}),P==null||P(k))};const D=n_e(u.title,{}),O=D==null?void 0:D.toString();return S?$["aria-sort"]=S==="ascend"?"ascending":"descending":$["aria-label"]=O||"",$.className=ae($.className,`${e}-column-has-sorters`),$.tabIndex=0,u.ellipsis&&($.title=(D??"").toString()),$}})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:nY(e,g.children,n,r,a,o,i,p)})),g}),aL=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},oL=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(aL);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},aL(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},$_=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(i=>{let{column:{sorter:s},sortOrder:c}=i;return rL(s)&&c});return o.length?a.sort((i,s)=>{for(let c=0;c{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:$_(s,t,n)}):i}):a},D_e=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[s,c]=l.useState(__(n,!0)),u=(b,x)=>{const S=[];return b.forEach((v,y)=>{const C=Sf(y,x);if(S.push(Dl(v,C)),Array.isArray(v.children)){const w=u(v.children,C);S.push.apply(S,Me(w))}}),S},d=l.useMemo(()=>{let b=!0;const x=__(n,!1);if(!x.length){const C=u(n);return s.filter(w=>{let{key:E}=w;return C.includes(E)})}const S=[];function v(C){b?S.push(C):S.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let y=null;return x.forEach(C=>{y===null?(v(C),C.sortOrder&&(C.multiplePriority===!1?b=!1:y=!0)):(y&&C.multiplePriority!==!1||(b=!1),v(C))}),S},[n,s]),p=l.useMemo(()=>{var b,x;const S=d.map(v=>{let{column:y,sortOrder:C}=v;return{column:y,order:C}});return{sortColumns:S,sortColumn:(b=S[0])===null||b===void 0?void 0:b.column,sortOrder:(x=S[0])===null||x===void 0?void 0:x.order}},[d]),g=b=>{let x;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?x=[b]:x=[].concat(Me(d.filter(S=>{let{key:v}=S;return v!==b.key})),[b]),c(x),i(oL(x),x)};return[b=>nY(t,b,d,g,r,a,o),d,p,()=>oL(d)]},rY=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=jy(r.title,t),"children"in a&&(a.children=rY(a.children,t)),a}),P_e=e=>[l.useCallback(n=>rY(n,e),[e])],L_e=FK((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),j_e=zK((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),F_e=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${G(n)} ${r} ${a}`,d=(p,g,m)=>({[`&${t}-${p}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(g).mul(-1).equal())} + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:G(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:G(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Rm(e)),hN(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},_y(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},lwe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},cwe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:G(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),lwe(e)),swe(e)),iwe(e)),owe(e)),awe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},uwe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ri(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},_s(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},_s(e))}}}},eK=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Tm(e)),tK=e=>Bt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Im(e)),dwe=on("Pagination",e=>{const t=tK(e);return[cwe(t),uwe(t)]},eK),fwe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},pwe=Qc(["Pagination","bordered"],e=>{const t=tK(e);return[fwe(t)]},eK);var gwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:s,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:p}=e,g=gwe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=gy(d),[,h]=ta(),{getPrefixCls:b,direction:x,pagination:S={}}=l.useContext(ut),v=b("pagination",n),[y,w,C]=dwe(v),E=p??S.showSizeChanger,I=l.useMemo(()=>{const O=l.createElement("span",{className:`${v}-item-ellipsis`},"•••"),k=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(io,null):l.createElement(ks,null)),N=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},x==="rtl"?l.createElement(ks,null):l.createElement(io,null)),A=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},x==="rtl"?l.createElement(bP,{className:`${v}-item-link-icon`}):l.createElement(vP,{className:`${v}-item-link-icon`}),O)),L=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},x==="rtl"?l.createElement(vP,{className:`${v}-item-link-icon`}):l.createElement(bP,{className:`${v}-item-link-icon`}),O));return{prevIcon:k,nextIcon:N,jumpPrevIcon:A,jumpNextIcon:L}},[x,v]),[T]=ns("Pagination",dU),R=Object.assign(Object.assign({},T),c),_=Lr(s),$=_==="small"||!!(m&&!_&&d),M=b("select",r),P=oe({[`${v}-${t}`]:!!t,[`${v}-mini`]:$,[`${v}-rtl`]:x==="rtl",[`${v}-bordered`]:h.wireframe},S==null?void 0:S.className,a,o,w,C),D=Object.assign(Object.assign({},S==null?void 0:S.style),i);return y(l.createElement(l.Fragment,null,h.wireframe&&l.createElement(pwe,{prefixCls:v}),l.createElement(rwe,Object.assign({},I,g,{style:D,prefixCls:v,selectPrefixCls:M,className:P,selectComponentClass:u||($?Qq:Jq),locale:R,showSizeChanger:E}))))},Gb=100,nK=Gb/5,rK=Gb/2-nK/2,KS=rK*2*Math.PI,SP=50,wP=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:oe(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:rK,cx:SP,cy:SP,strokeWidth:nK,style:n})},mwe=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[i,s]=l.useState(!1);Yt(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!i)return null;const u={strokeDashoffset:`${KS/4}`,strokeDasharray:`${KS*c/100} ${KS*(100-c)/100}`};return l.createElement("span",{className:oe(a,`${r}-progress`,c<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${Gb} ${Gb}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},l.createElement(wP,{dotClassName:r,hasCircleCls:!0}),l.createElement(wP,{dotClassName:r,style:u})))};function hwe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:oe(a,n>0&&o)},l.createElement("span",{className:oe(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(mwe,{prefixCls:t,percent:n}))}function vwe(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&l.isValidElement(n)?$r(n,{className:oe(n.props.className,a),percent:r}):l.createElement(hwe,{prefixCls:t,percent:r})}const bwe=new en("antSpinMove",{to:{opacity:1}}),ywe=new en("antRotate",{to:{transform:"rotate(405deg)"}}),xwe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:bwe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:ywe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Swe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},wwe=on("Spin",e=>{const t=Bt(e,{spinDotDefault:e.colorTextDescription});return[xwe(t)]},Swe),Cwe=200,CP=[[30,.05],[70,.03],[96,.01]];function Ewe(e,t){const[n,r]=l.useState(0),a=l.useRef(),o=t==="auto";return l.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c{clearInterval(a.current)}),[o,e]),o?n:t}var Iwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:p,fullscreen:g=!1,indicator:m,percent:h}=e,b=Iwe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:x,direction:S,spin:v}=l.useContext(ut),y=x("spin",n),[w,C,E]=wwe(y),[I,T]=l.useState(()=>r&&!Twe(r,a)),R=Ewe(I,h);l.useEffect(()=>{if(r){const k=D0e(a,()=>{T(!0)});return k(),()=>{var N;(N=k==null?void 0:k.cancel)===null||N===void 0||N.call(k)}}T(!1)},[a,r]);const _=l.useMemo(()=>typeof p<"u"&&!g,[p,g]),$=oe(y,v==null?void 0:v.className,{[`${y}-sm`]:s==="small",[`${y}-lg`]:s==="large",[`${y}-spinning`]:I,[`${y}-show-text`]:!!c,[`${y}-rtl`]:S==="rtl"},o,!g&&i,C,E),M=oe(`${y}-container`,{[`${y}-blur`]:I}),P=(t=m??(v==null?void 0:v.indicator))!==null&&t!==void 0?t:aK,D=Object.assign(Object.assign({},v==null?void 0:v.style),d),O=l.createElement("div",Object.assign({},b,{style:D,className:$,"aria-live":"polite","aria-busy":I}),l.createElement(vwe,{prefixCls:y,indicator:P,percent:R}),c&&(_||g)?l.createElement("div",{className:`${y}-text`},c):null);return w(_?l.createElement("div",Object.assign({},b,{className:oe(`${y}-nested-loading`,u,C,E)}),I&&l.createElement("div",{key:"loading"},O),l.createElement("div",{className:M,key:"container"},p)):g?l.createElement("div",{className:oe(`${y}-fullscreen`,{[`${y}-fullscreen-show`]:I},i,C,E)},O):O)};vf.setDefaultIndicator=e=>{aK=e};const AN=de.createContext({});AN.Consumer;var oK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=oK(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(ut),c=s("list",t),u=oe(`${c}-item-meta`,n),d=de.createElement("div",{className:`${c}-item-meta-content`},a&&de.createElement("h4",{className:`${c}-item-meta-title`},a),o&&de.createElement("div",{className:`${c}-item-meta-description`},o));return de.createElement("div",Object.assign({},i,{className:u}),r&&de.createElement("div",{className:`${c}-item-meta-avatar`},r),(a||o)&&d)},_we=de.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:i,className:s,classNames:c,colStyle:u}=e,d=oK(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:p,itemLayout:g}=l.useContext(AN),{getPrefixCls:m,list:h}=l.useContext(ut),b=I=>{var T,R;return oe((R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.classNames)===null||R===void 0?void 0:R[I],c==null?void 0:c[I])},x=I=>{var T,R;return Object.assign(Object.assign({},(R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.styles)===null||R===void 0?void 0:R[I]),i==null?void 0:i[I])},S=()=>{let I=!1;return l.Children.forEach(r,T=>{typeof T=="string"&&(I=!0)}),I&&l.Children.count(r)>1},v=()=>g==="vertical"?!!o:!S(),y=m("list",n),w=a&&a.length>0&&de.createElement("ul",{className:oe(`${y}-item-action`,b("actions")),key:"actions",style:x("actions")},a.map((I,T)=>de.createElement("li",{key:`${y}-item-action-${T}`},I,T!==a.length-1&&de.createElement("em",{className:`${y}-item-action-split`})))),C=p?"div":"li",E=de.createElement(C,Object.assign({},d,p?{}:{ref:t},{className:oe(`${y}-item`,{[`${y}-item-no-flex`]:!v()},s)}),g==="vertical"&&o?[de.createElement("div",{className:`${y}-item-main`,key:"content"},r,w),de.createElement("div",{className:oe(`${y}-item-extra`,b("extra")),key:"extra",style:x("extra")},o)]:[r,w,$r(o,{key:"extra"})]);return p?de.createElement(Cn,{ref:t,flex:1,style:u},E):E}),MN=_we;MN.Meta=Rwe;const $we=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:i,marginLG:s,borderRadiusLG:c}=e;return{[t]:{border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${G(a)} ${G(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},Owe=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${G(i)}`}}}}}},Nwe=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:i,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:p,paddingXS:g,margin:m,colorText:h,colorTextDescription:b,motionDurationSlow:x,lineWidth:S,headerBg:v,footerBg:y,emptyTextPadding:w,metaMarginBottom:C,avatarMarginRight:E,titleMarginBottom:I,descriptionFontSize:T}=e;return{[t]:Object.assign(Object.assign({},an(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${G(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${x}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:b,fontSize:T,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${G(g)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${G(s)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:w,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:m,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${G(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:p},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},kwe=e=>({contentWidth:220,itemPadding:`${G(e.paddingContentVertical)} 0`,itemPaddingSM:`${G(e.paddingContentVerticalSM)} ${G(e.paddingContentHorizontal)}`,itemPaddingLG:`${G(e.paddingContentVerticalLG)} ${G(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Awe=on("List",e=>{const t=Bt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Nwe(t),$we(t),Owe(t)]},kwe);var Mwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(re,ue)=>{var me;T(re),_(ue),n&&((me=n==null?void 0:n[he])===null||me===void 0||me.call(n,re,ue))},N=k("onChange"),A=k("onShowSizeChange"),L=(he,re)=>{if(!y)return null;let ue;return typeof v=="function"?ue=v(he):v?ue=he[v]:ue=he.key,ue||(ue=`list-item-${re}`),l.createElement(l.Fragment,{key:ue},y(he,re))},j=()=>!!(p||n||x),F=$("list",r),[B,z,U]=Awe(F);let H=S;typeof H=="boolean"&&(H={spinning:H});const K=!!(H!=null&&H.spinning),Y=Lr(h);let ee="";switch(Y){case"large":ee="lg";break;case"small":ee="sm";break}const ae=oe(F,{[`${F}-vertical`]:d==="vertical",[`${F}-${ee}`]:ee,[`${F}-split`]:o,[`${F}-bordered`]:a,[`${F}-loading`]:K,[`${F}-grid`]:!!g,[`${F}-something-after-last-item`]:j(),[`${F}-rtl`]:P==="rtl"},D==null?void 0:D.className,i,s,z,U),W=Zq(O,{total:m.length,current:I,pageSize:R},n||{}),q=Math.ceil(W.total/W.pageSize);W.current>q&&(W.current=q);const Z=n&&l.createElement("div",{className:oe(`${F}-pagination`)},l.createElement(kN,Object.assign({align:"end"},W,{onChange:N,onShowSizeChange:A})));let Q=De(m);n&&m.length>(W.current-1)*W.pageSize&&(Q=De(m).splice((W.current-1)*W.pageSize,W.pageSize));const J=Object.keys(g||{}).some(he=>["xs","sm","md","lg","xl","xxl"].includes(he)),ie=gy(J),le=l.useMemo(()=>{for(let he=0;he{if(!g)return;const he=le&&g[le]?g[le]:g.column;if(he)return{width:`${100/he}%`,maxWidth:`${100/he}%`}},[JSON.stringify(g),le]);let te=K&&l.createElement("div",{style:{minHeight:53}});if(Q.length>0){const he=Q.map((re,ue)=>L(re,ue));te=g?l.createElement(la,{gutter:g.gutter},l.Children.map(he,re=>l.createElement("div",{key:re==null?void 0:re.key,style:fe},re))):l.createElement("ul",{className:`${F}-items`},he)}else!u&&!K&&(te=l.createElement("div",{className:`${F}-empty-text`},(w==null?void 0:w.emptyText)||(M==null?void 0:M("List"))||l.createElement(fy,{componentName:"List"})));const se=W.position||"bottom",pe=l.useMemo(()=>({grid:g,itemLayout:d}),[JSON.stringify(g),d]);return B(l.createElement(AN.Provider,{value:pe},l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},D==null?void 0:D.style),c),className:ae},C),(se==="top"||se==="both")&&Z,b&&l.createElement("div",{className:`${F}-header`},b),l.createElement(vf,Object.assign({},H),te,u),x&&l.createElement("div",{className:`${F}-footer`},x),p||(se==="bottom"||se==="both")&&Z)))}const Pwe=l.forwardRef(Dwe),Er=Pwe;Er.Item=MN;function Lwe(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var jwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:s,footer:c}=e,u=jwe(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(ut),p=d(),g=t||d("modal"),m=ar(p),[h,b,x]=AV(g,m),S=`${g}-confirm`;let v={};return o?v={closable:a??!1,title:"",footer:"",children:l.createElement(DV,Object.assign({},e,{prefixCls:g,confirmPrefixCls:S,rootPrefixCls:p,content:s}))}:v={closable:a??!0,title:i,footer:c!==null&&l.createElement($V,Object.assign({},e)),children:s},h(l.createElement(gV,Object.assign({prefixCls:g,className:oe(b,`${g}-pure-panel`,o&&S,o&&`${S}-${o}`,n,x,m)},u,{closeIcon:_V(g,r),closable:a},v)))},Bwe=XV(Fwe);function iK(e){return hm(FV(e))}const _n=MV;_n.useModal=ofe;_n.info=function(t){return hm(BV(t))};_n.success=function(t){return hm(zV(t))};_n.error=function(t){return hm(HV(t))};_n.warning=iK;_n.warn=iK;_n.confirm=function(t){return hm(UV(t))};_n.destroyAll=function(){for(;pc.length;){const t=pc.pop();t&&t()}};_n.config=efe;_n._InternalPanelDoNotUseOrYouWillBeFired=Bwe;let bi=null,jv=e=>e(),qb=[],Pg={};function EP(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}=Pg,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:a,showProgress:o,pauseOnHover:i}}const zwe=de.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(ut),o=Pg.prefixCls||a("notification"),i=l.useContext(Rfe),[s,c]=YV(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.notification));return de.useEffect(r,[]),de.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),Hwe=de.forwardRef((e,t)=>{const[n,r]=de.useState(EP),a=()=>{r(EP)};de.useEffect(a,[]);const o=BU(),i=o.getRootPrefixCls(),s=o.getIconPrefixCls(),c=o.getTheme(),u=de.createElement(zwe,{ref:t,sync:a,notificationConfig:n});return de.createElement(Ai,{prefixCls:i,iconPrefixCls:s,theme:c},o.holderRender?o.holderRender(u):u)});function DN(){if(!bi){const e=document.createDocumentFragment(),t={fragment:e};bi=t,jv(()=>{OO(de.createElement(Hwe,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,DN())})}}),e)});return}bi.instance&&(qb.forEach(e=>{switch(e.type){case"open":{jv(()=>{bi.instance.open(Object.assign(Object.assign({},Pg),e.config))});break}case"destroy":jv(()=>{bi==null||bi.instance.destroy(e.key)});break}}),qb=[])}function Uwe(e){Pg=Object.assign(Object.assign({},Pg),e),jv(()=>{var t;(t=bi==null?void 0:bi.sync)===null||t===void 0||t.call(bi)})}function sK(e){qb.push({type:"open",config:e}),DN()}const Vwe=e=>{qb.push({type:"destroy",key:e}),DN()},Wwe=["success","info","warning","error"],Gwe={open:sK,destroy:Vwe,config:Uwe,useNotification:Tfe,_InternalPanelDoNotUseOrYouWillBeFired:vfe},Fv=Gwe;Wwe.forEach(e=>{Fv[e]=t=>sK(Object.assign(Object.assign({},t),{type:e}))});var qwe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Kwe=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},IP=0,Ywe=fa();function Xwe(){var e;return Ywe?(e=IP,IP+=1):e="TEST_OR_SSR",e}const Zwe=function(e){var t=l.useState(),n=ce(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(Xwe()))},[]),e||r};var TP=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function RP(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var Qwe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,g=r&&mt(r)==="object",m=g?"#FFF":void 0,h=d/2,b=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:m,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:i,ref:t});if(!g)return b;var x="".concat(a,"-conic"),S=p?"".concat(180+p/2,"deg"):"0deg",v=RP(r,(360-p)/360),y=RP(r,1),w="conic-gradient(from ".concat(S,", ").concat(v.join(", "),")"),C="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(y.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:x},b),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(x,")")},l.createElement(TP,{bg:C},l.createElement(TP,{bg:w}))))}),pp=100,YS=function(t,n,r,a,o,i,s,c,u,d){var p=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,g=r/100*360*((360-i)/360),m=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=pp/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+p,transform:"rotate(".concat(o+g+m,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Jwe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function _P(e){var t=e??[];return Array.isArray(t)?t:[t]}var eCe=function(t){var n=X(X({},qwe),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,p=n.trailColor,g=n.strokeLinecap,m=n.style,h=n.className,b=n.strokeColor,x=n.percent,S=Ct(n,Jwe),v=pp/2,y=Zwe(r),w="".concat(y,"-gradient"),C=v-i/2,E=Math.PI*2*C,I=u>0?90+u/2:-90,T=E*((360-u)/360),R=mt(o)==="object"?o:{count:o,gap:2},_=R.count,$=R.gap,M=_P(x),P=_P(b),D=P.find(function(F){return F&&mt(F)==="object"}),O=D&&mt(D)==="object",k=O?"butt":g,N=YS(E,T,0,100,I,u,d,p,k,i),A=Kwe(),L=function(){var B=0;return M.map(function(z,U){var H=P[U]||P[P.length-1],K=YS(E,T,B,z,I,u,d,H,k,i);return B+=z,l.createElement(Qwe,{key:U,color:H,ptg:z,radius:C,prefixCls:a,gradientId:w,style:K,strokeLinecap:k,strokeWidth:i,gapDegree:u,ref:function(ee){A[U]=ee},size:pp})}).reverse()},j=function(){var B=Math.round(_*(M[0]/100)),z=100/_,U=0;return new Array(_).fill(null).map(function(H,K){var Y=K<=B-1?P[0]:p,ee=Y&&mt(Y)==="object"?"url(#".concat(w,")"):void 0,ae=YS(E,T,U,z,I,u,d,Y,"butt",i,$);return U+=(T-ae.strokeDashoffset+$)*100/T,l.createElement("circle",{key:K,className:"".concat(a,"-circle-path"),r:C,cx:v,cy:v,stroke:ee,strokeWidth:i,opacity:1,style:ae,ref:function(q){A[K]=q}})})};return l.createElement("svg",be({className:oe("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(pp," ").concat(pp),style:m,id:r,role:"presentation"},S),!_&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:C,cx:v,cy:v,stroke:p,strokeLinecap:k,strokeWidth:s||i,style:N}),_?j():L())};function Tl(e){return!e||e<0?0:e>100?100:e}function Kb(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const tCe=e=>{let{percent:t,success:n,successPercent:r}=e;const a=Tl(Kb({success:n,successPercent:r}));return[a,Tl(Tl(t)-a)]},nCe=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||fd.green,n||null]},Dy=(e,t,n)=>{var r,a,o,i;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[s,c]},rCe=3,aCe=e=>rCe/e*100,oCe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:s,children:c,success:u,size:d=i,steps:p}=e,[g,m]=Dy(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(aCe(g),6));const b={width:g,height:m,fontSize:g*.15+6},x=l.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),S=tCe(e),v=a||s==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=nCe({success:u,strokeColor:e.strokeColor}),C=oe(`${t}-inner`,{[`${t}-circle-gradient`]:y}),E=l.createElement(eCe,{steps:p,percent:p?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:p?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:x,gapPosition:v}),I=g<=20,T=l.createElement("div",{className:C,style:b},E,!I&&c);return I?l.createElement(Ft,{title:c},T):T},Yb="--progress-line-stroke-color",lK="--progress-percent",$P=e=>{const t=e?"100%":"-100%";return new en(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},iCe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},an(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Yb})`]},height:"100%",width:`calc(1 / var(${lK}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${G(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:$P(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:$P(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},sCe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},lCe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},cCe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},uCe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),dCe=on("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Bt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[iCe(n),sCe(n),lCe(n),cCe(n)]},uCe);var fCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},gCe=(e,t)=>{const{from:n=fd.blue,to:r=fd.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=fCe(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=pCe(o),c=`linear-gradient(${a}, ${s})`;return{background:c,[Yb]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[Yb]:i}},mCe=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:p}=e,{align:g,type:m}=d,h=i&&typeof i!="string"?gCe(i,n):{[Yb]:i,background:i},b=s==="square"||s==="butt"?0:void 0,x=a??[-1,o||(a==="small"?6:8)],[S,v]=Dy(x,"line",{strokeWidth:o}),y={backgroundColor:u||void 0,borderRadius:b},w=Object.assign(Object.assign({width:`${Tl(r)}%`,height:v,borderRadius:b},h),{[lK]:Tl(r)/100}),C=Kb(e),E={width:`${Tl(C)}%`,height:v,borderRadius:b,backgroundColor:p==null?void 0:p.strokeColor},I={width:S<0?"100%":S},T=l.createElement("div",{className:`${t}-inner`,style:y},l.createElement("div",{className:oe(`${t}-bg`,`${t}-bg-${m}`),style:w},m==="inner"&&c),C!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:E})),R=m==="outer"&&g==="start",_=m==="outer"&&g==="end";return m==="outer"&&g==="center"?l.createElement("div",{className:`${t}-layout-bottom`},T,c):l.createElement("div",{className:`${t}-outer`,style:I},R&&c,T,_&&c)},hCe=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:a=8,strokeColor:o,trailColor:i=null,prefixCls:s,children:c}=e,u=Math.round(n*(r/100)),p=t??[t==="small"?2:14,a],[g,m]=Dy(p,"step",{steps:n,strokeWidth:a}),h=g/n,b=new Array(n);for(let x=0;x{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:p,format:g,style:m,percentPosition:h={}}=e,b=vCe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:x="end",type:S="outer"}=h,v=Array.isArray(i)?i[0]:i,y=typeof i=="string"||Array.isArray(i)?i:void 0,w=l.useMemo(()=>{if(v){const L=typeof v=="string"?v:Object.values(v)[0];return new sn(L).isLight()}return!1},[i]),C=l.useMemo(()=>{var L,j;const F=Kb(e);return parseInt(F!==void 0?(L=F??0)===null||L===void 0?void 0:L.toString():(j=s??0)===null||j===void 0?void 0:j.toString(),10)},[s,e.success,e.successPercent]),E=l.useMemo(()=>!bCe.includes(p)&&C>=100?"success":p||"normal",[p,C]),{getPrefixCls:I,direction:T,progress:R}=l.useContext(ut),_=I("progress",n),[$,M,P]=dCe(_),D=d==="line",O=D&&!o,k=l.useMemo(()=>{if(!u)return null;const L=Kb(e);let j;const F=g||(z=>`${z}%`),B=D&&w&&S==="inner";return S==="inner"||g||E!=="exception"&&E!=="success"?j=F(Tl(s),Tl(L)):E==="exception"?j=D?l.createElement(Hl,null):l.createElement(ga,null):E==="success"&&(j=D?l.createElement(of,null):l.createElement(df,null)),l.createElement("span",{className:oe(`${_}-text`,{[`${_}-text-bright`]:B,[`${_}-text-${x}`]:O,[`${_}-text-${S}`]:O}),title:typeof j=="string"?j:void 0},j)},[u,s,C,E,d,_,g]);let N;d==="line"?N=o?l.createElement(hCe,Object.assign({},e,{strokeColor:y,prefixCls:_,steps:typeof o=="object"?o.count:o}),k):l.createElement(mCe,Object.assign({},e,{strokeColor:v,prefixCls:_,direction:T,percentPosition:{align:x,type:S}}),k):(d==="circle"||d==="dashboard")&&(N=l.createElement(oCe,Object.assign({},e,{strokeColor:v,prefixCls:_,progressStatus:E}),k));const A=oe(_,`${_}-status-${E}`,{[`${_}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${_}-inline-circle`]:d==="circle"&&Dy(c,"circle")[0]<=20,[`${_}-line`]:O,[`${_}-line-align-${x}`]:O,[`${_}-line-position-${S}`]:O,[`${_}-steps`]:o,[`${_}-show-info`]:u,[`${_}-${c}`]:typeof c=="string",[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,r,a,M,P);return $(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},R==null?void 0:R.style),m),className:A,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},Mn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});var yCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},xCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:yCe}))},SCe=l.forwardRef(xCe),wCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},CCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:wCe}))},cK=l.forwardRef(CCe),ECe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},ICe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:ECe}))},TCe=l.forwardRef(ICe),RCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},_Ce=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:RCe}))},$Ce=l.forwardRef(_Ce),OCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},NCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:OCe}))},kCe=l.forwardRef(NCe),ACe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},MCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:ACe}))},DCe=l.forwardRef(MCe),PCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},LCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:PCe}))},jCe=l.forwardRef(LCe),FCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},BCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:FCe}))},zCe=l.forwardRef(BCe),HCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},UCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:HCe}))},h_=l.forwardRef(UCe),VCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"check-square",theme:"outlined"},WCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:VCe}))},v_=l.forwardRef(WCe),GCe={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},qCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:GCe}))},OP=l.forwardRef(qCe),KCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},YCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:KCe}))},uK=l.forwardRef(YCe),XCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},ZCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:XCe}))},Xb=l.forwardRef(ZCe),QCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},JCe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:QCe}))},eEe=l.forwardRef(JCe),tEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},nEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:tEe}))},PN=l.forwardRef(nEe),rEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},aEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:rEe}))},oEe=l.forwardRef(aEe),iEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"},sEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:iEe}))},lEe=l.forwardRef(sEe),cEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},uEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:cEe}))},Ly=l.forwardRef(uEe),dEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},fEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:dEe}))},Al=l.forwardRef(fEe),pEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},gEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:pEe}))},gp=l.forwardRef(gEe),mEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"},hEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:mEe}))},vEe=l.forwardRef(hEe),bEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},yEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:bEe}))},LN=l.forwardRef(yEe),xEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},SEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:xEe}))},Ml=l.forwardRef(SEe),wEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},CEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:wEe}))},EEe=l.forwardRef(CEe),IEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"},TEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:IEe}))},REe=l.forwardRef(TEe),_Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},$Ee=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:_Ee}))},dK=l.forwardRef($Ee),OEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},NEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:OEe}))},kEe=l.forwardRef(NEe),AEe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},MEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:AEe}))},DEe=l.forwardRef(MEe),PEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},LEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:PEe}))},jEe=l.forwardRef(LEe),FEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},BEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:FEe}))},zEe=l.forwardRef(BEe),HEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},UEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:HEe}))},Bv=l.forwardRef(UEe),VEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},WEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:VEe}))},jN=l.forwardRef(WEe),GEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},qEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:GEe}))},Ic=l.forwardRef(qEe),KEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},YEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:KEe}))},fK=l.forwardRef(YEe),XEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},ZEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:XEe}))},pK=l.forwardRef(ZEe),QEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},JEe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:QEe}))},e2e=l.forwardRef(JEe),t2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"},n2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:t2e}))},r2e=l.forwardRef(n2e),a2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},o2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:a2e}))},i2e=l.forwardRef(o2e),s2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},l2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:s2e}))},c2e=l.forwardRef(l2e),u2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},d2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:u2e}))},f2e=l.forwardRef(d2e),p2e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},g2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:p2e}))},FN=l.forwardRef(g2e),m2e={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},h2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:m2e}))},Xo=l.forwardRef(h2e),v2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},b2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:v2e}))},y2e=l.forwardRef(b2e),x2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},S2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:x2e}))},w2e=l.forwardRef(S2e),C2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},E2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:C2e}))},gK=l.forwardRef(E2e),I2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},T2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:I2e}))},R2e=l.forwardRef(T2e),_2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},$2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:_2e}))},O2e=l.forwardRef($2e),N2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},k2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:N2e}))},mK=l.forwardRef(k2e),A2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},M2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:A2e}))},D2e=l.forwardRef(M2e),P2e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},L2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:P2e}))},j2e=l.forwardRef(L2e),F2e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"},B2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:F2e}))},z2e=l.forwardRef(B2e),H2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM456 344h264v98.2c0 8.1 9.5 12.8 15.8 7.7l172.5-136.2c5-3.9 5-11.4 0-15.3L735.8 162.1c-6.4-5.1-15.8-.5-15.8 7.7V268H456c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8z"}}]},name:"node-expand",theme:"outlined"},U2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:H2e}))},Zb=l.forwardRef(U2e),V2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-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-568H336c-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 284H336c-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-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},W2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:V2e}))},G2e=l.forwardRef(W2e),q2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},K2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:q2e}))},Y2e=l.forwardRef(K2e),X2e={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},Z2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:X2e}))},NP=l.forwardRef(Z2e),Q2e={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},J2e=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:Q2e}))},eIe=l.forwardRef(J2e),tIe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},nIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:tIe}))},Eo=l.forwardRef(nIe),rIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},aIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:rIe}))},hK=l.forwardRef(aIe),oIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},iIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:oIe}))},sIe=l.forwardRef(iIe),lIe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},cIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:lIe}))},kP=l.forwardRef(cIe),uIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},dIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:uIe}))},Qb=l.forwardRef(dIe),fIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},pIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:fIe}))},BN=l.forwardRef(pIe),gIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},mIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:gIe}))},vK=l.forwardRef(mIe),hIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},vIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:hIe}))},zN=l.forwardRef(vIe),bIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},yIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:bIe}))},xIe=l.forwardRef(yIe),SIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},wIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:SIe}))},bK=l.forwardRef(wIe),CIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"},EIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:CIe}))},yK=l.forwardRef(EIe),IIe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"},TIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:IIe}))},RIe=l.forwardRef(TIe),_Ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"outlined"},$Ie=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:_Ie}))},OIe=l.forwardRef($Ie),NIe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},kIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:NIe}))},AIe=l.forwardRef(kIe),MIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},DIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:MIe}))},xK=l.forwardRef(DIe),PIe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z"}}]},name:"truck",theme:"outlined"},LIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:PIe}))},SK=l.forwardRef(LIe),jIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"},FIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:jIe}))},BIe=l.forwardRef(FIe),zIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},HIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:zIe}))},wK=l.forwardRef(HIe),UIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},VIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:UIe}))},WIe=l.forwardRef(VIe),GIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},qIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:GIe}))},KIe=l.forwardRef(qIe),YIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},XIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:YIe}))},CK=l.forwardRef(XIe),ZIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},QIe=function(t,n){return l.createElement(Je,be({},t,{ref:n,icon:ZIe}))},b_=l.forwardRef(QIe),JIe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function AP(e){return typeof e=="string"}function EK(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,p=e.description,g=e.title,m=e.subTitle,h=e.progressDot,b=e.stepIcon,x=e.tailContent,S=e.icons,v=e.stepIndex,y=e.onStepClick,w=e.onClick,C=e.render,E=Ct(e,JIe),I=!!y&&!d,T={};I&&(T.role="button",T.tabIndex=0,T.onClick=function(D){w==null||w(D),y(v)},T.onKeyDown=function(D){var O=D.which;(O===Fe.ENTER||O===Fe.SPACE)&&y(v)});var R=function(){var O,k,N=oe("".concat(r,"-icon"),"".concat(s,"icon"),(O={},V(O,"".concat(s,"icon-").concat(c),c&&AP(c)),V(O,"".concat(s,"icon-check"),!c&&i==="finish"&&(S&&!S.finish||!S)),V(O,"".concat(s,"icon-cross"),!c&&i==="error"&&(S&&!S.error||!S)),O)),A=l.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?k=l.createElement("span",{className:"".concat(r,"-icon")},h(A,{index:u-1,status:i,title:g,description:p})):k=l.createElement("span",{className:"".concat(r,"-icon")},A):c&&!AP(c)?k=l.createElement("span",{className:"".concat(r,"-icon")},c):S&&S.finish&&i==="finish"?k=l.createElement("span",{className:"".concat(r,"-icon")},S.finish):S&&S.error&&i==="error"?k=l.createElement("span",{className:"".concat(r,"-icon")},S.error):c||i==="finish"||i==="error"?k=l.createElement("span",{className:N}):k=l.createElement("span",{className:"".concat(r,"-icon")},u),b&&(k=b({index:u-1,status:i,title:g,description:p,node:k})),k},_=i||"wait",$=oe("".concat(r,"-item"),"".concat(r,"-item-").concat(_),n,(t={},V(t,"".concat(r,"-item-custom"),c),V(t,"".concat(r,"-item-active"),o),V(t,"".concat(r,"-item-disabled"),d===!0),t)),M=X({},a),P=l.createElement("div",be({},E,{className:$,style:M}),l.createElement("div",be({onClick:w},T,{className:"".concat(r,"-item-container")}),l.createElement("div",{className:"".concat(r,"-item-tail")},x),l.createElement("div",{className:"".concat(r,"-item-icon")},R()),l.createElement("div",{className:"".concat(r,"-item-content")},l.createElement("div",{className:"".concat(r,"-item-title")},g,m&&l.createElement("div",{title:typeof m=="string"?m:void 0,className:"".concat(r,"-item-subtitle")},m)),p&&l.createElement("div",{className:"".concat(r,"-item-description")},p))));return C&&(P=C(P)||null),P}var eTe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function HN(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,p=e.labelPlacement,g=p===void 0?"horizontal":p,m=e.iconPrefix,h=m===void 0?"rc":m,b=e.status,x=b===void 0?"process":b,S=e.size,v=e.current,y=v===void 0?0:v,w=e.progressDot,C=w===void 0?!1:w,E=e.stepIcon,I=e.initial,T=I===void 0?0:I,R=e.icons,_=e.onChange,$=e.itemRender,M=e.items,P=M===void 0?[]:M,D=Ct(e,eTe),O=d==="navigation",k=d==="inline",N=k||C,A=k?"horizontal":c,L=k?void 0:S,j=N?"vertical":g,F=oe(r,"".concat(r,"-").concat(A),i,(t={},V(t,"".concat(r,"-").concat(L),L),V(t,"".concat(r,"-label-").concat(j),A==="horizontal"),V(t,"".concat(r,"-dot"),!!N),V(t,"".concat(r,"-navigation"),O),V(t,"".concat(r,"-inline"),k),t)),B=function(H){_&&y!==H&&_(H)},z=function(H,K){var Y=X({},H),ee=T+K;return x==="error"&&K===y-1&&(Y.className="".concat(r,"-next-error")),Y.status||(ee===y?Y.status=x:ee{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:G(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},nTe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},rTe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${G(o)} ${G(e.paddingXXS)} 0`,margin:`0 ${G(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${G(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${G(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},aTe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${G(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},oTe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Oo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${G(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${G(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${G(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},iTe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:s,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),p=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${G(d)} !important`,height:`${G(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${G(p)} !important`,height:`${G(p)} !important`}}}}},sTe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${G(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${G(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:G(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:G(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${G(e.calc(o).add(e.paddingXS).equal())} 0 ${G(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},lTe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},cTe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${G(e.marginXS)}`,fontSize:r,lineHeight:G(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:G(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:G(n),transform:"none"}}}}},uTe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:G(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${G(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${G(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${G(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:G(n)}}}}},dTe="wait",fTe="process",pTe="finish",gTe="error",zh=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},mTe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[a]:Object.assign({},_s(e))}},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:G(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${G(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:G(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},zh(dTe,e)),zh(fTe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),zh(pTe,e)),zh(gTe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},hTe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},vTe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),mTe(e)),hTe(e)),tTe(e)),cTe(e)),uTe(e)),nTe(e)),aTe(e)),sTe(e)),oTe(e)),lTe(e)),iTe(e)),rTe(e))}},bTe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),yTe=on("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,p=Bt(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[vTe(p)]},bTe);function xTe(e){return e.filter(t=>t)}function STe(e,t){if(e)return e;const n=_r(t).map(r=>{if(l.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return xTe(n)}var wTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:s=!0,current:c=0,children:u,style:d}=e,p=wTe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:g}=gy(s),{getPrefixCls:m,direction:h,steps:b}=l.useContext(ut),x=l.useMemo(()=>s&&g?"vertical":o,[g,o]),S=Lr(n),v=m("steps",e.prefixCls),[y,w,C]=yTe(v),E=e.type==="inline",I=m("",e.iconPrefix),T=STe(i,u),R=E?void 0:t,_=Object.assign(Object.assign({},b==null?void 0:b.style),d),$=oe(b==null?void 0:b.className,{[`${v}-rtl`]:h==="rtl",[`${v}-with-progress`]:R!==void 0},r,a,w,C),M={finish:l.createElement(df,{className:`${v}-finish-icon`}),error:l.createElement(ga,{className:`${v}-error-icon`})},P=O=>{let{node:k,status:N}=O;if(N==="process"&&R!==void 0){const A=S==="small"?32:40;return l.createElement("div",{className:`${v}-progress-icon`},l.createElement(Py,{type:"circle",percent:R,size:A,strokeWidth:4,format:()=>null}),k)}return k},D=(O,k)=>O.description?l.createElement(Ft,{title:O.description},k):k;return y(l.createElement(HN,Object.assign({icons:M},p,{style:_,current:c,size:S,items:T,itemRender:E?D:void 0,stepIcon:P,direction:x,prefixCls:v,iconPrefix:I,className:$})))};js.Step=HN.Step;var CTe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],IK=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,g=e.onClick,m=e.onChange,h=e.onKeyDown,b=Ct(e,CTe),x=fn(!1,{value:i,defaultValue:s}),S=ce(x,2),v=S[0],y=S[1];function w(T,R){var _=v;return c||(_=T,y(_),m==null||m(_,R)),_}function C(T){T.which===Fe.LEFT?w(!1,T):T.which===Fe.RIGHT&&w(!0,T),h==null||h(T)}function E(T){var R=w(!v,T);g==null||g(R,T)}var I=oe(a,o,(n={},V(n,"".concat(a,"-checked"),v),V(n,"".concat(a,"-disabled"),c),n));return l.createElement("button",be({},b,{type:"button",role:"switch","aria-checked":v,disabled:c,className:I,ref:t,onKeyDown:C,onClick:E}),u,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},d),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},p)))});IK.displayName="Switch";const ETe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=G(c(s).add(c(r).mul(2)).equal()),p=G(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:G(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${p})`,marginInlineEnd:`calc(100% - ${d} + ${p})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${p})`,marginInlineEnd:`calc(-100% + ${d} - ${p})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${G(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},ITe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},TTe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${G(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},RTe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:s}=e,c=`${t}-inner`,u=G(s(i).add(s(r).mul(2)).equal()),d=G(s(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},_Te=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},an(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:G(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ri(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},$Te=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,s=2,c=o-s*2,u=i-s*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new sn("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},OTe=on("Switch",e=>{const t=Bt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_Te(t),RTe(t),TTe(t),ITe(t),ETe(t)]},$Te);var NTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:p,defaultValue:g,onChange:m}=e,h=NTe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,x]=fn(!1,{value:u??d,defaultValue:p??g}),{getPrefixCls:S,direction:v,switch:y}=l.useContext(ut),w=l.useContext(pa),C=(a??w)||o,E=S("switch",n),I=l.createElement("div",{className:`${E}-handle`},o&&l.createElement(Qi,{className:`${E}-loading-icon`})),[T,R,_]=OTe(E),$=Lr(r),M=oe(y==null?void 0:y.className,{[`${E}-small`]:$==="small",[`${E}-loading`]:o,[`${E}-rtl`]:v==="rtl"},i,s,R,_),P=Object.assign(Object.assign({},y==null?void 0:y.style),c),D=function(){x(arguments.length<=0?void 0:arguments[0]),m==null||m.apply(void 0,arguments)};return T(l.createElement(um,{component:"Switch"},l.createElement(IK,Object.assign({},h,{checked:b,onChange:D,prefixCls:E,className:M,style:P,disabled:C,ref:t,loadingIcon:I}))))}),Xa=kTe;Xa.__ANT_SWITCH=!0;var nl={},km="rc-table-internal-hook";function UN(e){var t=l.createContext(void 0),n=function(a){var o=a.value,i=a.children,s=l.useRef(o);s.current=o;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=ce(c,1),d=u[0];return Yt(function(){Kr.unstable_batchedUpdates(function(){d.listeners.forEach(function(p){p(o)})})},[o]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function Ia(e,t){var n=qt(typeof t=="function"?t:function(p){if(t===void 0)return p;if(!Array.isArray(t))return p[t];var g={};return t.forEach(function(m){g[m]=p[m]}),g}),r=l.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=ce(c,2),d=u[1];return Yt(function(){if(!r)return;function p(g){var m=n(g);ei(s.current,m,!0)||d({})}return o.add(p),function(){o.delete(p)}},[r]),s.current}function ATe(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,o){var i=_i(a),s=function(u,d){var p=i?{ref:d}:{},g=l.useRef(0),m=l.useRef(u),h=t();return h!==null?l.createElement(a,be({},u,p)):((!o||o(m.current,u))&&(g.current+=1),m.current=u,l.createElement(e.Provider,{value:g.current},l.createElement(a,be({},u,p))))};return i?l.forwardRef(s):s}function r(a,o){var i=_i(a),s=function(u,d){var p=i?{ref:d}:{};return t(),l.createElement(a,be({},u,p))};return i?l.memo(l.forwardRef(s),o):l.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var VN=ATe(),TK=VN.makeImmutable,bf=VN.responseImmutable,MTe=VN.useImmutableMark,Ka=UN(),RK=l.createContext({renderWithProps:!1}),DTe="RC_TABLE_KEY";function PTe(e){return e==null?[]:Array.isArray(e)?e:[e]}function jy(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,s=o||PTe(i).join("-")||DTe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function y_(e){return e!=null}function LTe(e){return typeof e=="number"&&!Number.isNaN(e)}function jTe(e){return e&&mt(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function FTe(e,t,n,r,a,o){var i=l.useContext(RK),s=MTe(),c=Bl(function(){if(y_(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=xo(e,u),p=d,g=void 0;if(a){var m=a(d,e,n);jTe(m)?(p=m.children,g=m.props,i.renderWithProps=!0):p=m}return[p,g]},[s,e,r,t,a,n],function(u,d){if(o){var p=ce(u,2),g=p[1],m=ce(d,2),h=m[1];return o(h,g)}return i.renderWithProps?!0:!ei(u,d,!0)});return c}function BTe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function zTe(e,t){return Ia(Ka,function(n){var r=BTe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var HTe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function UTe(e){var t,n,r,a,o,i,s,c,u=e.component,d=e.children,p=e.ellipsis,g=e.scope,m=e.prefixCls,h=e.className,b=e.align,x=e.record,S=e.render,v=e.dataIndex,y=e.renderIndex,w=e.shouldCellUpdate,C=e.index,E=e.rowType,I=e.colSpan,T=e.rowSpan,R=e.fixLeft,_=e.fixRight,$=e.firstFixLeft,M=e.lastFixLeft,P=e.firstFixRight,D=e.lastFixRight,O=e.appendNode,k=e.additionalProps,N=k===void 0?{}:k,A=e.isSticky,L="".concat(m,"-cell"),j=Ia(Ka,["supportSticky","allColumnsFixedLeft","rowHoverable"]),F=j.supportSticky,B=j.allColumnsFixedLeft,z=j.rowHoverable,U=FTe(x,v,y,d,S,w),H=ce(U,2),K=H[0],Y=H[1],ee={},ae=typeof R=="number"&&F,W=typeof _=="number"&&F;ae&&(ee.position="sticky",ee.left=R),W&&(ee.position="sticky",ee.right=_);var q=(t=(n=(r=Y==null?void 0:Y.colSpan)!==null&&r!==void 0?r:N.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,Z=(a=(o=(i=Y==null?void 0:Y.rowSpan)!==null&&i!==void 0?i:N.rowSpan)!==null&&o!==void 0?o:T)!==null&&a!==void 0?a:1,Q=zTe(C,Z),J=ce(Q,2),ie=J[0],le=J[1],fe=qt(function(me){var xe;x&&le(C,C+Z-1),N==null||(xe=N.onMouseEnter)===null||xe===void 0||xe.call(N,me)}),te=qt(function(me){var xe;x&&le(-1,-1),N==null||(xe=N.onMouseLeave)===null||xe===void 0||xe.call(N,me)});if(q===0||Z===0)return null;var se=(s=N.title)!==null&&s!==void 0?s:HTe({rowType:E,ellipsis:p,children:K}),pe=oe(L,h,(c={},V(V(V(V(V(V(V(V(V(V(c,"".concat(L,"-fix-left"),ae&&F),"".concat(L,"-fix-left-first"),$&&F),"".concat(L,"-fix-left-last"),M&&F),"".concat(L,"-fix-left-all"),M&&B&&F),"".concat(L,"-fix-right"),W&&F),"".concat(L,"-fix-right-first"),P&&F),"".concat(L,"-fix-right-last"),D&&F),"".concat(L,"-ellipsis"),p),"".concat(L,"-with-append"),O),"".concat(L,"-fix-sticky"),(ae||W)&&A&&F),V(c,"".concat(L,"-row-hover"),!Y&&ie)),N.className,Y==null?void 0:Y.className),he={};b&&(he.textAlign=b);var re=X(X(X(X({},ee),N.style),he),Y==null?void 0:Y.style),ue=K;return mt(ue)==="object"&&!Array.isArray(ue)&&!l.isValidElement(ue)&&(ue=null),p&&(M||P)&&(ue=l.createElement("span",{className:"".concat(L,"-content")},ue)),l.createElement(u,be({},Y,N,{className:pe,style:re,title:se,scope:g,onMouseEnter:z?fe:void 0,onMouseLeave:z?te:void 0,colSpan:q!==1?q:null,rowSpan:Z!==1?Z:null}),O,ue)}const yf=l.memo(UTe);function WN(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},s,c;o.fixed==="left"?s=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,p=!1,g=!1,m=n[t+1],h=n[e-1],b=m&&!m.fixed||h&&!h.fixed||n.every(function(w){return w.fixed==="left"});if(a==="rtl"){if(s!==void 0){var x=h&&h.fixed==="left";g=!x&&b}else if(c!==void 0){var S=m&&m.fixed==="right";p=!S&&b}}else if(s!==void 0){var v=m&&m.fixed==="left";u=!v&&b}else if(c!==void 0){var y=h&&h.fixed==="right";d=!y&&b}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:p,firstFixLeft:g,isSticky:r.isSticky}}var _K=l.createContext({});function VTe(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,s=e.align,c=Ia(Ka,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,p=l.useContext(_K),g=p.scrollColumnIndex,m=p.stickyOffsets,h=p.flattenColumns,b=n+o-1,x=b+1===g?o+1:o,S=WN(n,n+x-1,h,m,d);return l.createElement(yf,be({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:x,rowSpan:i,render:function(){return r}},S))}var WTe=["children"];function GTe(e){var t=e.children,n=Ct(e,WTe);return l.createElement("tr",n,t)}function Fy(e){var t=e.children;return t}Fy.Row=GTe;Fy.Cell=VTe;function qTe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=Ia(Ka,"prefixCls"),o=r.length-1,i=r[o],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return l.createElement(_K.Provider,{value:s},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Hh=bf(qTe);var $K=Fy;function KTe(e){return null}function YTe(e){return null}function OK(e,t,n,r,a,o,i){e.push({record:t,indent:n,index:i});var s=o(t),c=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?$-1:0),P=1;P<$;P++)M[P-1]=arguments[P];C==null||C.apply(void 0,[_].concat(M))},I;typeof m=="string"?I=m:typeof m=="function"&&(I=m(e,n,r));var T=jy(o);return X(X({},a),{},{columnsKey:T,nestExpandable:h,expanded:S,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:b,expandable:x,rowProps:X(X({},w),{},{className:oe(I,w==null?void 0:w.className),onClick:E})})}function AK(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=Ia(Ka,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,p=u.fixHeader,g=u.fixColumn,m=u.componentWidth,h=u.horizonScroll,b=n;return(c?h&&m:g)&&(b=l.createElement("div",{style:{width:m-(p&&!c?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),l.createElement(r,{className:o,style:{display:i?null:"none"}},l.createElement(yf,{component:a,prefixCls:t,colSpan:s},b))}function MK(e,t,n,r,a){var o=e.record,i=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,p=e.indentSize,g=e.expandIcon,m=e.expanded,h=e.hasNestChildren,b=e.onTriggerExpand,x=s[n],S=c[n],v;n===(u||0)&&d&&(v=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(i,"-row-indent indent-level-").concat(r)}),g({prefixCls:i,expanded:m,expandable:h,record:o,onExpand:b})));var y;return t.onCell&&(y=t.onCell(o,a)),{key:x,fixedInfo:S,appendCellNode:v,additionalCellProps:y||{}}}function XTe(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,i=e.rowKey,s=e.indent,c=s===void 0?0:s,u=e.rowComponent,d=e.cellComponent,p=e.scopeCellComponent,g=kK(r,i,a,c),m=g.prefixCls,h=g.flattenColumns,b=g.expandedRowClassName,x=g.expandedRowRender,S=g.rowProps,v=g.expanded,y=g.rowSupportExpand,w=l.useRef(!1);w.current||(w.current=v);var C=b&&b(r,a,c),E=l.createElement(u,be({},S,{"data-row-key":i,className:oe(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(c),S==null?void 0:S.className,c>=1?C:""),style:X(X({},n),S==null?void 0:S.style)}),h.map(function(R,_){var $=R.render,M=R.dataIndex,P=R.className,D=MK(g,R,_,c,a),O=D.key,k=D.fixedInfo,N=D.appendCellNode,A=D.additionalCellProps;return l.createElement(yf,be({className:P,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?p:d,prefixCls:m,key:O,record:r,index:a,renderIndex:o,dataIndex:M,render:$,shouldCellUpdate:R.shouldCellUpdate},k,{appendNode:N,additionalProps:A}))})),I;if(y&&(w.current||v)){var T=x(r,a,c+1,v);I=l.createElement(AK,{expanded:v,className:oe("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(c+1),C),prefixCls:m,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},T)}return l.createElement(l.Fragment,null,E,I)}const ZTe=bf(XTe);function QTe(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return l.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(wa,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function JTe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},l.createElement(wa.Collection,{onBatchResize:function(o){o.forEach(function(i){var s=i.data,c=i.size;r(s,c.offsetWidth)})}},n.map(function(a){return l.createElement(QTe,{key:a,columnKey:a,onColumnResize:r})})))}function eRe(e){var t=e.data,n=e.measureColumnWidth,r=Ia(Ka,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,p=r.emptyNode,g=NK(t,d,u,c),m=l.useRef({renderWithProps:!1}),h=o(["body","wrapper"],"tbody"),b=o(["body","row"],"tr"),x=o(["body","cell"],"td"),S=o(["body","cell"],"th"),v;t.length?v=g.map(function(w,C){var E=w.record,I=w.indent,T=w.index,R=c(E,C);return l.createElement(ZTe,{key:R,rowKey:R,record:E,index:C,renderIndex:T,rowComponent:b,cellComponent:x,scopeCellComponent:S,getRowKey:c,indent:I})}):v=l.createElement(AK,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:b,cellComponent:x,colSpan:s.length,isEmpty:!0},p);var y=jy(s);return l.createElement(RK.Provider,{value:m.current},l.createElement(h,{className:"".concat(a,"-tbody")},n&&l.createElement(JTe,{prefixCls:a,columnsKey:y,onColumnResize:i}),v))}const tRe=bf(eRe);var nRe=["expandable"],zp="RC_TABLE_INTERNAL_COL_DEFINE";function rRe(e){var t=e.expandable,n=Ct(e,nRe),r;return"expandable"in e?r=X(X({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var aRe=["columnType"];function DK(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=Ia(Ka,["tableLayout"]),o=a.tableLayout,i=[],s=r||n.length,c=!1,u=s-1;u>=0;u-=1){var d=t[u],p=n&&n[u],g=void 0,m=void 0;if(p&&(g=p[zp],o==="auto"&&(m=p.minWidth)),d||m||g||c){var h=g||{};h.columnType;var b=Ct(h,aRe);i.unshift(l.createElement("col",be({key:u,style:{width:d,minWidth:m}},b))),c=!0}}return l.createElement("colgroup",null,i)}var oRe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function iRe(e,t){return l.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:x.ellipsis,align:x.align,component:i,prefixCls:d,key:m[b]},S,{additionalProps:v,rowType:"header"}))}))};function cRe(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(p){var g={key:p.key,className:p.className||"",children:p.title,column:p,colStart:u},m=1,h=p.children;return h&&h.length>0&&(m=n(h,u,c+1).reduce(function(b,x){return b+x},0),g.hasSubColumns=!0),"colSpan"in p&&(m=p.colSpan),"rowSpan"in p&&(g.rowSpan=p.rowSpan),g.colSpan=m,g.colEnd=g.colStart+m-1,t[c].push(g),u+=m,m});return d}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function dRe(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(g){var m=PP(t,g.width);m?r+=m:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),s=a,c=i/a,u=0,d=e.map(function(g){var m=X({},g),h=PP(t,m.width);if(h)m.width=h;else{var b=Math.floor(c);m.width=s===1?i:b,i-=b,s-=1}return u+=m.width,m});if(u0?X(X({},t),{},{children:PK(n)}):t})}function x_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&mt(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,s="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(De(n),De(x_(c,s).map(function(u){return X({fixed:i},u)}))):[].concat(De(n),[X(X({key:s},r),{},{fixed:i})])},[])}function gRe(e){return e.map(function(t){var n=t.fixed,r=Ct(t,pRe),a=n;return n==="left"?a="right":n==="right"&&(a="left"),X({fixed:a},r)})}function mRe(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,p=e.rowExpandable,g=e.expandIconColumnIndex,m=e.direction,h=e.expandRowByClick,b=e.columnWidth,x=e.fixed,S=e.scrollWidth,v=e.clientWidth,y=l.useMemo(function(){var M=r||GN(a)||[];return PK(M.slice())},[r,a]),w=l.useMemo(function(){if(o){var M=y.slice();if(!M.includes(nl)){var P=g||0;P>=0&&M.splice(P,0,nl)}var D=M.indexOf(nl);M=M.filter(function(A,L){return A!==nl||L===D});var O=y[D],k;(x==="left"||x)&&!g?k="left":(x==="right"||x)&&g===y.length?k="right":k=O?O.fixed:null;var N=V(V(V(V(V(V({},zp,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",k),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(L,j,F){var B=c(j,F),z=i.has(B),U=p?p(j):!0,H=d({prefixCls:n,expanded:z,expandable:U,record:j,onExpand:u});return h?l.createElement("span",{onClick:function(Y){return Y.stopPropagation()}},H):H});return M.map(function(A){return A===nl?N:A})}return y.filter(function(A){return A!==nl})},[o,y,c,i,d,m]),C=l.useMemo(function(){var M=w;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,w,m]),E=l.useMemo(function(){return m==="rtl"?gRe(x_(C)):x_(C)},[C,m,S]),I=l.useMemo(function(){for(var M=-1,P=E.length-1;P>=0;P-=1){var D=E[P].fixed;if(D==="left"||D===!0){M=P;break}}if(M>=0)for(var O=0;O<=M;O+=1){var k=E[O].fixed;if(k!=="left"&&k!==!0)return!0}var N=E.findIndex(function(j){var F=j.fixed;return F==="right"});if(N>=0)for(var A=N;A=p&&(A=p-g),i({scrollLeft:A/p*(d+2)}),v.current.x=D.pageX},$=function(){I.current=Ut(function(){if(o.current){var D=p_(o.current).top,O=D+o.current.offsetHeight,k=c===window?document.documentElement.scrollTop+window.innerHeight:p_(c).top+c.clientHeight;O-bM()<=k||D>=k-s?S(function(N){return X(X({},N),{},{isHiddenScrollBar:!0})}):S(function(N){return X(X({},N),{},{isHiddenScrollBar:!1})})}})},M=function(D){S(function(O){return X(X({},O),{},{scrollLeft:D/d*p||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:M,checkScrollBarVisible:$}}),l.useEffect(function(){var P=qi(document.body,"mouseup",T,!1),D=qi(document.body,"mousemove",_,!1);return $(),function(){P.remove(),D.remove()}},[g,C]),l.useEffect(function(){var P=qi(c,"scroll",$,!1),D=qi(window,"resize",$,!1);return function(){P.remove(),D.remove()}},[c]),l.useEffect(function(){x.isHiddenScrollBar||S(function(P){var D=o.current;return D?X(X({},P),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):P})},[x.isHiddenScrollBar]),d<=p||!g||x.isHiddenScrollBar?null:l.createElement("div",{style:{height:bM(),width:p,bottom:s},className:"".concat(u,"-sticky-scroll")},l.createElement("div",{onMouseDown:R,ref:m,className:oe("".concat(u,"-sticky-scroll-bar"),V({},"".concat(u,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))};const IRe=l.forwardRef(ERe);var jK="rc-table",TRe=[],RRe={};function _Re(){return"No Data"}function $Re(e,t){var n=X({rowKey:"key",prefixCls:jK,emptyText:_Re},e),r=n.prefixCls,a=n.className,o=n.rowClassName,i=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,p=n.direction,g=n.title,m=n.footer,h=n.summary,b=n.caption,x=n.id,S=n.showHeader,v=n.components,y=n.emptyText,w=n.onRow,C=n.onHeaderRow,E=n.onScroll,I=n.internalHooks,T=n.transformColumns,R=n.internalRefs,_=n.tailor,$=n.getContainerWidth,M=n.sticky,P=n.rowHoverable,D=P===void 0?!0:P,O=s||TRe,k=!!O.length,N=I===km,A=l.useCallback(function(pt,St){return xo(v,pt)||St},[v]),L=l.useMemo(function(){return typeof c=="function"?c:function(pt){var St=pt&&pt[c];return St}},[c]),j=A(["body"]),F=SRe(),B=ce(F,3),z=B[0],U=B[1],H=B[2],K=bRe(n,O,L),Y=ce(K,6),ee=Y[0],ae=Y[1],W=Y[2],q=Y[3],Z=Y[4],Q=Y[5],J=u==null?void 0:u.x,ie=l.useState(0),le=ce(ie,2),fe=le[0],te=le[1],se=mRe(X(X(X({},n),ee),{},{expandable:!!ee.expandedRowRender,columnTitle:ee.columnTitle,expandedKeys:W,getRowKey:L,onTriggerExpand:Q,expandIcon:q,expandIconColumnIndex:ee.expandIconColumnIndex,direction:p,scrollWidth:N&&_&&typeof J=="number"?J:null,clientWidth:fe}),N?T:null),pe=ce(se,4),he=pe[0],re=pe[1],ue=pe[2],me=pe[3],xe=ue??J,Ee=l.useMemo(function(){return{columns:he,flattenColumns:re}},[he,re]),ke=l.useRef(),$e=l.useRef(),Le=l.useRef(),je=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:ke.current,scrollTo:function(St){var ln;if(Le.current instanceof HTMLElement){var Gn=St.index,tr=St.top,fr=St.key;if(LTe(tr)){var va;(va=Le.current)===null||va===void 0||va.scrollTo({top:tr})}else{var Pa,La=fr??L(O[Gn]);(Pa=Le.current.querySelector('[data-row-key="'.concat(La,'"]')))===null||Pa===void 0||Pa.scrollIntoView()}}else(ln=Le.current)!==null&&ln!==void 0&&ln.scrollTo&&Le.current.scrollTo(St)}}});var He=l.useRef(),Be=l.useState(!1),Pe=ce(Be,2),Se=Pe[0],Ne=Pe[1],Te=l.useState(!1),we=ce(Te,2),Me=we[0],Ge=we[1],st=LK(new Map),ge=ce(st,2),ne=ge[0],ve=ge[1],_e=jy(re),ze=_e.map(function(pt){return ne.get(pt)}),Ue=l.useMemo(function(){return ze},[ze.join("_")]),Ae=CRe(Ue,re,p),Oe=u&&y_(u.y),Re=u&&y_(xe)||!!ee.fixed,at=Re&&re.some(function(pt){var St=pt.fixed;return St}),Ye=l.useRef(),We=wRe(M,r),qe=We.isSticky,Qe=We.offsetHeader,ot=We.offsetSummary,wt=We.offsetScroll,kt=We.stickyClassName,xt=We.container,nt=l.useMemo(function(){return h==null?void 0:h(O)},[h,O]),rt=(Oe||qe)&&l.isValidElement(nt)&&nt.type===Fy&&nt.props.fixed,bt,Ot,ht;Oe&&(Ot={overflowY:k?"scroll":"auto",maxHeight:u.y}),Re&&(bt={overflowX:"auto"},Oe||(Ot={overflowY:"hidden"}),ht={width:xe===!0?"auto":xe,minWidth:"100%"});var lt=l.useCallback(function(pt,St){sf(ke.current)&&ve(function(ln){if(ln.get(pt)!==St){var Gn=new Map(ln);return Gn.set(pt,St),Gn}return ln})},[]),Et=xRe(),Ze=ce(Et,2),ct=Ze[0],ft=Ze[1];function et(pt,St){St&&(typeof St=="function"?St(pt):St.scrollLeft!==pt&&(St.scrollLeft=pt,St.scrollLeft!==pt&&setTimeout(function(){St.scrollLeft=pt},0)))}var Xe=qt(function(pt){var St=pt.currentTarget,ln=pt.scrollLeft,Gn=p==="rtl",tr=typeof ln=="number"?ln:St.scrollLeft,fr=St||RRe;if(!ft()||ft()===fr){var va;ct(fr),et(tr,$e.current),et(tr,Le.current),et(tr,He.current),et(tr,(va=Ye.current)===null||va===void 0?void 0:va.setScrollLeft)}var Pa=St||$e.current;if(Pa){var La=typeof xe=="number"?xe:Pa.scrollWidth,Do=Pa.clientWidth;if(La===Do){Ne(!1),Ge(!1);return}Gn?(Ne(-tr0)):(Ne(tr>0),Ge(tr1?x-D:0,k=X(X(X({},T),u),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:O,pointerEvents:"auto"}),N=l.useMemo(function(){return p?M<=1:_===0||M===0||M>1},[M,_,p]);N?k.visibility="hidden":p&&(k.height=g==null?void 0:g(M));var A=N?function(){return null}:m,L={};return(M===0||_===0)&&(L.rowSpan=1,L.colSpan=1),l.createElement(yf,be({className:oe(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:w,record:c,index:o,renderIndex:s,dataIndex:h,render:A,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:E,additionalProps:X(X({},I),{},{style:k},L)}))}var ARe=["data","index","className","rowKey","style","extra","getHeight"],MRe=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=Ct(e,ARe),d=n.record,p=n.indent,g=n.index,m=Ia(Ka,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=m.scrollX,b=m.flattenColumns,x=m.prefixCls,S=m.fixColumn,v=m.componentWidth,y=Ia(qN,["getComponent"]),w=y.getComponent,C=kK(d,o,r,p),E=w(["body","row"],"div"),I=w(["body","cell"],"div"),T=C.rowSupportExpand,R=C.expanded,_=C.rowProps,$=C.expandedRowRender,M=C.expandedRowClassName,P;if(T&&R){var D=$(d,r,p+1,R),O=M==null?void 0:M(d,r,p),k={};S&&(k={style:V({},"--virtual-width","".concat(v,"px"))});var N="".concat(x,"-expanded-row-cell");P=l.createElement(E,{className:oe("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(p+1),O)},l.createElement(yf,{component:I,prefixCls:x,className:oe(N,V({},"".concat(N,"-fixed"),S)),additionalProps:k},D))}var A=X(X({},i),{},{width:h});s&&(A.position="absolute",A.pointerEvents="none");var L=l.createElement(E,be({},_,u,{"data-row-key":o,ref:T?null:t,className:oe(a,"".concat(x,"-row"),_==null?void 0:_.className,V({},"".concat(x,"-row-extra"),s)),style:X(X({},A),_==null?void 0:_.style)}),b.map(function(j,F){return l.createElement(kRe,{key:F,component:I,rowInfo:C,column:j,colIndex:F,indent:p,index:r,renderIndex:g,record:d,inverse:s,getHeight:c})}));return T?l.createElement("div",{ref:t},L,P):L}),FP=bf(MRe),DRe=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=Ia(Ka,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX"]),o=a.flattenColumns,i=a.onColumnResize,s=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,p=a.scrollX,g=Ia(qN),m=g.sticky,h=g.scrollY,b=g.listItemHeight,x=g.getComponent,S=g.onScroll,v=l.useRef(),y=NK(n,d,c,s),w=l.useMemo(function(){var M=0;return o.map(function(P){var D=P.width,O=P.key;return M+=D,[O,D,M]})},[o]),C=l.useMemo(function(){return w.map(function(M){return M[2]})},[w]);l.useEffect(function(){w.forEach(function(M){var P=ce(M,2),D=P[0],O=P[1];i(D,O)})},[w]),l.useImperativeHandle(t,function(){var M,P={scrollTo:function(O){var k;(k=v.current)===null||k===void 0||k.scrollTo(O)},nativeElement:(M=v.current)===null||M===void 0?void 0:M.nativeElement};return Object.defineProperty(P,"scrollLeft",{get:function(){var O;return((O=v.current)===null||O===void 0?void 0:O.getScrollInfo().x)||0},set:function(O){var k;(k=v.current)===null||k===void 0||k.scrollTo({left:O})}}),P});var E=function(P,D){var O,k=(O=y[D])===null||O===void 0?void 0:O.record,N=P.onCell;if(N){var A,L=N(k,D);return(A=L==null?void 0:L.rowSpan)!==null&&A!==void 0?A:1}return 1},I=function(P){var D=P.start,O=P.end,k=P.getSize,N=P.offsetY;if(O<0)return null;for(var A=o.filter(function(W){return E(W,D)===0}),L=D,j=function(q){if(A=A.filter(function(Z){return E(Z,q)===0}),!A.length)return L=q,1},F=D;F>=0&&!j(F);F-=1);for(var B=o.filter(function(W){return E(W,O)!==1}),z=O,U=function(q){if(B=B.filter(function(Z){return E(Z,q)!==1}),!B.length)return z=Math.max(q-1,O),1},H=O;H1})&&K.push(q)},ee=L;ee<=z;ee+=1)Y(ee);var ae=K.map(function(W){var q=y[W],Z=s(q.record,W),Q=function(le){var fe=W+le-1,te=s(y[fe].record,fe),se=k(Z,te);return se.bottom-se.top},J=k(Z);return l.createElement(FP,{key:W,data:q,rowKey:Z,index:W,style:{top:-N+J.top},extra:!0,getHeight:Q})});return ae},T=l.useMemo(function(){return{columnsOffset:C}},[C]),R="".concat(u,"-tbody"),_=x(["body","wrapper"]),$={};return m&&($.position="sticky",$.bottom=0,mt(m)==="object"&&m.offsetScroll&&($.bottom=m.offsetScroll)),l.createElement(BK.Provider,{value:T},l.createElement(dy,{fullHeight:!1,ref:v,prefixCls:"".concat(R,"-virtual"),styles:{horizontalScrollBar:$},className:R,height:h,itemHeight:b||24,data:y,itemKey:function(P){return s(P.record)},component:_,scrollWidth:p,onVirtualScroll:function(P){var D,O=P.x;r({currentTarget:(D=v.current)===null||D===void 0?void 0:D.nativeElement,scrollLeft:O})},onScroll:S,extraRender:I},function(M,P,D){var O=s(M.record,P);return l.createElement(FP,{data:M,rowKey:O,index:P,style:D.style})}))}),PRe=bf(DRe),LRe=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(PRe,{ref:r,data:t,onScroll:a})};function jRe(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,i=e.prefixCls,s=i===void 0?jK:i,c=e.className,u=e.listItemHeight,d=e.components,p=e.onScroll,g=a||{},m=g.x,h=g.y;typeof m!="number"&&(m=1),typeof h!="number"&&(h=500);var b=qt(function(v,y){return xo(d,v)||y}),x=qt(p),S=l.useMemo(function(){return{sticky:o,scrollY:h,listItemHeight:u,getComponent:b,onScroll:x}},[o,h,u,b,x]);return l.createElement(qN.Provider,{value:S},l.createElement(xf,be({},e,{className:oe(c,"".concat(s,"-virtual")),scroll:X(X({},a),{},{x:m}),components:X(X({},d),{},{body:n!=null&&n.length?LRe:void 0}),columns:r,internalHooks:km,tailor:!0,ref:t})))}var FRe=l.forwardRef(jRe);function zK(e){return TK(FRe,e)}zK();const BRe=e=>null,zRe=e=>null;var KN=l.createContext(null),HRe=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function cs(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function YN(e){return e.split("-")}function qRe(e,t){var n=[],r=Ja(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var s=i.key,c=i.children;n.push(s),a(c)})}return a(r.children),n}function KRe(e){if(e.parent){var t=YN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function YRe(e){var t=YN(e.pos);return Number(t[t.length-1])===0}function HP(e,t,n,r,a,o,i,s,c,u){var d,p=e.clientX,g=e.clientY,m=e.target.getBoundingClientRect(),h=m.top,b=m.height,x=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-p),S=(x-12)/r,v=c.filter(function(k){var N;return(N=s[k])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),y=Ja(s,n.props.eventKey);if(g-1.5?o({dragNode:P,dropNode:D,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:D,dropPosition:0})?_=0:o({dragNode:P,dropNode:D,dropPosition:1})?_=1:O=!1:o({dragNode:P,dropNode:D,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:$,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:R,dropContainerKey:_===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:O}}function UP(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function XS(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return $n(!1,"`checkedKeys` is not an array or an object"),null;return t}function S_(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Ja(t,a);if(o){n.add(a);var i=o.parent,s=o.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),De(n)}function XRe(e){const[t,n]=l.useState(null);return[l.useCallback((o,i,s)=>{const c=t??o,u=Math.min(c||0,o),d=Math.max(c||0,o),p=i.slice(u,d+1).map(h=>e(h)),g=p.some(h=>!s.has(h)),m=[];return p.forEach(h=>{g?(s.has(h)||m.push(h),s.add(h)):(s.delete(h),m.push(h))}),n(g?d:null),m},[t]),o=>{n(o)}]}const Qs={},w_="SELECT_ALL",C_="SELECT_INVERT",E_="SELECT_NONE",VP=[],HK=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(De(n),De(HK(e,r[e]))))}),n},ZRe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:i,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:p,columnWidth:g,type:m,selections:h,fixed:b,renderCell:x,hideSelectAll:S,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:E,getRowKey:I,expandType:T,childrenColumnName:R,locale:_,getPopupContainer:$}=e,M=zl(),[P,D]=XRe(q=>q),[O,k]=fn(r||a||VP,{value:r}),N=l.useRef(new Map),A=l.useCallback(q=>{if(n){const Z=new Map;q.forEach(Q=>{let J=E(Q);!J&&N.current.has(Q)&&(J=N.current.get(Q)),Z.set(Q,J)}),N.current=Z}},[E,n]);l.useEffect(()=>{A(O)},[O]);const L=l.useMemo(()=>HK(R,C),[R,C]),{keyEntities:j}=l.useMemo(()=>{if(v)return{keyEntities:null};let q=w;if(n){const Z=new Set(L.map((J,ie)=>I(J,ie))),Q=Array.from(N.current).reduce((J,ie)=>{let[le,fe]=ie;return Z.has(le)?J:J.concat(fe)},[]);q=[].concat(De(q),De(Q))}return Oy(q,{externalGetKey:I,childrenPropName:R})},[w,I,v,R,n,L]),F=l.useMemo(()=>{const q=new Map;return L.forEach((Z,Q)=>{const J=I(Z,Q),ie=(o?o(Z):null)||{};q.set(J,ie)}),q},[L,I,o]),B=l.useCallback(q=>{var Z;return!!(!((Z=F.get(I(q)))===null||Z===void 0)&&Z.disabled)},[F,I]),[z,U]=l.useMemo(()=>{if(v)return[O||[],[]];const{checkedKeys:q,halfCheckedKeys:Z}=ws(O,!0,j,B);return[q||[],Z]},[O,v,j,B]),H=l.useMemo(()=>{const q=m==="radio"?z.slice(0,1):z;return new Set(q)},[z,m]),K=l.useMemo(()=>m==="radio"?new Set:new Set(U),[U,m]);l.useEffect(()=>{t||k(VP)},[!!t]);const Y=l.useCallback((q,Z)=>{let Q,J;A(q),n?(Q=q,J=q.map(ie=>N.current.get(ie))):(Q=[],J=[],q.forEach(ie=>{const le=E(ie);le!==void 0&&(Q.push(ie),J.push(le))})),k(Q),i==null||i(Q,J,{type:Z})},[k,E,i,n]),ee=l.useCallback((q,Z,Q,J)=>{if(s){const ie=Q.map(le=>E(le));s(E(q),Z,ie,J)}Y(Q,"single")},[s,E,Y]),ae=l.useMemo(()=>!h||S?null:(h===!0?[w_,C_,E_]:h).map(Z=>Z===w_?{key:"all",text:_.selectionAll,onSelect(){Y(w.map((Q,J)=>I(Q,J)).filter(Q=>{const J=F.get(Q);return!(J!=null&&J.disabled)||H.has(Q)}),"all")}}:Z===C_?{key:"invert",text:_.selectInvert,onSelect(){const Q=new Set(H);C.forEach((ie,le)=>{const fe=I(ie,le),te=F.get(fe);te!=null&&te.disabled||(Q.has(fe)?Q.delete(fe):Q.add(fe))});const J=Array.from(Q);u&&(M.deprecated(!1,"onSelectInvert","onChange"),u(J)),Y(J,"invert")}}:Z===E_?{key:"none",text:_.selectNone,onSelect(){d==null||d(),Y(Array.from(H).filter(Q=>{const J=F.get(Q);return J==null?void 0:J.disabled}),"none")}}:Z).map(Z=>Object.assign(Object.assign({},Z),{onSelect:function(){for(var Q,J,ie=arguments.length,le=new Array(ie),fe=0;fe{var Z;if(!t)return q.filter(je=>je!==Qs);let Q=De(q);const J=new Set(H),ie=L.map(I).filter(je=>!F.get(je).disabled),le=ie.every(je=>J.has(je)),fe=ie.some(je=>J.has(je)),te=()=>{const je=[];le?ie.forEach(Be=>{J.delete(Be),je.push(Be)}):ie.forEach(Be=>{J.has(Be)||(J.add(Be),je.push(Be))});const He=Array.from(J);c==null||c(!le,He.map(Be=>E(Be)),je.map(Be=>E(Be))),Y(He,"all"),D(null)};let se,pe;if(m!=="radio"){let je;if(ae){const Ne={getPopupContainer:$,items:ae.map((Te,we)=>{const{key:Me,text:Ge,onSelect:st}=Te;return{key:Me??we,onClick:()=>{st==null||st(ie)},label:Ge}})};je=l.createElement("div",{className:`${y}-selection-extra`},l.createElement(Ay,{menu:Ne,getPopupContainer:$},l.createElement("span",null,l.createElement(py,null))))}const He=L.map((Ne,Te)=>{const we=I(Ne,Te),Me=F.get(we)||{};return Object.assign({checked:J.has(we)},Me)}).filter(Ne=>{let{disabled:Te}=Ne;return Te}),Be=!!He.length&&He.length===L.length,Pe=Be&&He.every(Ne=>{let{checked:Te}=Ne;return Te}),Se=Be&&He.some(Ne=>{let{checked:Te}=Ne;return Te});pe=l.createElement(ts,{checked:Be?Pe:!!L.length&&le,indeterminate:Be?!Pe&&Se:!le&&fe,onChange:te,disabled:L.length===0||Be,"aria-label":je?"Custom selection":"Select all",skipGroup:!0}),se=!S&&l.createElement("div",{className:`${y}-selection`},pe,je)}let he;m==="radio"?he=(je,He,Be)=>{const Pe=I(He,Be),Se=J.has(Pe);return{node:l.createElement(Co,Object.assign({},F.get(Pe),{checked:Se,onClick:Ne=>Ne.stopPropagation(),onChange:Ne=>{J.has(Pe)||ee(Pe,!0,[Pe],Ne.nativeEvent)}})),checked:Se}}:he=(je,He,Be)=>{var Pe;const Se=I(He,Be),Ne=J.has(Se),Te=K.has(Se),we=F.get(Se);let Me;return T==="nest"?Me=Te:Me=(Pe=we==null?void 0:we.indeterminate)!==null&&Pe!==void 0?Pe:Te,{node:l.createElement(ts,Object.assign({},we,{indeterminate:Me,checked:Ne,skipGroup:!0,onClick:Ge=>Ge.stopPropagation(),onChange:Ge=>{let{nativeEvent:st}=Ge;const{shiftKey:ge}=st,ne=ie.findIndex(_e=>_e===Se),ve=z.some(_e=>ie.includes(_e));if(ge&&v&&ve){const _e=P(ne,ie,J),ze=Array.from(J);p==null||p(!Ne,ze.map(Ue=>E(Ue)),_e.map(Ue=>E(Ue))),Y(ze,"multiple")}else{const _e=z;if(v){const ze=Ne?Bi(_e,Se):cs(_e,Se);ee(Se,!Ne,ze,st)}else{const ze=ws([].concat(De(_e),[Se]),!0,j,B),{checkedKeys:Ue,halfCheckedKeys:Ae}=ze;let Oe=Ue;if(Ne){const Re=new Set(Ue);Re.delete(Se),Oe=ws(Array.from(Re),{checked:!1,halfCheckedKeys:Ae},j,B).checkedKeys}ee(Se,!Ne,Oe,st)}}D(Ne?null:ne)}})),checked:Ne}};const re=(je,He,Be)=>{const{node:Pe,checked:Se}=he(je,He,Be);return x?x(Se,He,Be,Pe):Pe};if(!Q.includes(Qs))if(Q.findIndex(je=>{var He;return((He=je[zp])===null||He===void 0?void 0:He.columnType)==="EXPAND_COLUMN"})===0){const[je,...He]=Q;Q=[je,Qs].concat(De(He))}else Q=[Qs].concat(De(Q));const ue=Q.indexOf(Qs);Q=Q.filter((je,He)=>je!==Qs||He===ue);const me=Q[ue-1],xe=Q[ue+1];let Ee=b;Ee===void 0&&((xe==null?void 0:xe.fixed)!==void 0?Ee=xe.fixed:(me==null?void 0:me.fixed)!==void 0&&(Ee=me.fixed)),Ee&&me&&((Z=me[zp])===null||Z===void 0?void 0:Z.columnType)==="EXPAND_COLUMN"&&me.fixed===void 0&&(me.fixed=Ee);const ke=oe(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&m==="checkbox"}),$e=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:se,Le={fixed:Ee,width:g,className:`${y}-selection-column`,title:$e(),render:re,onCell:t.onCell,[zp]:{className:ke}};return Q.map(je=>je===Qs?Le:je)},[I,L,t,z,H,K,g,ae,T,F,p,ee,B]),H]};function QRe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function JRe(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):QRe(r,n)})}function e_e(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:oe(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&o,[`${s}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function t_e(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),s=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);o=r-s-c}return o}}const Dl=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Sf(e,t){return t?`${t}-${e}`:`${e}`}const By=(e,t)=>typeof e=="function"?e(t):e,n_e=(e,t)=>{const n=By(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function r_e(e){const t=l.useRef(e),n=QO();return[()=>t.current,r=>{t.current=r,n()}]}function a_e(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return l.createElement("div",{style:a})}function UK(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function o_e(e,t){var n=l.useState(!1),r=ce(n,2),a=r[0],o=r[1];Yt(function(){if(a)return e(),function(){t()}},[a]),Yt(function(){return o(!0),function(){o(!1)}},[])}var i_e=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],VK=function(t,n){var r=t.className,a=t.style,o=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,p=t.treeNodeRequiredProps,g=Ct(t,i_e),m=l.useState(!0),h=ce(m,2),b=h[0],x=h[1],S=l.useContext(KN),v=S.prefixCls,y=i&&s!=="hide";Yt(function(){i&&y!==b&&x(y)},[i]);var w=function(){i&&c()},C=l.useRef(!1),E=function(){i&&!C.current&&(C.current=!0,u())};o_e(w,E);var I=function(R){y===R&&E()};return i?l.createElement(Qr,be({ref:n,visible:b},o,{motionAppear:s==="show",onVisibleChanged:I}),function(T,R){var _=T.className,$=T.style;return l.createElement("div",{ref:R,className:oe("".concat(v,"-treenode-motion"),_),style:$},i.map(function(M){var P=Object.assign({},(UK(M.data),M.data)),D=M.title,O=M.key,k=M.isStart,N=M.isEnd;delete P.children;var A=Fp(O,p);return l.createElement(Fd,be({},P,A,{title:D,active:d,data:M.data,key:O,isStart:k,isEnd:N}))}))}):l.createElement(Fd,be({domRef:n,className:r,style:a},g,{active:d}))};VK.displayName="MotionTreeNode";var s_e=l.forwardRef(VK);function l_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var s=new Map;o.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var GK=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,p=e.disabled,g=e.dragging,m=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,x=e.height,S=e.itemHeight,v=e.virtual,y=e.focusable,w=e.activeItem,C=e.focused,E=e.tabIndex,I=e.onKeyDown,T=e.onFocus,R=e.onBlur,_=e.onActiveChange,$=e.onListChangeStart,M=e.onListChangeEnd,P=Ct(e,c_e),D=l.useRef(null),O=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(he){D.current.scrollTo(he)},getIndentWidth:function(){return O.current.offsetWidth}}});var k=l.useState(a),N=ce(k,2),A=N[0],L=N[1],j=l.useState(r),F=ce(j,2),B=F[0],z=F[1],U=l.useState(r),H=ce(U,2),K=H[0],Y=H[1],ee=l.useState([]),ae=ce(ee,2),W=ae[0],q=ae[1],Z=l.useState(null),Q=ce(Z,2),J=Q[0],ie=Q[1],le=l.useRef(r);le.current=r;function fe(){var pe=le.current;z(pe),Y(pe),q([]),ie(null),M()}Yt(function(){L(a);var pe=l_e(A,a);if(pe.key!==null)if(pe.add){var he=B.findIndex(function(ke){var $e=ke.key;return $e===pe.key}),re=KP(WP(B,r,pe.key),v,x,S),ue=B.slice();ue.splice(he+1,0,qP),Y(ue),q(re),ie("show")}else{var me=r.findIndex(function(ke){var $e=ke.key;return $e===pe.key}),xe=KP(WP(r,B,pe.key),v,x,S),Ee=r.slice();Ee.splice(me+1,0,qP),Y(Ee),q(xe),ie("hide")}else B!==r&&(z(r),Y(r))},[a,r]),l.useEffect(function(){g||fe()},[g]);var te=b?K:r,se={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:m,dropPosition:h,keyEntities:d};return l.createElement(l.Fragment,null,C&&w&&l.createElement("span",{style:GP,"aria-live":"assertive"},d_e(w)),l.createElement("div",null,l.createElement("input",{style:GP,disabled:y===!1||p,tabIndex:y!==!1?E:null,onKeyDown:I,onFocus:T,onBlur:R,value:"",onChange:u_e,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),l.createElement(dy,be({},P,{data:te,itemKey:YP,height:x,fullHeight:!1,virtual:v,itemHeight:S,prefixCls:"".concat(n,"-list"),ref:D,onVisibleChange:function(he){he.every(function(re){return YP(re)!==Hc})&&fe()}}),function(pe){var he=pe.pos,re=Object.assign({},(UK(pe.data),pe.data)),ue=pe.title,me=pe.key,xe=pe.isStart,Ee=pe.isEnd,ke=$m(me,he);delete re.key,delete re.children;var $e=Fp(ke,se);return l.createElement(s_e,be({},re,$e,{title:ue,active:!!w&&me===w.key,pos:he,data:pe.data,isStart:xe,isEnd:Ee,motion:b,motionNodes:me===Hc?W:null,motionType:J,onMotionStart:$,onMotionEnd:fe,treeNodeRequiredProps:se,onMouseMove:function(){_(null)}}))}))});GK.displayName="NodeList";var f_e=10,zy=function(e){so(n,e);var t=Ao(n);function n(){var r;Jn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,p=r.state,g=p.dragChildrenKeys,m=p.dropPosition,h=p.dropTargetKey,b=p.dropTargetPos,x=p.dropAllowed;if(x){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var v=X(X({},Fp(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:Ja(r.state.keyEntities,h).node}),y=g.indexOf(h)!==-1;$n(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=YN(b),C={event:s,node:Fr(v),dragNode:r.dragNode?Fr(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(g),dropToGap:m!==0,dropPosition:m+Number(w[w.length-1])};d||S==null||S(C),r.dragNode=null}}}),V(Ke(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),V(Ke(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,p=u.flattenNodes,g=c.expanded,m=c.key,h=c.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var b=p.filter(function(S){return S.key===m})[0],x=Fr(X(X({},Fp(m,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(g?Bi(d,m):cs(d,m)),r.onNodeExpand(s,x)}}),V(Ke(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,p=u.expandAction;p==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ke(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,p=u.expandAction;p==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),V(Ke(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,p=d.keyEntities,g=d.fieldNames,m=r.props,h=m.onSelect,b=m.multiple,x=c.selected,S=c[g.key],v=!x;v?b?u=cs(u,S):u=[S]:u=Bi(u,S);var y=u.map(function(w){var C=Ja(p,w);return C?C.node:null}).filter(function(w){return w});r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:v,node:c,selectedNodes:y,nativeEvent:s.nativeEvent})}),V(Ke(r),"onNodeCheck",function(s,c,u){var d=r.state,p=d.keyEntities,g=d.checkedKeys,m=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,x=h.onCheck,S=c.key,v,y={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(b){var w=u?cs(g,S):Bi(g,S),C=Bi(m,S);v={checked:w,halfChecked:C},y.checkedNodes=w.map(function($){return Ja(p,$)}).filter(function($){return $}).map(function($){return $.node}),r.setUncontrolledState({checkedKeys:w})}else{var E=ws([].concat(De(g),[S]),!0,p),I=E.checkedKeys,T=E.halfCheckedKeys;if(!u){var R=new Set(I);R.delete(S);var _=ws(Array.from(R),{checked:!1,halfCheckedKeys:T},p);I=_.checkedKeys,T=_.halfCheckedKeys}v=I,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=T,I.forEach(function($){var M=Ja(p,$);if(M){var P=M.node,D=M.pos;y.checkedNodes.push(P),y.checkedNodesPositions.push({node:P,pos:D})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:T})}x==null||x(v,y)}),V(Ke(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,p=Ja(d,u);if(!(p!=null&&(c=p.children)!==null&&c!==void 0&&c.length)){var g=new Promise(function(m,h){r.setState(function(b){var x=b.loadedKeys,S=x===void 0?[]:x,v=b.loadingKeys,y=v===void 0?[]:v,w=r.props,C=w.loadData,E=w.onLoad;if(!C||S.indexOf(u)!==-1||y.indexOf(u)!==-1)return null;var I=C(s);return I.then(function(){var T=r.state.loadedKeys,R=cs(T,u);E==null||E(R,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:R}),r.setState(function(_){return{loadingKeys:Bi(_.loadingKeys,u)}}),m()}).catch(function(T){if(r.setState(function(_){return{loadingKeys:Bi(_.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=f_e){var R=r.state.loadedKeys;$n(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:cs(R,u)}),m()}h(T)}),{loadingKeys:cs(y,u)}})});return g.catch(function(){}),g}}),V(Ke(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),V(Ke(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),V(Ke(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),V(Ke(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,p=!0,g={};Object.keys(s).forEach(function(m){if(m in r.props){p=!1;return}d=!0,g[m]=s[m]}),d&&(!c||p)&&r.setState(X(X({},g),u))}}),V(Ke(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return er(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,s=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,i=a.flattenNodes,s=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,p=a.dropContainerKey,g=a.dropTargetKey,m=a.dropPosition,h=a.dragOverNodeKey,b=a.indent,x=this.props,S=x.prefixCls,v=x.className,y=x.style,w=x.showLine,C=x.focusable,E=x.tabIndex,I=E===void 0?0:E,T=x.selectable,R=x.showIcon,_=x.icon,$=x.switcherIcon,M=x.draggable,P=x.checkable,D=x.checkStrictly,O=x.disabled,k=x.motion,N=x.loadData,A=x.filterTreeNode,L=x.height,j=x.itemHeight,F=x.virtual,B=x.titleRender,z=x.dropIndicatorRender,U=x.onContextMenu,H=x.onScroll,K=x.direction,Y=x.rootClassName,ee=x.rootStyle,ae=ur(this.props,{aria:!0,data:!0}),W;return M&&(mt(M)==="object"?W=M:typeof M=="function"?W={nodeDraggable:M}:W={}),l.createElement(KN.Provider,{value:{prefixCls:S,selectable:T,showIcon:R,icon:_,switcherIcon:$,draggable:W,draggingNodeKey:c,checkable:P,checkStrictly:D,disabled:O,keyEntities:s,dropLevelOffset:d,dropContainerKey:p,dropTargetKey:g,dropPosition:m,dragOverNodeKey:h,indent:b,direction:K,dropIndicatorRender:z,loadData:N,filterTreeNode:A,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:oe(S,v,Y,V(V(V({},"".concat(S,"-show-line"),w),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:ee},l.createElement(GK,be({ref:this.listRef,prefixCls:S,style:y,data:i,disabled:O,selectable:T,checkable:!!P,motion:k,dragging:c!==null,height:L,itemHeight:j,virtual:F,focusable:C,focused:o,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:H},this.getTreeNodeRequiredProps(),ae))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,s={prevProps:a};function c(I){return!i&&I in a||i&&i[I]!==a[I]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=jd(a.fieldNames),s.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&($n(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=aq(a.children)),u){s.treeData=u;var p=Oy(u,{fieldNames:d});s.keyEntities=X(V({},Hc,WK),p.keyEntities)}var g=s.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?S_(a.expandedKeys,g):a.expandedKeys;else if(!i&&a.defaultExpandAll){var m=X({},g);delete m[Hc];var h=[];Object.keys(m).forEach(function(I){var T=m[I];T.children&&T.children.length&&h.push(T.key)}),s.expandedKeys=h}else!i&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?S_(a.defaultExpandedKeys,g):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var b=zS(u||o.treeData,s.expandedKeys||o.expandedKeys,d);s.flattenNodes=b}if(a.selectable&&(c("selectedKeys")?s.selectedKeys=UP(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(s.selectedKeys=UP(a.defaultSelectedKeys,a))),a.checkable){var x;if(c("checkedKeys")?x=XS(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?x=XS(a.defaultCheckedKeys)||{}:u&&(x=XS(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),x){var S=x,v=S.checkedKeys,y=v===void 0?[]:v,w=S.halfCheckedKeys,C=w===void 0?[]:w;if(!a.checkStrictly){var E=ws(y,!0,g);y=E.checkedKeys,C=E.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=C}}return c("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n}(l.Component);V(zy,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:a_e,allowDrop:function(){return!0},expandAction:!1});V(zy,"TreeNode",Fd);const p_e=new en("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),g_e=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),m_e=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),h_e=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:i,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},an(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},_s(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:p_e,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${G(a)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:G(o),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},g_e(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:G(o),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal(),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${G(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:G(o),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:G(o),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:G(o),userSelect:"none"},m_e(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${G(t.calc(o).div(2).equal())} !important`}}}}})}},v_e=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:o,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent"}}}}}},qK=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=Bt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[h_e(e,o),v_e(o)]},KK=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},b_e=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},KK(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},y_e=on("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:CN(`${n}-checkbox`,e)},qK(n,e),dm(e)]},b_e),XP=4;function x_e(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",c={[i]:-n*a+XP,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+XP;break}return de.createElement("div",{style:c,className:`${r}-drop-indicator`})}const YK=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:i,expanded:s,loading:c}=r;if(c)return l.isValidElement(o)?o:l.createElement(Qi,{className:`${t}-switcher-loading-icon`});let u;if(a&&typeof a=="object"&&(u=a.showLeafIcon),i){if(!a)return null;if(typeof u!="boolean"&&u){const g=typeof u=="function"?u(r):u,m=`${t}-switcher-line-custom-icon`;return l.isValidElement(g)?$r(g,{className:oe(g.props.className||"",m)}):g}return u?l.createElement(dK,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,p=typeof n=="function"?n(r):n;return l.isValidElement(p)?$r(p,{className:oe(p.props.className||"",d)}):p!==void 0?p:a?s?l.createElement(D2e,{className:`${t}-switcher-line-icon`}):l.createElement(hK,{className:`${t}-switcher-line-icon`}):l.createElement(DCe,{className:d})},XK=de.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=de.useContext(ut),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:p,switcherLoadingIcon:g,blockNode:m=!1,children:h,checkable:b=!1,selectable:x=!0,draggable:S,motion:v,style:y}=e,w=r("tree",s),C=r(),E=v??Object.assign(Object.assign({},Ad(C)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:b,selectable:x,showIcon:u,motion:E,blockNode:m,showLine:!!d,dropIndicatorRender:x_e}),[T,R,_]=y_e(w),[,$]=ta(),M=$.paddingXS/2+(((n=$.Tree)===null||n===void 0?void 0:n.titleHeight)||$.controlHeightSM),P=de.useMemo(()=>{if(!S)return!1;let O={};switch(typeof S){case"function":O.nodeDraggable=S;break;case"object":O=Object.assign({},S);break}return O.icon!==!1&&(O.icon=O.icon||de.createElement(c2e,null)),O},[S]),D=O=>de.createElement(YK,{prefixCls:w,switcherIcon:p,switcherLoadingIcon:g,treeNodeProps:O,showLine:d});return T(de.createElement(zy,Object.assign({itemHeight:M,ref:t,virtual:o},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),y),prefixCls:w,className:oe({[`${w}-icon-hide`]:!u,[`${w}-block-node`]:m,[`${w}-unselectable`]:!x,[`${w}-rtl`]:a==="rtl"},i==null?void 0:i.className,c,R,_),direction:a,checkable:b&&de.createElement("span",{className:`${w}-checkbox-inner`}),selectable:x,switcherIcon:D,draggable:P}),h))}),ZP=0,ZS=1,QP=2;function XN(e,t,n){const{key:r,children:a}=n;function o(i){const s=i[r],c=i[a];t(s,i)!==!1&&XN(c||[],t,n)}e.forEach(o)}function S_e(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const i=[];let s=ZP;if(r&&r===a)return[r];if(!r||!a)return[];function c(u){return u===r||u===a}return XN(t,u=>{if(s===QP)return!1;if(c(u)){if(i.push(u),s===ZP)s=ZS;else if(s===ZS)return s=QP,!1}else s===ZS&&i.push(u);return n.includes(u)},jd(o)),i}function QS(e,t,n){const r=De(t),a=[];return XN(e,(o,i)=>{const s=r.indexOf(o);return s!==-1&&(a.push(i),r.splice(s,1)),!!r.length},jd(n)),a}var JP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=JP(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:T}=Oy(eL(o));let R;return n?R=Object.keys(T):r?R=S_(o.expandedKeys||a||[],T):R=o.expandedKeys||a||[],R},[u,d]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[p,g]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&g(o.expandedKeys)},[o.expandedKeys]);const m=(T,R)=>{var _;return"expandedKeys"in o||g(T),(_=o.onExpand)===null||_===void 0?void 0:_.call(o,T,R)},h=(T,R)=>{var _;const{multiple:$,fieldNames:M}=o,{node:P,nativeEvent:D}=R,{key:O=""}=P,k=eL(o),N=Object.assign(Object.assign({},R),{selected:!0}),A=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),L=D==null?void 0:D.shiftKey;let j;$&&A?(j=T,i.current=O,s.current=j,N.selectedNodes=QS(k,j,M)):$&&L?(j=Array.from(new Set([].concat(De(s.current||[]),De(S_e({treeData:k,expandedKeys:p,startKey:O,endKey:i.current,fieldNames:M}))))),N.selectedNodes=QS(k,j,M)):(j=[O],i.current=O,s.current=j,N.selectedNodes=QS(k,j,M)),(_=o.onSelect)===null||_===void 0||_.call(o,j,N),"selectedKeys"in o||d(j)},{getPrefixCls:b,direction:x}=l.useContext(ut),{prefixCls:S,className:v,showIcon:y=!0,expandAction:w="click"}=o,C=JP(o,["prefixCls","className","showIcon","expandAction"]),E=b("tree",S),I=oe(`${E}-directory`,{[`${E}-directory-rtl`]:x==="rtl"},v);return l.createElement(XK,Object.assign({icon:w_e,ref:t,blockNode:!0},C,{showIcon:y,expandAction:w,prefixCls:E,className:I,expandedKeys:p,selectedKeys:u,onSelect:h,onExpand:m}))},E_e=l.forwardRef(C_e),ZN=XK;ZN.DirectoryTree=E_e;ZN.TreeNode=Fd;const tL=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Jt,{prefix:l.createElement(xm,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},I_e=e=>{const{keyCode:t}=e;t===Fe.ENTER&&e.stopPropagation()},T_e=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:I_e,ref:t},e.children));function md(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(De(t),De(md(a))))}),t}function R_e(e){return e.some(t=>{let{children:n}=t;return n})}function ZK(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function QK(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:QK({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i})};const d=a?ts:Co,p={key:s.value!==void 0?u:c,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:r.includes(u)}),l.createElement("span",null,s.text))};return o.trim()?typeof i=="function"?i(o,s)?p:null:ZK(o,s.text)?p:null:p})}function JS(e){return e||[]}const __e=e=>{var t,n;const{tablePrefixCls:r,prefixCls:a,column:o,dropdownPrefixCls:i,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:p=!1,filterState:g,triggerFilter:m,locale:h,children:b,getPopupContainer:x,rootClassName:S}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:w,defaultFilteredValue:C,filterDropdownVisible:E,onFilterDropdownVisibleChange:I}=o,[T,R]=l.useState(!1),_=!!(g&&(!((t=g.filteredKeys)===null||t===void 0)&&t.length||g.forceFiltered)),$=te=>{R(te),y==null||y(te),I==null||I(te)},M=(n=v??E)!==null&&n!==void 0?n:T,P=g==null?void 0:g.filteredKeys,[D,O]=r_e(JS(P)),k=te=>{let{selectedKeys:se}=te;O(se)},N=(te,se)=>{let{node:pe,checked:he}=se;k(u?{selectedKeys:te}:{selectedKeys:he&&pe.key?[pe.key]:[]})};l.useEffect(()=>{T&&k({selectedKeys:JS(P)})},[P]);const[A,L]=l.useState([]),j=te=>{L(te)},[F,B]=l.useState(""),z=te=>{const{value:se}=te.target;B(se)};l.useEffect(()=>{T||B("")},[T]);const U=te=>{const se=te!=null&&te.length?te:null;if(se===null&&(!g||!g.filteredKeys)||ei(se,g==null?void 0:g.filteredKeys,!0))return null;m({column:o,key:s,filteredKeys:se})},H=()=>{$(!1),U(D())},K=function(){let{confirm:te,closeDropdown:se}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};te&&U([]),se&&$(!1),B(""),O(w?(C||[]).map(pe=>String(pe)):[])},Y=function(){let{closeDropdown:te}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};te&&$(!1),U(D())},ee=(te,se)=>{se.source==="trigger"&&(te&&P!==void 0&&O(JS(P)),$(te),!te&&!o.filterDropdown&&c&&H())},ae=oe({[`${i}-menu-without-submenu`]:!R_e(o.filters||[])}),W=te=>{if(te.target.checked){const se=md(o==null?void 0:o.filters).map(pe=>String(pe));O(se)}else O([])},q=te=>{let{filters:se}=te;return(se||[]).map((pe,he)=>{const re=String(pe.value),ue={title:pe.text,key:pe.value!==void 0?re:String(he)};return pe.children&&(ue.children=q({filters:pe.children})),ue})},Z=te=>{var se;return Object.assign(Object.assign({},te),{text:te.title,value:te.key,children:((se=te.children)===null||se===void 0?void 0:se.map(pe=>Z(pe)))||[]})};let Q;const{direction:J,renderEmpty:ie}=l.useContext(ut);if(typeof o.filterDropdown=="function")Q=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:te=>k({selectedKeys:te}),selectedKeys:D(),confirm:Y,clearFilters:K,filters:o.filters,visible:M,close:()=>{$(!1)}});else if(o.filterDropdown)Q=o.filterDropdown;else{const te=D()||[],se=()=>{var he;const re=(he=ie==null?void 0:ie("Table.filter"))!==null&&he!==void 0?he:l.createElement(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((o.filters||[]).length===0)return re;if(d==="tree")return l.createElement(l.Fragment,null,l.createElement(tL,{filterSearch:p,value:F,onChange:z,tablePrefixCls:r,locale:h}),l.createElement("div",{className:`${r}-filter-dropdown-tree`},u?l.createElement(ts,{checked:te.length===md(o.filters).length,indeterminate:te.length>0&&te.lengthtypeof p=="function"?p(F,Z(xe)):ZK(F,xe.title):void 0})));const ue=QK({filters:o.filters||[],filterSearch:p,prefixCls:a,filteredKeys:D(),filterMultiple:u,searchValue:F}),me=ue.every(xe=>xe===null);return l.createElement(l.Fragment,null,l.createElement(tL,{filterSearch:p,value:F,onChange:z,tablePrefixCls:r,locale:h}),me?re:l.createElement(Ls,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:ae,onSelect:k,onDeselect:k,selectedKeys:te,getPopupContainer:x,openKeys:A,onOpenChange:j,items:ue}))},pe=()=>w?ei((C||[]).map(he=>String(he)),te,!0):te.length===0;Q=l.createElement(l.Fragment,null,se(),l.createElement("div",{className:`${a}-dropdown-btns`},l.createElement(tt,{type:"link",size:"small",disabled:pe(),onClick:()=>K()},h.filterReset),l.createElement(tt,{type:"primary",size:"small",onClick:H},h.filterConfirm)))}o.filterDropdown&&(Q=l.createElement(QW,{selectable:void 0},Q));const le=()=>l.createElement(T_e,{className:`${a}-dropdown`},Q);let fe;return typeof o.filterIcon=="function"?fe=o.filterIcon(_):o.filterIcon?fe=o.filterIcon:fe=l.createElement(jEe,null),l.createElement("div",{className:`${a}-column`},l.createElement("span",{className:`${r}-column-title`},b),l.createElement(Ay,{dropdownRender:le,trigger:["click"],open:M,onOpenChange:ee,getPopupContainer:x,placement:J==="rtl"?"bottomLeft":"bottomRight",rootClassName:S},l.createElement("span",{role:"button",tabIndex:-1,className:oe(`${a}-trigger`,{active:_}),onClick:te=>{te.stopPropagation()}},fe)))},T_=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const s=Sf(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;"filterDropdown"in a||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:a,key:Dl(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:Dl(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(De(r),De(T_(a.children,t,s))))}),r};function JK(e,t,n,r,a,o,i,s,c){return n.map((u,d)=>{const p=Sf(d,s),{filterOnClose:g=!0,filterMultiple:m=!0,filterMode:h,filterSearch:b}=u;let x=u;if(x.filters||x.filterDropdown){const S=Dl(x,p),v=r.find(y=>{let{key:w}=y;return S===w});x=Object.assign(Object.assign({},x),{title:y=>l.createElement(__e,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:x,columnKey:S,filterState:v,filterOnClose:g,filterMultiple:m,filterMode:h,filterSearch:b,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},By(u.title,y))})}return"children"in x&&(x=Object.assign(Object.assign({},x),{children:JK(e,t,x.children,r,a,o,i,p,c)})),x})}const nL=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const i=r,{filters:s,filterDropdown:c}=o;if(c)t[i]=a||null;else if(Array.isArray(a)){const u=md(s);t[i]=u.filter(d=>a.includes(String(d)))}else t[i]=null}),t},R_=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const p=md(s),g=p.findIndex(h=>String(h)===String(d)),m=g!==-1?p[g]:d;return u[n]&&(u[n]=R_(u[n],t,n)),i(m,u)})):a},e),eY=e=>e.flatMap(t=>"children"in t?[t].concat(De(eY(t.children||[]))):[t]),$_e=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:s}=e;zl();const c=l.useMemo(()=>eY(r||[]),[r]),[u,d]=l.useState(()=>T_(c,!0)),p=l.useMemo(()=>{const b=T_(c,!1);if(b.length===0)return b;let x=!0;if(b.forEach(S=>{let{filteredKeys:v}=S;v!==void 0&&(x=!1)}),x){const S=(c||[]).map((v,y)=>Dl(v,Sf(y)));return u.filter(v=>{let{key:y}=v;return S.includes(y)}).map(v=>{const y=c[S.findIndex(w=>w===v.key)];return Object.assign(Object.assign({},v),{column:Object.assign(Object.assign({},v.column),y),forceFiltered:y.filtered})})}return b},[c,u]),g=l.useMemo(()=>nL(p),[p]),m=b=>{const x=p.filter(S=>{let{key:v}=S;return v!==b.key});x.push(b),d(x),a(nL(x),x)};return[b=>JK(t,n,b,p,i,m,o,void 0,s),p,g]},O_e=(e,t,n)=>{const r=l.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((p,g)=>{const m=n(p,g);c.set(m,p),p&&typeof p=="object"&&t in p&&u(p[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var N_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function A_e(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=N_e(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:tY})),c=Zq(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(g,m)=>{s({current:g??1,pageSize:m||c.pageSize})},p=(g,m)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,g,m)),d(g,m),t(g,m||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:p}),d]}const zv="ascend",e1="descend",Jb=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,rL=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,M_e=(e,t)=>t?e[e.indexOf(t)+1]:e[0],__=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:Dl(o,i),multiplePriority:Jb(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const s=Sf(i,n);o.children?("sortOrder"in o&&a(o,s),r=[].concat(De(r),De(__(o.children,t,s)))):o.sorter&&("sortOrder"in o?a(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:Dl(o,s),multiplePriority:Jb(o),sortOrder:o.defaultSortOrder}))}),r},nY=(e,t,n,r,a,o,i,s)=>(t||[]).map((u,d)=>{const p=Sf(d,s);let g=u;if(g.sorter){const m=g.sortDirections||a,h=g.showSorterTooltip===void 0?i:g.showSorterTooltip,b=Dl(g,p),x=n.find(R=>{let{key:_}=R;return _===b}),S=x?x.sortOrder:null,v=M_e(m,S);let y;if(u.sortIcon)y=u.sortIcon({sortOrder:S});else{const R=m.includes(zv)&&l.createElement(zCe,{className:oe(`${e}-column-sorter-up`,{active:S===zv})}),_=m.includes(e1)&&l.createElement(jCe,{className:oe(`${e}-column-sorter-down`,{active:S===e1})});y=l.createElement("span",{className:oe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&_)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,_))}const{cancelSort:w,triggerAsc:C,triggerDesc:E}=o||{};let I=w;v===e1?I=E:v===zv&&(I=C);const T=typeof h=="object"?Object.assign({title:I},h):{title:I};g=Object.assign(Object.assign({},g),{className:oe(g.className,{[`${e}-column-sort`]:S}),title:R=>{const _=`${e}-column-sorters`,$=l.createElement("span",{className:`${e}-column-title`},By(u.title,R)),M=l.createElement("div",{className:_},$,y);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?l.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},$,l.createElement(Ft,Object.assign({},T),y)):l.createElement(Ft,Object.assign({},T),M):M},onHeaderCell:R=>{var _;const $=((_=u.onHeaderCell)===null||_===void 0?void 0:_.call(u,R))||{},M=$.onClick,P=$.onKeyDown;$.onClick=k=>{r({column:u,key:b,sortOrder:v,multiplePriority:Jb(u)}),M==null||M(k)},$.onKeyDown=k=>{k.keyCode===Fe.ENTER&&(r({column:u,key:b,sortOrder:v,multiplePriority:Jb(u)}),P==null||P(k))};const D=n_e(u.title,{}),O=D==null?void 0:D.toString();return S?$["aria-sort"]=S==="ascend"?"ascending":"descending":$["aria-label"]=O||"",$.className=oe($.className,`${e}-column-has-sorters`),$.tabIndex=0,u.ellipsis&&($.title=(D??"").toString()),$}})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:nY(e,g.children,n,r,a,o,i,p)})),g}),aL=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},oL=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(aL);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},aL(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},$_=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(i=>{let{column:{sorter:s},sortOrder:c}=i;return rL(s)&&c});return o.length?a.sort((i,s)=>{for(let c=0;c{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:$_(s,t,n)}):i}):a},D_e=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[s,c]=l.useState(__(n,!0)),u=(b,x)=>{const S=[];return b.forEach((v,y)=>{const w=Sf(y,x);if(S.push(Dl(v,w)),Array.isArray(v.children)){const C=u(v.children,w);S.push.apply(S,De(C))}}),S},d=l.useMemo(()=>{let b=!0;const x=__(n,!1);if(!x.length){const w=u(n);return s.filter(C=>{let{key:E}=C;return w.includes(E)})}const S=[];function v(w){b?S.push(w):S.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let y=null;return x.forEach(w=>{y===null?(v(w),w.sortOrder&&(w.multiplePriority===!1?b=!1:y=!0)):(y&&w.multiplePriority!==!1||(b=!1),v(w))}),S},[n,s]),p=l.useMemo(()=>{var b,x;const S=d.map(v=>{let{column:y,sortOrder:w}=v;return{column:y,order:w}});return{sortColumns:S,sortColumn:(b=S[0])===null||b===void 0?void 0:b.column,sortOrder:(x=S[0])===null||x===void 0?void 0:x.order}},[d]),g=b=>{let x;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?x=[b]:x=[].concat(De(d.filter(S=>{let{key:v}=S;return v!==b.key})),[b]),c(x),i(oL(x),x)};return[b=>nY(t,b,d,g,r,a,o),d,p,()=>oL(d)]},rY=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=By(r.title,t),"children"in a&&(a.children=rY(a.children,t)),a}),P_e=e=>[l.useCallback(n=>rY(n,e),[e])],L_e=FK((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),j_e=zK((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),F_e=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${G(n)} ${r} ${a}`,d=(p,g,m)=>({[`&${t}-${p}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(g).mul(-1).equal())} ${G(c(c(m).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` > ${t}-content, > ${t}-header, @@ -419,7 +419,7 @@ html body { `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${G(n)} 0 ${G(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},B_e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Oo),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},z_e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},H_e=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:p,tablePaddingHorizontal:g,tableExpandedRowBg:m,paddingXXS:h,expandIconMarginTop:b,expandIconSize:x,expandIconHalfInner:S,expandIconScale:v,calc:y}=e,C=`${G(a)} ${i} ${s}`,w=y(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},TO(e)),{position:"relative",float:"left",width:x,height:x,color:"inherit",lineHeight:G(x),background:c,border:C,borderRadius:d,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:w,insetInlineStart:w,height:a},"&::after":{top:w,bottom:w,insetInlineStart:S,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(y(p).mul(-1).equal())} ${G(y(g).mul(-1).equal())}`,padding:`${G(p)} ${G(g)}`}}}},U_e=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:p,headerIconColor:g,fontSizeSM:m,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:x,colorTextDescription:S,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:C,tableFilterDropdownBg:w,tableFilterDropdownHeight:E,controlItemBgHover:I,controlItemBgActive:T,boxShadowSecondary:R,filterDropdownMenuBg:_,calc:$}=e,M=`${n}-dropdown`,P=`${t}-filter-dropdown`,D=`${n}-tree`,O=`${G(u)} ${d} ${p}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(i).mul(-1).equal(),marginInline:`${G(i)} ${G($(h).div(2).mul(-1).equal())}`,padding:`0 ${G(i)}`,color:g,fontSize:m,borderRadius:b,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:S,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[P]:Object.assign(Object.assign({},an(e)),{minWidth:a,backgroundColor:w,borderRadius:b,boxShadow:R,overflow:"hidden",[`${M}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${G(s)} 0`,color:C,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${G(s)} 0`,paddingInline:s,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:I},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${P}-search`]:{padding:s,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:C}}},[`${P}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G($(s).sub(u).equal())} ${G(s)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},V_e=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},z_e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},H_e=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:p,tablePaddingHorizontal:g,tableExpandedRowBg:m,paddingXXS:h,expandIconMarginTop:b,expandIconSize:x,expandIconHalfInner:S,expandIconScale:v,calc:y}=e,w=`${G(a)} ${i} ${s}`,C=y(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},TO(e)),{position:"relative",float:"left",width:x,height:x,color:"inherit",lineHeight:G(x),background:c,border:w,borderRadius:d,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:C,insetInlineStart:C,height:a},"&::after":{top:C,bottom:C,insetInlineStart:S,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(y(p).mul(-1).equal())} ${G(y(g).mul(-1).equal())}`,padding:`${G(p)} ${G(g)}`}}}},U_e=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:p,headerIconColor:g,fontSizeSM:m,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:x,colorTextDescription:S,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:C,tableFilterDropdownHeight:E,controlItemBgHover:I,controlItemBgActive:T,boxShadowSecondary:R,filterDropdownMenuBg:_,calc:$}=e,M=`${n}-dropdown`,P=`${t}-filter-dropdown`,D=`${n}-tree`,O=`${G(u)} ${d} ${p}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(i).mul(-1).equal(),marginInline:`${G(i)} ${G($(h).div(2).mul(-1).equal())}`,padding:`0 ${G(i)}`,color:g,fontSize:m,borderRadius:b,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:S,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[P]:Object.assign(Object.assign({},an(e)),{minWidth:a,backgroundColor:C,borderRadius:b,boxShadow:R,overflow:"hidden",[`${M}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${G(s)} 0`,color:w,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${G(s)} 0`,paddingInline:s,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:I},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${P}-search`]:{padding:s,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:w}}},[`${P}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G($(s).sub(u).equal())} ${G(s)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},V_e=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:o,background:i},[` @@ -458,7 +458,7 @@ html body { `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},Z_e=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:p}=e,g=`${G(u)} ${d} ${p}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${G(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:g,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},iL=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${G(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${G(a(n).mul(-1).equal())} 0 ${r}`}}}},Q_e=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:i}=e,s=`${G(r)} ${a} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},J_e=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:p,tableHeaderTextColor:g,motionDurationMid:m,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:x,tableFooterBg:S,calc:v}=e,y=`${G(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},_i()),{[t]:Object.assign(Object.assign({},an(e)),{fontSize:u,background:d,borderRadius:`${G(p)} ${G(p)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${G(p)} ${G(p)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},J_e=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:p,tableHeaderTextColor:g,motionDurationMid:m,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:x,tableFooterBg:S,calc:v}=e,y=`${G(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},$i()),{[t]:Object.assign(Object.assign({},an(e)),{fontSize:u,background:d,borderRadius:`${G(p)} ${G(p)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${G(p)} ${G(p)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -469,7 +469,7 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:G(v(r).mul(-1).equal()),marginInline:`${G(v(o).sub(a).equal())} - ${G(v(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:g,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${G(r)} ${G(a)}`,color:x,background:S}})}},e$e=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:p,borderRadiusLG:g,controlHeight:m,colorTextPlaceholder:h,fontSize:b,fontSizeSM:x,lineHeight:S,lineWidth:v,colorIcon:y,colorIconHover:C,opacityLoading:w,controlInteractiveSize:E}=e,I=new sn(a).onBackground(n).toHexShortString(),T=new sn(o).onBackground(n).toHexShortString(),R=new sn(t).onBackground(n).toHexShortString(),_=new sn(y),$=new sn(C),M=E/2-v,P=M*2+v*3;return{headerBg:R,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:T,bodySortBg:R,rowHoverBg:R,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:p,headerBorderRadius:g,footerBg:R,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:p,fixedHeaderSortActiveBg:I,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-v*3)/2-Math.ceil((x*1.4-v*3)/2),headerIconColor:_.clone().setAlpha(_.getAlpha()*w).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*w).toRgbString(),expandIconHalfInner:M,expandIconSize:P,expandIconScale:E/P}},sL=2,t$e=on("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:p,rowSelectedHoverBg:g,rowExpandedBg:m,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:x,cellPaddingInlineMD:S,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:C,footerBg:w,footerColor:E,headerBorderRadius:I,cellFontSize:T,cellFontSizeMD:R,cellFontSizeSM:_,headerSplitColor:$,fixedHeaderSortActiveBg:M,headerFilterHoverBg:P,filterDropdownBg:D,expandIconBg:O,selectionColumnWidth:k,stickyScrollBarBg:N,calc:A}=e,L=Ft(e,{tableFontSize:T,tableBg:r,tableRadius:I,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:x,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:C,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:w,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:D,tableRowHoverBg:d,tableSelectedRowBg:p,tableSelectedRowHoverBg:g,zIndexTableFixed:sL,zIndexTableSticky:A(sL).add(1).equal({unit:!1}),tableFontSizeMiddle:R,tableFontSizeSmall:_,tableSelectionColumnWidth:k,tableExpandIconBg:O,tableExpandColumnWidth:A(a).add(A(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[J_e(L),W_e(L),iL(L),X_e(L),U_e(L),F_e(L),G_e(L),H_e(L),iL(L),z_e(L),K_e(L),V_e(L),Z_e(L),B_e(L),Y_e(L),q_e(L),Q_e(L)]},e$e,{unitless:{expandIconScale:!0}}),n$e=[],r$e=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:p,pagination:g,rowSelection:m,rowKey:h="key",rowClassName:b,columns:x,children:S,childrenColumnName:v,onChange:y,getPopupContainer:C,loading:w,expandIcon:E,expandable:I,expandedRowRender:T,expandIconColumnIndex:R,indentSize:_,scroll:$,sortDirections:M,locale:P,showSorterTooltip:D={target:"full-header"},virtual:O}=e;zl();const k=l.useMemo(()=>x||GN(S),[x,S]),N=l.useMemo(()=>k.some(xt=>xt.responsive),[k]),A=fy(N),L=l.useMemo(()=>{const xt=new Set(Object.keys(A).filter(et=>A[et]));return k.filter(et=>!et.responsive||et.responsive.some(tt=>xt.has(tt)))},[k,A]),j=Mn(e,["className","style","columns"]),{locale:F=ti,direction:B,table:z,renderEmpty:U,getPrefixCls:H,getPopupContainer:Y}=l.useContext(lt),K=Lr(c),J=Object.assign(Object.assign({},F.Table),P),ne=p||n$e,W=H("table",a),q=H("dropdown",d),[,Z]=ta(),Q=ar(W),[ee,oe,se]=t$e(W,Q),fe=Object.assign(Object.assign({childrenColumnName:v,expandIconColumnIndex:R},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=z==null?void 0:z.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:te="children"}=fe,ie=l.useMemo(()=>ne.some(xt=>xt==null?void 0:xt[te])?"nest":T||I!=null&&I.expandedRowRender?"row":null,[ne]),pe={body:l.useRef()},me=t_e(W),re=l.useRef(null),ce=l.useRef(null);JRe(t,()=>Object.assign(Object.assign({},ce.current),{nativeElement:re.current}));const ge=l.useMemo(()=>typeof h=="function"?h:xt=>xt==null?void 0:xt[h],[h]),[ye]=O_e(ne,te,ge),Ee={},Ne=function(xt,et){let tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bt,Ot,ht,it;const Et=Object.assign(Object.assign({},Ee),xt);tt&&((bt=Ee.resetPagination)===null||bt===void 0||bt.call(Ee),!((Ot=Et.pagination)===null||Ot===void 0)&&Ot.current&&(Et.pagination.current=1),g&&((ht=g.onChange)===null||ht===void 0||ht.call(g,1,(it=Et.pagination)===null||it===void 0?void 0:it.pageSize))),$&&$.scrollToFirstRowOnChange!==!1&&pe.body.current&&tle(0,{getContainer:()=>pe.body.current}),y==null||y(Et.pagination,Et.filters,Et.sorter,{currentDataSource:R_($_(ne,Et.sorterStates,te),Et.filterStates,te),action:et})},_e=(xt,et)=>{Ne({sorter:xt,sorterStates:et},"sort",!1)},[Pe,Le,Ve,je]=D_e({prefixCls:W,mergedColumns:L,onSorterChange:_e,sortDirections:M||["ascend","descend"],tableLocale:J,showSorterTooltip:D}),De=l.useMemo(()=>$_(ne,Le,te),[ne,Le]);Ee.sorter=je(),Ee.sorterStates=Le;const Se=(xt,et)=>{Ne({filters:xt,filterStates:et},"filter",!0)},[Oe,Re,Ce]=$_e({prefixCls:W,locale:J,dropdownPrefixCls:q,mergedColumns:L,onFilterChange:Se,getPopupContainer:C||Y,rootClassName:ae(i,Q)}),xe=R_(De,Re,te);Ee.filters=Ce,Ee.filterStates=Re;const $e=l.useMemo(()=>{const xt={};return Object.keys(Ce).forEach(et=>{Ce[et]!==null&&(xt[et]=Ce[et])}),Object.assign(Object.assign({},Ve),{filters:xt})},[Ve,Ce]),[Fe]=P_e($e),be=(xt,et)=>{Ne({pagination:Object.assign(Object.assign({},Ee.pagination),{current:xt,pageSize:et})},"paginate")},[ue,Ie]=A_e(xe.length,be,g);Ee.pagination=g===!1?{}:k_e(ue,g),Ee.resetPagination=Ie;const We=l.useMemo(()=>{if(g===!1||!ue.pageSize)return xe;const{current:xt=1,total:et,pageSize:tt=tY}=ue;return xe.lengthtt?xe.slice((xt-1)*tt,xt*tt):xe:xe.slice((xt-1)*tt,xt*tt)},[!!g,xe,ue==null?void 0:ue.current,ue==null?void 0:ue.pageSize,ue==null?void 0:ue.total]),[He,Be]=ZRe({prefixCls:W,data:xe,pageData:We,getRowKey:ge,getRecordByKey:ye,expandType:ie,childrenColumnName:te,locale:J,getPopupContainer:C||Y},m),ke=(xt,et,tt)=>{let bt;return typeof b=="function"?bt=ae(b(xt,et,tt)):bt=ae(b),ae({[`${W}-row-selected`]:Be.has(ge(xt,et))},bt)};fe.__PARENT_RENDER_ICON__=fe.expandIcon,fe.expandIcon=fe.expandIcon||E||e_e(J),ie==="nest"&&fe.expandIconColumnIndex===void 0?fe.expandIconColumnIndex=m?1:0:fe.expandIconColumnIndex>0&&m&&(fe.expandIconColumnIndex-=1),typeof fe.indentSize!="number"&&(fe.indentSize=typeof _=="number"?_:15);const Ae=l.useCallback(xt=>Fe(He(Oe(Pe(xt)))),[Pe,Oe,He]);let Ue,ct;if(g!==!1&&(ue!=null&&ue.total)){let xt;ue.size?xt=ue.size:xt=K==="small"||K==="middle"?"small":void 0;const et=Ot=>l.createElement(kN,Object.assign({},ue,{className:ae(`${W}-pagination ${W}-pagination-${Ot}`,ue.className),size:xt})),tt=B==="rtl"?"left":"right",{position:bt}=ue;if(bt!==null&&Array.isArray(bt)){const Ot=bt.find(Et=>Et.includes("top")),ht=bt.find(Et=>Et.includes("bottom")),it=bt.every(Et=>`${Et}`=="none");!Ot&&!ht&&!it&&(ct=et(tt)),Ot&&(Ue=et(Ot.toLowerCase().replace("top",""))),ht&&(ct=et(ht.toLowerCase().replace("bottom","")))}else ct=et(tt)}let rt;typeof w=="boolean"?rt={spinning:w}:typeof w=="object"&&(rt=Object.assign({spinning:!0},w));const qe=ae(se,Q,`${W}-wrapper`,z==null?void 0:z.className,{[`${W}-wrapper-rtl`]:B==="rtl"},o,i,oe),Ye=Object.assign(Object.assign({},z==null?void 0:z.style),s),at=typeof(P==null?void 0:P.emptyText)<"u"?P.emptyText:(U==null?void 0:U("Table"))||l.createElement(uy,{componentName:"Table"}),ut=O?j_e:L_e,Ct={},kt=l.useMemo(()=>{const{fontSize:xt,lineHeight:et,padding:tt,paddingXS:bt,paddingSM:Ot}=Z,ht=Math.floor(xt*et);switch(K){case"large":return tt*2+ht;case"small":return bt*2+ht;default:return Ot*2+ht}},[Z,K]);return O&&(Ct.listItemHeight=kt),ee(l.createElement("div",{ref:re,className:qe,style:Ye},l.createElement(vf,Object.assign({spinning:!1},rt),Ue,l.createElement(ut,Object.assign({},Ct,j,{ref:ce,columns:L,direction:B,expandable:fe,prefixCls:W,className:ae({[`${W}-middle`]:K==="middle",[`${W}-small`]:K==="small",[`${W}-bordered`]:u,[`${W}-empty`]:ne.length===0},se,Q,oe),data:We,rowKey:ge,rowClassName:ke,emptyText:at,internalHooks:Nm,internalRefs:pe,transformColumns:Ae,getContainerWidth:me})),ct)))},a$e=l.forwardRef(r$e),o$e=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(a$e,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ya=l.forwardRef(o$e);ya.SELECTION_COLUMN=Zs;ya.EXPAND_COLUMN=tl;ya.SELECTION_ALL=C_;ya.SELECTION_INVERT=w_;ya.SELECTION_NONE=E_;ya.Column=BRe;ya.ColumnGroup=zRe;ya.Summary=$K;const i$e=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},an(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},QN=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Ft(e,{tagFontSize:a,tagLineHeight:G(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},JN=e=>({defaultBg:new sn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),aY=on("Tag",e=>{const t=QN(e);return i$e(t)},JN);var s$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,onChange:i,onClick:s}=e,c=s$e(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=l.useContext(lt),p=S=>{i==null||i(!o),s==null||s(S)},g=u("tag",n),[m,h,b]=aY(g),x=ae(g,`${g}-checkable`,{[`${g}-checkable-checked`]:o},d==null?void 0:d.className,a,h,b);return m(l.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:x,onClick:p})))}),c$e=e=>q0(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),u$e=Qc(["Tag","preset"],e=>{const t=QN(e);return c$e(t)},JN);function d$e(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Hh=(e,t,n)=>{const r=d$e(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},f$e=Qc(["Tag","status"],e=>{const t=QN(e);return[Hh(t,"success","Success"),Hh(t,"processing","Info"),Hh(t,"error","Error"),Hh(t,"warning","Warning")]},JN);var p$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:p}=e,g=p$e(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:h,tag:b}=l.useContext(lt),[x,S]=l.useState(!0),v=Mn(g,["closeIcon","closable"]);l.useEffect(()=>{p!==void 0&&S(p)},[p]);const y=my(c),C=Hge(c),w=y||C,E=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},b==null?void 0:b.style),o),I=m("tag",n),[T,R,_]=aY(I),$=ae(I,b==null?void 0:b.className,{[`${I}-${c}`]:w,[`${I}-has-color`]:c&&!w,[`${I}-hidden`]:!x,[`${I}-rtl`]:h==="rtl",[`${I}-borderless`]:!d},r,a,R,_),M=A=>{A.stopPropagation(),u==null||u(A),!A.defaultPrevented&&S(!1)},[,P]=WO(Pd(e),Pd(b),{closable:!1,closeIconRender:A=>{const L=l.createElement("span",{className:`${I}-close-icon`,onClick:M},A);return $O(A,L,j=>({onClick:F=>{var B;(B=j==null?void 0:j.onClick)===null||B===void 0||B.call(j,F),M(F)},className:ae(j==null?void 0:j.className,`${I}-close-icon`)}))}}),D=typeof g.onClick=="function"||i&&i.type==="a",O=s||null,k=O?l.createElement(l.Fragment,null,O,i&&l.createElement("span",null,i)):i,N=l.createElement("span",Object.assign({},v,{ref:t,className:$,style:E}),k,P,y&&l.createElement(u$e,{key:"preset",prefixCls:I}),C&&l.createElement(f$e,{key:"status",prefixCls:I}));return T(D?l.createElement(cm,{component:"Tag"},N):N)}),Pg=g$e;Pg.CheckableTag=l$e;const m$e=e=>{const t=e!=null&&e.algorithm?Eg(e.algorithm):Eg(om),n=Object.assign(Object.assign({},kd),e==null?void 0:e.token);return KH(n,{override:e==null?void 0:e.token},t,IO)};function h$e(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const v$e=(e,t)=>{const n=t??om(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),h$e(t??e)),yU(r)),{controlHeight:a}),bU(Object.assign(Object.assign({},n),{controlHeight:a})))},Fo=(e,t)=>new sn(e).setAlpha(t).toRgbString(),_u=(e,t)=>new sn(e).lighten(t).toHexString(),b$e=e=>{const t=Pc(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},y$e=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Fo(r,.85),colorTextSecondary:Fo(r,.65),colorTextTertiary:Fo(r,.45),colorTextQuaternary:Fo(r,.25),colorFill:Fo(r,.18),colorFillSecondary:Fo(r,.12),colorFillTertiary:Fo(r,.08),colorFillQuaternary:Fo(r,.04),colorBgSolid:Fo(r,.95),colorBgSolidHover:Fo(r,1),colorBgSolidActive:Fo(r,.9),colorBgElevated:_u(n,12),colorBgContainer:_u(n,8),colorBgLayout:_u(n,0),colorBgSpotlight:_u(n,26),colorBgBlur:Fo(r,.04),colorBorder:_u(n,26),colorBorderSecondary:_u(n,19)}},x$e=(e,t)=>{const n=Object.keys(SO).map(a=>{const o=Pc(e[a],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${a}-${c+1}`]=o[c],i[`${a}${c+1}`]=o[c],i),{})}).reduce((a,o)=>(a=Object.assign(Object.assign({},a),o),a),{}),r=t??om(e);return Object.assign(Object.assign(Object.assign({},r),n),vU(e,{generateColorPalettes:b$e,generateNeutralColorPalettes:y$e}))};function S$e(){const[e,t,n]=ta();return{theme:e,token:t,hashId:n}}const kr={defaultSeed:Rg.token,useToken:S$e,defaultAlgorithm:om,darkAlgorithm:x$e,compactAlgorithm:v$e,getDesignToken:m$e,defaultConfig:Rg,_internalContext:CO},C$e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},an(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${G(e.itemHeadSize)})`,borderInlineStart:`${G(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${G(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate, + ${G(v(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:g,fontWeight:n,textAlign:"start",background:h,borderBottom:y,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${G(r)} ${G(a)}`,color:x,background:S}})}},e$e=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:p,borderRadiusLG:g,controlHeight:m,colorTextPlaceholder:h,fontSize:b,fontSizeSM:x,lineHeight:S,lineWidth:v,colorIcon:y,colorIconHover:w,opacityLoading:C,controlInteractiveSize:E}=e,I=new sn(a).onBackground(n).toHexShortString(),T=new sn(o).onBackground(n).toHexShortString(),R=new sn(t).onBackground(n).toHexShortString(),_=new sn(y),$=new sn(w),M=E/2-v,P=M*2+v*3;return{headerBg:R,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:T,bodySortBg:R,rowHoverBg:R,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:p,headerBorderRadius:g,footerBg:R,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:p,fixedHeaderSortActiveBg:I,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-v*3)/2-Math.ceil((x*1.4-v*3)/2),headerIconColor:_.clone().setAlpha(_.getAlpha()*C).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*C).toRgbString(),expandIconHalfInner:M,expandIconSize:P,expandIconScale:E/P}},sL=2,t$e=on("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:p,rowSelectedHoverBg:g,rowExpandedBg:m,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:x,cellPaddingInlineMD:S,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:w,footerBg:C,footerColor:E,headerBorderRadius:I,cellFontSize:T,cellFontSizeMD:R,cellFontSizeSM:_,headerSplitColor:$,fixedHeaderSortActiveBg:M,headerFilterHoverBg:P,filterDropdownBg:D,expandIconBg:O,selectionColumnWidth:k,stickyScrollBarBg:N,calc:A}=e,L=Bt(e,{tableFontSize:T,tableBg:r,tableRadius:I,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:x,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:C,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:D,tableRowHoverBg:d,tableSelectedRowBg:p,tableSelectedRowHoverBg:g,zIndexTableFixed:sL,zIndexTableSticky:A(sL).add(1).equal({unit:!1}),tableFontSizeMiddle:R,tableFontSizeSmall:_,tableSelectionColumnWidth:k,tableExpandIconBg:O,tableExpandColumnWidth:A(a).add(A(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[J_e(L),W_e(L),iL(L),X_e(L),U_e(L),F_e(L),G_e(L),H_e(L),iL(L),z_e(L),K_e(L),V_e(L),Z_e(L),B_e(L),Y_e(L),q_e(L),Q_e(L)]},e$e,{unitless:{expandIconScale:!0}}),n$e=[],r$e=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:p,pagination:g,rowSelection:m,rowKey:h="key",rowClassName:b,columns:x,children:S,childrenColumnName:v,onChange:y,getPopupContainer:w,loading:C,expandIcon:E,expandable:I,expandedRowRender:T,expandIconColumnIndex:R,indentSize:_,scroll:$,sortDirections:M,locale:P,showSorterTooltip:D={target:"full-header"},virtual:O}=e;zl();const k=l.useMemo(()=>x||GN(S),[x,S]),N=l.useMemo(()=>k.some(xt=>xt.responsive),[k]),A=gy(N),L=l.useMemo(()=>{const xt=new Set(Object.keys(A).filter(nt=>A[nt]));return k.filter(nt=>!nt.responsive||nt.responsive.some(rt=>xt.has(rt)))},[k,A]),j=Mn(e,["className","style","columns"]),{locale:F=ni,direction:B,table:z,renderEmpty:U,getPrefixCls:H,getPopupContainer:K}=l.useContext(ut),Y=Lr(c),ee=Object.assign(Object.assign({},F.Table),P),ae=p||n$e,W=H("table",a),q=H("dropdown",d),[,Z]=ta(),Q=ar(W),[J,ie,le]=t$e(W,Q),fe=Object.assign(Object.assign({childrenColumnName:v,expandIconColumnIndex:R},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=z==null?void 0:z.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:te="children"}=fe,se=l.useMemo(()=>ae.some(xt=>xt==null?void 0:xt[te])?"nest":T||I!=null&&I.expandedRowRender?"row":null,[ae]),pe={body:l.useRef()},he=t_e(W),re=l.useRef(null),ue=l.useRef(null);JRe(t,()=>Object.assign(Object.assign({},ue.current),{nativeElement:re.current}));const me=l.useMemo(()=>typeof h=="function"?h:xt=>xt==null?void 0:xt[h],[h]),[xe]=O_e(ae,te,me),Ee={},ke=function(xt,nt){let rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bt,Ot,ht,lt;const Et=Object.assign(Object.assign({},Ee),xt);rt&&((bt=Ee.resetPagination)===null||bt===void 0||bt.call(Ee),!((Ot=Et.pagination)===null||Ot===void 0)&&Ot.current&&(Et.pagination.current=1),g&&((ht=g.onChange)===null||ht===void 0||ht.call(g,1,(lt=Et.pagination)===null||lt===void 0?void 0:lt.pageSize))),$&&$.scrollToFirstRowOnChange!==!1&&pe.body.current&&tle(0,{getContainer:()=>pe.body.current}),y==null||y(Et.pagination,Et.filters,Et.sorter,{currentDataSource:R_($_(ae,Et.sorterStates,te),Et.filterStates,te),action:nt})},$e=(xt,nt)=>{ke({sorter:xt,sorterStates:nt},"sort",!1)},[Le,je,He,Be]=D_e({prefixCls:W,mergedColumns:L,onSorterChange:$e,sortDirections:M||["ascend","descend"],tableLocale:ee,showSorterTooltip:D}),Pe=l.useMemo(()=>$_(ae,je,te),[ae,je]);Ee.sorter=Be(),Ee.sorterStates=je;const Se=(xt,nt)=>{ke({filters:xt,filterStates:nt},"filter",!0)},[Ne,Te,we]=$_e({prefixCls:W,locale:ee,dropdownPrefixCls:q,mergedColumns:L,onFilterChange:Se,getPopupContainer:w||K,rootClassName:oe(i,Q)}),Me=R_(Pe,Te,te);Ee.filters=we,Ee.filterStates=Te;const Ge=l.useMemo(()=>{const xt={};return Object.keys(we).forEach(nt=>{we[nt]!==null&&(xt[nt]=we[nt])}),Object.assign(Object.assign({},He),{filters:xt})},[He,we]),[st]=P_e(Ge),ge=(xt,nt)=>{ke({pagination:Object.assign(Object.assign({},Ee.pagination),{current:xt,pageSize:nt})},"paginate")},[ne,ve]=A_e(Me.length,ge,g);Ee.pagination=g===!1?{}:k_e(ne,g),Ee.resetPagination=ve;const _e=l.useMemo(()=>{if(g===!1||!ne.pageSize)return Me;const{current:xt=1,total:nt,pageSize:rt=tY}=ne;return Me.lengthrt?Me.slice((xt-1)*rt,xt*rt):Me:Me.slice((xt-1)*rt,xt*rt)},[!!g,Me,ne==null?void 0:ne.current,ne==null?void 0:ne.pageSize,ne==null?void 0:ne.total]),[ze,Ue]=ZRe({prefixCls:W,data:Me,pageData:_e,getRowKey:me,getRecordByKey:xe,expandType:se,childrenColumnName:te,locale:ee,getPopupContainer:w||K},m),Ae=(xt,nt,rt)=>{let bt;return typeof b=="function"?bt=oe(b(xt,nt,rt)):bt=oe(b),oe({[`${W}-row-selected`]:Ue.has(me(xt,nt))},bt)};fe.__PARENT_RENDER_ICON__=fe.expandIcon,fe.expandIcon=fe.expandIcon||E||e_e(ee),se==="nest"&&fe.expandIconColumnIndex===void 0?fe.expandIconColumnIndex=m?1:0:fe.expandIconColumnIndex>0&&m&&(fe.expandIconColumnIndex-=1),typeof fe.indentSize!="number"&&(fe.indentSize=typeof _=="number"?_:15);const Oe=l.useCallback(xt=>st(ze(Ne(Le(xt)))),[Le,Ne,ze]);let Re,at;if(g!==!1&&(ne!=null&&ne.total)){let xt;ne.size?xt=ne.size:xt=Y==="small"||Y==="middle"?"small":void 0;const nt=Ot=>l.createElement(kN,Object.assign({},ne,{className:oe(`${W}-pagination ${W}-pagination-${Ot}`,ne.className),size:xt})),rt=B==="rtl"?"left":"right",{position:bt}=ne;if(bt!==null&&Array.isArray(bt)){const Ot=bt.find(Et=>Et.includes("top")),ht=bt.find(Et=>Et.includes("bottom")),lt=bt.every(Et=>`${Et}`=="none");!Ot&&!ht&&!lt&&(at=nt(rt)),Ot&&(Re=nt(Ot.toLowerCase().replace("top",""))),ht&&(at=nt(ht.toLowerCase().replace("bottom","")))}else at=nt(rt)}let Ye;typeof C=="boolean"?Ye={spinning:C}:typeof C=="object"&&(Ye=Object.assign({spinning:!0},C));const We=oe(le,Q,`${W}-wrapper`,z==null?void 0:z.className,{[`${W}-wrapper-rtl`]:B==="rtl"},o,i,ie),qe=Object.assign(Object.assign({},z==null?void 0:z.style),s),Qe=typeof(P==null?void 0:P.emptyText)<"u"?P.emptyText:(U==null?void 0:U("Table"))||l.createElement(fy,{componentName:"Table"}),ot=O?j_e:L_e,wt={},kt=l.useMemo(()=>{const{fontSize:xt,lineHeight:nt,padding:rt,paddingXS:bt,paddingSM:Ot}=Z,ht=Math.floor(xt*nt);switch(Y){case"large":return rt*2+ht;case"small":return bt*2+ht;default:return Ot*2+ht}},[Z,Y]);return O&&(wt.listItemHeight=kt),J(l.createElement("div",{ref:re,className:We,style:qe},l.createElement(vf,Object.assign({spinning:!1},Ye),Re,l.createElement(ot,Object.assign({},wt,j,{ref:ue,columns:L,direction:B,expandable:fe,prefixCls:W,className:oe({[`${W}-middle`]:Y==="middle",[`${W}-small`]:Y==="small",[`${W}-bordered`]:u,[`${W}-empty`]:ae.length===0},le,Q,ie),data:_e,rowKey:me,rowClassName:Ae,emptyText:Qe,internalHooks:km,internalRefs:pe,transformColumns:Oe,getContainerWidth:he})),at)))},a$e=l.forwardRef(r$e),o$e=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(a$e,Object.assign({},e,{ref:t,_renderTimes:n.current}))},xa=l.forwardRef(o$e);xa.SELECTION_COLUMN=Qs;xa.EXPAND_COLUMN=nl;xa.SELECTION_ALL=w_;xa.SELECTION_INVERT=C_;xa.SELECTION_NONE=E_;xa.Column=BRe;xa.ColumnGroup=zRe;xa.Summary=$K;const i$e=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},an(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},QN=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Bt(e,{tagFontSize:a,tagLineHeight:G(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},JN=e=>({defaultBg:new sn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),aY=on("Tag",e=>{const t=QN(e);return i$e(t)},JN);var s$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,onChange:i,onClick:s}=e,c=s$e(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=l.useContext(ut),p=S=>{i==null||i(!o),s==null||s(S)},g=u("tag",n),[m,h,b]=aY(g),x=oe(g,`${g}-checkable`,{[`${g}-checkable-checked`]:o},d==null?void 0:d.className,a,h,b);return m(l.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:x,onClick:p})))}),c$e=e=>Y0(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),u$e=Qc(["Tag","preset"],e=>{const t=QN(e);return c$e(t)},JN);function d$e(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Uh=(e,t,n)=>{const r=d$e(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},f$e=Qc(["Tag","status"],e=>{const t=QN(e);return[Uh(t,"success","Success"),Uh(t,"processing","Info"),Uh(t,"error","Error"),Uh(t,"warning","Warning")]},JN);var p$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:p}=e,g=p$e(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:h,tag:b}=l.useContext(ut),[x,S]=l.useState(!0),v=Mn(g,["closeIcon","closable"]);l.useEffect(()=>{p!==void 0&&S(p)},[p]);const y=vy(c),w=Hge(c),C=y||w,E=Object.assign(Object.assign({backgroundColor:c&&!C?c:void 0},b==null?void 0:b.style),o),I=m("tag",n),[T,R,_]=aY(I),$=oe(I,b==null?void 0:b.className,{[`${I}-${c}`]:C,[`${I}-has-color`]:c&&!C,[`${I}-hidden`]:!x,[`${I}-rtl`]:h==="rtl",[`${I}-borderless`]:!d},r,a,R,_),M=A=>{A.stopPropagation(),u==null||u(A),!A.defaultPrevented&&S(!1)},[,P]=WO(Pd(e),Pd(b),{closable:!1,closeIconRender:A=>{const L=l.createElement("span",{className:`${I}-close-icon`,onClick:M},A);return $O(A,L,j=>({onClick:F=>{var B;(B=j==null?void 0:j.onClick)===null||B===void 0||B.call(j,F),M(F)},className:oe(j==null?void 0:j.className,`${I}-close-icon`)}))}}),D=typeof g.onClick=="function"||i&&i.type==="a",O=s||null,k=O?l.createElement(l.Fragment,null,O,i&&l.createElement("span",null,i)):i,N=l.createElement("span",Object.assign({},v,{ref:t,className:$,style:E}),k,P,y&&l.createElement(u$e,{key:"preset",prefixCls:I}),w&&l.createElement(f$e,{key:"status",prefixCls:I}));return T(D?l.createElement(um,{component:"Tag"},N):N)}),Lg=g$e;Lg.CheckableTag=l$e;const m$e=e=>{const t=e!=null&&e.algorithm?Ig(e.algorithm):Ig(im),n=Object.assign(Object.assign({},kd),e==null?void 0:e.token);return KH(n,{override:e==null?void 0:e.token},t,IO)};function h$e(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const v$e=(e,t)=>{const n=t??im(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),h$e(t??e)),yU(r)),{controlHeight:a}),bU(Object.assign(Object.assign({},n),{controlHeight:a})))},Fo=(e,t)=>new sn(e).setAlpha(t).toRgbString(),_u=(e,t)=>new sn(e).lighten(t).toHexString(),b$e=e=>{const t=Pc(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},y$e=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Fo(r,.85),colorTextSecondary:Fo(r,.65),colorTextTertiary:Fo(r,.45),colorTextQuaternary:Fo(r,.25),colorFill:Fo(r,.18),colorFillSecondary:Fo(r,.12),colorFillTertiary:Fo(r,.08),colorFillQuaternary:Fo(r,.04),colorBgSolid:Fo(r,.95),colorBgSolidHover:Fo(r,1),colorBgSolidActive:Fo(r,.9),colorBgElevated:_u(n,12),colorBgContainer:_u(n,8),colorBgLayout:_u(n,0),colorBgSpotlight:_u(n,26),colorBgBlur:Fo(r,.04),colorBorder:_u(n,26),colorBorderSecondary:_u(n,19)}},x$e=(e,t)=>{const n=Object.keys(SO).map(a=>{const o=Pc(e[a],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${a}-${c+1}`]=o[c],i[`${a}${c+1}`]=o[c],i),{})}).reduce((a,o)=>(a=Object.assign(Object.assign({},a),o),a),{}),r=t??im(e);return Object.assign(Object.assign(Object.assign({},r),n),vU(e,{generateColorPalettes:b$e,generateNeutralColorPalettes:y$e}))};function S$e(){const[e,t,n]=ta();return{theme:e,token:t,hashId:n}}const kr={defaultSeed:_g.token,useToken:S$e,defaultAlgorithm:im,darkAlgorithm:x$e,compactAlgorithm:v$e,getDesignToken:m$e,defaultConfig:_g,_internalContext:wO},w$e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},an(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${G(e.itemHeadSize)})`,borderInlineStart:`${G(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${G(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate, &${t}-right, &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${G(e.marginXXS)})`,width:`calc(50% - ${G(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${G(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, ${t}-item-head, @@ -477,12 +477,12 @@ html body { ${t}-item-last ${t}-item-tail`]:{display:"block",height:`calc(100% - ${G(e.margin)})`,borderInlineStart:`${G(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${G(e.margin)})`,borderInlineStart:`${G(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${G(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${G(e.marginSM)})`,width:`calc(50% - ${G(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},w$e=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),E$e=on("Timeline",e=>{const t=Ft(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[C$e(t)]},w$e);var I$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,color:r="blue",dot:a,pending:o=!1,position:i,label:s,children:c}=e,u=I$e(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:d}=l.useContext(lt),p=d("timeline",t),g=ae(`${p}-item`,{[`${p}-item-pending`]:o},n),m=/blue|red|green|gray/.test(r||"")?void 0:r,h=ae(`${p}-item-head`,{[`${p}-item-head-custom`]:!!a,[`${p}-item-head-${r}`]:!m});return l.createElement("li",Object.assign({},u,{className:g}),s&&l.createElement("div",{className:`${p}-item-label`},s),l.createElement("div",{className:`${p}-item-tail`}),l.createElement("div",{className:h,style:{borderColor:m,color:m}},a),l.createElement("div",{className:`${p}-item-content`},c))};var lL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,pending:r=!1,children:a,items:o,rootClassName:i,reverse:s=!1,direction:c,hashId:u,pendingDot:d,mode:p=""}=e,g=lL(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const m=(w,E)=>p==="alternate"?w==="right"?`${t}-item-right`:w==="left"?`${t}-item-left`:E%2===0?`${t}-item-left`:`${t}-item-right`:p==="left"?`${t}-item-left`:p==="right"?`${t}-item-right`:w==="right"?`${t}-item-right`:"",h=Me(o||[]),b=typeof r=="boolean"?null:r;r&&h.push({pending:!!r,dot:d||l.createElement(Zi,null),children:b}),s&&h.reverse();const x=h.length,S=`${t}-item-last`,v=h.filter(w=>!!w).map((w,E)=>{var I;const T=E===x-2?S:"",R=E===x-1?S:"",{className:_}=w,$=lL(w,["className"]);return l.createElement(oY,Object.assign({},$,{className:ae([_,!s&&r?T:R,m((I=w==null?void 0:w.position)!==null&&I!==void 0?I:"",E)]),key:(w==null?void 0:w.key)||E}))}),y=h.some(w=>!!(w!=null&&w.label)),C=ae(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!s,[`${t}-${p}`]:!!p&&!y,[`${t}-label`]:y,[`${t}-rtl`]:c==="rtl"},n,i,u);return l.createElement("ul",Object.assign({},g,{className:C}),v)};function R$e(e,t){return e&&Array.isArray(e)?e:_r(t).map(n=>{var r,a;return Object.assign({children:(a=(r=n==null?void 0:n.props)===null||r===void 0?void 0:r.children)!==null&&a!==void 0?a:""},n.props)})}var _$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,timeline:r}=l.useContext(lt),{prefixCls:a,children:o,items:i,className:s,style:c}=e,u=_$e(e,["prefixCls","children","items","className","style"]),d=t("timeline",a),p=ar(d),[g,m,h]=E$e(d,p),b=R$e(i,o);return g(l.createElement(T$e,Object.assign({},u,{className:ae(r==null?void 0:r.className,s,h,p),style:Object.assign(Object.assign({},r==null?void 0:r.style),c),prefixCls:d,direction:n,items:b,hashId:m})))};ek.Item=oY;const $$e=function(e){var t=l.useRef({valueLabels:new Map});return l.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i,s=o.value,c=(i=o.label)!==null&&i!==void 0?i:n.get(s);return r.set(s,c),X(X({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])},O$e=function(e,t,n,r){return l.useMemo(function(){var a=e.map(function(c){var u=c.value;return u}),o=t.map(function(c){var u=c.value;return u}),i=a.filter(function(c){return!r[c]});if(n){var s=xs(a,!0,r);a=s.checkedKeys,o=s.halfCheckedKeys}return[Array.from(new Set([].concat(Me(i),Me(a)))),o]},[e,t,n,r])};function N$e(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function k$e(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:a||"children"}}function O_(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function A$e(e,t){var n=[];function r(a){a.forEach(function(o){var i=o[t.children];i&&(n.push(o[t.value]),r(i))})}return r(e),n}function cL(e){return e==null}const M$e=function(e,t){return l.useMemo(function(){var n=_y(e,{fieldNames:t,initWrapper:function(a){return X(X({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])};var tk=function(){return null},D$e=["children","value"];function iY(e){return _r(e).map(function(t){if(!l.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,s=wt(a,D$e),c=X({key:r,value:i},s),u=iY(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function N_(e){if(!e)return e;var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return _n(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function P$e(e,t,n,r,a,o){var i=null,s=null;function c(){function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(m,h){var b="".concat(p,"-").concat(h),x=m[o.value],S=n.includes(x),v=u(m[o.children]||[],b,S),y=l.createElement(tk,m,v.map(function(w){return w.node}));if(t===x&&(i=y),S){var C={pos:b,node:y,children:v};return g||s.push(C),C}return null}).filter(function(m){return m})}s||(s=[],u(r),s.sort(function(d,p){var g=d.node.props.value,m=p.node.props.value,h=n.indexOf(g),b=n.indexOf(m);return h-b}))}Object.defineProperty(e,"triggerNode",{get:function(){return _n(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return _n(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?s:s.map(function(d){var p=d.node;return p})}})}const L$e=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,o=n.fieldNames,i=o.children;return l.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var c=t.toUpperCase();s=function(p,g){var m=g[r];return String(m).toUpperCase().includes(c)}}function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(g,m){var h=m[i],b=p||s(t,N_(m)),x=u(h||[],b);return(b||x.length)&&g.push(X(X({},m),{},V({isLeaf:void 0},i,x))),g},[])}return u(e)},[e,t,i,r,a])};function uL(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function j$e(e,t){var n=t.id,r=t.pId,a=t.rootPId,o={},i=[],s=e.map(function(c){var u=X({},c),d=u[n];return o[d]=u,u.key=u.key||d,u});return s.forEach(function(c){var u=c[r],d=o[u];d&&(d.children=d.children||[],d.children.push(c)),(u===a||!d&&a===null)&&i.push(c)}),i}function F$e(e,t,n){return l.useMemo(function(){return e?n?j$e(e,X({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:iY(t)},[t,n,e])}var sY=l.createContext(null),lY=l.createContext(null),B$e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},z$e=function(t,n){var r=QV(),a=r.prefixCls,o=r.multiple,i=r.searchValue,s=r.toggleOpen,c=r.open,u=r.notFoundContent,d=l.useContext(lY),p=d.virtual,g=d.listHeight,m=d.listItemHeight,h=d.listItemScrollOffset,b=d.treeData,x=d.fieldNames,S=d.onSelect,v=d.dropdownMatchSelectWidth,y=d.treeExpandAction,C=d.treeTitleRender,w=d.onPopupScroll,E=l.useContext(sY),I=E.checkable,T=E.checkedKeys,R=E.halfCheckedKeys,_=E.treeExpandedKeys,$=E.treeDefaultExpandAll,M=E.treeDefaultExpandedKeys,P=E.onTreeExpand,D=E.treeIcon,O=E.showTreeIcon,k=E.switcherIcon,N=E.treeLine,A=E.treeNodeFilterProp,L=E.loadData,j=E.treeLoadedKeys,F=E.treeMotion,B=E.onTreeLoad,z=E.keyEntities,U=l.useRef(),H=Bl(function(){return b},[c,b],function(Ne,_e){return _e[0]&&Ne[1]!==_e[1]}),Y=l.useState(null),K=le(Y,2),J=K[0],ne=K[1],W=z[J],q=l.useMemo(function(){return I?{checked:T,halfChecked:R}:null},[I,T,R]);l.useEffect(function(){if(c&&!o&&T.length){var Ne;(Ne=U.current)===null||Ne===void 0||Ne.scrollTo({key:T[0]}),ne(T[0])}},[c]);var Z=String(i).toLowerCase(),Q=function(_e){return Z?String(_e[A]).toLowerCase().includes(Z):!1},ee=l.useState(M),oe=le(ee,2),se=oe[0],fe=oe[1],te=l.useState(null),ie=le(te,2),pe=ie[0],me=ie[1],re=l.useMemo(function(){return _?Me(_):i?pe:se},[se,pe,_,i]);l.useEffect(function(){i&&me(A$e(b,x))},[i]);var ce=function(_e){fe(_e),me(_e),P&&P(_e)},ge=function(_e){_e.preventDefault()},ye=function(_e,Pe){var Le=Pe.node;I&&O_(Le)||(S(Le.key,{selected:!T.includes(Le.key)}),o||s(!1))};if(l.useImperativeHandle(n,function(){var Ne;return{scrollTo:(Ne=U.current)===null||Ne===void 0?void 0:Ne.scrollTo,onKeyDown:function(Pe){var Le,Ve=Pe.which;switch(Ve){case ze.UP:case ze.DOWN:case ze.LEFT:case ze.RIGHT:(Le=U.current)===null||Le===void 0||Le.onKeyDown(Pe);break;case ze.ENTER:{if(W){var je=(W==null?void 0:W.node)||{},De=je.selectable,Se=je.value;De!==!1&&ye(null,{node:{key:J},selected:!T.includes(Se)})}break}case ze.ESC:s(!1)}},onKeyUp:function(){}}}),H.length===0)return l.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ge},u);var Ee={fieldNames:x};return j&&(Ee.loadedKeys=j),re&&(Ee.expandedKeys=re),l.createElement("div",{onMouseDown:ge},W&&c&&l.createElement("span",{style:B$e,"aria-live":"assertive"},W.node.value),l.createElement(Fy,he({ref:U,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:H,height:g,itemHeight:m,itemScrollOffset:h,virtual:p!==!1&&v!==!1,multiple:o,icon:D,showIcon:O,switcherIcon:k,showLine:N,loadData:i?null:L,motion:F,activeKey:J,checkable:I,checkStrictly:!0,checkedKeys:q,selectedKeys:I?[]:T,defaultExpandAll:$,titleRender:C},Ee,{onActiveChange:ne,onSelect:ye,onCheck:ye,onExpand:ce,onLoad:B,filterTreeNode:Q,expandAction:y,onScroll:w})))},H$e=l.forwardRef(z$e),nk="SHOW_ALL",rk="SHOW_PARENT",By="SHOW_CHILD";function dL(e,t,n,r){var a=new Set(e);return t===By?e.filter(function(o){var i=n[o];return!(i&&i.children&&i.children.some(function(s){var c=s.node;return a.has(c[r.value])})&&i.children.every(function(s){var c=s.node;return O_(c)||a.has(c[r.value])}))}):t===rk?e.filter(function(o){var i=n[o],s=i?i.parent:null;return!(s&&!O_(s.node)&&a.has(s.key))}):e}var U$e=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function V$e(e){return!e||mt(e)!=="object"}var W$e=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,s=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,p=e.inputValue,g=e.onSearch,m=e.autoClearSearchValue,h=m===void 0?!0:m,b=e.filterTreeNode,x=e.treeNodeFilterProp,S=x===void 0?"value":x,v=e.showCheckedStrategy,y=e.treeNodeLabelProp,C=e.multiple,w=e.treeCheckable,E=e.treeCheckStrictly,I=e.labelInValue,T=e.fieldNames,R=e.treeDataSimpleMode,_=e.treeData,$=e.children,M=e.loadData,P=e.treeLoadedKeys,D=e.onTreeLoad,O=e.treeDefaultExpandAll,k=e.treeExpandedKeys,N=e.treeDefaultExpandedKeys,A=e.onTreeExpand,L=e.treeExpandAction,j=e.virtual,F=e.listHeight,B=F===void 0?200:F,z=e.listItemHeight,U=z===void 0?20:z,H=e.listItemScrollOffset,Y=H===void 0?0:H,K=e.onDropdownVisibleChange,J=e.dropdownMatchSelectWidth,ne=J===void 0?!0:J,W=e.treeLine,q=e.treeIcon,Z=e.showTreeIcon,Q=e.switcherIcon,ee=e.treeMotion,oe=e.treeTitleRender,se=e.onPopupScroll,fe=wt(e,U$e),te=uW(n),ie=w&&!E,pe=w||E,me=E||I,re=pe||C,ce=fn(i,{value:o}),ge=le(ce,2),ye=ge[0],Ee=ge[1],Ne=l.useMemo(function(){return w?v||By:nk},[v,w]),_e=l.useMemo(function(){return k$e(T)},[JSON.stringify(T)]),Pe=fn("",{value:d!==void 0?d:p,postState:function(it){return it||""}}),Le=le(Pe,2),Ve=Le[0],je=Le[1],De=function(it){je(it),g==null||g(it)},Se=F$e(_,$,R),Oe=M$e(Se,_e),Re=Oe.keyEntities,Ce=Oe.valueEntities,xe=l.useCallback(function(ht){var it=[],Et=[];return ht.forEach(function(Ze){Ce.has(Ze)?Et.push(Ze):it.push(Ze)}),{missingRawValues:it,existRawValues:Et}},[Ce]),$e=L$e(Se,Ve,{fieldNames:_e,treeNodeFilterProp:S,filterTreeNode:b}),Fe=l.useCallback(function(ht){if(ht){if(y)return ht[y];for(var it=_e._title,Et=0;Et{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${G(e.paddingXS)} ${G(e.calc(e.paddingXS).div(2).equal())}`},qK(n,Ft(e,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},wN(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function q$e(e,t,n){return on("TreeSelect",r=>{const a=Ft(r,{treePrefixCls:t});return[G$e(a)]},KK)(e,n)}var K$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,size:a,disabled:o,bordered:i=!0,className:s,rootClassName:c,treeCheckable:u,multiple:d,listHeight:p=256,listItemHeight:g=26,placement:m,notFoundContent:h,switcherIcon:b,treeLine:x,getPopupContainer:S,popupClassName:v,dropdownClassName:y,treeIcon:C=!1,transitionName:w,choiceTransitionName:E="",status:I,treeExpandAction:T,builtinPlacements:R,dropdownMatchSelectWidth:_,popupMatchSelectWidth:$,allowClear:M,variant:P,dropdownStyle:D,tagRender:O}=e,k=K$e(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:N,getPrefixCls:A,renderEmpty:L,direction:j,virtual:F,popupMatchSelectWidth:B,popupOverflow:z}=l.useContext(lt),U=A(),H=A("select",r),Y=A("select-tree",r),K=A("tree-select",r),{compactSize:J,compactItemClassnames:ne}=Ds(H,j),W=ar(H),q=ar(K),[Z,Q,ee]=yW(H,W),[oe]=q$e(K,Y,q),[se,fe]=Jc("treeSelect",P,i),te=ae(v||y,`${K}-dropdown`,{[`${K}-dropdown-rtl`]:j==="rtl"},c,ee,W,q,Q),ie=!!(u||d),pe=xW(e.suffixIcon,e.showArrow),me=(n=$??_)!==null&&n!==void 0?n:B,{status:re,hasFeedback:ce,isFormItemInput:ge,feedbackIcon:ye}=l.useContext(ea),Ee=Vl(re,I),{suffixIcon:Ne,removeIcon:_e,clearIcon:Pe}=ZO(Object.assign(Object.assign({},k),{multiple:ie,showSuffixIcon:pe,hasFeedback:ce,feedbackIcon:ye,prefixCls:H,componentName:"TreeSelect"})),Le=M===!0?{clearIcon:Pe}:M;let Ve;h!==void 0?Ve=h:Ve=(L==null?void 0:L("Select"))||l.createElement(uy,{componentName:"Select"});const je=Mn(k,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),De=l.useMemo(()=>m!==void 0?m:j==="rtl"?"bottomRight":"bottomLeft",[m,j]),Se=Lr(be=>{var ue;return(ue=a??J)!==null&&ue!==void 0?ue:be}),Oe=l.useContext(fa),Re=o??Oe,Ce=ae(!r&&K,{[`${H}-lg`]:Se==="large",[`${H}-sm`]:Se==="small",[`${H}-rtl`]:j==="rtl",[`${H}-${se}`]:fe,[`${H}-in-form-item`]:ge},$s(H,Ee,ce),ne,s,c,ee,W,q,Q),xe=be=>l.createElement(YK,{prefixCls:Y,switcherIcon:b,treeNodeProps:be,showLine:x}),[$e]=Ai("SelectLike",D==null?void 0:D.zIndex),Fe=l.createElement(km,Object.assign({virtual:F,disabled:Re},je,{dropdownMatchSelectWidth:me,builtinPlacements:gW(R,z),ref:t,prefixCls:H,className:Ce,listHeight:p,listItemHeight:g,treeCheckable:u&&l.createElement("span",{className:`${H}-tree-checkbox-inner`}),treeLine:!!x,suffixIcon:Ne,multiple:ie,placement:De,removeIcon:_e,allowClear:Le,switcherIcon:xe,showTreeIcon:C,notFoundContent:Ve,getPopupContainer:S||N,treeMotion:null,dropdownClassName:te,dropdownStyle:Object.assign(Object.assign({},D),{zIndex:$e}),choiceTransitionName:Da(U,"",E),transitionName:Da(U,"slide-up",w),treeExpandAction:T,tagRender:ie?O:void 0}));return Z(oe(Fe))},X$e=l.forwardRef(Y$e),Gl=X$e,Z$e=hm(Gl);Gl.TreeNode=tk;Gl.SHOW_ALL=nk;Gl.SHOW_PARENT=rk;Gl.SHOW_CHILD=By;Gl._InternalPanelDoNotUseOrYouWillBeFired=Z$e;const Q$e=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},J$e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${G(e.margin)})`,borderInlineStart:`${G(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${G(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${G(e.marginSM)})`,width:`calc(50% - ${G(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},C$e=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),E$e=on("Timeline",e=>{const t=Bt(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[w$e(t)]},C$e);var I$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,color:r="blue",dot:a,pending:o=!1,position:i,label:s,children:c}=e,u=I$e(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:d}=l.useContext(ut),p=d("timeline",t),g=oe(`${p}-item`,{[`${p}-item-pending`]:o},n),m=/blue|red|green|gray/.test(r||"")?void 0:r,h=oe(`${p}-item-head`,{[`${p}-item-head-custom`]:!!a,[`${p}-item-head-${r}`]:!m});return l.createElement("li",Object.assign({},u,{className:g}),s&&l.createElement("div",{className:`${p}-item-label`},s),l.createElement("div",{className:`${p}-item-tail`}),l.createElement("div",{className:h,style:{borderColor:m,color:m}},a),l.createElement("div",{className:`${p}-item-content`},c))};var lL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,pending:r=!1,children:a,items:o,rootClassName:i,reverse:s=!1,direction:c,hashId:u,pendingDot:d,mode:p=""}=e,g=lL(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const m=(C,E)=>p==="alternate"?C==="right"?`${t}-item-right`:C==="left"?`${t}-item-left`:E%2===0?`${t}-item-left`:`${t}-item-right`:p==="left"?`${t}-item-left`:p==="right"?`${t}-item-right`:C==="right"?`${t}-item-right`:"",h=De(o||[]),b=typeof r=="boolean"?null:r;r&&h.push({pending:!!r,dot:d||l.createElement(Qi,null),children:b}),s&&h.reverse();const x=h.length,S=`${t}-item-last`,v=h.filter(C=>!!C).map((C,E)=>{var I;const T=E===x-2?S:"",R=E===x-1?S:"",{className:_}=C,$=lL(C,["className"]);return l.createElement(oY,Object.assign({},$,{className:oe([_,!s&&r?T:R,m((I=C==null?void 0:C.position)!==null&&I!==void 0?I:"",E)]),key:(C==null?void 0:C.key)||E}))}),y=h.some(C=>!!(C!=null&&C.label)),w=oe(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!s,[`${t}-${p}`]:!!p&&!y,[`${t}-label`]:y,[`${t}-rtl`]:c==="rtl"},n,i,u);return l.createElement("ul",Object.assign({},g,{className:w}),v)};function R$e(e,t){return e&&Array.isArray(e)?e:_r(t).map(n=>{var r,a;return Object.assign({children:(a=(r=n==null?void 0:n.props)===null||r===void 0?void 0:r.children)!==null&&a!==void 0?a:""},n.props)})}var _$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,timeline:r}=l.useContext(ut),{prefixCls:a,children:o,items:i,className:s,style:c}=e,u=_$e(e,["prefixCls","children","items","className","style"]),d=t("timeline",a),p=ar(d),[g,m,h]=E$e(d,p),b=R$e(i,o);return g(l.createElement(T$e,Object.assign({},u,{className:oe(r==null?void 0:r.className,s,h,p),style:Object.assign(Object.assign({},r==null?void 0:r.style),c),prefixCls:d,direction:n,items:b,hashId:m})))};ek.Item=oY;const $$e=function(e){var t=l.useRef({valueLabels:new Map});return l.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i,s=o.value,c=(i=o.label)!==null&&i!==void 0?i:n.get(s);return r.set(s,c),X(X({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])},O$e=function(e,t,n,r){return l.useMemo(function(){var a=e.map(function(c){var u=c.value;return u}),o=t.map(function(c){var u=c.value;return u}),i=a.filter(function(c){return!r[c]});if(n){var s=ws(a,!0,r);a=s.checkedKeys,o=s.halfCheckedKeys}return[Array.from(new Set([].concat(De(i),De(a)))),o]},[e,t,n,r])};function N$e(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function k$e(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:a||"children"}}function O_(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function A$e(e,t){var n=[];function r(a){a.forEach(function(o){var i=o[t.children];i&&(n.push(o[t.value]),r(i))})}return r(e),n}function cL(e){return e==null}const M$e=function(e,t){return l.useMemo(function(){var n=Oy(e,{fieldNames:t,initWrapper:function(a){return X(X({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])};var tk=function(){return null},D$e=["children","value"];function iY(e){return _r(e).map(function(t){if(!l.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,s=Ct(a,D$e),c=X({key:r,value:i},s),u=iY(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function N_(e){if(!e)return e;var t=X({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return $n(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function P$e(e,t,n,r,a,o){var i=null,s=null;function c(){function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(m,h){var b="".concat(p,"-").concat(h),x=m[o.value],S=n.includes(x),v=u(m[o.children]||[],b,S),y=l.createElement(tk,m,v.map(function(C){return C.node}));if(t===x&&(i=y),S){var w={pos:b,node:y,children:v};return g||s.push(w),w}return null}).filter(function(m){return m})}s||(s=[],u(r),s.sort(function(d,p){var g=d.node.props.value,m=p.node.props.value,h=n.indexOf(g),b=n.indexOf(m);return h-b}))}Object.defineProperty(e,"triggerNode",{get:function(){return $n(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return $n(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?s:s.map(function(d){var p=d.node;return p})}})}const L$e=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,o=n.fieldNames,i=o.children;return l.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var c=t.toUpperCase();s=function(p,g){var m=g[r];return String(m).toUpperCase().includes(c)}}function u(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(g,m){var h=m[i],b=p||s(t,N_(m)),x=u(h||[],b);return(b||x.length)&&g.push(X(X({},m),{},V({isLeaf:void 0},i,x))),g},[])}return u(e)},[e,t,i,r,a])};function uL(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function j$e(e,t){var n=t.id,r=t.pId,a=t.rootPId,o={},i=[],s=e.map(function(c){var u=X({},c),d=u[n];return o[d]=u,u.key=u.key||d,u});return s.forEach(function(c){var u=c[r],d=o[u];d&&(d.children=d.children||[],d.children.push(c)),(u===a||!d&&a===null)&&i.push(c)}),i}function F$e(e,t,n){return l.useMemo(function(){return e?n?j$e(e,X({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:iY(t)},[t,n,e])}var sY=l.createContext(null),lY=l.createContext(null),B$e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},z$e=function(t,n){var r=QV(),a=r.prefixCls,o=r.multiple,i=r.searchValue,s=r.toggleOpen,c=r.open,u=r.notFoundContent,d=l.useContext(lY),p=d.virtual,g=d.listHeight,m=d.listItemHeight,h=d.listItemScrollOffset,b=d.treeData,x=d.fieldNames,S=d.onSelect,v=d.dropdownMatchSelectWidth,y=d.treeExpandAction,w=d.treeTitleRender,C=d.onPopupScroll,E=l.useContext(sY),I=E.checkable,T=E.checkedKeys,R=E.halfCheckedKeys,_=E.treeExpandedKeys,$=E.treeDefaultExpandAll,M=E.treeDefaultExpandedKeys,P=E.onTreeExpand,D=E.treeIcon,O=E.showTreeIcon,k=E.switcherIcon,N=E.treeLine,A=E.treeNodeFilterProp,L=E.loadData,j=E.treeLoadedKeys,F=E.treeMotion,B=E.onTreeLoad,z=E.keyEntities,U=l.useRef(),H=Bl(function(){return b},[c,b],function(ke,$e){return $e[0]&&ke[1]!==$e[1]}),K=l.useState(null),Y=ce(K,2),ee=Y[0],ae=Y[1],W=z[ee],q=l.useMemo(function(){return I?{checked:T,halfChecked:R}:null},[I,T,R]);l.useEffect(function(){if(c&&!o&&T.length){var ke;(ke=U.current)===null||ke===void 0||ke.scrollTo({key:T[0]}),ae(T[0])}},[c]);var Z=String(i).toLowerCase(),Q=function($e){return Z?String($e[A]).toLowerCase().includes(Z):!1},J=l.useState(M),ie=ce(J,2),le=ie[0],fe=ie[1],te=l.useState(null),se=ce(te,2),pe=se[0],he=se[1],re=l.useMemo(function(){return _?De(_):i?pe:le},[le,pe,_,i]);l.useEffect(function(){i&&he(A$e(b,x))},[i]);var ue=function($e){fe($e),he($e),P&&P($e)},me=function($e){$e.preventDefault()},xe=function($e,Le){var je=Le.node;I&&O_(je)||(S(je.key,{selected:!T.includes(je.key)}),o||s(!1))};if(l.useImperativeHandle(n,function(){var ke;return{scrollTo:(ke=U.current)===null||ke===void 0?void 0:ke.scrollTo,onKeyDown:function(Le){var je,He=Le.which;switch(He){case Fe.UP:case Fe.DOWN:case Fe.LEFT:case Fe.RIGHT:(je=U.current)===null||je===void 0||je.onKeyDown(Le);break;case Fe.ENTER:{if(W){var Be=(W==null?void 0:W.node)||{},Pe=Be.selectable,Se=Be.value;Pe!==!1&&xe(null,{node:{key:ee},selected:!T.includes(Se)})}break}case Fe.ESC:s(!1)}},onKeyUp:function(){}}}),H.length===0)return l.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:me},u);var Ee={fieldNames:x};return j&&(Ee.loadedKeys=j),re&&(Ee.expandedKeys=re),l.createElement("div",{onMouseDown:me},W&&c&&l.createElement("span",{style:B$e,"aria-live":"assertive"},W.node.value),l.createElement(zy,be({ref:U,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:H,height:g,itemHeight:m,itemScrollOffset:h,virtual:p!==!1&&v!==!1,multiple:o,icon:D,showIcon:O,switcherIcon:k,showLine:N,loadData:i?null:L,motion:F,activeKey:ee,checkable:I,checkStrictly:!0,checkedKeys:q,selectedKeys:I?[]:T,defaultExpandAll:$,titleRender:w},Ee,{onActiveChange:ae,onSelect:xe,onCheck:xe,onExpand:ue,onLoad:B,filterTreeNode:Q,expandAction:y,onScroll:C})))},H$e=l.forwardRef(z$e),nk="SHOW_ALL",rk="SHOW_PARENT",Hy="SHOW_CHILD";function dL(e,t,n,r){var a=new Set(e);return t===Hy?e.filter(function(o){var i=n[o];return!(i&&i.children&&i.children.some(function(s){var c=s.node;return a.has(c[r.value])})&&i.children.every(function(s){var c=s.node;return O_(c)||a.has(c[r.value])}))}):t===rk?e.filter(function(o){var i=n[o],s=i?i.parent:null;return!(s&&!O_(s.node)&&a.has(s.key))}):e}var U$e=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function V$e(e){return!e||mt(e)!=="object"}var W$e=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,s=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,p=e.inputValue,g=e.onSearch,m=e.autoClearSearchValue,h=m===void 0?!0:m,b=e.filterTreeNode,x=e.treeNodeFilterProp,S=x===void 0?"value":x,v=e.showCheckedStrategy,y=e.treeNodeLabelProp,w=e.multiple,C=e.treeCheckable,E=e.treeCheckStrictly,I=e.labelInValue,T=e.fieldNames,R=e.treeDataSimpleMode,_=e.treeData,$=e.children,M=e.loadData,P=e.treeLoadedKeys,D=e.onTreeLoad,O=e.treeDefaultExpandAll,k=e.treeExpandedKeys,N=e.treeDefaultExpandedKeys,A=e.onTreeExpand,L=e.treeExpandAction,j=e.virtual,F=e.listHeight,B=F===void 0?200:F,z=e.listItemHeight,U=z===void 0?20:z,H=e.listItemScrollOffset,K=H===void 0?0:H,Y=e.onDropdownVisibleChange,ee=e.dropdownMatchSelectWidth,ae=ee===void 0?!0:ee,W=e.treeLine,q=e.treeIcon,Z=e.showTreeIcon,Q=e.switcherIcon,J=e.treeMotion,ie=e.treeTitleRender,le=e.onPopupScroll,fe=Ct(e,U$e),te=uW(n),se=C&&!E,pe=C||E,he=E||I,re=pe||w,ue=fn(i,{value:o}),me=ce(ue,2),xe=me[0],Ee=me[1],ke=l.useMemo(function(){return C?v||Hy:nk},[v,C]),$e=l.useMemo(function(){return k$e(T)},[JSON.stringify(T)]),Le=fn("",{value:d!==void 0?d:p,postState:function(lt){return lt||""}}),je=ce(Le,2),He=je[0],Be=je[1],Pe=function(lt){Be(lt),g==null||g(lt)},Se=F$e(_,$,R),Ne=M$e(Se,$e),Te=Ne.keyEntities,we=Ne.valueEntities,Me=l.useCallback(function(ht){var lt=[],Et=[];return ht.forEach(function(Ze){we.has(Ze)?Et.push(Ze):lt.push(Ze)}),{missingRawValues:lt,existRawValues:Et}},[we]),Ge=L$e(Se,He,{fieldNames:$e,treeNodeFilterProp:S,filterTreeNode:b}),st=l.useCallback(function(ht){if(ht){if(y)return ht[y];for(var lt=$e._title,Et=0;Et{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${G(e.paddingXS)} ${G(e.calc(e.paddingXS).div(2).equal())}`},qK(n,Bt(e,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},CN(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function q$e(e,t,n){return on("TreeSelect",r=>{const a=Bt(r,{treePrefixCls:t});return[G$e(a)]},KK)(e,n)}var K$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,size:a,disabled:o,bordered:i=!0,className:s,rootClassName:c,treeCheckable:u,multiple:d,listHeight:p=256,listItemHeight:g=26,placement:m,notFoundContent:h,switcherIcon:b,treeLine:x,getPopupContainer:S,popupClassName:v,dropdownClassName:y,treeIcon:w=!1,transitionName:C,choiceTransitionName:E="",status:I,treeExpandAction:T,builtinPlacements:R,dropdownMatchSelectWidth:_,popupMatchSelectWidth:$,allowClear:M,variant:P,dropdownStyle:D,tagRender:O}=e,k=K$e(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:N,getPrefixCls:A,renderEmpty:L,direction:j,virtual:F,popupMatchSelectWidth:B,popupOverflow:z}=l.useContext(ut),U=A(),H=A("select",r),K=A("select-tree",r),Y=A("tree-select",r),{compactSize:ee,compactItemClassnames:ae}=Ps(H,j),W=ar(H),q=ar(Y),[Z,Q,J]=yW(H,W),[ie]=q$e(Y,K,q),[le,fe]=Jc("treeSelect",P,i),te=oe(v||y,`${Y}-dropdown`,{[`${Y}-dropdown-rtl`]:j==="rtl"},c,J,W,q,Q),se=!!(u||d),pe=xW(e.suffixIcon,e.showArrow),he=(n=$??_)!==null&&n!==void 0?n:B,{status:re,hasFeedback:ue,isFormItemInput:me,feedbackIcon:xe}=l.useContext(ea),Ee=Vl(re,I),{suffixIcon:ke,removeIcon:$e,clearIcon:Le}=ZO(Object.assign(Object.assign({},k),{multiple:se,showSuffixIcon:pe,hasFeedback:ue,feedbackIcon:xe,prefixCls:H,componentName:"TreeSelect"})),je=M===!0?{clearIcon:Le}:M;let He;h!==void 0?He=h:He=(L==null?void 0:L("Select"))||l.createElement(fy,{componentName:"Select"});const Be=Mn(k,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Pe=l.useMemo(()=>m!==void 0?m:j==="rtl"?"bottomRight":"bottomLeft",[m,j]),Se=Lr(ge=>{var ne;return(ne=a??ee)!==null&&ne!==void 0?ne:ge}),Ne=l.useContext(pa),Te=o??Ne,we=oe(!r&&Y,{[`${H}-lg`]:Se==="large",[`${H}-sm`]:Se==="small",[`${H}-rtl`]:j==="rtl",[`${H}-${le}`]:fe,[`${H}-in-form-item`]:me},Ns(H,Ee,ue),ae,s,c,J,W,q,Q),Me=ge=>l.createElement(YK,{prefixCls:K,switcherIcon:b,treeNodeProps:ge,showLine:x}),[Ge]=Mi("SelectLike",D==null?void 0:D.zIndex),st=l.createElement(Am,Object.assign({virtual:F,disabled:Te},Be,{dropdownMatchSelectWidth:he,builtinPlacements:gW(R,z),ref:t,prefixCls:H,className:we,listHeight:p,listItemHeight:g,treeCheckable:u&&l.createElement("span",{className:`${H}-tree-checkbox-inner`}),treeLine:!!x,suffixIcon:ke,multiple:se,placement:Pe,removeIcon:$e,allowClear:je,switcherIcon:Me,showTreeIcon:w,notFoundContent:He,getPopupContainer:S||N,treeMotion:null,dropdownClassName:te,dropdownStyle:Object.assign(Object.assign({},D),{zIndex:Ge}),choiceTransitionName:Da(U,"",E),transitionName:Da(U,"slide-up",C),treeExpandAction:T,tagRender:se?O:void 0}));return Z(ie(st))},X$e=l.forwardRef(Y$e),Gl=X$e,Z$e=vm(Gl);Gl.TreeNode=tk;Gl.SHOW_ALL=nk;Gl.SHOW_PARENT=rk;Gl.SHOW_CHILD=Hy;Gl._InternalPanelDoNotUseOrYouWillBeFired=Z$e;const Q$e=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},J$e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} - `]=Q$e(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},eOe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},TO(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},tOe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Nb[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),nOe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${G(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},rOe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),aOe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),oOe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},J$e(e)),{[` + `]=Q$e(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},eOe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},TO(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},tOe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:kb[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),nOe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${G(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},rOe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),aOe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),oOe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},J$e(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, @@ -493,13 +493,13 @@ html body { ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},TO(e)),{marginInlineStart:e.marginXXS})}),nOe(e)),rOe(e)),aOe()),{"&-rtl":{direction:"rtl"}})}},iOe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),cY=on("Typography",e=>[oOe(e)],iOe),sOe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:p,component:g,enterIcon:m=l.createElement(EEe,null)}=e,h=l.useRef(null),b=l.useRef(!1),x=l.useRef(),[S,v]=l.useState(c);l.useEffect(()=>{v(c)},[c]),l.useEffect(()=>{var D;if(!((D=h.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:O}=h.current.resizableTextArea;O.focus();const{length:k}=O.value;O.setSelectionRange(k,k)}},[]);const y=D=>{let{target:O}=D;v(O.value.replace(/[\n\r]/g,""))},C=()=>{b.current=!0},w=()=>{b.current=!1},E=D=>{let{keyCode:O}=D;b.current||(x.current=O)},I=()=>{u(S.trim())},T=D=>{let{keyCode:O,ctrlKey:k,altKey:N,metaKey:A,shiftKey:L}=D;x.current!==O||b.current||k||N||A||L||(O===ze.ENTER?(I(),p==null||p()):O===ze.ESC&&d())},R=()=>{I()},[_,$,M]=cY(t),P=ae(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${g}`]:!!g},r,$,M);return _(l.createElement("div",{className:P,style:a},l.createElement(vq,{ref:h,maxLength:i,value:S,onChange:y,onKeyDown:E,onKeyUp:T,onCompositionStart:C,onCompositionEnd:w,onBlur:R,"aria-label":n,rows:1,autoSize:s}),m!==null?$r(m,{className:`${t}-edit-content-confirm`}):null))};var lOe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=fL[t.format]||fL.default;window.clipboardData.setData(p,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),r=dOe("message"in t?t.message:uOe),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var pOe=fOe;const gOe=Wa(pOe);var mOe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(p){i(p)}}function c(d){try{u(r.throw(d))}catch(p){i(p)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const hOe=e=>{let{copyConfig:t,children:n}=e;const[r,a]=l.useState(!1),[o,i]=l.useState(!1),s=l.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),l.useEffect(()=>c,[]);const d=Gt(p=>mOe(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),i(!0);try{const m=typeof t.text=="function"?yield t.text():t.text;gOe(m||LCe(n,!0).join("")||"",u),i(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),(g=t.onCopy)===null||g===void 0||g.call(t,p)}catch(m){throw i(!1),m}}));return{copied:r,copyLoading:o,onClick:d}};function JS(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const vOe=e=>{const t=l.useRef();return l.useEffect(()=>{t.current=e}),t.current},bOe=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var yOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:c,style:u}=e,d=yOe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:g,typography:m}=l.useContext(lt),h=c??g,b=i?ga(t,i):t,x=p("typography",n),[S,v,y]=cY(x),C=ae(x,m==null?void 0:m.className,{[`${x}-rtl`]:h==="rtl"},a,o,v,y),w=Object.assign(Object.assign({},m==null?void 0:m.style),u);return S(l.createElement(r,Object.assign({className:C,style:w,ref:b},d),s))});function pL(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function e1(e,t,n){return e===!0||e===void 0?t:e||n&&t}function xOe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const ak=e=>["string","number"].includes(typeof e),SOe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:i,tabIndex:s,onCopy:c,loading:u}=e;const d=pL(o),p=pL(i),{copied:g,copy:m}=r??{},h=n?g:m,b=e1(d[n?1:0],h),x=typeof b=="string"?b:h;return l.createElement(Wt,{title:b},l.createElement("button",{type:"button",className:ae(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":x,tabIndex:s},n?e1(p[1],l.createElement(df,null),!0):e1(p[0],u?l.createElement(Zi,null):l.createElement(Dy,null),!0)))},Uh=l.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=l.useRef(null);return l.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),COe=e=>e.reduce((t,n)=>t+(ak(n)?String(n).length:1),0);function gL(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const t1=0,n1=1,r1=2,a1=3,mL=4,Vh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function wOe(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>_r(r),[r]),d=l.useMemo(()=>COe(u),[r]),p=l.useMemo(()=>a(u,!1),[r]),[g,m]=l.useState(null),h=l.useRef(null),b=l.useRef(null),x=l.useRef(null),S=l.useRef(null),v=l.useRef(null),[y,C]=l.useState(!1),[w,E]=l.useState(t1),[I,T]=l.useState(0),[R,_]=l.useState(null);Yt(()=>{E(t&&n&&d?n1:t1)},[n,r,o,t,u]),Yt(()=>{var D,O,k,N;if(w===n1){E(r1);const A=b.current&&getComputedStyle(b.current).whiteSpace;_(A)}else if(w===r1){const A=!!(!((D=x.current)===null||D===void 0)&&D.isExceed());E(A?a1:mL),m(A?[0,d]:null),C(A);const L=((O=x.current)===null||O===void 0?void 0:O.getHeight())||0,j=o===1?0:((k=S.current)===null||k===void 0?void 0:k.getHeight())||0,F=((N=v.current)===null||N===void 0?void 0:N.getHeight())||0,B=Math.max(L,j+F);T(B+1),c(A)}},[w]);const $=g?Math.ceil((g[0]+g[1])/2):0;Yt(()=>{var D;const[O,k]=g||[0,0];if(O!==k){const A=(((D=h.current)===null||D===void 0?void 0:D.getHeight())||0)>I;let L=$;k-O===1&&(L=A?O:k),m(A?[O,L]:[L,k])}},[g,$]);const M=l.useMemo(()=>{if(!t)return a(u,!1);if(w!==a1||!g||g[0]!==g[1]){const D=a(u,!1);return[mL,t1].includes(w)?D:l.createElement("span",{style:Object.assign(Object.assign({},Vh),{WebkitLineClamp:o})},D)}return a(i?u:gL(u,g[0]),y)},[i,w,g,u].concat(Me(s))),P={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,M,w===r1&&l.createElement(l.Fragment,null,l.createElement(Uh,{style:Object.assign(Object.assign(Object.assign({},P),Vh),{WebkitLineClamp:o}),ref:x},p),l.createElement(Uh,{style:Object.assign(Object.assign(Object.assign({},P),Vh),{WebkitLineClamp:o-1}),ref:S},p),l.createElement(Uh,{style:Object.assign(Object.assign(Object.assign({},P),Vh),{WebkitLineClamp:1}),ref:v},a([],!0))),w===a1&&g&&g[0]!==g[1]&&l.createElement(Uh,{style:Object.assign(Object.assign({},P),{top:400}),ref:h},a(gL(u,$),!0)),w===n1&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const EOe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:l.createElement(Wt,Object.assign({open:n?void 0:!1},a),r)};var IOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:i,disabled:s,children:c,ellipsis:u,editable:d,copyable:p,component:g,title:m}=e,h=IOe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:x}=l.useContext(lt),[S]=es("Text"),v=l.useRef(null),y=l.useRef(null),C=b("typography",r),w=Mn(h,["mark","code","delete","underline","strong","keyboard","italic"]),[E,I]=JS(d),[T,R]=fn(!1,{value:I.editing}),{triggerType:_=["icon"]}=I,$=Re=>{var Ce;Re&&((Ce=I.onStart)===null||Ce===void 0||Ce.call(I)),R(Re)},M=vOe(T);Yt(()=>{var Re;!T&&M&&((Re=y.current)===null||Re===void 0||Re.focus())},[T]);const P=Re=>{Re==null||Re.preventDefault(),$(!0)},D=Re=>{var Ce;(Ce=I.onChange)===null||Ce===void 0||Ce.call(I,Re),$(!1)},O=()=>{var Re;(Re=I.onCancel)===null||Re===void 0||Re.call(I),$(!1)},[k,N]=JS(p),{copied:A,copyLoading:L,onClick:j}=hOe({copyConfig:N,children:c}),[F,B]=l.useState(!1),[z,U]=l.useState(!1),[H,Y]=l.useState(!1),[K,J]=l.useState(!1),[ne,W]=l.useState(!0),[q,Z]=JS(u,{expandable:!1,symbol:Re=>Re?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[Q,ee]=fn(Z.defaultExpanded||!1,{value:Z.expanded}),oe=q&&(!Q||Z.expandable==="collapsible"),{rows:se=1}=Z,fe=l.useMemo(()=>oe&&(Z.suffix!==void 0||Z.onEllipsis||Z.expandable||E||k),[oe,Z,E,k]);Yt(()=>{q&&!fe&&(B(GR("webkitLineClamp")),U(GR("textOverflow")))},[fe,q]);const[te,ie]=l.useState(oe),pe=l.useMemo(()=>fe?!1:se===1?z:F,[fe,z,F]);Yt(()=>{ie(pe&&oe)},[pe,oe]);const me=oe&&(te?K:H),re=oe&&se===1&&te,ce=oe&&se>1&&te,ge=(Re,Ce)=>{var xe;ee(Ce.expanded),(xe=Z.onExpand)===null||xe===void 0||xe.call(Z,Re,Ce)},[ye,Ee]=l.useState(0),Ne=Re=>{let{offsetWidth:Ce}=Re;Ee(Ce)},_e=Re=>{var Ce;Y(Re),H!==Re&&((Ce=Z.onEllipsis)===null||Ce===void 0||Ce.call(Z,Re))};l.useEffect(()=>{const Re=v.current;if(q&&te&&Re){const Ce=xOe(Re);K!==Ce&&J(Ce)}},[q,te,c,ce,ne,ye]),l.useEffect(()=>{const Re=v.current;if(typeof IntersectionObserver>"u"||!Re||!te||!oe)return;const Ce=new IntersectionObserver(()=>{W(!!Re.offsetParent)});return Ce.observe(Re),()=>{Ce.disconnect()}},[te,oe]);const Pe=bOe(Z.tooltip,I.text,c),Le=l.useMemo(()=>{if(!(!q||te))return[I.text,c,m,Pe.title].find(ak)},[q,te,m,Pe.title,me]);if(T)return l.createElement(sOe,{value:(n=I.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:D,onCancel:O,onEnd:I.onEnd,prefixCls:C,className:a,style:o,direction:x,component:g,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon});const Ve=()=>{const{expandable:Re,symbol:Ce}=Z;return Re?l.createElement("button",{type:"button",key:"expand",className:`${C}-${Q?"collapse":"expand"}`,onClick:xe=>ge(xe,{expanded:!Q}),"aria-label":Q?S.collapse:S==null?void 0:S.expand},typeof Ce=="function"?Ce(Q):Ce):null},je=()=>{if(!E)return;const{icon:Re,tooltip:Ce,tabIndex:xe}=I,$e=_r(Ce)[0]||(S==null?void 0:S.edit),Fe=typeof $e=="string"?$e:"";return _.includes("icon")?l.createElement(Wt,{key:"edit",title:Ce===!1?"":$e},l.createElement("button",{type:"button",ref:y,className:`${C}-edit`,onClick:P,"aria-label":Fe,tabIndex:xe},Re||l.createElement(Ml,{role:"button"}))):null},De=()=>k?l.createElement(SOe,Object.assign({key:"copy"},N,{prefixCls:C,copied:A,locale:S,onCopy:j,loading:L,iconOnly:c==null})):null,Se=Re=>[Re&&Ve(),je(),De()],Oe=Re=>[Re&&!Q&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ROe),Z.suffix,Se(Re)];return l.createElement(Sa,{onResize:Ne,disabled:!oe},Re=>l.createElement(EOe,{tooltipProps:Pe,enableEllipsis:oe,isEllipsis:me},l.createElement(uY,Object.assign({className:ae({[`${C}-${i}`]:i,[`${C}-disabled`]:s,[`${C}-ellipsis`]:q,[`${C}-ellipsis-single-line`]:re,[`${C}-ellipsis-multiple-line`]:ce},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ce?se:void 0}),component:g,ref:ga(Re,v,t),direction:x,onClick:_.includes("text")?P:void 0,"aria-label":Le==null?void 0:Le.toString(),title:m},w),l.createElement(wOe,{enableMeasure:oe&&!te,text:c,rows:se,width:ye,onEllipsis:_e,expanded:Q,miscDeps:[A,Q,L,E,k]},(Ce,xe)=>TOe(e,l.createElement(l.Fragment,null,Ce.length>0&&xe&&!Q&&Le?l.createElement("span",{key:"show-content","aria-hidden":!0},Ce):Ce,Oe(xe)))))))});var _Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=_Oe(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,l.createElement(zy,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),OOe=l.forwardRef((e,t)=>l.createElement(zy,Object.assign({ref:t},e,{component:"div"})));var NOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=NOe(e,["ellipsis"]);const a=l.useMemo(()=>n&&typeof n=="object"?Mn(n,["expandable","rows"]):n,[n]);return l.createElement(zy,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},AOe=l.forwardRef(kOe);var MOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=MOe(e,["level"]),a=DOe.includes(n)?`h${n}`:"h1";return l.createElement(zy,Object.assign({ref:t},r,{component:a}))}),xn=uY;xn.Text=AOe;xn.Link=$Oe;xn.Title=POe;xn.Paragraph=OOe;const o1=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(p){return c.endsWith(p)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(_n(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function LOe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function hL(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function jOe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(LOe(e,t),hL(t)):e.onSuccess(hL(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var FOe=function(){var e=So(rr().mark(function t(n,r){var a,o,i,s,c,u,d,p;return rr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:u=function(){return u=So(rr().mark(function b(x){return rr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",new Promise(function(y){x.file(function(C){r(C)?(x.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=x.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),y(C)):y(null)})}));case 1:case"end":return v.stop()}},b)})),u.apply(this,arguments)},c=function(b){return u.apply(this,arguments)},s=function(){return s=So(rr().mark(function b(x){var S,v,y,C,w;return rr().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:S=x.createReader(),v=[];case 2:return I.next=5,new Promise(function(T){S.readEntries(T,function(){return T([])})});case 5:if(y=I.sent,C=y.length,C){I.next=9;break}return I.abrupt("break",12);case 9:for(w=0;w{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${G(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:Object.assign(Object.assign({},TO(e)),{marginInlineStart:e.marginXXS})}),nOe(e)),rOe(e)),aOe()),{"&-rtl":{direction:"rtl"}})}},iOe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),cY=on("Typography",e=>[oOe(e)],iOe),sOe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:p,component:g,enterIcon:m=l.createElement(EEe,null)}=e,h=l.useRef(null),b=l.useRef(!1),x=l.useRef(),[S,v]=l.useState(c);l.useEffect(()=>{v(c)},[c]),l.useEffect(()=>{var D;if(!((D=h.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:O}=h.current.resizableTextArea;O.focus();const{length:k}=O.value;O.setSelectionRange(k,k)}},[]);const y=D=>{let{target:O}=D;v(O.value.replace(/[\n\r]/g,""))},w=()=>{b.current=!0},C=()=>{b.current=!1},E=D=>{let{keyCode:O}=D;b.current||(x.current=O)},I=()=>{u(S.trim())},T=D=>{let{keyCode:O,ctrlKey:k,altKey:N,metaKey:A,shiftKey:L}=D;x.current!==O||b.current||k||N||A||L||(O===Fe.ENTER?(I(),p==null||p()):O===Fe.ESC&&d())},R=()=>{I()},[_,$,M]=cY(t),P=oe(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${g}`]:!!g},r,$,M);return _(l.createElement("div",{className:P,style:a},l.createElement(vq,{ref:h,maxLength:i,value:S,onChange:y,onKeyDown:E,onKeyUp:T,onCompositionStart:w,onCompositionEnd:C,onBlur:R,"aria-label":n,rows:1,autoSize:s}),m!==null?$r(m,{className:`${t}-edit-content-confirm`}):null))};var lOe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=fL[t.format]||fL.default;window.clipboardData.setData(p,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),r=dOe("message"in t?t.message:uOe),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var pOe=fOe;const gOe=Wa(pOe);var mOe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(p){i(p)}}function c(d){try{u(r.throw(d))}catch(p){i(p)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const hOe=e=>{let{copyConfig:t,children:n}=e;const[r,a]=l.useState(!1),[o,i]=l.useState(!1),s=l.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),l.useEffect(()=>c,[]);const d=qt(p=>mOe(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),i(!0);try{const m=typeof t.text=="function"?yield t.text():t.text;gOe(m||Lwe(n,!0).join("")||"",u),i(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),(g=t.onCopy)===null||g===void 0||g.call(t,p)}catch(m){throw i(!1),m}}));return{copied:r,copyLoading:o,onClick:d}};function t1(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const vOe=e=>{const t=l.useRef();return l.useEffect(()=>{t.current=e}),t.current},bOe=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var yOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:c,style:u}=e,d=yOe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:g,typography:m}=l.useContext(ut),h=c??g,b=i?ma(t,i):t,x=p("typography",n),[S,v,y]=cY(x),w=oe(x,m==null?void 0:m.className,{[`${x}-rtl`]:h==="rtl"},a,o,v,y),C=Object.assign(Object.assign({},m==null?void 0:m.style),u);return S(l.createElement(r,Object.assign({className:w,style:C,ref:b},d),s))});function pL(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function n1(e,t,n){return e===!0||e===void 0?t:e||n&&t}function xOe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const ak=e=>["string","number"].includes(typeof e),SOe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:i,tabIndex:s,onCopy:c,loading:u}=e;const d=pL(o),p=pL(i),{copied:g,copy:m}=r??{},h=n?g:m,b=n1(d[n?1:0],h),x=typeof b=="string"?b:h;return l.createElement(Ft,{title:b},l.createElement("button",{type:"button",className:oe(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":x,tabIndex:s},n?n1(p[1],l.createElement(df,null),!0):n1(p[0],u?l.createElement(Qi,null):l.createElement(Ly,null),!0)))},Vh=l.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=l.useRef(null);return l.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),wOe=e=>e.reduce((t,n)=>t+(ak(n)?String(n).length:1),0);function gL(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const r1=0,a1=1,o1=2,i1=3,mL=4,Wh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function COe(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>_r(r),[r]),d=l.useMemo(()=>wOe(u),[r]),p=l.useMemo(()=>a(u,!1),[r]),[g,m]=l.useState(null),h=l.useRef(null),b=l.useRef(null),x=l.useRef(null),S=l.useRef(null),v=l.useRef(null),[y,w]=l.useState(!1),[C,E]=l.useState(r1),[I,T]=l.useState(0),[R,_]=l.useState(null);Yt(()=>{E(t&&n&&d?a1:r1)},[n,r,o,t,u]),Yt(()=>{var D,O,k,N;if(C===a1){E(o1);const A=b.current&&getComputedStyle(b.current).whiteSpace;_(A)}else if(C===o1){const A=!!(!((D=x.current)===null||D===void 0)&&D.isExceed());E(A?i1:mL),m(A?[0,d]:null),w(A);const L=((O=x.current)===null||O===void 0?void 0:O.getHeight())||0,j=o===1?0:((k=S.current)===null||k===void 0?void 0:k.getHeight())||0,F=((N=v.current)===null||N===void 0?void 0:N.getHeight())||0,B=Math.max(L,j+F);T(B+1),c(A)}},[C]);const $=g?Math.ceil((g[0]+g[1])/2):0;Yt(()=>{var D;const[O,k]=g||[0,0];if(O!==k){const A=(((D=h.current)===null||D===void 0?void 0:D.getHeight())||0)>I;let L=$;k-O===1&&(L=A?O:k),m(A?[O,L]:[L,k])}},[g,$]);const M=l.useMemo(()=>{if(!t)return a(u,!1);if(C!==i1||!g||g[0]!==g[1]){const D=a(u,!1);return[mL,r1].includes(C)?D:l.createElement("span",{style:Object.assign(Object.assign({},Wh),{WebkitLineClamp:o})},D)}return a(i?u:gL(u,g[0]),y)},[i,C,g,u].concat(De(s))),P={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,M,C===o1&&l.createElement(l.Fragment,null,l.createElement(Vh,{style:Object.assign(Object.assign(Object.assign({},P),Wh),{WebkitLineClamp:o}),ref:x},p),l.createElement(Vh,{style:Object.assign(Object.assign(Object.assign({},P),Wh),{WebkitLineClamp:o-1}),ref:S},p),l.createElement(Vh,{style:Object.assign(Object.assign(Object.assign({},P),Wh),{WebkitLineClamp:1}),ref:v},a([],!0))),C===i1&&g&&g[0]!==g[1]&&l.createElement(Vh,{style:Object.assign(Object.assign({},P),{top:400}),ref:h},a(gL(u,$),!0)),C===a1&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const EOe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:l.createElement(Ft,Object.assign({open:n?void 0:!1},a),r)};var IOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:i,disabled:s,children:c,ellipsis:u,editable:d,copyable:p,component:g,title:m}=e,h=IOe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:x}=l.useContext(ut),[S]=ns("Text"),v=l.useRef(null),y=l.useRef(null),w=b("typography",r),C=Mn(h,["mark","code","delete","underline","strong","keyboard","italic"]),[E,I]=t1(d),[T,R]=fn(!1,{value:I.editing}),{triggerType:_=["icon"]}=I,$=Te=>{var we;Te&&((we=I.onStart)===null||we===void 0||we.call(I)),R(Te)},M=vOe(T);Yt(()=>{var Te;!T&&M&&((Te=y.current)===null||Te===void 0||Te.focus())},[T]);const P=Te=>{Te==null||Te.preventDefault(),$(!0)},D=Te=>{var we;(we=I.onChange)===null||we===void 0||we.call(I,Te),$(!1)},O=()=>{var Te;(Te=I.onCancel)===null||Te===void 0||Te.call(I),$(!1)},[k,N]=t1(p),{copied:A,copyLoading:L,onClick:j}=hOe({copyConfig:N,children:c}),[F,B]=l.useState(!1),[z,U]=l.useState(!1),[H,K]=l.useState(!1),[Y,ee]=l.useState(!1),[ae,W]=l.useState(!0),[q,Z]=t1(u,{expandable:!1,symbol:Te=>Te?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[Q,J]=fn(Z.defaultExpanded||!1,{value:Z.expanded}),ie=q&&(!Q||Z.expandable==="collapsible"),{rows:le=1}=Z,fe=l.useMemo(()=>ie&&(Z.suffix!==void 0||Z.onEllipsis||Z.expandable||E||k),[ie,Z,E,k]);Yt(()=>{q&&!fe&&(B(qR("webkitLineClamp")),U(qR("textOverflow")))},[fe,q]);const[te,se]=l.useState(ie),pe=l.useMemo(()=>fe?!1:le===1?z:F,[fe,z,F]);Yt(()=>{se(pe&&ie)},[pe,ie]);const he=ie&&(te?Y:H),re=ie&&le===1&&te,ue=ie&&le>1&&te,me=(Te,we)=>{var Me;J(we.expanded),(Me=Z.onExpand)===null||Me===void 0||Me.call(Z,Te,we)},[xe,Ee]=l.useState(0),ke=Te=>{let{offsetWidth:we}=Te;Ee(we)},$e=Te=>{var we;K(Te),H!==Te&&((we=Z.onEllipsis)===null||we===void 0||we.call(Z,Te))};l.useEffect(()=>{const Te=v.current;if(q&&te&&Te){const we=xOe(Te);Y!==we&&ee(we)}},[q,te,c,ue,ae,xe]),l.useEffect(()=>{const Te=v.current;if(typeof IntersectionObserver>"u"||!Te||!te||!ie)return;const we=new IntersectionObserver(()=>{W(!!Te.offsetParent)});return we.observe(Te),()=>{we.disconnect()}},[te,ie]);const Le=bOe(Z.tooltip,I.text,c),je=l.useMemo(()=>{if(!(!q||te))return[I.text,c,m,Le.title].find(ak)},[q,te,m,Le.title,he]);if(T)return l.createElement(sOe,{value:(n=I.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:D,onCancel:O,onEnd:I.onEnd,prefixCls:w,className:a,style:o,direction:x,component:g,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon});const He=()=>{const{expandable:Te,symbol:we}=Z;return Te?l.createElement("button",{type:"button",key:"expand",className:`${w}-${Q?"collapse":"expand"}`,onClick:Me=>me(Me,{expanded:!Q}),"aria-label":Q?S.collapse:S==null?void 0:S.expand},typeof we=="function"?we(Q):we):null},Be=()=>{if(!E)return;const{icon:Te,tooltip:we,tabIndex:Me}=I,Ge=_r(we)[0]||(S==null?void 0:S.edit),st=typeof Ge=="string"?Ge:"";return _.includes("icon")?l.createElement(Ft,{key:"edit",title:we===!1?"":Ge},l.createElement("button",{type:"button",ref:y,className:`${w}-edit`,onClick:P,"aria-label":st,tabIndex:Me},Te||l.createElement(Ml,{role:"button"}))):null},Pe=()=>k?l.createElement(SOe,Object.assign({key:"copy"},N,{prefixCls:w,copied:A,locale:S,onCopy:j,loading:L,iconOnly:c==null})):null,Se=Te=>[Te&&He(),Be(),Pe()],Ne=Te=>[Te&&!Q&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ROe),Z.suffix,Se(Te)];return l.createElement(wa,{onResize:ke,disabled:!ie},Te=>l.createElement(EOe,{tooltipProps:Le,enableEllipsis:ie,isEllipsis:he},l.createElement(uY,Object.assign({className:oe({[`${w}-${i}`]:i,[`${w}-disabled`]:s,[`${w}-ellipsis`]:q,[`${w}-ellipsis-single-line`]:re,[`${w}-ellipsis-multiple-line`]:ue},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ue?le:void 0}),component:g,ref:ma(Te,v,t),direction:x,onClick:_.includes("text")?P:void 0,"aria-label":je==null?void 0:je.toString(),title:m},C),l.createElement(COe,{enableMeasure:ie&&!te,text:c,rows:le,width:xe,onEllipsis:$e,expanded:Q,miscDeps:[A,Q,L,E,k]},(we,Me)=>TOe(e,l.createElement(l.Fragment,null,we.length>0&&Me&&!Q&&je?l.createElement("span",{key:"show-content","aria-hidden":!0},we):we,Ne(Me)))))))});var _Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=_Oe(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,l.createElement(Uy,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),OOe=l.forwardRef((e,t)=>l.createElement(Uy,Object.assign({ref:t},e,{component:"div"})));var NOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=NOe(e,["ellipsis"]);const a=l.useMemo(()=>n&&typeof n=="object"?Mn(n,["expandable","rows"]):n,[n]);return l.createElement(Uy,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},AOe=l.forwardRef(kOe);var MOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=MOe(e,["level"]),a=DOe.includes(n)?`h${n}`:"h1";return l.createElement(Uy,Object.assign({ref:t},r,{component:a}))}),xn=uY;xn.Text=AOe;xn.Link=$Oe;xn.Title=POe;xn.Paragraph=OOe;const s1=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(p){return c.endsWith(p)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?($n(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function LOe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function hL(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function jOe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(LOe(e,t),hL(t)):e.onSuccess(hL(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var FOe=function(){var e=So(rr().mark(function t(n,r){var a,o,i,s,c,u,d,p;return rr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:u=function(){return u=So(rr().mark(function b(x){return rr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",new Promise(function(y){x.file(function(w){r(w)?(x.fullPath&&!w.webkitRelativePath&&(Object.defineProperties(w,{webkitRelativePath:{writable:!0}}),w.webkitRelativePath=x.fullPath.replace(/^\//,""),Object.defineProperties(w,{webkitRelativePath:{writable:!1}})),y(w)):y(null)})}));case 1:case"end":return v.stop()}},b)})),u.apply(this,arguments)},c=function(b){return u.apply(this,arguments)},s=function(){return s=So(rr().mark(function b(x){var S,v,y,w,C;return rr().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:S=x.createReader(),v=[];case 2:return I.next=5,new Promise(function(T){S.readEntries(T,function(){return T([])})});case 5:if(y=I.sent,w=y.length,w){I.next=9;break}return I.abrupt("break",12);case 9:for(C=0;C{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${G(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${G(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},WOe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:a,lineHeight:o,calc:i}=e,s=`${t}-list-item`,c=`${s}-actions`,u=`${s}-action`,d=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},_i()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:i(e.lineHeight).mul(a).equal(),marginTop:e.marginXS,fontSize:a,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},Oo),{padding:`0 ${G(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[u]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},WOe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:a,lineHeight:o,calc:i}=e,s=`${t}-list-item`,c=`${s}-actions`,u=`${s}-action`,d=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},$i()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:i(e.lineHeight).mul(a).equal(),marginTop:e.marginXS,fontSize:a,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},Oo),{padding:`0 ${G(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[u]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${u}:focus-visible, &.picture ${u} `]:{opacity:1},[`${u}${n}-btn`]:{height:d,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:a},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(a).add(e.paddingXS).equal(),fontSize:a,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${u}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},GOe=e=>{const{componentCls:t}=e,n=new en("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new en("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:kO(e)},n,r]},qOe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`;return{[`${t}-wrapper`]:{[` @@ -509,39 +509,39 @@ html body { `]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Oo),{width:r,height:r,lineHeight:G(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${G(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Nd[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Nd.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${i}${i}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},KOe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`,c=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},_i()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${G(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + `]:Object.assign(Object.assign({},$i()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${G(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${G(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},YOe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},XOe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},an(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},ZOe=e=>({actionsColor:e.colorTextDescription}),QOe=on("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,i=Ft(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[XOe(i),VOe(i),qOe(i),KOe(i),WOe(i),GOe(i),YOe(i),um(i)]},ZOe);function Wh(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Gh(e,t){const n=Me(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function l1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function JOe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const eNe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},dY=e=>e.indexOf("image/")===0,tNe=e=>{if(e.type&&!e.thumbUrl)return dY(e.type);const t=e.thumbUrl||e.url||"",n=eNe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Ws=200;function nNe(e){return new Promise(t=>{if(!e.type||!dY(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ws,n.height=Ws,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ws}px; height: ${Ws}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let s=Ws,c=Ws,u=0,d=0;o>i?(c=i*(Ws/o),d=-(c-s)/2):(s=o*(Ws/i),u=-(s-c)/2),r.drawImage(a,u,d,s,c);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(p)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const rNe=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:i,file:s,items:c,progress:u,iconRender:d,actionIconRender:p,itemRender:g,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,previewIcon:S,removeIcon:v,downloadIcon:y,extra:C,onPreview:w,onDownload:E,onClose:I}=e;var T,R;const{status:_}=s,[$,M]=l.useState(_);l.useEffect(()=>{_!=="removed"&&M(_)},[_]);const[P,D]=l.useState(!1);l.useEffect(()=>{const Q=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(Q)}},[]);const O=d(s);let k=l.createElement("div",{className:`${n}-icon`},O);if(i==="picture"||i==="picture-card"||i==="picture-circle")if($==="uploading"||!s.thumbUrl&&!s.url){const Q=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:$!=="uploading"});k=l.createElement("div",{className:Q},O)}else{const Q=m!=null&&m(s)?l.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):O,ee=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:m&&!m(s)});k=l.createElement("a",{className:ee,onClick:oe=>w(s,oe),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}const N=ae(`${n}-list-item`,`${n}-list-item-${$}`),A=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=(typeof b=="function"?b(s):b)?p((typeof v=="function"?v(s):v)||l.createElement(Al,null),()=>I(s),n,o.removeFile,!0):null,j=(typeof x=="function"?x(s):x)&&$==="done"?p((typeof y=="function"?y(s):y)||l.createElement(LN,null),()=>E(s),n,o.downloadFile):null,F=i!=="picture-card"&&i!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:ae(`${n}-list-item-actions`,{picture:i==="picture"})},j,L),B=typeof C=="function"?C(s):C,z=B&&l.createElement("span",{className:`${n}-list-item-extra`},B),U=ae(`${n}-list-item-name`),H=s.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:s.name},A,{href:s.url,onClick:Q=>w(s,Q)}),s.name,z):l.createElement("span",{key:"view",className:U,onClick:Q=>w(s,Q),title:s.name},s.name,z),Y=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?l.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>w(s,Q),title:o.previewFile},typeof S=="function"?S(s):S||l.createElement(kl,null)):null,K=(i==="picture-card"||i==="picture-circle")&&$!=="uploading"&&l.createElement("span",{className:`${n}-list-item-actions`},Y,$==="done"&&j,L),{getPrefixCls:J}=l.useContext(lt),ne=J(),W=l.createElement("div",{className:N},k,H,F,K,P&&l.createElement(Qr,{motionName:`${ne}-fade`,visible:$==="uploading",motionDeadline:2e3},Q=>{let{className:ee}=Q;const oe="percent"in s?l.createElement(My,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return l.createElement("div",{className:ae(`${n}-list-item-progress`,ee)},oe)})),q=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((R=s.error)===null||R===void 0?void 0:R.message)||o.uploadError,Z=$==="error"?l.createElement(Wt,{title:q,getPopupContainer:Q=>Q.parentNode},W):W;return l.createElement("div",{className:ae(`${n}-list-item-container`,r),style:a,ref:t},g?g(Z,s,c,{download:E.bind(null,s),preview:w.bind(null,s),remove:I.bind(null,s)}):Z)}),aNe=(e,t)=>{const{listType:n="text",previewFile:r=nNe,onPreview:a,onDownload:o,onRemove:i,locale:s,iconRender:c,isImageUrl:u=tNe,prefixCls:d,items:p=[],showPreviewIcon:g=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:b,previewIcon:x,downloadIcon:S,extra:v,progress:y={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:w=!0,itemRender:E,disabled:I}=e,T=QO(),[R,_]=l.useState(!1),$=["picture-card","picture-circle"].includes(n);l.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(z=>{!(z.originFileObj instanceof File||z.originFileObj instanceof Blob)||z.thumbUrl!==void 0||(z.thumbUrl="",r==null||r(z.originFileObj).then(U=>{z.thumbUrl=U||"",T()}))})},[n,p,r]),l.useEffect(()=>{_(!0)},[]);const M=(z,U)=>{if(a)return U.preventDefault(),a(z)},P=z=>{typeof o=="function"?o(z):z.url&&window.open(z.url)},D=z=>{i==null||i(z)},O=z=>{if(c)return c(z,n);const U=z.status==="uploading";if(n.startsWith("picture")){const H=n==="picture"?l.createElement(Zi,null):s.uploading,Y=u!=null&&u(z)?l.createElement(eIe,null):l.createElement(DEe,null);return U?H:Y}return U?l.createElement(Zi,null):l.createElement(Y2e,null)},k=(z,U,H,Y,K)=>{const J={type:"text",size:"small",title:Y,onClick:ne=>{var W,q;U(),l.isValidElement(z)&&((q=(W=z.props).onClick)===null||q===void 0||q.call(W,ne))},className:`${H}-list-item-action`};return K&&(J.disabled=I),l.isValidElement(z)?l.createElement(nt,Object.assign({},J,{icon:$r(z,Object.assign(Object.assign({},z.props),{onClick:()=>{}}))})):l.createElement(nt,Object.assign({},J),l.createElement("span",null,z))};l.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:P}));const{getPrefixCls:N}=l.useContext(lt),A=N("upload",d),L=N(),j=ae(`${A}-list`,`${A}-list-${n}`),F=l.useMemo(()=>Mn(Ad(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),B=Object.assign(Object.assign({},$?{}:F),{motionDeadline:2e3,motionName:`${A}-${$?"animate-inline":"animate"}`,keys:Me(p.map(z=>({key:z.uid,file:z}))),motionAppear:R});return l.createElement("div",{className:j},l.createElement(_O,Object.assign({},B,{component:!1}),z=>{let{key:U,file:H,className:Y,style:K}=z;return l.createElement(rNe,{key:U,locale:s,prefixCls:A,className:Y,style:K,file:H,items:p,progress:y,listType:n,isImgUrl:u,showPreviewIcon:g,showRemoveIcon:m,showDownloadIcon:h,removeIcon:b,previewIcon:x,downloadIcon:S,extra:v,iconRender:O,actionIconRender:k,itemRender:E,onPreview:M,onDownload:P,onClose:D})}),C&&l.createElement(Qr,Object.assign({},B,{visible:w,forceRender:!0}),z=>{let{className:U,style:H}=z;return $r(C,Y=>({className:ae(Y.className,U),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:U?"none":void 0}),Y.style)}))}))},oNe=l.forwardRef(aNe);var iNe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(p){i(p)}}function c(d){try{u(r.throw(d))}catch(p){i(p)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,[])).next())})};const mp=`__LIST_IGNORE_${Date.now()}__`,sNe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:i="text",onPreview:s,onDownload:c,onChange:u,onDrop:d,previewFile:p,disabled:g,locale:m,iconRender:h,isImageUrl:b,progress:x,prefixCls:S,className:v,type:y="select",children:C,style:w,itemRender:E,maxCount:I,data:T={},multiple:R=!1,hasControlInside:_=!0,action:$="",accept:M="",supportServerRender:P=!0,rootClassName:D}=e,O=l.useContext(fa),k=g??O,[N,A]=fn(r||[],{value:n,postState:Se=>Se??[]}),[L,j]=l.useState("drop"),F=l.useRef(null),B=l.useRef(null);l.useMemo(()=>{const Se=Date.now();(n||[]).forEach((Oe,Re)=>{!Oe.uid&&!Object.isFrozen(Oe)&&(Oe.uid=`__AUTO__${Se}_${Re}__`)})},[n]);const z=(Se,Oe,Re)=>{let Ce=Me(Oe),xe=!1;I===1?Ce=Ce.slice(-1):I&&(xe=Ce.length>I,Ce=Ce.slice(0,I)),Kr.flushSync(()=>{A(Ce)});const $e={file:Se,fileList:Ce};Re&&($e.event=Re),(!xe||Se.status==="removed"||Ce.some(Fe=>Fe.uid===Se.uid))&&Kr.flushSync(()=>{u==null||u($e)})},U=(Se,Oe)=>iNe(void 0,void 0,void 0,function*(){const{beforeUpload:Re,transformFile:Ce}=e;let xe=Se;if(Re){const $e=yield Re(Se,Oe);if($e===!1)return!1;if(delete Se[mp],$e===mp)return Object.defineProperty(Se,mp,{value:!0,configurable:!0}),!1;typeof $e=="object"&&$e&&(xe=$e)}return Ce&&(xe=yield Ce(xe)),xe}),H=Se=>{const Oe=Se.filter(xe=>!xe.file[mp]);if(!Oe.length)return;const Re=Oe.map(xe=>Wh(xe.file));let Ce=Me(N);Re.forEach(xe=>{Ce=Gh(xe,Ce)}),Re.forEach((xe,$e)=>{let Fe=xe;if(Oe[$e].parsedFile)xe.status="uploading";else{const{originFileObj:be}=xe;let ue;try{ue=new File([be],be.name,{type:be.type})}catch{ue=new Blob([be],{type:be.type}),ue.name=be.name,ue.lastModifiedDate=new Date,ue.lastModified=new Date().getTime()}ue.uid=xe.uid,Fe=ue}z(Fe,Ce)})},Y=(Se,Oe,Re)=>{try{typeof Se=="string"&&(Se=JSON.parse(Se))}catch{}if(!l1(Oe,N))return;const Ce=Wh(Oe);Ce.status="done",Ce.percent=100,Ce.response=Se,Ce.xhr=Re;const xe=Gh(Ce,N);z(Ce,xe)},K=(Se,Oe)=>{if(!l1(Oe,N))return;const Re=Wh(Oe);Re.status="uploading",Re.percent=Se.percent;const Ce=Gh(Re,N);z(Re,Ce,Se)},J=(Se,Oe,Re)=>{if(!l1(Re,N))return;const Ce=Wh(Re);Ce.error=Se,Ce.response=Oe,Ce.status="error";const xe=Gh(Ce,N);z(Ce,xe)},ne=Se=>{let Oe;Promise.resolve(typeof a=="function"?a(Se):a).then(Re=>{var Ce;if(Re===!1)return;const xe=JOe(Se,N);xe&&(Oe=Object.assign(Object.assign({},Se),{status:"removed"}),N==null||N.forEach($e=>{const Fe=Oe.uid!==void 0?"uid":"name";$e[Fe]===Oe[Fe]&&!Object.isFrozen($e)&&($e.status="removed")}),(Ce=F.current)===null||Ce===void 0||Ce.abort(Oe),z(Oe,xe))})},W=Se=>{j(Se.type),Se.type==="drop"&&(d==null||d(Se))};l.useImperativeHandle(t,()=>({onBatchStart:H,onSuccess:Y,onProgress:K,onError:J,fileList:N,upload:F.current,nativeElement:B.current}));const{getPrefixCls:q,direction:Z,upload:Q}=l.useContext(lt),ee=q("upload",S),oe=Object.assign(Object.assign({onBatchStart:H,onError:J,onProgress:K,onSuccess:Y},e),{data:T,multiple:R,action:$,accept:M,supportServerRender:P,prefixCls:ee,disabled:k,beforeUpload:U,onChange:void 0,hasControlInside:_});delete oe.className,delete oe.style,(!C||k)&&delete oe.id;const se=`${ee}-wrapper`,[fe,te,ie]=QOe(ee,se),[pe]=es("Upload",ti.Upload),{showRemoveIcon:me,showPreviewIcon:re,showDownloadIcon:ce,removeIcon:ge,previewIcon:ye,downloadIcon:Ee,extra:Ne}=typeof o=="boolean"?{}:o,_e=typeof me>"u"?!k:me,Pe=(Se,Oe)=>o?l.createElement(oNe,{prefixCls:ee,listType:i,items:N,previewFile:p,onPreview:s,onDownload:c,onRemove:ne,showRemoveIcon:_e,showPreviewIcon:re,showDownloadIcon:ce,removeIcon:ge,previewIcon:ye,downloadIcon:Ee,iconRender:h,extra:Ne,locale:Object.assign(Object.assign({},pe),m),isImageUrl:b,progress:x,appendAction:Se,appendActionVisible:Oe,itemRender:E,disabled:k}):Se,Le=ae(se,v,D,te,ie,Q==null?void 0:Q.className,{[`${ee}-rtl`]:Z==="rtl",[`${ee}-picture-card-wrapper`]:i==="picture-card",[`${ee}-picture-circle-wrapper`]:i==="picture-circle"}),Ve=Object.assign(Object.assign({},Q==null?void 0:Q.style),w);if(y==="drag"){const Se=ae(te,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:N.some(Oe=>Oe.status==="uploading"),[`${ee}-drag-hover`]:L==="dragover",[`${ee}-disabled`]:k,[`${ee}-rtl`]:Z==="rtl"});return fe(l.createElement("span",{className:Le,ref:B},l.createElement("div",{className:Se,style:Ve,onDrop:W,onDragOver:W,onDragLeave:W},l.createElement(k_,Object.assign({},oe,{ref:F,className:`${ee}-btn`}),l.createElement("div",{className:`${ee}-drag-container`},C))),Pe()))}const je=ae(ee,`${ee}-select`,{[`${ee}-disabled`]:k}),De=l.createElement("div",{className:je,style:C?void 0:{display:"none"}},l.createElement(k_,Object.assign({},oe,{ref:F})));return fe(i==="picture-card"||i==="picture-circle"?l.createElement("span",{className:Le,ref:B},Pe(De,!!C)):l.createElement("span",{className:Le,ref:B},De,Pe()))},fY=l.forwardRef(sNe);var lNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,o=lNe(e,["style","height","hasControlInside"]);return l.createElement(fY,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Bd=fY;Bd.Dragger=cNe;Bd.LIST_IGNORE=mp;const pY="/web/assets/logo-aw46LCqE.png",uNe=()=>{const t=document.createElement("audio").canPlayType("audio/ogg; codecs=opus");return console.log("Supports OGG/Opus:",t),t==="probably"||t==="maybe"};function Ss(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("theme");return t==="auto"?e?"dark":"light":t}const gY=de.createContext(void 0),Am=()=>{const e=l.useContext(gY);if(!e)throw new Error("useAudioContext must be used within an AudioProvider");return e},vL=e=>{const n=e.split("?")[0].split("/");return n[n.length-1]},dNe=({children:e})=>{const{t}=Nt(),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState([]),[d,p]=l.useState(),g=(m,h,b,x)=>{var y;if(console.log("Play audio: "+m),/\/....04E0\?|(\?ogg)/.test(m)&&!uNe())Rn.error({title:t("audio.errorNoOggOpusSupport"),content:t("audio.errorNoOggOpusSupportByApple"),okText:t("audio.errorConfirm")});else{const C=document.getElementById("globalAudioPlayer");if(C.src=m,h?(r(h.picture),o(h.series||h.episode?h.series:vL(decodeURI(m).replace("500304E0",t("audio.unknownSource")))),s(h.episode)):(r(decodeURI(m).includes(".taf?")?"/img_unknown.png":pY),o(""),s(vL(decodeURI(m)))),b){p(b);const w="trackSeconds"in b?b.trackSeconds||[0]:"tafHeader"in b&&((y=b.tafHeader)!=null&&y.trackSeconds)?b.tafHeader.trackSeconds:[0];u(w)}else u([0]),p(void 0);x&&(C.currentTime=x),C.play()}};return f.jsx(gY.Provider,{value:{playAudio:g,songImage:n,songArtist:a,songTitle:i,songTracks:c,tonieCardOrTAFRecord:d},children:e})};var to=function(){return to=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0?la(Cf,--ri):0,Hd--,zr===10&&(Hd=1,Uy--),zr}function Ii(){return zr=ri2||M_(zr)>3?"":" "}function SNe(e,t){for(;--t&&Ii()&&!(zr<48||zr>102||zr>57&&zr<65||zr>70&&zr<97););return Wy(e,zv()+(t<6&&Tc()==32&&Ii()==32))}function D_(e){for(;Ii();)switch(zr){case e:return ri;case 34:case 39:e!==34&&e!==39&&D_(zr);break;case 40:e===41&&D_(e);break;case 92:Ii();break}return ri}function CNe(e,t){for(;Ii()&&e+zr!==57;)if(e+zr===84&&Tc()===47)break;return"/*"+Wy(t,ri-1)+"*"+ik(e===47?e:Ii())}function wNe(e){for(;!M_(Tc());)Ii();return Wy(e,ri)}function ENe(e){return yNe(Hv("",null,null,null,[""],e=bNe(e),0,[0],e))}function Hv(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,p=i,g=0,m=0,h=0,b=1,x=1,S=1,v=0,y="",C=a,w=o,E=r,I=y;x;)switch(h=v,v=Ii()){case 40:if(h!=108&&la(I,p-1)==58){Bv(I+=hn(c1(v),"&","&\f"),"&\f",vY(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=c1(v);break;case 9:case 10:case 13:case 32:I+=xNe(h);break;case 92:I+=SNe(zv()-1,7);continue;case 47:switch(Tc()){case 42:case 47:hp(INe(CNe(Ii(),zv()),t,n,c),c);break;default:I+="/"}break;case 123*b:s[u++]=Hi(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:S==-1&&(I=hn(I,/\f/g,"")),m>0&&Hi(I)-p&&hp(m>32?xL(I+";",r,n,p-1,c):xL(hn(I," ","")+";",r,n,p-2,c),c);break;case 59:I+=";";default:if(hp(E=yL(I,t,n,u,d,a,s,y,C=[],w=[],p,o),o),v===123)if(d===0)Hv(I,t,E,E,C,o,p,s,w);else switch(g===99&&la(I,3)===110?100:g){case 100:case 108:case 109:case 115:Hv(e,E,E,r&&hp(yL(e,E,E,0,0,a,s,y,a,C=[],p,w),w),a,w,p,s,r?C:w);break;default:Hv(I,E,E,E,[""],w,0,s,w)}}u=d=m=0,b=S=1,y=I="",p=i;break;case 58:p=1+Hi(I),m=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&vNe()==125)continue}switch(I+=ik(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(Hi(I)-1)*S,S=1;break;case 64:Tc()===45&&(I+=c1(Ii())),g=Tc(),d=p=Hi(y=I+=wNe(zv())),v++;break;case 45:h===45&&Hi(I)==2&&(b=0)}}return o}function yL(e,t,n,r,a,o,i,s,c,u,d,p){for(var g=a-1,m=a===0?o:[""],h=yY(m),b=0,x=0,S=0;b0?m[v]+" "+y:hn(y,/&\f/g,m[v])))&&(c[S++]=C);return Vy(e,t,n,a===0?Hy:s,c,u,d,p)}function INe(e,t,n,r){return Vy(e,t,n,mY,ik(hNe()),zd(e,2,-2),0,r)}function xL(e,t,n,r,a){return Vy(e,t,n,ok,zd(e,0,r),zd(e,r+1,-1),r,a)}function SY(e,t,n){switch(gNe(e,t)){case 5103:return Hn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Hn+e+e;case 4789:return zp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hn+e+zp+e+mr+e+e;case 5936:switch(la(e,t+11)){case 114:return Hn+e+mr+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hn+e+mr+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hn+e+mr+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Hn+e+mr+e+e;case 6165:return Hn+e+mr+"flex-"+e+e;case 5187:return Hn+e+hn(e,/(\w+).+(:[^]+)/,Hn+"box-$1$2"+mr+"flex-$1$2")+e;case 5443:return Hn+e+mr+"flex-item-"+hn(e,/flex-|-self/g,"")+(cs(e,/flex-|baseline/)?"":mr+"grid-row-"+hn(e,/flex-|-self/g,""))+e;case 4675:return Hn+e+mr+"flex-line-pack"+hn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Hn+e+mr+hn(e,"shrink","negative")+e;case 5292:return Hn+e+mr+hn(e,"basis","preferred-size")+e;case 6060:return Hn+"box-"+hn(e,"-grow","")+Hn+e+mr+hn(e,"grow","positive")+e;case 4554:return Hn+hn(e,/([^-])(transform)/g,"$1"+Hn+"$2")+e;case 6187:return hn(hn(hn(e,/(zoom-|grab)/,Hn+"$1"),/(image-set)/,Hn+"$1"),e,"")+e;case 5495:case 3959:return hn(e,/(image-set\([^]*)/,Hn+"$1$`$1");case 4968:return hn(hn(e,/(.+:)(flex-)?(.*)/,Hn+"box-pack:$3"+mr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Hn+e+e;case 4200:if(!cs(e,/flex-|baseline/))return mr+"grid-column-align"+zd(e,t)+e;break;case 2592:case 3360:return mr+hn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,cs(r.props,/grid-\w+-end/)})?~Bv(e+(n=n[t].value),"span",0)?e:mr+hn(e,"-start","")+e+mr+"grid-row-span:"+(~Bv(n,"span",0)?cs(n,/\d+/):+cs(n,/\d+/)-+cs(e,/\d+/))+";":mr+hn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return cs(r.props,/grid-\w+-start/)})?e:mr+hn(hn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return hn(e,/(.+)-inline(.+)/,Hn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Hi(e)-1-t>6)switch(la(e,t+1)){case 109:if(la(e,t+4)!==45)break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+Hn+"$2-$3$1"+zp+(la(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bv(e,"stretch",0)?SY(hn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return hn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,o,i,s,c,u){return mr+a+":"+o+u+(i?mr+a+"-span:"+(s?c:+c-+o)+u:"")+e});case 4949:if(la(e,t+6)===121)return hn(e,":",":"+Hn)+e;break;case 6444:switch(la(e,la(e,14)===45?18:11)){case 120:return hn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Hn+(la(e,14)===45?"inline-":"")+"box$3$1"+Hn+"$2$3$1"+mr+"$2box$3")+e;case 100:return hn(e,":",":"+mr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return hn(e,"scroll-","scroll-snap-")+e}return e}function Jb(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case ok:e.return=SY(e.value,e.length,n);return;case hY:return Jb([Qs(e,{value:hn(e.value,"@","@"+Hn)})],r);case Hy:if(e.length)return mNe(n=e.props,function(a){switch(cs(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$u(Qs(e,{props:[hn(a,/:(read-\w+)/,":"+zp+"$1")]})),$u(Qs(e,{props:[a]})),A_(e,{props:bL(n,r)});break;case"::placeholder":$u(Qs(e,{props:[hn(a,/:(plac\w+)/,":"+Hn+"input-$1")]})),$u(Qs(e,{props:[hn(a,/:(plac\w+)/,":"+zp+"$1")]})),$u(Qs(e,{props:[hn(a,/:(plac\w+)/,mr+"input-$1")]})),$u(Qs(e,{props:[a]})),A_(e,{props:bL(n,r)});break}return""})}}var ONe={animationIterationCount:1,aspectRatio: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},ho={},Ud=typeof process<"u"&&ho!==void 0&&(ho.REACT_APP_SC_ATTR||ho.SC_ATTR)||"data-styled",CY="active",wY="data-styled-version",Gy="6.1.13",sk=`/*!sc*/ -`,e0=typeof window<"u"&&"HTMLElement"in window,NNe=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ho!==void 0&&ho.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ho.REACT_APP_SC_DISABLE_SPEEDY!==""?ho.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ho.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ho!==void 0&&ho.SC_DISABLE_SPEEDY!==void 0&&ho.SC_DISABLE_SPEEDY!==""&&ho.SC_DISABLE_SPEEDY!=="false"&&ho.SC_DISABLE_SPEEDY),qy=Object.freeze([]),Vd=Object.freeze({});function kNe(e,t,n){return n===void 0&&(n=Vd),e.theme!==n.theme&&e.theme||t||n.theme}var EY=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ANe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,MNe=/(^-|-$)/g;function SL(e){return e.replace(ANe,"-").replace(MNe,"")}var DNe=/(a)(d)/gi,qh=52,CL=function(e){return String.fromCharCode(e+(e>25?39:97))};function P_(e){var t,n="";for(t=Math.abs(e);t>qh;t=t/qh|0)n=CL(t%qh)+n;return(CL(t%qh)+n).replace(DNe,"$1-$2")}var u1,IY=5381,nd=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},TY=function(e){return nd(IY,e)};function PNe(e){return P_(TY(e)>>>0)}function LNe(e){return e.displayName||e.name||"Component"}function d1(e){return typeof e=="string"&&!0}var RY=typeof Symbol=="function"&&Symbol.for,_Y=RY?Symbol.for("react.memo"):60115,jNe=RY?Symbol.for("react.forward_ref"):60112,FNe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},BNe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zNe=((u1={})[jNe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u1[_Y]=$Y,u1);function wL(e){return("type"in(t=e)&&t.type.$$typeof)===_Y?$Y:"$$typeof"in e?zNe[e.$$typeof]:FNe;var t}var HNe=Object.defineProperty,UNe=Object.getOwnPropertyNames,EL=Object.getOwnPropertySymbols,VNe=Object.getOwnPropertyDescriptor,WNe=Object.getPrototypeOf,IL=Object.prototype;function OY(e,t,n){if(typeof t!="string"){if(IL){var r=WNe(t);r&&r!==IL&&OY(e,r,n)}var a=UNe(t);EL&&(a=a.concat(EL(t)));for(var o=wL(e),i=wL(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var GNe=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)if((o<<=1)<0)throw Mm(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=a;i=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,i=a;i=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(x+="".concat(S,","))}),c+="".concat(h).concat(b,'{content:"').concat(x,'"}').concat(sk)},d=0;d0?".".concat(t):g},d=c.slice();d.push(function(g){g.type===Hy&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(rke,n).replace(r,u))}),i.prefix&&d.push($Ne),d.push(TNe);var p=function(g,m,h,b){m===void 0&&(m=""),h===void 0&&(h=""),b===void 0&&(b="&"),t=b,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var x=g.replace(ake,""),S=ENe(h||m?"".concat(h," ").concat(m," { ").concat(x," }"):x);i.namespace&&(S=AY(S,i.namespace));var v=[];return Jb(S,RNe(d.concat(_Ne(function(y){return v.push(y)})))),v};return p.hash=c.length?c.reduce(function(g,m){return m.name||Mm(15),nd(g,m.name)},IY).toString():"",p}var ike=new kY,j_=oke(),MY=de.createContext({shouldForwardProp:void 0,styleSheet:ike,stylis:j_});MY.Consumer;de.createContext(void 0);function $L(){return l.useContext(MY)}var ske=function(){function e(t,n){var r=this;this.inject=function(a,o){o===void 0&&(o=j_);var i=r.name+o.hash;a.hasNameForId(r.id,i)||a.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ck(this,function(){throw Mm(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=j_),this.name+t.hash},e}(),lke=function(e){return e>="A"&&e<="Z"};function OL(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,s)}a=mc(a,i),this.staticRulesId=i}else{for(var c=nd(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(u,".".concat(m),void 0,this.componentId)),a=mc(a,m)}}return a},e}(),LY=de.createContext(void 0);LY.Consumer;var f1={};function fke(e,t,n){var r=lk(e),a=e,o=!d1(e),i=t.attrs,s=i===void 0?qy:i,c=t.componentId,u=c===void 0?function(C,w){var E=typeof C!="string"?"sc":SL(C);f1[E]=(f1[E]||0)+1;var I="".concat(E,"-").concat(PNe(Gy+E+f1[E]));return w?"".concat(w,"-").concat(I):I}(t.displayName,t.parentComponentId):c,d=t.displayName,p=d===void 0?function(C){return d1(C)?"styled.".concat(C):"Styled(".concat(LNe(C),")")}(e):d,g=t.displayName&&t.componentId?"".concat(SL(t.displayName),"-").concat(t.componentId):t.componentId||u,m=r&&a.attrs?a.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;h=function(C,w){return b(C,w)&&x(C,w)}}else h=b}var S=new dke(n,g,r?a.componentStyle:void 0);function v(C,w){return function(E,I,T){var R=E.attrs,_=E.componentStyle,$=E.defaultProps,M=E.foldedComponentIds,P=E.styledComponentId,D=E.target,O=de.useContext(LY),k=$L(),N=E.shouldForwardProp||k.shouldForwardProp,A=kNe(I,O,$)||Vd,L=function(H,Y,K){for(var J,ne=to(to({},Y),{className:void 0,theme:K}),W=0;Wt}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const vke=new zY,f0=class f0{constructor(t=vke){ja(this,"middleware");ja(this,"fetchApi",async(t,n)=>{let r={url:t,init:n};for(const o of this.middleware)o.pre&&(r=await o.pre({fetch:this.fetchApi,...r})||r);let a;try{a=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const i of this.middleware)i.onError&&(a=await i.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new Ske(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?f0.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:a}=await this.createFetchParams(t,n),o=await this.fetchApi(r,a);if(o&&o.status>=200&&o.status<300)return o;throw new xke(o,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(u=>a[u]===void 0?delete a[u]:{});const o=typeof n=="function"?n:async()=>n,i={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},s={...i,...await o({init:i,context:t})},c={...s,body:yke(s.body)||s.body instanceof URLSearchParams||bke(s.body)?s.body:JSON.stringify(s.body)};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};ja(f0,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let jg=f0;function bke(e){return typeof Blob<"u"&&e instanceof Blob}function yke(e){return typeof FormData<"u"&&e instanceof FormData}class xke extends Error{constructor(n,r){super(r);ja(this,"name","ResponseError");this.response=n}}class Ske extends Error{constructor(n,r){super(r);ja(this,"name","FetchError");this.cause=n}}class Cke extends Error{constructor(n,r){super(r);ja(this,"name","RequiredError");this.field=n}}function HY(e,t){const n=e[t];return n!=null}function UY(e,t=""){return Object.keys(e).map(n=>VY(n,e[n],t)).filter(n=>n.length>0).join("&")}function VY(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}if(t instanceof Set){const a=Array.from(t);return VY(e,a,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?UY(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}function wke(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class us{constructor(t,n=r=>r){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class Eke{constructor(t){this.raw=t}async value(){}}class n0{constructor(t){this.raw=t}async value(){return await this.raw.text()}}class WY extends jg{async v1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new us(a):new n0(a)}async v1TimeGet(t){return await(await this.v1TimeGetRaw(t)).value()}}class Ike extends jg{async reverseV1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/reverse/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new us(a):new n0(a)}async reverseV1TimeGet(t){return await(await this.reverseV1TimeGetRaw(t)).value()}}function Tke(e){return Rke(e)}function Rke(e,t){return e==null?e:{iD:e.ID,shortname:e.shortname,description:e.description,label:e.label,type:e.type,value:e.value,overlayed:e.overlayed}}function _ke(e){return $ke(e)}function $ke(e,t){return e==null?e:{options:HY(e,"options")?e.options.map(Tke):void 0}}function Oke(e){return Nke(e)}function Nke(e,t){return e==null?e:{iD:e.ID,description:e.description,value:e.value}}function kke(e){return Ake(e)}function Ake(e,t){return e==null?e:{stats:HY(e,"stats")?e.stats.map(Oke):void 0}}class Dn extends jg{async apiGetTonieboxesIndexRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/getBoxes",void 0,t);return new us(n)}async apiGetTonieboxesIndex(t){return(await(await this.apiGetTonieboxesIndexRaw(t)).value()).boxes}async apiGetTagIndexRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/getTagIndex",t,n);return new us(r)}async apiGetTagIndex(t,n,r){return(await(await this.apiGetTagIndexRaw(t,r)).value()).tags}async apiGetTagInfoRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/getTagInfo?ruid=${t}`,n,r);return new us(a)}async apiGetTagInfo(t,n,r){return(await(await this.apiGetTagInfoRaw(t,n,r)).value()).tagInfo}async apiGetTagIndexMergedAllOverlays(t,n){const r=await this.apiGetTonieboxesIndex();return(await Promise.all([...r.map(async s=>await this.apiGetTagIndex(s.ID,t,n)),this.apiGetTagIndex("",t,n)])).flat().filter((s,c,u)=>c===u.findIndex(d=>d.ruid===s.ruid&&d.source===s.source))}async apiGetIndexGetRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/settings/getIndex",t,n);return new us(r,a=>_ke(a))}async apiGetIndexGet(t,n){return await(await this.apiGetIndexGetRaw(t,n)).value()}async apiSetCloudCacheContentPostRaw(t,n){if(t.body===null||t.body===void 0)throw new Cke("body","Required parameter requestParameters.body was null or undefined when calling apiSetCloudCacheContentPost.");const r=await this.apiPostTeddyCloudSetting("cloud.cacheContent",t.body,void 0,void 0,n);return new Eke(r)}async apiSetCloudCacheContentPost(t,n){await this.apiSetCloudCacheContentPostRaw(t,n)}async apiStatsGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/stats",void 0,t);return new us(n,r=>kke(r))}async apiStatsGet(t){return await(await this.apiStatsGetRaw(t)).value()}async apiTriggerWriteConfigGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/triggerWriteConfig",void 0,t);return this.isJsonMime(n.headers.get("content-type"))?new us(n):new n0(n)}async apiTriggerWriteConfigGet(t){return await(await this.apiTriggerWriteConfigGetRaw(t)).value()}async apiUploadCertPostRaw(t,n,r){const a={},o={},s=wke([{contentType:"multipart/form-data"}]);let c,u=!1,d="/api/uploadCert";n!==""&&n!==void 0&&(d=d+"?overlay="+n),u=s,u?c=new FormData:c=new URLSearchParams,t.filename&&t.filename.forEach(g=>{c.append("filename",g)});const p=await this.request({path:d,method:"POST",headers:o,query:a,body:c},r);return this.isJsonMime(p.headers.get("content-type"))?new us(p):new n0(p)}async apiUploadCertPost(t={},n,r){return await(await this.apiUploadCertPostRaw(t,n,r)).value()}async apiGetLastOnline(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_connection",t,n)).text();return(a&&a!=="0"?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxStatus(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.online",t,n)).text()==="true"}async apiGetTonieboxVersion(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.toniebox_firmware.boxIC",t,n)).text()}async apiGetTonieboxLastRUID(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid",t,n)).text()}async apiGetTonieboxLastRUIDTime(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid_time",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxLastIp(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.ip",t,n)).text()}async apiGetTonieboxContentDir(t,n){return await(await this.apiGetTeddyCloudSettingRaw("core.contentdir",t,n)).text()}async apiGetTonieboxApiAccess(t,n){return await(await this.apiGetTeddyCloudSettingRaw("toniebox.api_access",t,n)).text()==="true"}async apiGetNewBoxesAllowed(t){return await(await this.apiGetTeddyCloudSettingRaw("core.allowNewBox",void 0,t)).text()==="true"}async apiGetSecurityMITAlert(t){return await(await this.apiGetTeddyCloudSettingRaw("internal.security_mit.incident",void 0,t)).text()==="true"}async apiGetTeddyCloudSettingRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/settings/get/${t}`,n,r);if(!a.ok)throw new Error(`Error: ${a.status} ${a.statusText}`);return a}async apiPostTeddyCloudSetting(t,n,r,a,o,i={}){i["Content-Type"]||(i["Content-Type"]="text/plain");const s=await this.apiPostTeddyCloudRaw(`/api/settings/${a&&a===!0?"reset":"set"}/${t}`,(n==null?void 0:n.toString())||"",r,o,i);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiGetTeddyCloudApiRaw(t,n,r){const a={},o={},i=await this.request({path:`${t}${n?"?overlay="+n:""}`,method:"GET",headers:o,query:a},r);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudContentJson(t,n,r,a,o={}){const i=await this.apiPostTeddyCloudRaw(`/content/json/set/${t}`,n,r,a,o);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudRaw(t,n,r,a,o={}){o["Content-Type"]||(o["Content-Type"]="text/plain");const i=s=>new Blob([s],{type:"text/plain"});try{const s=await this.request({path:`${t}${r?"?overlay="+r:""}`,method:"POST",headers:o,body:i((n==null?void 0:n.toString())||"")},a);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}catch(s){return s.response}}async apiPostTeddyCloudFormDataRaw(t,n,r,a,o={}){try{const i=await fetch(""+t,{method:"POST",body:n});if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}catch(i){return i.response?i.response:i instanceof TypeError?new Response(JSON.stringify({error:"Network error, please try again later.",message:i.message}),{status:500,statusText:"Network Error",headers:{"Content-Type":"application/json"}}):new Response(JSON.stringify({error:"An unexpected error occurred.",message:i}),{status:500,statusText:"Unexpected Error",headers:{"Content-Type":"application/json"}})}}}const $n=()=>new zY({basePath:""}),Gd=({title:e,okText:t,cancelText:n,content:r,contentHint:a="",contentHintTitle:o="",open:i,handleOk:s,handleCancel:c})=>{const{t:u}=Nt();return f.jsxs(Rn,{title:f.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[f.jsx(wK,{style:{fontSize:36,color:"orange",margin:16}}),f.jsx("div",{style:{marginBottom:16},children:e})]}),open:i,onOk:s,onCancel:c,okText:t,cancelText:n,className:"warning",children:[f.jsx("div",{style:{marginBottom:24},children:r}),a&&f.jsx("div",{children:f.jsx(Cn,{type:"warning",showIcon:!0,message:o||u("confirmDialog.contentHintTitle"),description:a})})]})};function Mke(e,t="14px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"){let n="",r=0;const o=document.createElement("canvas").getContext("2d");return o&&(o.font=t,e.forEach(i=>{const s=o.measureText(i).width;s>r&&(r=s,n=i)})),{longestString:n,pixelWidth:r}}function B_(){return"10000000-1e3-4e3-8e3-1e11".replace(/[018]/g,e=>(parseInt(e)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>parseInt(e)/4).toString(16))}const z_=e=>{const t=`/api/getFile/${e?"c2":"ca"}.der`;window.location.href=t},GY=l.createContext({fetchCloudStatus:!1,setFetchCloudStatus:()=>{},notifications:[],addNotification:()=>{},addLoadingNotification:()=>{},closeLoadingNotification:()=>{},confirmNotification:()=>{},unconfirmedCount:0,clearAllNotifications:()=>{},removeNotifications:()=>{},navOpen:!1,setNavOpen:()=>{},subNavOpen:!1,setSubNavOpen:()=>{},currentTCSection:"",setCurrentTCSection:()=>{}});function Dke({children:e,linkOverlay:t}){const[n,r]=l.useState(!1),[a,o]=l.useState([]),i=C=>new Promise(w=>setTimeout(w,C)),[s,c]=l.useState(!1),[u,d]=l.useState(!1),[p,g]=l.useState("");l.useEffect(()=>{const C=localStorage.getItem("notifications");if(C){const w=JSON.parse(C);o(w.map(E=>({...E,date:new Date(E.date)})))}},[]);const m=(C,w,E,I,T)=>{const R={uuid:B_(),date:new Date,type:C,title:w,description:E,context:I||"",flagConfirmed:T!==void 0?T:C==="success"||C==="info"};Lv.open({type:C,message:w,description:E,showProgress:!0,pauseOnHover:!0,placement:"topRight"}),o(_=>{const $=[R,..._];return localStorage.setItem("notifications",JSON.stringify($)),$})},h=(C,w,E)=>{Lv.open({key:C,message:w,description:E,icon:f.jsx(Zi,{}),duration:0,placement:"topRight"})},b=async C=>{setTimeout(()=>{Lv.destroy(C)},300),await i(500)},x=C=>{o(w=>{const E=w.map(I=>I.uuid===C?{...I,flagConfirmed:!0}:I);return localStorage.setItem("notifications",JSON.stringify(E)),E})},S=C=>{o(w=>{const E=w.filter(I=>!C.includes(I.uuid));return localStorage.setItem("notifications",JSON.stringify(E)),E})},v=()=>{o([]),localStorage.removeItem("notifications")},y=a.filter(C=>!C.flagConfirmed).length;return f.jsx(GY.Provider,{value:{fetchCloudStatus:n,setFetchCloudStatus:r,notifications:a,addNotification:m,addLoadingNotification:h,closeLoadingNotification:b,confirmNotification:x,unconfirmedCount:y,clearAllNotifications:v,removeNotifications:S,navOpen:s,setNavOpen:c,subNavOpen:u,setSubNavOpen:d,currentTCSection:p,setCurrentTCSection:g},children:e})}function Qn(){return l.useContext(GY)}var dt=(e=>(e.Success="success",e.Info="info",e.Warning="warning",e.Error="error",e))(dt||{});const Pke=new Dn($n()),{Text:Lke}=xn,Ky=({open:e,onClose:t,tonieCardOrTAFRecord:n,showSourceInfo:r=!1,readOnly:a,lastRUIDs:o,overlay:i,onHide:s})=>{var L,j,F,B,z,U,H,Y,K,J,ne,W,q,Z,Q,ee;const{t:c}=Nt(),{playAudio:u}=Am(),{addNotification:d}=Qn(),[p,g]=l.useState(!1),[m,h]=l.useState(!1),[b,x]=l.useState(""),[S,v]=l.useState([]);l.useEffect(()=>{r&&"sourceInfo"in n&&(n.sourceInfo.picture!==n.tonieInfo.picture&&E!==I||n.sourceInfo.picture===n.tonieInfo.picture&&E!==I||n.sourceInfo.series!==n.tonieInfo.series||n.sourceInfo.episode!==n.tonieInfo.episode||n.sourceInfo.tracks.join(".")!==n.tonieInfo.tracks.join("."))&&(h(!0),x(n.sourceInfo.picture),v(n.sourceInfo.tracks))},[n,e]);const y=async(oe,se)=>{u(oe,r&&"sourceInfo"in n?n.sourceInfo:n.tonieInfo,n,se)},C=o&&"ruid"in n?o.filter(([oe])=>oe===n.ruid).map(([,oe,se])=>({ruidTime:oe,boxName:se})):null,w=((L=n.tonieInfo)==null?void 0:L.series)+((j=n==null?void 0:n.tonieInfo)!=null&&j.episode?" - "+((F=n.tonieInfo)==null?void 0:F.episode):"")+((B=n.tonieInfo)!=null&&B.model?" ("+((z=n.tonieInfo)==null?void 0:z.model)+")":""),E=`${(U=n.tonieInfo)==null?void 0:U.series}`+((H=n.tonieInfo)!=null&&H.episode?` - ${(Y=n.tonieInfo)==null?void 0:Y.episode}`:""),I="sourceInfo"in n?`${(K=n.sourceInfo)==null?void 0:K.series}`+((J=n.sourceInfo)!=null&&J.episode?` - ${(ne=n.sourceInfo)==null?void 0:ne.episode}`:""):"",T=m?I:E,R=(oe,se)=>{var te;const fe="trackSeconds"in oe?oe.trackSeconds:(te=oe.tafHeader)==null?void 0:te.trackSeconds;return(fe==null?void 0:fe.length)===se},_=(oe,se)=>{var te;const fe="trackSeconds"in oe?oe.trackSeconds:(te=oe.tafHeader)==null?void 0:te.trackSeconds;return fe&&fe[se]||0},$=()=>{g(!0)},M=()=>{D(),g(!1)},P=()=>{g(!1)},D=async()=>{if(s&&"ruid"in n&&n.ruid)try{await Pke.apiPostTeddyCloudContentJson(n.ruid,"hide=true",i),d(dt.Success,c("tonies.messages.hideTonieSuccessful"),c("tonies.messages.hideTonieSuccessfulDetails",{ruid:n.ruid}),c("tonies.navigationTitle")),s(n.ruid)}catch(oe){d(dt.Error,c("tonies.messages.hideTonieFailed"),c("tonies.messages.hideTonieFailedDetails",{ruid:n.ruid})+oe,c("tonies.navigationTitle"))}},O=f.jsx(Gd,{title:c("tonies.confirmHideModal.title"),open:p,okText:c("tonies.confirmHideModal.hide"),cancelText:c("tonies.confirmHideModal.cancel"),content:c("tonies.confirmHideModal.confirmHideDialog",{tonieToHide:w||("uid"in n?n.uid:"")}),handleOk:M,handleCancel:P}),k=f.jsx(f.Fragment,{children:f.jsxs("h3",{children:[T||c("tonies.informationModal.unknownModel"),f.jsx("br",{}),"uid"in n&&n.uid?f.jsx(Lke,{type:"secondary",children:n.uid}):""]})}),N=f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[f.jsx("div",{children:"ruid"in n&&n.ruid?a?"":f.jsx(nt,{onClick:$,children:c("tonies.informationModal.hideTag")}):""}),f.jsx(nt,{type:"primary",onClick:t,children:c("tonies.informationModal.ok")})]});return f.jsxs(f.Fragment,{children:[f.jsxs(Rn,{title:k,footer:N,open:e,keyboard:!0,closable:!1,maskClosable:!0,onCancel:t,children:[f.jsxs("div",{style:{position:"relative"},children:[f.jsx("img",{src:(W=n.tonieInfo)!=null&&W.picture?(q=n.tonieInfo)==null?void 0:q.picture:"/img_unknown.png",alt:"",style:{width:"100%"}}),m?f.jsx(Wt,{title:`${I}`?c("tonies.alternativeSource",{originalTonie:'"'+E+'"',assignedContent:'"'+I+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+E+'"'}).replace(' "" '," "),placement:"bottom",children:f.jsx("img",{src:b,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),C&&C.length>0?f.jsxs(f.Fragment,{children:[f.jsxs("strong",{children:[c("tonies.lastPlayedOnModal.lastPlayedOnMessage"),":"]}),f.jsx("ul",{children:C.map(({ruidTime:oe,boxName:se},fe)=>f.jsxs("li",{children:[se,oe?" ("+oe+")":""]},fe))})]}):f.jsx(f.Fragment,{}),f.jsxs("div",{children:["valid"in n?f.jsxs("p",{children:[f.jsx("strong",{children:c("tonies.infoModal.valid")})," ",n.valid?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"","exists"in n?f.jsxs("p",{children:[f.jsx("strong",{children:c("tonies.infoModal.exists")})," ",n.exists?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"",m?S&&S.length>0?f.jsxs(f.Fragment,{children:[f.jsx("strong",{children:c("tonies.infoModal.tracklist")}),f.jsx("ol",{children:S.map((oe,se)=>{var fe;return f.jsxs("li",{children:["audioUrl"in n&&R(n,(fe=n.sourceInfo.tracks)==null?void 0:fe.length)?f.jsxs(f.Fragment,{children:[f.jsx(Eo,{onClick:()=>y(""+n.audioUrl,_(n,se))},"playpause")," "]}):""," ",oe]},se)})})]}):f.jsx(f.Fragment,{}):(Z=n.tonieInfo)!=null&&Z.tracks&&((Q=n.tonieInfo)==null?void 0:Q.tracks.length)>0?f.jsxs(f.Fragment,{children:[f.jsx("strong",{children:c("tonies.infoModal.tracklist")}),f.jsx("ol",{children:(ee=n.tonieInfo)==null?void 0:ee.tracks.map((oe,se)=>{var fe;return f.jsxs("li",{children:["audioUrl"in n&&R(n,(fe=n.tonieInfo.tracks)==null?void 0:fe.length)?f.jsxs(f.Fragment,{children:[f.jsx(Eo,{onClick:()=>y(""+n.audioUrl,_(n,se))},"playpause")," "]}):""," ",oe]},se)})})]}):f.jsx(f.Fragment,{})]})]}),O]})},{useToken:jke}=kr,Fke=()=>jke().token,Bke=({onVisibilityChange:e})=>{var Be;const{t}=Nt(),{songImage:n,songArtist:r,songTitle:a,songTracks:o,tonieCardOrTAFRecord:i}=Am(),s=document.getElementById("globalAudioPlayer"),c=new Dn($n()),[u,d]=l.useState("none"),[p,g]=l.useState(!1),[m,h]=l.useState(!1),[b,x]=l.useState(0),[S,v]=l.useState("0:00"),[y,C]=l.useState("0:00"),[w,E]=l.useState(0),[I,T]=l.useState({left:0,top:0,visible:!1}),[R,_]=l.useState(!1),[$,M]=l.useState(100),[P,D]=l.useState(100),[O,k]=l.useState(!1),[N,A]=l.useState(!0),[L,j]=l.useState(!1),[F,B]=l.useState(!1),[z,U]=l.useState(0),[H,Y]=l.useState(""),[K,J]=l.useState(0),[ne,W]=l.useState(300),[q,Z]=l.useState(""),[Q,ee]=l.useState("");l.useEffect(()=>{s&&($===null?s.volume=0:s.volume=$/100)},[$,s]),l.useEffect(()=>{(async()=>{const Ue=await(await c.apiGetTeddyCloudSettingRaw("frontend.confirm_audioplayer_close")).text()==="true";A(Ue)})()},[u]),l.useEffect(()=>{oe(),Z(a),ee(r)},[o,a,r]),l.useEffect(()=>{J(0),Y("")},[s==null?void 0:s.src]),l.useEffect(()=>{e(),s!=null&&s.src&&u==="none"&&d("flex")},[u,s==null?void 0:s.src,e]),l.useEffect(()=>{const ke=document.getElementById("globalAudioPlayer");ke.addEventListener("loadedmetadata",()=>{const Ae=Math.floor(ke.duration/60),Ue=Math.floor(ke.duration%60);C(`${Ae}:${Ue<10?"0":""}${Ue}`)}),ke.addEventListener("progress",()=>{if(ke.buffered.length>0){const Ae=ke.buffered.end(ke.buffered.length-1),Ue=ke.duration;Ue>0&&E(Ae/Ue*100)}})},[]);const oe=()=>{var ke,Ae;if(i){const Ue=document.querySelector(".songContainer")||document.body,ct=Mke([...("sourceInfo"in i&&i.sourceInfo?(ke=i==null?void 0:i.sourceInfo)==null?void 0:ke.tracks:(Ae=i==null?void 0:i.tonieInfo)==null?void 0:Ae.tracks)??[],r,a],getComputedStyle(Ue).fontSize+" "+getComputedStyle(Ue).fontFamily).pixelWidth;W(ct)}else W(300)},se=ke=>{Array.isArray(ke)||M(ke)},fe=()=>{D($),M(0)},te=()=>{M(P)},ie=()=>{h(!0)},pe=()=>{h(!1)},me=()=>{h(!1)},re=()=>{s.play()},ce=()=>{s.pause()},ge=()=>{je(),s.src="",s.removeAttribute("src"),s.load(),d("none"),e()},ye=ke=>{var Ye;const Ae=ke.target,Ue=Math.floor(Ae.currentTime/60),ct=Math.floor(Ae.currentTime%60);x(Ae.currentTime/s.duration*100),v(`${Ue}:${ct<10?"0":""}${ct}`);const rt=i&&("trackSeconds"in i?i.trackSeconds:"tafHeader"in i?i.tafHeader.trackSeconds:[])||[],qe=i&&((Ye="sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo)==null?void 0:Ye.tracks);if(qe&&rt&&qe.length===rt.length){const at=rt.findIndex((ut,Ct)=>{const kt=rt[Ct+1];return Ae.currentTime>=ut&&(!kt||Ae.currentTime{if("touches"in ke){const Ae=ke.touches[0],Ue=ke.currentTarget.getBoundingClientRect(),ct=Ae.clientX-Ue.left,rt=Ue.height/2;T({left:ct,top:rt,visible:!0}),s.currentTime=ct/Ue.width*s.duration,j(!0)}else{const Ae=ke.currentTarget.getBoundingClientRect(),Ue=ke.clientX-Ae.left,ct=Ae.height/2;T({left:Ue,top:ct,visible:!0}),R&&_e(ke)}},Ne=()=>{T({left:0,top:0,visible:!1})},_e=ke=>{if(L)j(!1),Ne();else{const Ae=ke.currentTarget.getBoundingClientRect();s.currentTime=I.left/Ae.width*s.duration}},Pe=ke=>{_(!0)},Le=ke=>{_(!1)},Ve=()=>{g(!p),e()},je=()=>{k(!1)},De=()=>{N?k(!0):ge()},Se=()=>{let ke=0;for(;s.currentTime>o[ke]&&(ke++,!(ke>o.length)););ke>1&&ke<=o.length?s.currentTime=o[ke-2]:ke<=1&&(s.currentTime=0)},Oe=()=>{let ke=0;for(;s.currentTime>o[ke]&&(ke++,!(ke>o.length)););ke{const ke=Ae=>{Ae?(s==null||s.play(),h(!0)):(s==null||s.pause(),h(!1))};navigator.mediaSession&&(navigator.mediaSession.metadata=new MediaMetadata({title:H||a||"",album:a||"",artist:r||"",artwork:[{src:n||"",sizes:"96x96,128x128,192x192,256x256,384x384,512x512"}]}),navigator.mediaSession.setActionHandler("play",()=>{ke(!0)}),navigator.mediaSession.setActionHandler("pause",()=>{ke(!1)}),navigator.mediaSession.setActionHandler("previoustrack",Se),o.length>0&&navigator.mediaSession.setActionHandler("nexttrack",Oe))},[H,a,r,n,o,s]),l.useEffect(()=>{if(navigator.mediaSession&&s){const ke=s.duration||0,Ae=s.currentTime||0,Ue=s.playbackRate||1;if(ke{e()},[e,Re]);const ue=f.jsxs(f.Fragment,{children:[p?f.jsx(Swe,{onClick:Ve}):f.jsx(xIe,{onClick:Ve}),f.jsx(OW,{title:f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[f.jsxs("div",{children:[f.jsx(wK,{})," ",t("tonies.closeAudioPlayerPopover")]}),f.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:8},children:[f.jsx(nt,{onClick:je,children:t("tonies.cancel")}),f.jsx(nt,{onClick:ge,children:t("tonies.closeAudioPlayer")})]})]}),open:O,trigger:"click",onOpenChange:je,className:"closePlayerPopover",placement:"top",style:{right:8},children:f.jsx(pa,{style:{margin:"0 0 0 10px"},onClick:De})})]}),Ie=f.jsxs(f.Fragment,{children:[f.jsx(My,{type:"line",success:{percent:b,strokeColor:"#1677ff"},percent:w,strokeColor:"#272727",format:()=>"",status:"active",showInfo:!1}),I.visible&&f.jsx("svg",{style:{position:"absolute",left:I.left,top:I.top,transform:"translate(-50%, -50%)"},width:"16",height:"16",viewBox:"0 0 16 16",children:f.jsx("circle",{cx:"8",cy:"8",r:"8",fill:"rgba(0,0,0,0.5)"})})]}),We=p?f.jsx(f.Fragment,{children:f.jsx("span",{id:"minimalAudioPlayer",style:{...xe,display:p?"flex":"none",padding:0},children:f.jsxs("div",{style:nr.trackInfo,children:[m?f.jsx(NP,{style:{fontSize:24,marginRight:8},onClick:ce}):f.jsx(Eo,{style:{fontSize:24,marginRight:8},onClick:re}),n&&f.jsx("img",{src:n,alt:"Song",style:{...nr.songImage,cursor:i?"help":"unset"},onClick:()=>{i!==void 0&&(U(z+1),B(!0))}}),y.startsWith("Infinity")?f.jsx("div",{style:{...nr.playPositionContainer,marginRight:0},children:f.jsxs("div",{style:{display:"flex"},children:[f.jsx("div",{style:{textAlign:"center",marginBottom:0},children:" "}),f.jsx("span",{children:ue})]})}):f.jsxs("div",{style:{...nr.playPositionContainer,marginRight:0},children:[f.jsxs("div",{style:{display:"flex"},children:[f.jsxs("div",{style:{textAlign:"center",marginBottom:0},children:[S," / ",y]}),f.jsx("span",{style:{margin:0,marginLeft:16,textAlign:"right"},children:ue})]}),f.jsx("div",{style:{...Fe,width:100},onMouseDown:Pe,onMouseMove:Ee,onMouseUp:Le,onMouseLeave:Ne,onTouchStart:Ee,onTouchMove:Ee,onClick:_e,children:Ie})]})]})})}):"",He=p?"":f.jsxs(f.Fragment,{children:[f.jsx("span",{id:"normalAudioPlayer",style:{margin:0,marginLeft:16,textAlign:"right",display:p?"none":"flex",position:"absolute"},children:ue}),f.jsxs("span",{style:{...xe,display:p?"none":"flex"},children:[f.jsxs("div",{id:"audioPlayer",style:{...nr.controls,flexDirection:"column",gap:8},children:[H?f.jsxs("div",{style:{fontSize:"x-small",marginTop:H?-20:0},children:[K,i&&((Be="sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo)==null?void 0:Be.tracks.length)&&f.jsxs(f.Fragment,{children:[" ","/"," ",("sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo).tracks.length]})]}):"",f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx(RIe,{style:nr.controlButton,onClick:Se}),m?f.jsx(NP,{style:nr.controlButton,onClick:ce}):f.jsx(Eo,{style:nr.controlButton,onClick:re}),f.jsx(OIe,{style:{...nr.controlButton,cursor:o.length===0?"default":"pointer",opacity:o.length===0?.25:1},disabled:o.length===0,onClick:Oe})]})]}),f.jsxs("div",{style:{...nr.trackInfo,cursor:i?"help":"unset"},onClick:()=>{i!==void 0&&(U(z+1),B(!0))},children:[n&&f.jsx("img",{src:n,alt:"Song",style:nr.songImage}),f.jsxs("div",{className:"songContainer",style:be,children:[H?f.jsx("div",{children:H}):"",f.jsx("div",{children:Q}),f.jsx("div",{children:q})]})]}),y.startsWith("Infinity")?"":f.jsxs("div",{style:nr.playPositionContainer,children:[f.jsx("div",{children:f.jsxs("div",{style:{textAlign:"center"},children:[S," / ",y]})}),f.jsx("div",{style:Fe,onMouseDown:Pe,onMouseMove:Ee,onMouseUp:Le,onMouseLeave:Ne,onTouchStart:Ee,onTouchMove:Ee,onClick:_e,children:Ie})]}),f.jsx("div",{style:$e,children:f.jsxs("div",{style:{...nr.controls,position:"relative"},children:[f.jsx(z2e,{style:{...nr.controlButton,...nr.volumeIcon,display:($||0)===0?"block":"none"},onClick:te}),f.jsx(yK,{style:{...nr.controlButton,...nr.volumeIcon,display:($||0)>0?"block":"none"},onClick:fe}),f.jsx("div",{style:nr.volumeSlider,children:f.jsx(Axe,{min:0,max:100,value:$||0,onChange:se})})]})})]})]});return f.jsxs(f.Fragment,{children:[f.jsxs("div",{style:{...nr.container,display:u,visibility:s!=null&&s.src?"visible":"hidden",height:s!=null&&s.src?"auto":"0",margin:s!=null&&s.src?"0":"-24px",marginBottom:s!=null&&s.src?"8px":"0",overflow:"hidden"},children:[We,He,i?f.jsx(Ky,{open:F,onClose:()=>B(!1),tonieCardOrTAFRecord:{...i,tonieInfo:"sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo},readOnly:!0},z):""]}),f.jsx("audio",{id:"globalAudioPlayer",controls:!0,onPlay:ie,onPause:pe,onEnded:me,onTimeUpdate:ye,style:{display:"none"},children:"Your browser does not support the audio element."})]})},nr={container:{flexDirection:"column",alignItems:"flex-end",objectPosition:"top",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},innerContainer:{justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:"#333",borderRadius:8,gap:16},controls:{display:"flex",alignItems:"center"},controlButton:{fontSize:24,cursor:"pointer"},trackInfo:{display:"flex",alignItems:"center",justifyContent:"center"},songImage:{width:"auto",height:40,borderRadius:"50%",marginRight:10},songContainer:{minWidth:200,maxWidth:200},songTitle:{display:"block"},songArtist:{display:"block"},progressBar:{display:"block",position:"relative",width:150,marginRight:10},playPosition:{fontSize:14,width:"100%"},playPositionContainer:{marginLeft:10,marginRight:10},controls2:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24},volumeSlider:{width:100,position:"releative",marginRight:16,top:"calc(100% + 10px)",zIndex:1e3,backgroundColor:`${()=>Fke().colorBgContainer}`,padding:0},volumeIcon:{fontSize:24,cursor:"pointer",marginBottom:0}},{useToken:zke}=kr,Hke=()=>zke().token,Dm=Ia(Ps)` + `]:{zIndex:10,width:r,margin:`0 ${G(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${G(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},YOe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},XOe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},an(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},ZOe=e=>({actionsColor:e.colorTextDescription}),QOe=on("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,i=Bt(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[XOe(i),VOe(i),qOe(i),KOe(i),WOe(i),GOe(i),YOe(i),dm(i)]},ZOe);function Gh(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function qh(e,t){const n=De(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function u1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function JOe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const eNe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},dY=e=>e.indexOf("image/")===0,tNe=e=>{if(e.type&&!e.thumbUrl)return dY(e.type);const t=e.thumbUrl||e.url||"",n=eNe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Gs=200;function nNe(e){return new Promise(t=>{if(!e.type||!dY(e.type)){t("");return}const n=document.createElement("canvas");n.width=Gs,n.height=Gs,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Gs}px; height: ${Gs}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let s=Gs,c=Gs,u=0,d=0;o>i?(c=i*(Gs/o),d=-(c-s)/2):(s=o*(Gs/i),u=-(s-c)/2),r.drawImage(a,u,d,s,c);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(p)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const rNe=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:i,file:s,items:c,progress:u,iconRender:d,actionIconRender:p,itemRender:g,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:x,previewIcon:S,removeIcon:v,downloadIcon:y,extra:w,onPreview:C,onDownload:E,onClose:I}=e;var T,R;const{status:_}=s,[$,M]=l.useState(_);l.useEffect(()=>{_!=="removed"&&M(_)},[_]);const[P,D]=l.useState(!1);l.useEffect(()=>{const Q=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(Q)}},[]);const O=d(s);let k=l.createElement("div",{className:`${n}-icon`},O);if(i==="picture"||i==="picture-card"||i==="picture-circle")if($==="uploading"||!s.thumbUrl&&!s.url){const Q=oe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:$!=="uploading"});k=l.createElement("div",{className:Q},O)}else{const Q=m!=null&&m(s)?l.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):O,J=oe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:m&&!m(s)});k=l.createElement("a",{className:J,onClick:ie=>C(s,ie),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}const N=oe(`${n}-list-item`,`${n}-list-item-${$}`),A=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=(typeof b=="function"?b(s):b)?p((typeof v=="function"?v(s):v)||l.createElement(Al,null),()=>I(s),n,o.removeFile,!0):null,j=(typeof x=="function"?x(s):x)&&$==="done"?p((typeof y=="function"?y(s):y)||l.createElement(LN,null),()=>E(s),n,o.downloadFile):null,F=i!=="picture-card"&&i!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:oe(`${n}-list-item-actions`,{picture:i==="picture"})},j,L),B=typeof w=="function"?w(s):w,z=B&&l.createElement("span",{className:`${n}-list-item-extra`},B),U=oe(`${n}-list-item-name`),H=s.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:U,title:s.name},A,{href:s.url,onClick:Q=>C(s,Q)}),s.name,z):l.createElement("span",{key:"view",className:U,onClick:Q=>C(s,Q),title:s.name},s.name,z),K=(typeof h=="function"?h(s):h)&&(s.url||s.thumbUrl)?l.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>C(s,Q),title:o.previewFile},typeof S=="function"?S(s):S||l.createElement(kl,null)):null,Y=(i==="picture-card"||i==="picture-circle")&&$!=="uploading"&&l.createElement("span",{className:`${n}-list-item-actions`},K,$==="done"&&j,L),{getPrefixCls:ee}=l.useContext(ut),ae=ee(),W=l.createElement("div",{className:N},k,H,F,Y,P&&l.createElement(Qr,{motionName:`${ae}-fade`,visible:$==="uploading",motionDeadline:2e3},Q=>{let{className:J}=Q;const ie="percent"in s?l.createElement(Py,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return l.createElement("div",{className:oe(`${n}-list-item-progress`,J)},ie)})),q=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((R=s.error)===null||R===void 0?void 0:R.message)||o.uploadError,Z=$==="error"?l.createElement(Ft,{title:q,getPopupContainer:Q=>Q.parentNode},W):W;return l.createElement("div",{className:oe(`${n}-list-item-container`,r),style:a,ref:t},g?g(Z,s,c,{download:E.bind(null,s),preview:C.bind(null,s),remove:I.bind(null,s)}):Z)}),aNe=(e,t)=>{const{listType:n="text",previewFile:r=nNe,onPreview:a,onDownload:o,onRemove:i,locale:s,iconRender:c,isImageUrl:u=tNe,prefixCls:d,items:p=[],showPreviewIcon:g=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:b,previewIcon:x,downloadIcon:S,extra:v,progress:y={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:C=!0,itemRender:E,disabled:I}=e,T=QO(),[R,_]=l.useState(!1),$=["picture-card","picture-circle"].includes(n);l.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(z=>{!(z.originFileObj instanceof File||z.originFileObj instanceof Blob)||z.thumbUrl!==void 0||(z.thumbUrl="",r==null||r(z.originFileObj).then(U=>{z.thumbUrl=U||"",T()}))})},[n,p,r]),l.useEffect(()=>{_(!0)},[]);const M=(z,U)=>{if(a)return U.preventDefault(),a(z)},P=z=>{typeof o=="function"?o(z):z.url&&window.open(z.url)},D=z=>{i==null||i(z)},O=z=>{if(c)return c(z,n);const U=z.status==="uploading";if(n.startsWith("picture")){const H=n==="picture"?l.createElement(Qi,null):s.uploading,K=u!=null&&u(z)?l.createElement(eIe,null):l.createElement(DEe,null);return U?H:K}return U?l.createElement(Qi,null):l.createElement(Y2e,null)},k=(z,U,H,K,Y)=>{const ee={type:"text",size:"small",title:K,onClick:ae=>{var W,q;U(),l.isValidElement(z)&&((q=(W=z.props).onClick)===null||q===void 0||q.call(W,ae))},className:`${H}-list-item-action`};return Y&&(ee.disabled=I),l.isValidElement(z)?l.createElement(tt,Object.assign({},ee,{icon:$r(z,Object.assign(Object.assign({},z.props),{onClick:()=>{}}))})):l.createElement(tt,Object.assign({},ee),l.createElement("span",null,z))};l.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:P}));const{getPrefixCls:N}=l.useContext(ut),A=N("upload",d),L=N(),j=oe(`${A}-list`,`${A}-list-${n}`),F=l.useMemo(()=>Mn(Ad(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),B=Object.assign(Object.assign({},$?{}:F),{motionDeadline:2e3,motionName:`${A}-${$?"animate-inline":"animate"}`,keys:De(p.map(z=>({key:z.uid,file:z}))),motionAppear:R});return l.createElement("div",{className:j},l.createElement(_O,Object.assign({},B,{component:!1}),z=>{let{key:U,file:H,className:K,style:Y}=z;return l.createElement(rNe,{key:U,locale:s,prefixCls:A,className:K,style:Y,file:H,items:p,progress:y,listType:n,isImgUrl:u,showPreviewIcon:g,showRemoveIcon:m,showDownloadIcon:h,removeIcon:b,previewIcon:x,downloadIcon:S,extra:v,iconRender:O,actionIconRender:k,itemRender:E,onPreview:M,onDownload:P,onClose:D})}),w&&l.createElement(Qr,Object.assign({},B,{visible:C,forceRender:!0}),z=>{let{className:U,style:H}=z;return $r(w,K=>({className:oe(K.className,U),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:U?"none":void 0}),K.style)}))}))},oNe=l.forwardRef(aNe);var iNe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(p){i(p)}}function c(d){try{u(r.throw(d))}catch(p){i(p)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,[])).next())})};const mp=`__LIST_IGNORE_${Date.now()}__`,sNe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:i="text",onPreview:s,onDownload:c,onChange:u,onDrop:d,previewFile:p,disabled:g,locale:m,iconRender:h,isImageUrl:b,progress:x,prefixCls:S,className:v,type:y="select",children:w,style:C,itemRender:E,maxCount:I,data:T={},multiple:R=!1,hasControlInside:_=!0,action:$="",accept:M="",supportServerRender:P=!0,rootClassName:D}=e,O=l.useContext(pa),k=g??O,[N,A]=fn(r||[],{value:n,postState:Se=>Se??[]}),[L,j]=l.useState("drop"),F=l.useRef(null),B=l.useRef(null);l.useMemo(()=>{const Se=Date.now();(n||[]).forEach((Ne,Te)=>{!Ne.uid&&!Object.isFrozen(Ne)&&(Ne.uid=`__AUTO__${Se}_${Te}__`)})},[n]);const z=(Se,Ne,Te)=>{let we=De(Ne),Me=!1;I===1?we=we.slice(-1):I&&(Me=we.length>I,we=we.slice(0,I)),Kr.flushSync(()=>{A(we)});const Ge={file:Se,fileList:we};Te&&(Ge.event=Te),(!Me||Se.status==="removed"||we.some(st=>st.uid===Se.uid))&&Kr.flushSync(()=>{u==null||u(Ge)})},U=(Se,Ne)=>iNe(void 0,void 0,void 0,function*(){const{beforeUpload:Te,transformFile:we}=e;let Me=Se;if(Te){const Ge=yield Te(Se,Ne);if(Ge===!1)return!1;if(delete Se[mp],Ge===mp)return Object.defineProperty(Se,mp,{value:!0,configurable:!0}),!1;typeof Ge=="object"&&Ge&&(Me=Ge)}return we&&(Me=yield we(Me)),Me}),H=Se=>{const Ne=Se.filter(Me=>!Me.file[mp]);if(!Ne.length)return;const Te=Ne.map(Me=>Gh(Me.file));let we=De(N);Te.forEach(Me=>{we=qh(Me,we)}),Te.forEach((Me,Ge)=>{let st=Me;if(Ne[Ge].parsedFile)Me.status="uploading";else{const{originFileObj:ge}=Me;let ne;try{ne=new File([ge],ge.name,{type:ge.type})}catch{ne=new Blob([ge],{type:ge.type}),ne.name=ge.name,ne.lastModifiedDate=new Date,ne.lastModified=new Date().getTime()}ne.uid=Me.uid,st=ne}z(st,we)})},K=(Se,Ne,Te)=>{try{typeof Se=="string"&&(Se=JSON.parse(Se))}catch{}if(!u1(Ne,N))return;const we=Gh(Ne);we.status="done",we.percent=100,we.response=Se,we.xhr=Te;const Me=qh(we,N);z(we,Me)},Y=(Se,Ne)=>{if(!u1(Ne,N))return;const Te=Gh(Ne);Te.status="uploading",Te.percent=Se.percent;const we=qh(Te,N);z(Te,we,Se)},ee=(Se,Ne,Te)=>{if(!u1(Te,N))return;const we=Gh(Te);we.error=Se,we.response=Ne,we.status="error";const Me=qh(we,N);z(we,Me)},ae=Se=>{let Ne;Promise.resolve(typeof a=="function"?a(Se):a).then(Te=>{var we;if(Te===!1)return;const Me=JOe(Se,N);Me&&(Ne=Object.assign(Object.assign({},Se),{status:"removed"}),N==null||N.forEach(Ge=>{const st=Ne.uid!==void 0?"uid":"name";Ge[st]===Ne[st]&&!Object.isFrozen(Ge)&&(Ge.status="removed")}),(we=F.current)===null||we===void 0||we.abort(Ne),z(Ne,Me))})},W=Se=>{j(Se.type),Se.type==="drop"&&(d==null||d(Se))};l.useImperativeHandle(t,()=>({onBatchStart:H,onSuccess:K,onProgress:Y,onError:ee,fileList:N,upload:F.current,nativeElement:B.current}));const{getPrefixCls:q,direction:Z,upload:Q}=l.useContext(ut),J=q("upload",S),ie=Object.assign(Object.assign({onBatchStart:H,onError:ee,onProgress:Y,onSuccess:K},e),{data:T,multiple:R,action:$,accept:M,supportServerRender:P,prefixCls:J,disabled:k,beforeUpload:U,onChange:void 0,hasControlInside:_});delete ie.className,delete ie.style,(!w||k)&&delete ie.id;const le=`${J}-wrapper`,[fe,te,se]=QOe(J,le),[pe]=ns("Upload",ni.Upload),{showRemoveIcon:he,showPreviewIcon:re,showDownloadIcon:ue,removeIcon:me,previewIcon:xe,downloadIcon:Ee,extra:ke}=typeof o=="boolean"?{}:o,$e=typeof he>"u"?!k:he,Le=(Se,Ne)=>o?l.createElement(oNe,{prefixCls:J,listType:i,items:N,previewFile:p,onPreview:s,onDownload:c,onRemove:ae,showRemoveIcon:$e,showPreviewIcon:re,showDownloadIcon:ue,removeIcon:me,previewIcon:xe,downloadIcon:Ee,iconRender:h,extra:ke,locale:Object.assign(Object.assign({},pe),m),isImageUrl:b,progress:x,appendAction:Se,appendActionVisible:Ne,itemRender:E,disabled:k}):Se,je=oe(le,v,D,te,se,Q==null?void 0:Q.className,{[`${J}-rtl`]:Z==="rtl",[`${J}-picture-card-wrapper`]:i==="picture-card",[`${J}-picture-circle-wrapper`]:i==="picture-circle"}),He=Object.assign(Object.assign({},Q==null?void 0:Q.style),C);if(y==="drag"){const Se=oe(te,J,`${J}-drag`,{[`${J}-drag-uploading`]:N.some(Ne=>Ne.status==="uploading"),[`${J}-drag-hover`]:L==="dragover",[`${J}-disabled`]:k,[`${J}-rtl`]:Z==="rtl"});return fe(l.createElement("span",{className:je,ref:B},l.createElement("div",{className:Se,style:He,onDrop:W,onDragOver:W,onDragLeave:W},l.createElement(k_,Object.assign({},ie,{ref:F,className:`${J}-btn`}),l.createElement("div",{className:`${J}-drag-container`},w))),Le()))}const Be=oe(J,`${J}-select`,{[`${J}-disabled`]:k}),Pe=l.createElement("div",{className:Be,style:w?void 0:{display:"none"}},l.createElement(k_,Object.assign({},ie,{ref:F})));return fe(i==="picture-card"||i==="picture-circle"?l.createElement("span",{className:je,ref:B},Le(Pe,!!w)):l.createElement("span",{className:je,ref:B},Pe,Le()))},fY=l.forwardRef(sNe);var lNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,o=lNe(e,["style","height","hasControlInside"]);return l.createElement(fY,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Bd=fY;Bd.Dragger=cNe;Bd.LIST_IGNORE=mp;const pY="/web/assets/logo-aw46LCqE.png",uNe=()=>{const t=document.createElement("audio").canPlayType("audio/ogg; codecs=opus");return console.log("Supports OGG/Opus:",t),t==="probably"||t==="maybe"};function Cs(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("theme");return t==="auto"?e?"dark":"light":t}const gY=de.createContext(void 0),Mm=()=>{const e=l.useContext(gY);if(!e)throw new Error("useAudioContext must be used within an AudioProvider");return e},vL=e=>{const n=e.split("?")[0].split("/");return n[n.length-1]},dNe=({children:e})=>{const{t}=Nt(),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState([]),[d,p]=l.useState(),g=(m,h,b,x)=>{var y;if(console.log("Play audio: "+m),/\/....04E0\?|(\?ogg)/.test(m)&&!uNe())_n.error({title:t("audio.errorNoOggOpusSupport"),content:t("audio.errorNoOggOpusSupportByApple"),okText:t("audio.errorConfirm")});else{const w=document.getElementById("globalAudioPlayer");if(w.src=m,h?(r(h.picture),o(h.series||h.episode?h.series:vL(decodeURI(m).replace("500304E0",t("audio.unknownSource")))),s(h.episode)):(r(decodeURI(m).includes(".taf?")?"/img_unknown.png":pY),o(""),s(vL(decodeURI(m)))),b){p(b);const C="trackSeconds"in b?b.trackSeconds||[0]:"tafHeader"in b&&((y=b.tafHeader)!=null&&y.trackSeconds)?b.tafHeader.trackSeconds:[0];u(C)}else u([0]),p(void 0);x&&(w.currentTime=x),w.play()}};return f.jsx(gY.Provider,{value:{playAudio:g,songImage:n,songArtist:a,songTitle:i,songTracks:c,tonieCardOrTAFRecord:d},children:e})};var to=function(){return to=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0?ca(wf,--ai):0,Hd--,zr===10&&(Hd=1,Wy--),zr}function Ti(){return zr=ai2||M_(zr)>3?"":" "}function SNe(e,t){for(;--t&&Ti()&&!(zr<48||zr>102||zr>57&&zr<65||zr>70&&zr<97););return qy(e,Uv()+(t<6&&Tc()==32&&Ti()==32))}function D_(e){for(;Ti();)switch(zr){case e:return ai;case 34:case 39:e!==34&&e!==39&&D_(zr);break;case 40:e===41&&D_(e);break;case 92:Ti();break}return ai}function wNe(e,t){for(;Ti()&&e+zr!==57;)if(e+zr===84&&Tc()===47)break;return"/*"+qy(t,ai-1)+"*"+ik(e===47?e:Ti())}function CNe(e){for(;!M_(Tc());)Ti();return qy(e,ai)}function ENe(e){return yNe(Vv("",null,null,null,[""],e=bNe(e),0,[0],e))}function Vv(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,p=i,g=0,m=0,h=0,b=1,x=1,S=1,v=0,y="",w=a,C=o,E=r,I=y;x;)switch(h=v,v=Ti()){case 40:if(h!=108&&ca(I,p-1)==58){Hv(I+=hn(d1(v),"&","&\f"),"&\f",vY(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=d1(v);break;case 9:case 10:case 13:case 32:I+=xNe(h);break;case 92:I+=SNe(Uv()-1,7);continue;case 47:switch(Tc()){case 42:case 47:hp(INe(wNe(Ti(),Uv()),t,n,c),c);break;default:I+="/"}break;case 123*b:s[u++]=Ui(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:S==-1&&(I=hn(I,/\f/g,"")),m>0&&Ui(I)-p&&hp(m>32?xL(I+";",r,n,p-1,c):xL(hn(I," ","")+";",r,n,p-2,c),c);break;case 59:I+=";";default:if(hp(E=yL(I,t,n,u,d,a,s,y,w=[],C=[],p,o),o),v===123)if(d===0)Vv(I,t,E,E,w,o,p,s,C);else switch(g===99&&ca(I,3)===110?100:g){case 100:case 108:case 109:case 115:Vv(e,E,E,r&&hp(yL(e,E,E,0,0,a,s,y,a,w=[],p,C),C),a,C,p,s,r?w:C);break;default:Vv(I,E,E,E,[""],C,0,s,C)}}u=d=m=0,b=S=1,y=I="",p=i;break;case 58:p=1+Ui(I),m=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&vNe()==125)continue}switch(I+=ik(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(Ui(I)-1)*S,S=1;break;case 64:Tc()===45&&(I+=d1(Ti())),g=Tc(),d=p=Ui(y=I+=CNe(Uv())),v++;break;case 45:h===45&&Ui(I)==2&&(b=0)}}return o}function yL(e,t,n,r,a,o,i,s,c,u,d,p){for(var g=a-1,m=a===0?o:[""],h=yY(m),b=0,x=0,S=0;b0?m[v]+" "+y:hn(y,/&\f/g,m[v])))&&(c[S++]=w);return Gy(e,t,n,a===0?Vy:s,c,u,d,p)}function INe(e,t,n,r){return Gy(e,t,n,mY,ik(hNe()),zd(e,2,-2),0,r)}function xL(e,t,n,r,a){return Gy(e,t,n,ok,zd(e,0,r),zd(e,r+1,-1),r,a)}function SY(e,t,n){switch(gNe(e,t)){case 5103:return Un+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Un+e+e;case 4789:return Hp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Un+e+Hp+e+mr+e+e;case 5936:switch(ca(e,t+11)){case 114:return Un+e+mr+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Un+e+mr+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Un+e+mr+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Un+e+mr+e+e;case 6165:return Un+e+mr+"flex-"+e+e;case 5187:return Un+e+hn(e,/(\w+).+(:[^]+)/,Un+"box-$1$2"+mr+"flex-$1$2")+e;case 5443:return Un+e+mr+"flex-item-"+hn(e,/flex-|-self/g,"")+(ds(e,/flex-|baseline/)?"":mr+"grid-row-"+hn(e,/flex-|-self/g,""))+e;case 4675:return Un+e+mr+"flex-line-pack"+hn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Un+e+mr+hn(e,"shrink","negative")+e;case 5292:return Un+e+mr+hn(e,"basis","preferred-size")+e;case 6060:return Un+"box-"+hn(e,"-grow","")+Un+e+mr+hn(e,"grow","positive")+e;case 4554:return Un+hn(e,/([^-])(transform)/g,"$1"+Un+"$2")+e;case 6187:return hn(hn(hn(e,/(zoom-|grab)/,Un+"$1"),/(image-set)/,Un+"$1"),e,"")+e;case 5495:case 3959:return hn(e,/(image-set\([^]*)/,Un+"$1$`$1");case 4968:return hn(hn(e,/(.+:)(flex-)?(.*)/,Un+"box-pack:$3"+mr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Un+e+e;case 4200:if(!ds(e,/flex-|baseline/))return mr+"grid-column-align"+zd(e,t)+e;break;case 2592:case 3360:return mr+hn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,ds(r.props,/grid-\w+-end/)})?~Hv(e+(n=n[t].value),"span",0)?e:mr+hn(e,"-start","")+e+mr+"grid-row-span:"+(~Hv(n,"span",0)?ds(n,/\d+/):+ds(n,/\d+/)-+ds(e,/\d+/))+";":mr+hn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ds(r.props,/grid-\w+-start/)})?e:mr+hn(hn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return hn(e,/(.+)-inline(.+)/,Un+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ui(e)-1-t>6)switch(ca(e,t+1)){case 109:if(ca(e,t+4)!==45)break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+Un+"$2-$3$1"+Hp+(ca(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hv(e,"stretch",0)?SY(hn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return hn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,o,i,s,c,u){return mr+a+":"+o+u+(i?mr+a+"-span:"+(s?c:+c-+o)+u:"")+e});case 4949:if(ca(e,t+6)===121)return hn(e,":",":"+Un)+e;break;case 6444:switch(ca(e,ca(e,14)===45?18:11)){case 120:return hn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Un+(ca(e,14)===45?"inline-":"")+"box$3$1"+Un+"$2$3$1"+mr+"$2box$3")+e;case 100:return hn(e,":",":"+mr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return hn(e,"scroll-","scroll-snap-")+e}return e}function t0(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case ok:e.return=SY(e.value,e.length,n);return;case hY:return t0([Js(e,{value:hn(e.value,"@","@"+Un)})],r);case Vy:if(e.length)return mNe(n=e.props,function(a){switch(ds(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$u(Js(e,{props:[hn(a,/:(read-\w+)/,":"+Hp+"$1")]})),$u(Js(e,{props:[a]})),A_(e,{props:bL(n,r)});break;case"::placeholder":$u(Js(e,{props:[hn(a,/:(plac\w+)/,":"+Un+"input-$1")]})),$u(Js(e,{props:[hn(a,/:(plac\w+)/,":"+Hp+"$1")]})),$u(Js(e,{props:[hn(a,/:(plac\w+)/,mr+"input-$1")]})),$u(Js(e,{props:[a]})),A_(e,{props:bL(n,r)});break}return""})}}var ONe={animationIterationCount:1,aspectRatio: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},ho={},Ud=typeof process<"u"&&ho!==void 0&&(ho.REACT_APP_SC_ATTR||ho.SC_ATTR)||"data-styled",wY="active",CY="data-styled-version",Ky="6.1.13",sk=`/*!sc*/ +`,n0=typeof window<"u"&&"HTMLElement"in window,NNe=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ho!==void 0&&ho.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ho.REACT_APP_SC_DISABLE_SPEEDY!==""?ho.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ho.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ho!==void 0&&ho.SC_DISABLE_SPEEDY!==void 0&&ho.SC_DISABLE_SPEEDY!==""&&ho.SC_DISABLE_SPEEDY!=="false"&&ho.SC_DISABLE_SPEEDY),Yy=Object.freeze([]),Vd=Object.freeze({});function kNe(e,t,n){return n===void 0&&(n=Vd),e.theme!==n.theme&&e.theme||t||n.theme}var EY=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ANe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,MNe=/(^-|-$)/g;function SL(e){return e.replace(ANe,"-").replace(MNe,"")}var DNe=/(a)(d)/gi,Kh=52,wL=function(e){return String.fromCharCode(e+(e>25?39:97))};function P_(e){var t,n="";for(t=Math.abs(e);t>Kh;t=t/Kh|0)n=wL(t%Kh)+n;return(wL(t%Kh)+n).replace(DNe,"$1-$2")}var f1,IY=5381,nd=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},TY=function(e){return nd(IY,e)};function PNe(e){return P_(TY(e)>>>0)}function LNe(e){return e.displayName||e.name||"Component"}function p1(e){return typeof e=="string"&&!0}var RY=typeof Symbol=="function"&&Symbol.for,_Y=RY?Symbol.for("react.memo"):60115,jNe=RY?Symbol.for("react.forward_ref"):60112,FNe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},BNe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zNe=((f1={})[jNe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f1[_Y]=$Y,f1);function CL(e){return("type"in(t=e)&&t.type.$$typeof)===_Y?$Y:"$$typeof"in e?zNe[e.$$typeof]:FNe;var t}var HNe=Object.defineProperty,UNe=Object.getOwnPropertyNames,EL=Object.getOwnPropertySymbols,VNe=Object.getOwnPropertyDescriptor,WNe=Object.getPrototypeOf,IL=Object.prototype;function OY(e,t,n){if(typeof t!="string"){if(IL){var r=WNe(t);r&&r!==IL&&OY(e,r,n)}var a=UNe(t);EL&&(a=a.concat(EL(t)));for(var o=CL(e),i=CL(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var GNe=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)if((o<<=1)<0)throw Dm(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=a;i=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,i=a;i=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(x+="".concat(S,","))}),c+="".concat(h).concat(b,'{content:"').concat(x,'"}').concat(sk)},d=0;d0?".".concat(t):g},d=c.slice();d.push(function(g){g.type===Vy&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(rke,n).replace(r,u))}),i.prefix&&d.push($Ne),d.push(TNe);var p=function(g,m,h,b){m===void 0&&(m=""),h===void 0&&(h=""),b===void 0&&(b="&"),t=b,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var x=g.replace(ake,""),S=ENe(h||m?"".concat(h," ").concat(m," { ").concat(x," }"):x);i.namespace&&(S=AY(S,i.namespace));var v=[];return t0(S,RNe(d.concat(_Ne(function(y){return v.push(y)})))),v};return p.hash=c.length?c.reduce(function(g,m){return m.name||Dm(15),nd(g,m.name)},IY).toString():"",p}var ike=new kY,j_=oke(),MY=de.createContext({shouldForwardProp:void 0,styleSheet:ike,stylis:j_});MY.Consumer;de.createContext(void 0);function $L(){return l.useContext(MY)}var ske=function(){function e(t,n){var r=this;this.inject=function(a,o){o===void 0&&(o=j_);var i=r.name+o.hash;a.hasNameForId(r.id,i)||a.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ck(this,function(){throw Dm(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=j_),this.name+t.hash},e}(),lke=function(e){return e>="A"&&e<="Z"};function OL(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,s)}a=mc(a,i),this.staticRulesId=i}else{for(var c=nd(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(u,".".concat(m),void 0,this.componentId)),a=mc(a,m)}}return a},e}(),LY=de.createContext(void 0);LY.Consumer;var g1={};function fke(e,t,n){var r=lk(e),a=e,o=!p1(e),i=t.attrs,s=i===void 0?Yy:i,c=t.componentId,u=c===void 0?function(w,C){var E=typeof w!="string"?"sc":SL(w);g1[E]=(g1[E]||0)+1;var I="".concat(E,"-").concat(PNe(Ky+E+g1[E]));return C?"".concat(C,"-").concat(I):I}(t.displayName,t.parentComponentId):c,d=t.displayName,p=d===void 0?function(w){return p1(w)?"styled.".concat(w):"Styled(".concat(LNe(w),")")}(e):d,g=t.displayName&&t.componentId?"".concat(SL(t.displayName),"-").concat(t.componentId):t.componentId||u,m=r&&a.attrs?a.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;h=function(w,C){return b(w,C)&&x(w,C)}}else h=b}var S=new dke(n,g,r?a.componentStyle:void 0);function v(w,C){return function(E,I,T){var R=E.attrs,_=E.componentStyle,$=E.defaultProps,M=E.foldedComponentIds,P=E.styledComponentId,D=E.target,O=de.useContext(LY),k=$L(),N=E.shouldForwardProp||k.shouldForwardProp,A=kNe(I,O,$)||Vd,L=function(H,K,Y){for(var ee,ae=to(to({},K),{className:void 0,theme:Y}),W=0;Wt}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const vke=new zY,g0=class g0{constructor(t=vke){ja(this,"middleware");ja(this,"fetchApi",async(t,n)=>{let r={url:t,init:n};for(const o of this.middleware)o.pre&&(r=await o.pre({fetch:this.fetchApi,...r})||r);let a;try{a=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const i of this.middleware)i.onError&&(a=await i.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new Ske(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?g0.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:a}=await this.createFetchParams(t,n),o=await this.fetchApi(r,a);if(o&&o.status>=200&&o.status<300)return o;throw new xke(o,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(u=>a[u]===void 0?delete a[u]:{});const o=typeof n=="function"?n:async()=>n,i={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},s={...i,...await o({init:i,context:t})},c={...s,body:yke(s.body)||s.body instanceof URLSearchParams||bke(s.body)?s.body:JSON.stringify(s.body)};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};ja(g0,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let Fg=g0;function bke(e){return typeof Blob<"u"&&e instanceof Blob}function yke(e){return typeof FormData<"u"&&e instanceof FormData}class xke extends Error{constructor(n,r){super(r);ja(this,"name","ResponseError");this.response=n}}class Ske extends Error{constructor(n,r){super(r);ja(this,"name","FetchError");this.cause=n}}class wke extends Error{constructor(n,r){super(r);ja(this,"name","RequiredError");this.field=n}}function HY(e,t){const n=e[t];return n!=null}function UY(e,t=""){return Object.keys(e).map(n=>VY(n,e[n],t)).filter(n=>n.length>0).join("&")}function VY(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}if(t instanceof Set){const a=Array.from(t);return VY(e,a,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?UY(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}function Cke(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class fs{constructor(t,n=r=>r){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class Eke{constructor(t){this.raw=t}async value(){}}class a0{constructor(t){this.raw=t}async value(){return await this.raw.text()}}class WY extends Fg{async v1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new fs(a):new a0(a)}async v1TimeGet(t){return await(await this.v1TimeGetRaw(t)).value()}}class Ike extends Fg{async reverseV1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/reverse/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new fs(a):new a0(a)}async reverseV1TimeGet(t){return await(await this.reverseV1TimeGetRaw(t)).value()}}function Tke(e){return Rke(e)}function Rke(e,t){return e==null?e:{iD:e.ID,shortname:e.shortname,description:e.description,label:e.label,type:e.type,value:e.value,overlayed:e.overlayed}}function _ke(e){return $ke(e)}function $ke(e,t){return e==null?e:{options:HY(e,"options")?e.options.map(Tke):void 0}}function Oke(e){return Nke(e)}function Nke(e,t){return e==null?e:{iD:e.ID,description:e.description,value:e.value}}function kke(e){return Ake(e)}function Ake(e,t){return e==null?e:{stats:HY(e,"stats")?e.stats.map(Oke):void 0}}class Dn extends Fg{async apiGetTonieboxesIndexRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/getBoxes",void 0,t);return new fs(n)}async apiGetTonieboxesIndex(t){return(await(await this.apiGetTonieboxesIndexRaw(t)).value()).boxes}async apiGetTagIndexRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/getTagIndex",t,n);return new fs(r)}async apiGetTagIndex(t,n,r){return(await(await this.apiGetTagIndexRaw(t,r)).value()).tags}async apiGetTagInfoRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/getTagInfo?ruid=${t}`,n,r);return new fs(a)}async apiGetTagInfo(t,n,r){return(await(await this.apiGetTagInfoRaw(t,n,r)).value()).tagInfo}async apiGetTagIndexMergedAllOverlays(t,n){const r=await this.apiGetTonieboxesIndex();return(await Promise.all([...r.map(async s=>await this.apiGetTagIndex(s.ID,t,n)),this.apiGetTagIndex("",t,n)])).flat().filter((s,c,u)=>c===u.findIndex(d=>d.ruid===s.ruid&&d.source===s.source))}async apiGetIndexGetRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/settings/getIndex",t,n);return new fs(r,a=>_ke(a))}async apiGetIndexGet(t,n){return await(await this.apiGetIndexGetRaw(t,n)).value()}async apiSetCloudCacheContentPostRaw(t,n){if(t.body===null||t.body===void 0)throw new wke("body","Required parameter requestParameters.body was null or undefined when calling apiSetCloudCacheContentPost.");const r=await this.apiPostTeddyCloudSetting("cloud.cacheContent",t.body,void 0,void 0,n);return new Eke(r)}async apiSetCloudCacheContentPost(t,n){await this.apiSetCloudCacheContentPostRaw(t,n)}async apiStatsGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/stats",void 0,t);return new fs(n,r=>kke(r))}async apiStatsGet(t){return await(await this.apiStatsGetRaw(t)).value()}async apiTriggerWriteConfigGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/triggerWriteConfig",void 0,t);return this.isJsonMime(n.headers.get("content-type"))?new fs(n):new a0(n)}async apiTriggerWriteConfigGet(t){return await(await this.apiTriggerWriteConfigGetRaw(t)).value()}async apiUploadCertPostRaw(t,n,r){const a={},o={},s=Cke([{contentType:"multipart/form-data"}]);let c,u=!1,d="/api/uploadCert";n!==""&&n!==void 0&&(d=d+"?overlay="+n),u=s,u?c=new FormData:c=new URLSearchParams,t.filename&&t.filename.forEach(g=>{c.append("filename",g)});const p=await this.request({path:d,method:"POST",headers:o,query:a,body:c},r);return this.isJsonMime(p.headers.get("content-type"))?new fs(p):new a0(p)}async apiUploadCertPost(t={},n,r){return await(await this.apiUploadCertPostRaw(t,n,r)).value()}async apiGetLastOnline(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_connection",t,n)).text();return(a&&a!=="0"?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxStatus(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.online",t,n)).text()==="true"}async apiGetTonieboxVersion(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.toniebox_firmware.boxIC",t,n)).text()}async apiGetTonieboxLastRUID(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid",t,n)).text()}async apiGetTonieboxLastRUIDTime(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid_time",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxLastIp(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.ip",t,n)).text()}async apiGetTonieboxContentDir(t,n){return await(await this.apiGetTeddyCloudSettingRaw("core.contentdir",t,n)).text()}async apiGetTonieboxApiAccess(t,n){return await(await this.apiGetTeddyCloudSettingRaw("toniebox.api_access",t,n)).text()==="true"}async apiGetNewBoxesAllowed(t){return await(await this.apiGetTeddyCloudSettingRaw("core.allowNewBox",void 0,t)).text()==="true"}async apiGetSecurityMITAlert(t){return await(await this.apiGetTeddyCloudSettingRaw("internal.security_mit.incident",void 0,t)).text()==="true"}async apiGetTeddyCloudSettingRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/settings/get/${t}`,n,r);if(!a.ok)throw new Error(`Error: ${a.status} ${a.statusText}`);return a}async apiPostTeddyCloudSetting(t,n,r,a,o,i={}){i["Content-Type"]||(i["Content-Type"]="text/plain");const s=await this.apiPostTeddyCloudRaw(`/api/settings/${a&&a===!0?"reset":"set"}/${t}`,(n==null?void 0:n.toString())||"",r,o,i);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiGetTeddyCloudApiRaw(t,n,r){const a={},o={},i=await this.request({path:`${t}${n?"?overlay="+n:""}`,method:"GET",headers:o,query:a},r);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudContentJson(t,n,r,a,o={}){const i=await this.apiPostTeddyCloudRaw(`/content/json/set/${t}`,n,r,a,o);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudRaw(t,n,r,a,o={}){o["Content-Type"]||(o["Content-Type"]="text/plain");const i=s=>new Blob([s],{type:"text/plain"});try{const s=await this.request({path:`${t}${r?"?overlay="+r:""}`,method:"POST",headers:o,body:i((n==null?void 0:n.toString())||"")},a);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}catch(s){return s.response}}async apiPostTeddyCloudFormDataRaw(t,n,r,a,o={}){try{const i=await fetch(""+t,{method:"POST",body:n});if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}catch(i){return i.response?i.response:i instanceof TypeError?new Response(JSON.stringify({error:"Network error, please try again later.",message:i.message}),{status:500,statusText:"Network Error",headers:{"Content-Type":"application/json"}}):new Response(JSON.stringify({error:"An unexpected error occurred.",message:i}),{status:500,statusText:"Unexpected Error",headers:{"Content-Type":"application/json"}})}}}const On=()=>new zY({basePath:""}),Gd=({title:e,okText:t,cancelText:n,content:r,contentHint:a="",contentHintTitle:o="",open:i,handleOk:s,handleCancel:c})=>{const{t:u}=Nt();return f.jsxs(_n,{title:f.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[f.jsx(CK,{style:{fontSize:36,color:"orange",margin:16}}),f.jsx("div",{style:{marginBottom:16},children:e})]}),open:i,onOk:s,onCancel:c,okText:t,cancelText:n,className:"warning",children:[f.jsx("div",{style:{marginBottom:24},children:r}),a&&f.jsx("div",{children:f.jsx(Sn,{type:"warning",showIcon:!0,message:o||u("confirmDialog.contentHintTitle"),description:a})})]})};function Mke(e,t="14px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"){let n="",r=0;const o=document.createElement("canvas").getContext("2d");return o&&(o.font=t,e.forEach(i=>{const s=o.measureText(i).width;s>r&&(r=s,n=i)})),{longestString:n,pixelWidth:r}}function B_(){return"10000000-1e3-4e3-8e3-1e11".replace(/[018]/g,e=>(parseInt(e)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>parseInt(e)/4).toString(16))}const z_=e=>{const t=`/api/getFile/${e?"c2":"ca"}.der`;window.location.href=t},GY=l.createContext({fetchCloudStatus:!1,setFetchCloudStatus:()=>{},notifications:[],addNotification:()=>{},addLoadingNotification:()=>{},closeLoadingNotification:()=>{},confirmNotification:()=>{},unconfirmedCount:0,clearAllNotifications:()=>{},removeNotifications:()=>{},navOpen:!1,setNavOpen:()=>{},subNavOpen:!1,setSubNavOpen:()=>{},currentTCSection:"",setCurrentTCSection:()=>{}});function Dke({children:e,linkOverlay:t}){const[n,r]=l.useState(!1),[a,o]=l.useState([]),i=w=>new Promise(C=>setTimeout(C,w)),[s,c]=l.useState(!1),[u,d]=l.useState(!1),[p,g]=l.useState("");l.useEffect(()=>{const w=localStorage.getItem("notifications");if(w){const C=JSON.parse(w);o(C.map(E=>({...E,date:new Date(E.date)})))}},[]);const m=(w,C,E,I,T)=>{const R={uuid:B_(),date:new Date,type:w,title:C,description:E,context:I||"",flagConfirmed:T!==void 0?T:w==="success"||w==="info"};Fv.open({type:w,message:C,description:E,showProgress:!0,pauseOnHover:!0,placement:"topRight"}),o(_=>{const $=[R,..._];return localStorage.setItem("notifications",JSON.stringify($)),$})},h=(w,C,E)=>{Fv.open({key:w,message:C,description:E,icon:f.jsx(Qi,{}),duration:0,placement:"topRight"})},b=async w=>{setTimeout(()=>{Fv.destroy(w)},300),await i(500)},x=w=>{o(C=>{const E=C.map(I=>I.uuid===w?{...I,flagConfirmed:!0}:I);return localStorage.setItem("notifications",JSON.stringify(E)),E})},S=w=>{o(C=>{const E=C.filter(I=>!w.includes(I.uuid));return localStorage.setItem("notifications",JSON.stringify(E)),E})},v=()=>{o([]),localStorage.removeItem("notifications")},y=a.filter(w=>!w.flagConfirmed).length;return f.jsx(GY.Provider,{value:{fetchCloudStatus:n,setFetchCloudStatus:r,notifications:a,addNotification:m,addLoadingNotification:h,closeLoadingNotification:b,confirmNotification:x,unconfirmedCount:y,clearAllNotifications:v,removeNotifications:S,navOpen:s,setNavOpen:c,subNavOpen:u,setSubNavOpen:d,currentTCSection:p,setCurrentTCSection:g},children:e})}function Qn(){return l.useContext(GY)}var dt=(e=>(e.Success="success",e.Info="info",e.Warning="warning",e.Error="error",e))(dt||{});const Pke=new Dn(On()),{Text:Lke}=xn,Xy=({open:e,onClose:t,tonieCardOrTAFRecord:n,showSourceInfo:r=!1,readOnly:a,lastRUIDs:o,overlay:i,onHide:s})=>{var L,j,F,B,z,U,H,K,Y,ee,ae,W,q,Z,Q,J;const{t:c}=Nt(),{playAudio:u}=Mm(),{addNotification:d}=Qn(),[p,g]=l.useState(!1),[m,h]=l.useState(!1),[b,x]=l.useState(""),[S,v]=l.useState([]);l.useEffect(()=>{r&&"sourceInfo"in n&&(n.sourceInfo.picture!==n.tonieInfo.picture&&E!==I||n.sourceInfo.picture===n.tonieInfo.picture&&E!==I||n.sourceInfo.series!==n.tonieInfo.series||n.sourceInfo.episode!==n.tonieInfo.episode||n.sourceInfo.tracks.join(".")!==n.tonieInfo.tracks.join("."))&&(h(!0),x(n.sourceInfo.picture),v(n.sourceInfo.tracks))},[n,e]);const y=async(ie,le)=>{u(ie,r&&"sourceInfo"in n?n.sourceInfo:n.tonieInfo,n,le)},w=o&&"ruid"in n?o.filter(([ie])=>ie===n.ruid).map(([,ie,le])=>({ruidTime:ie,boxName:le})):null,C=((L=n.tonieInfo)==null?void 0:L.series)+((j=n==null?void 0:n.tonieInfo)!=null&&j.episode?" - "+((F=n.tonieInfo)==null?void 0:F.episode):"")+((B=n.tonieInfo)!=null&&B.model?" ("+((z=n.tonieInfo)==null?void 0:z.model)+")":""),E=`${(U=n.tonieInfo)==null?void 0:U.series}`+((H=n.tonieInfo)!=null&&H.episode?` - ${(K=n.tonieInfo)==null?void 0:K.episode}`:""),I="sourceInfo"in n?`${(Y=n.sourceInfo)==null?void 0:Y.series}`+((ee=n.sourceInfo)!=null&&ee.episode?` - ${(ae=n.sourceInfo)==null?void 0:ae.episode}`:""):"",T=m?I:E,R=(ie,le)=>{var te;const fe="trackSeconds"in ie?ie.trackSeconds:(te=ie.tafHeader)==null?void 0:te.trackSeconds;return(fe==null?void 0:fe.length)===le},_=(ie,le)=>{var te;const fe="trackSeconds"in ie?ie.trackSeconds:(te=ie.tafHeader)==null?void 0:te.trackSeconds;return fe&&fe[le]||0},$=()=>{g(!0)},M=()=>{D(),g(!1)},P=()=>{g(!1)},D=async()=>{if(s&&"ruid"in n&&n.ruid)try{await Pke.apiPostTeddyCloudContentJson(n.ruid,"hide=true",i),d(dt.Success,c("tonies.messages.hideTonieSuccessful"),c("tonies.messages.hideTonieSuccessfulDetails",{ruid:n.ruid}),c("tonies.navigationTitle")),s(n.ruid)}catch(ie){d(dt.Error,c("tonies.messages.hideTonieFailed"),c("tonies.messages.hideTonieFailedDetails",{ruid:n.ruid})+ie,c("tonies.navigationTitle"))}},O=f.jsx(Gd,{title:c("tonies.confirmHideModal.title"),open:p,okText:c("tonies.confirmHideModal.hide"),cancelText:c("tonies.confirmHideModal.cancel"),content:c("tonies.confirmHideModal.confirmHideDialog",{tonieToHide:C||("uid"in n?n.uid:"")}),handleOk:M,handleCancel:P}),k=f.jsx(f.Fragment,{children:f.jsxs("h3",{children:[T||c("tonies.informationModal.unknownModel"),f.jsx("br",{}),"uid"in n&&n.uid?f.jsx(Lke,{type:"secondary",children:n.uid}):""]})}),N=f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[f.jsx("div",{children:"ruid"in n&&n.ruid?a?"":f.jsx(tt,{onClick:$,children:c("tonies.informationModal.hideTag")}):""}),f.jsx(tt,{type:"primary",onClick:t,children:c("tonies.informationModal.ok")})]});return f.jsxs(f.Fragment,{children:[f.jsxs(_n,{title:k,footer:N,open:e,keyboard:!0,closable:!1,maskClosable:!0,onCancel:t,children:[f.jsxs("div",{style:{position:"relative"},children:[f.jsx("img",{src:(W=n.tonieInfo)!=null&&W.picture?(q=n.tonieInfo)==null?void 0:q.picture:"/img_unknown.png",alt:"",style:{width:"100%"}}),m?f.jsx(Ft,{title:`${I}`?c("tonies.alternativeSource",{originalTonie:'"'+E+'"',assignedContent:'"'+I+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+E+'"'}).replace(' "" '," "),placement:"bottom",children:f.jsx("img",{src:b,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),w&&w.length>0?f.jsxs(f.Fragment,{children:[f.jsxs("strong",{children:[c("tonies.lastPlayedOnModal.lastPlayedOnMessage"),":"]}),f.jsx("ul",{children:w.map(({ruidTime:ie,boxName:le},fe)=>f.jsxs("li",{children:[le,ie?" ("+ie+")":""]},fe))})]}):f.jsx(f.Fragment,{}),f.jsxs("div",{children:["valid"in n?f.jsxs("p",{children:[f.jsx("strong",{children:c("tonies.infoModal.valid")})," ",n.valid?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"","exists"in n?f.jsxs("p",{children:[f.jsx("strong",{children:c("tonies.infoModal.exists")})," ",n.exists?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"",m?S&&S.length>0?f.jsxs(f.Fragment,{children:[f.jsx("strong",{children:c("tonies.infoModal.tracklist")}),f.jsx("ol",{children:S.map((ie,le)=>{var fe;return f.jsxs("li",{children:["audioUrl"in n&&R(n,(fe=n.sourceInfo.tracks)==null?void 0:fe.length)?f.jsxs(f.Fragment,{children:[f.jsx(Eo,{onClick:()=>y(""+n.audioUrl,_(n,le))},"playpause")," "]}):""," ",ie]},le)})})]}):f.jsx(f.Fragment,{}):(Z=n.tonieInfo)!=null&&Z.tracks&&((Q=n.tonieInfo)==null?void 0:Q.tracks.length)>0?f.jsxs(f.Fragment,{children:[f.jsx("strong",{children:c("tonies.infoModal.tracklist")}),f.jsx("ol",{children:(J=n.tonieInfo)==null?void 0:J.tracks.map((ie,le)=>{var fe;return f.jsxs("li",{children:["audioUrl"in n&&R(n,(fe=n.tonieInfo.tracks)==null?void 0:fe.length)?f.jsxs(f.Fragment,{children:[f.jsx(Eo,{onClick:()=>y(""+n.audioUrl,_(n,le))},"playpause")," "]}):""," ",ie]},le)})})]}):f.jsx(f.Fragment,{})]})]}),O]})},{useToken:jke}=kr,Fke=()=>jke().token,Bke=({onVisibilityChange:e})=>{var Ue;const{t}=Nt(),{songImage:n,songArtist:r,songTitle:a,songTracks:o,tonieCardOrTAFRecord:i}=Mm(),s=document.getElementById("globalAudioPlayer"),c=new Dn(On()),[u,d]=l.useState("none"),[p,g]=l.useState(!1),[m,h]=l.useState(!1),[b,x]=l.useState(0),[S,v]=l.useState("0:00"),[y,w]=l.useState("0:00"),[C,E]=l.useState(0),[I,T]=l.useState({left:0,top:0,visible:!1}),[R,_]=l.useState(!1),[$,M]=l.useState(100),[P,D]=l.useState(100),[O,k]=l.useState(!1),[N,A]=l.useState(!0),[L,j]=l.useState(!1),[F,B]=l.useState(!1),[z,U]=l.useState(0),[H,K]=l.useState(""),[Y,ee]=l.useState(0),[ae,W]=l.useState(300),[q,Z]=l.useState(""),[Q,J]=l.useState("");l.useEffect(()=>{s&&($===null?s.volume=0:s.volume=$/100)},[$,s]),l.useEffect(()=>{(async()=>{const Re=await(await c.apiGetTeddyCloudSettingRaw("frontend.confirm_audioplayer_close")).text()==="true";A(Re)})()},[u]),l.useEffect(()=>{ie(),Z(a),J(r)},[o,a,r]),l.useEffect(()=>{ee(0),K("")},[s==null?void 0:s.src]),l.useEffect(()=>{e(),s!=null&&s.src&&u==="none"&&d("flex")},[u,s==null?void 0:s.src,e]),l.useEffect(()=>{const Ae=document.getElementById("globalAudioPlayer");Ae.addEventListener("loadedmetadata",()=>{const Oe=Math.floor(Ae.duration/60),Re=Math.floor(Ae.duration%60);w(`${Oe}:${Re<10?"0":""}${Re}`)}),Ae.addEventListener("progress",()=>{if(Ae.buffered.length>0){const Oe=Ae.buffered.end(Ae.buffered.length-1),Re=Ae.duration;Re>0&&E(Oe/Re*100)}})},[]);const ie=()=>{var Ae,Oe;if(i){const Re=document.querySelector(".songContainer")||document.body,at=Mke([...("sourceInfo"in i&&i.sourceInfo?(Ae=i==null?void 0:i.sourceInfo)==null?void 0:Ae.tracks:(Oe=i==null?void 0:i.tonieInfo)==null?void 0:Oe.tracks)??[],r,a],getComputedStyle(Re).fontSize+" "+getComputedStyle(Re).fontFamily).pixelWidth;W(at)}else W(300)},le=Ae=>{Array.isArray(Ae)||M(Ae)},fe=()=>{D($),M(0)},te=()=>{M(P)},se=()=>{h(!0)},pe=()=>{h(!1)},he=()=>{h(!1)},re=()=>{s.play()},ue=()=>{s.pause()},me=()=>{Be(),s.src="",s.removeAttribute("src"),s.load(),d("none"),e()},xe=Ae=>{var qe;const Oe=Ae.target,Re=Math.floor(Oe.currentTime/60),at=Math.floor(Oe.currentTime%60);x(Oe.currentTime/s.duration*100),v(`${Re}:${at<10?"0":""}${at}`);const Ye=i&&("trackSeconds"in i?i.trackSeconds:"tafHeader"in i?i.tafHeader.trackSeconds:[])||[],We=i&&((qe="sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo)==null?void 0:qe.tracks);if(We&&Ye&&We.length===Ye.length){const Qe=Ye.findIndex((ot,wt)=>{const kt=Ye[wt+1];return Oe.currentTime>=ot&&(!kt||Oe.currentTime{if("touches"in Ae){const Oe=Ae.touches[0],Re=Ae.currentTarget.getBoundingClientRect(),at=Oe.clientX-Re.left,Ye=Re.height/2;T({left:at,top:Ye,visible:!0}),s.currentTime=at/Re.width*s.duration,j(!0)}else{const Oe=Ae.currentTarget.getBoundingClientRect(),Re=Ae.clientX-Oe.left,at=Oe.height/2;T({left:Re,top:at,visible:!0}),R&&$e(Ae)}},ke=()=>{T({left:0,top:0,visible:!1})},$e=Ae=>{if(L)j(!1),ke();else{const Oe=Ae.currentTarget.getBoundingClientRect();s.currentTime=I.left/Oe.width*s.duration}},Le=Ae=>{_(!0)},je=Ae=>{_(!1)},He=()=>{g(!p),e()},Be=()=>{k(!1)},Pe=()=>{N?k(!0):me()},Se=()=>{let Ae=0;for(;s.currentTime>o[Ae]&&(Ae++,!(Ae>o.length)););Ae>1&&Ae<=o.length?s.currentTime=o[Ae-2]:Ae<=1&&(s.currentTime=0)},Ne=()=>{let Ae=0;for(;s.currentTime>o[Ae]&&(Ae++,!(Ae>o.length)););Ae{const Ae=Oe=>{Oe?(s==null||s.play(),h(!0)):(s==null||s.pause(),h(!1))};navigator.mediaSession&&(navigator.mediaSession.metadata=new MediaMetadata({title:H||a||"",album:a||"",artist:r||"",artwork:[{src:n||"",sizes:"96x96,128x128,192x192,256x256,384x384,512x512"}]}),navigator.mediaSession.setActionHandler("play",()=>{Ae(!0)}),navigator.mediaSession.setActionHandler("pause",()=>{Ae(!1)}),navigator.mediaSession.setActionHandler("previoustrack",Se),o.length>0&&navigator.mediaSession.setActionHandler("nexttrack",Ne))},[H,a,r,n,o,s]),l.useEffect(()=>{if(navigator.mediaSession&&s){const Ae=s.duration||0,Oe=s.currentTime||0,Re=s.playbackRate||1;if(Ae{e()},[e,Te]);const ne=f.jsxs(f.Fragment,{children:[p?f.jsx(SCe,{onClick:He}):f.jsx(xIe,{onClick:He}),f.jsx(OW,{title:f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[f.jsxs("div",{children:[f.jsx(CK,{})," ",t("tonies.closeAudioPlayerPopover")]}),f.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:8},children:[f.jsx(tt,{onClick:Be,children:t("tonies.cancel")}),f.jsx(tt,{onClick:me,children:t("tonies.closeAudioPlayer")})]})]}),open:O,trigger:"click",onOpenChange:Be,className:"closePlayerPopover",placement:"top",style:{right:8},children:f.jsx(ga,{style:{margin:"0 0 0 10px"},onClick:Pe})})]}),ve=f.jsxs(f.Fragment,{children:[f.jsx(Py,{type:"line",success:{percent:b,strokeColor:"#1677ff"},percent:C,strokeColor:"#272727",format:()=>"",status:"active",showInfo:!1}),I.visible&&f.jsx("svg",{style:{position:"absolute",left:I.left,top:I.top,transform:"translate(-50%, -50%)"},width:"16",height:"16",viewBox:"0 0 16 16",children:f.jsx("circle",{cx:"8",cy:"8",r:"8",fill:"rgba(0,0,0,0.5)"})})]}),_e=p?f.jsx(f.Fragment,{children:f.jsx("span",{id:"minimalAudioPlayer",style:{...Me,display:p?"flex":"none",padding:0},children:f.jsxs("div",{style:nr.trackInfo,children:[m?f.jsx(NP,{style:{fontSize:24,marginRight:8},onClick:ue}):f.jsx(Eo,{style:{fontSize:24,marginRight:8},onClick:re}),n&&f.jsx("img",{src:n,alt:"Song",style:{...nr.songImage,cursor:i?"help":"unset"},onClick:()=>{i!==void 0&&(U(z+1),B(!0))}}),y.startsWith("Infinity")?f.jsx("div",{style:{...nr.playPositionContainer,marginRight:0},children:f.jsxs("div",{style:{display:"flex"},children:[f.jsx("div",{style:{textAlign:"center",marginBottom:0},children:" "}),f.jsx("span",{children:ne})]})}):f.jsxs("div",{style:{...nr.playPositionContainer,marginRight:0},children:[f.jsxs("div",{style:{display:"flex"},children:[f.jsxs("div",{style:{textAlign:"center",marginBottom:0},children:[S," / ",y]}),f.jsx("span",{style:{margin:0,marginLeft:16,textAlign:"right"},children:ne})]}),f.jsx("div",{style:{...st,width:100},onMouseDown:Le,onMouseMove:Ee,onMouseUp:je,onMouseLeave:ke,onTouchStart:Ee,onTouchMove:Ee,onClick:$e,children:ve})]})]})})}):"",ze=p?"":f.jsxs(f.Fragment,{children:[f.jsx("span",{id:"normalAudioPlayer",style:{margin:0,marginLeft:16,textAlign:"right",display:p?"none":"flex",position:"absolute"},children:ne}),f.jsxs("span",{style:{...Me,display:p?"none":"flex"},children:[f.jsxs("div",{id:"audioPlayer",style:{...nr.controls,flexDirection:"column",gap:8},children:[H?f.jsxs("div",{style:{fontSize:"x-small",marginTop:H?-20:0},children:[Y,i&&((Ue="sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo)==null?void 0:Ue.tracks.length)&&f.jsxs(f.Fragment,{children:[" ","/"," ",("sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo).tracks.length]})]}):"",f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx(RIe,{style:nr.controlButton,onClick:Se}),m?f.jsx(NP,{style:nr.controlButton,onClick:ue}):f.jsx(Eo,{style:nr.controlButton,onClick:re}),f.jsx(OIe,{style:{...nr.controlButton,cursor:o.length===0?"default":"pointer",opacity:o.length===0?.25:1},disabled:o.length===0,onClick:Ne})]})]}),f.jsxs("div",{style:{...nr.trackInfo,cursor:i?"help":"unset"},onClick:()=>{i!==void 0&&(U(z+1),B(!0))},children:[n&&f.jsx("img",{src:n,alt:"Song",style:nr.songImage}),f.jsxs("div",{className:"songContainer",style:ge,children:[H?f.jsx("div",{children:H}):"",f.jsx("div",{children:Q}),f.jsx("div",{children:q})]})]}),y.startsWith("Infinity")?"":f.jsxs("div",{style:nr.playPositionContainer,children:[f.jsx("div",{children:f.jsxs("div",{style:{textAlign:"center"},children:[S," / ",y]})}),f.jsx("div",{style:st,onMouseDown:Le,onMouseMove:Ee,onMouseUp:je,onMouseLeave:ke,onTouchStart:Ee,onTouchMove:Ee,onClick:$e,children:ve})]}),f.jsx("div",{style:Ge,children:f.jsxs("div",{style:{...nr.controls,position:"relative"},children:[f.jsx(z2e,{style:{...nr.controlButton,...nr.volumeIcon,display:($||0)===0?"block":"none"},onClick:te}),f.jsx(yK,{style:{...nr.controlButton,...nr.volumeIcon,display:($||0)>0?"block":"none"},onClick:fe}),f.jsx("div",{style:nr.volumeSlider,children:f.jsx(Axe,{min:0,max:100,value:$||0,onChange:le})})]})})]})]});return f.jsxs(f.Fragment,{children:[f.jsxs("div",{style:{...nr.container,display:u,visibility:s!=null&&s.src?"visible":"hidden",height:s!=null&&s.src?"auto":"0",margin:s!=null&&s.src?"0":"-24px",marginBottom:s!=null&&s.src?"8px":"0",overflow:"hidden"},children:[_e,ze,i?f.jsx(Xy,{open:F,onClose:()=>B(!1),tonieCardOrTAFRecord:{...i,tonieInfo:"sourceInfo"in i&&i.sourceInfo?i.sourceInfo:i.tonieInfo},readOnly:!0},z):""]}),f.jsx("audio",{id:"globalAudioPlayer",controls:!0,onPlay:se,onPause:pe,onEnded:he,onTimeUpdate:xe,style:{display:"none"},children:"Your browser does not support the audio element."})]})},nr={container:{flexDirection:"column",alignItems:"flex-end",objectPosition:"top",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},innerContainer:{justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:"#333",borderRadius:8,gap:16},controls:{display:"flex",alignItems:"center"},controlButton:{fontSize:24,cursor:"pointer"},trackInfo:{display:"flex",alignItems:"center",justifyContent:"center"},songImage:{width:"auto",height:40,borderRadius:"50%",marginRight:10},songContainer:{minWidth:200,maxWidth:200},songTitle:{display:"block"},songArtist:{display:"block"},progressBar:{display:"block",position:"relative",width:150,marginRight:10},playPosition:{fontSize:14,width:"100%"},playPositionContainer:{marginLeft:10,marginRight:10},controls2:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24},volumeSlider:{width:100,position:"releative",marginRight:16,top:"calc(100% + 10px)",zIndex:1e3,backgroundColor:`${()=>Fke().colorBgContainer}`,padding:0},volumeIcon:{fontSize:24,cursor:"pointer",marginBottom:0}},{useToken:zke}=kr,Hke=()=>zke().token,Pm=Ta(Ls)` height: 100%; border-right: 0; -`,jn=Ia(lN)` +`,jn=Ta(lN)` min-width: 230px !important; @media (max-width: 767px) { display: none; } -`,Fn=Ia(ks)` +`,Fn=Ta(As)` padding: 0 24px 24px; -`,Uke=Ia(Cm)` +`,Uke=Ta(Cm)` margin: 16px 0; -`,Pn=Ia(ks.Content)` +`,Pn=Ta(As.Content)` padding: 24px; margin: 0; min-height: 280px; background: ${()=>Hke().colorBgContainer}; -`,r0=Ia.span` +`,o0=Ta.span` @media (min-width: 767px) { display: none; } -`,qd=Ia.span` +`,qd=Ta.span` @media (max-width: 767px) { display: none; } -`;Ia(MN)` +`;Ta(MN)` padding: 10px; -`;const Bn=({items:e})=>{const{t}=Nt();return l.useEffect(()=>{if(e.length===1)document.title="TeddyCloud";else{const n=e.slice(1).map(r=>t(r.title)).join(" - ");document.title="TeddyCloud - "+n}},[e,t]),f.jsx(Uke,{items:e})},{useToken:Vke}=kr,Wke=Ia(Xq)` +`;const Bn=({items:e})=>{const{t}=Nt();return l.useEffect(()=>{if(e.length===1)document.title="TeddyCloud";else{const n=e.slice(1).map(r=>t(r.title)).join(" - ");document.title="TeddyCloud - "+n}},[e,t]),f.jsx(Uke,{items:e})},{useToken:Vke}=kr,Wke=Ta(Xq)` position: fixed; bottom: 0; z-index: 10; @@ -551,59 +551,59 @@ html body { align-items: center; padding: 16px 24px; color: white; -`,PL=Ia.div` +`,PL=Ta.div` margin: auto; display: flex; align-items: center; -`,p1=new Dn($n()),Gke=()=>{const{t:e}=Nt(),{token:t}=Vke(),[n,r]=l.useState(0),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState(""),d=()=>{const p=document.querySelector("footer");p&&r(p.offsetHeight)};return l.useEffect(()=>{p1.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(p=>p.text()).then(p=>o(p)).catch(p=>console.error("Error fetching data:",p)),p1.apiGetTeddyCloudSettingRaw("internal.version.v_short").then(p=>p.text()).then(p=>s(p)).catch(p=>console.error("Error fetching data:",p)),p1.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(p=>p.text()).then(p=>u(p)).catch(p=>console.error("Error fetching data:",p))},[]),f.jsxs(f.Fragment,{children:[f.jsx("div",{style:{paddingBottom:n}}),f.jsxs(Wke,{children:[f.jsx(PL,{children:f.jsx(Bke,{onVisibilityChange:d})}),f.jsx(PL,{children:f.jsx("div",{children:f.jsxs("small",{style:{display:"flex",color:t.colorText},children:[f.jsxs(ot,{to:gke,target:"_blank",children:[f.jsxs(r0,{children:[i," (",c,")"]}),f.jsx(qd,{children:a})]}),f.jsx("div",{style:{paddingLeft:8},children:"-"}),f.jsx(e2e,{style:{color:"#eb2f96",paddingLeft:8}}),f.jsxs(qd,{style:{paddingLeft:8},children:[e("footer.sponsorText")," "]}),f.jsx("b",{children:f.jsx(ot,{to:dk,target:"_blank",style:{paddingLeft:8},children:e("footer.sponsor")})})]})})})]})]})},qke=new WY($n()),Kke=new Ike($n()),Yke=new Dn($n()),Xke=()=>{const{t:e}=Nt(),{fetchCloudStatus:t}=Qn(),[n,r]=l.useState(!1),[a,o]=l.useState(!0),[i,s]=l.useState(!1),c=async()=>{try{const p=await(await Yke.apiGetTeddyCloudSettingRaw("cloud.enabled")).text()==="true";return o(p),p||r(!1),p}catch{return console.log("Something went wrong getting cloud.enabled."),o(!1),!1}},u=async()=>{const d=await c();try{(await qke.v1TimeGet()).length===10&&s(!0)}catch{s(!1)}if(d){async function p(){let m=0,h=!1;for(;m<10&&!h;)try{(await Kke.reverseV1TimeGet()).length===10&&(r(!0),h=!0)}catch{m++,r(!1),await new Promise(x=>setTimeout(x,500))}}p()}};return l.useEffect(()=>{u()},[]),l.useEffect(()=>{u()},[t]),f.jsxs(Ha,{children:[f.jsx(Wt,{title:e(a?n?"server.boxineStatusOnline":"server.boxineStatusOffline":"server.boxineDisabled"),children:f.jsxs(Pg,{icon:a?n?f.jsx(m_,{}):f.jsx(OP,{}):f.jsx(gK,{}),color:a?n?"#87d068":"#f50":"#faad14",bordered:!1,style:{cursor:"help",color:"#001529"},children:[f.jsx(r0,{children:"B"}),f.jsx(qd,{children:"Boxine"})]})}),f.jsx(Wt,{title:e(i?"server.teddycloudStatusOnline":"server.teddycloudStatusOffline"),children:f.jsxs(Pg,{icon:i?f.jsx(m_,{}):f.jsx(OP,{}),color:i?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[f.jsx(r0,{children:"TC"}),f.jsx(qd,{children:"TeddyCloud"})]})})]})},Zke=()=>{var o;const{t:e,i18n:t}=Nt(),n=i=>{t.changeLanguage(i)},r=[{key:"1",label:e("language.english"),onClick:()=>n("en")},{key:"2",label:e("language.german"),onClick:()=>n("de")},{key:"3",label:e("language.french"),onClick:()=>n("fr")},{key:"4",label:e("language.spanish"),onClick:()=>n("es")}],a=t.language;return f.jsx(Ha,{style:{marginRight:-8},children:f.jsx(Ny,{menu:{items:r},trigger:["click"],children:f.jsx("a",{href:"/",onClick:i=>i.preventDefault(),title:e("language.change"),children:f.jsxs(Pg,{color:"transparent",children:[f.jsx(pK,{})," ",f.jsx("strong",{children:(o=r.find(i=>i.onClick&&i.onClick.toString().includes(a)))==null?void 0:o.label})]})})})})},Qke=({notificationCount:e})=>{const t=Zc();return f.jsx(AW,{dot:e>0,offset:[-2,2],style:{color:"#595959",borderColor:"#000"},children:f.jsx(nt,{shape:"circle",icon:f.jsx(cK,{}),size:"small",onClick:()=>t("/settings/notifications"),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ffffff",color:"#595959",borderColor:"#d9d9d9"}})})},Pm=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),a=dr.language;l.useEffect(()=>{r(e("home.navigationTitle"))},[a]);const o=[{key:"home",label:f.jsx(ot,{to:"/",onClick:()=>{t(!1),n(!1)},children:e("home.navigationTitle")}),icon:de.createElement(f2e),title:e("home.navigationTitle")},{key:"features",label:f.jsx(ot,{to:"/home/features",onClick:()=>{t(!1),n(!1)},children:e("home.features.navigationTitle")}),icon:de.createElement(lEe),title:e("home.features.navigationTitle")},{key:"statistics",label:f.jsx(ot,{to:"/home/stats",onClick:()=>{t(!1),n(!1)},children:e("home.stats.navigationTitle")}),icon:de.createElement(b_),title:e("home.stats.navigationTitle")},{key:"sponsor",label:f.jsx(ot,{to:dk,target:"_blank",onClick:()=>{t(!1),n(!1)},children:e("home.sponsor.navigationTitle")}),icon:de.createElement(r2e),title:e("home.sponsor.navigationTitle")},{key:"hiddenMeeting",label:f.jsx(ot,{to:"/home/tonieMeeting",onClick:()=>{t(!1),n(!1)}})}];return f.jsx(Dm,{mode:"inline",selectedKeys:[],defaultOpenKeys:["sub"],items:o})},js=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),a=dr.language,[o,i]=l.useState([]);l.useEffect(()=>{r(e("community.navigationTitle"))},[a]);const s=p=>{const g=[];p.includes("/contribution")&&g.push("contribution"),i(m=>Array.from(new Set([...m,...g])))};l.useEffect(()=>{s(location.pathname)},[location.pathname]);const c=p=>{const g=p.find(h=>!o.includes(h)),m=o.find(h=>!p.includes(h));g?i(h=>[...h,g]):m&&i(h=>h.filter(b=>b!==m))},u=({isOpen:p})=>p??!1?f.jsx(mK,{style:{margin:"16px 0 16px 16px"}}):f.jsx(Rm,{style:{margin:"16px 0 16px 16px"}}),d=[{key:"community",label:f.jsx(ot,{to:"/community",onClick:()=>{t(!1),n(!1)},children:e("community.navigationTitle")}),icon:de.createElement(y2e),title:e("community.navigationTitle")},{key:"faq",label:f.jsx(ot,{to:"/community/faq",onClick:()=>{t(!1),n(!1)},children:e("community.faq.navigationTitle")}),icon:de.createElement(Mg),title:e("community.faq.navigationTitle")},{key:"request",label:f.jsx(ot,{to:"/community/supportrequestguide",onClick:()=>{t(!1),n(!1)},children:e("community.supportRequestGuide.navigationTitle")}),icon:de.createElement(Mg),title:e("community.supportRequestGuide.navigationTitle")},{key:"contribution",label:f.jsx(ot,{to:"/community/contribution",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},onClick:()=>{t(!1),n(!1)},children:e("community.contribution.navigationTitle")}),icon:de.createElement(vEe),title:e("community.contribution.navigationTitle"),children:[{key:"toniesJson",label:f.jsx(ot,{to:"/community/contribution/tonies-json",onClick:()=>{t(!1),n(!1)},children:e("community.contribution.toniesJson.navigationTitle")}),icon:de.createElement(wSe),title:e("community.contribution.toniesJson.navigationTitle")},{key:"translation",label:f.jsx(ot,{to:"/community/contribution/translations",onClick:()=>{t(!1),n(!1)},children:e("community.translations.navigationTitle")}),icon:de.createElement(pK),title:e("community.translations.navigationTitle")}]},{key:"contributors",label:f.jsx(ot,{to:"/community/contributors",onClick:()=>{t(!1),n(!1)},children:e("community.contributors.navigationTitle")}),icon:de.createElement(zEe),title:e("community.contributors.navigationTitle")},{key:"changelog",label:f.jsx(ot,{to:"/community/changelog",onClick:()=>{t(!1),n(!1)},children:e("community.changelog.navigationTitle")}),icon:de.createElement($we),title:e("community.changelog.navigationTitle")},{key:"Forum",label:f.jsx(ot,{to:hd,target:"_blank",onClick:()=>{t(!1),n(!1)},children:e("community.forum.navigationTitle")}),icon:de.createElement(oEe),title:e("community.forum.navigationTitle")}];return f.jsx(Dm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:o,selectedKeys:[],onOpenChange:c,items:d,expandIcon:({isOpen:p})=>u({isOpen:p})})},Jke=new Dn($n()),e3e=new WY($n()),t3e=async(e=!0,t,n,r)=>{const a="restart-tc";n(a,Tt("settings.restartTC"),Tt("settings.tryToRestartTC"));try{const s=await(await Jke.apiGetTeddyCloudApiRaw("/api/triggerRestart")).text();if(s.toString()!=="OK"){r(a),t(dt.Error,Tt("settings.restartFailed"),Tt("settings.restartFailed")+": "+s.toString(),Tt("settings.navigationTitle"));return}}catch(i){r(a),t(dt.Error,Tt("settings.restartFailed"),Tt("settings.restartFailed")+": "+i,Tt("settings.navigationTitle"));return}n(a,Tt("settings.restartTC"),Tt("settings.restartInProgress")),await new Promise(i=>setTimeout(i,3e3));let o=0;for(;o<10;)try{if((await e3e.v1TimeGet()).length===10){r(a),t(dt.Success,Tt("settings.restartComplete"),Tt("settings.restartComplete"),Tt("settings.navigationTitle")),e&&(window.location.href="/web");return}}catch{o++,await new Promise(s=>setTimeout(s,3e3))}r(a),t(dt.Error,Tt("settings.restartFailed"),Tt("settings.restartFailed"),Tt("settings.navigationTitle"))},n3e=new Dn($n()),Lm=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),{addNotification:a,addLoadingNotification:o,closeLoadingNotification:i}=Qn(),s=dr.language,[c,u]=l.useState("");l.useEffect(()=>{r(e("settings.navigationTitle"))},[s]);const d=h=>{const b=new URL(h),x=b.port?`:${b.port}`:"";return`${b.protocol}//${b.hostname}${x}`},p=async()=>{await t3e(!0,a,o,i),u("")},g=async()=>{const h="reloadToniesJson";o(h,e("settings.toniesJsonUpdate"),e("settings.toniesJsonUpdateInProgress"));try{const x=await(await n3e.apiGetTeddyCloudApiRaw("/api/toniesJsonUpdate")).text();u(""),i(h),x.toString()!=="Triggered tonies.json update"?a(dt.Error,e("settings.toniesJsonUpdateFailed"),e("settings.toniesJsonUpdateFailed")+": "+x.toString(),e("settings.navigationTitle")):a(dt.Success,e("settings.toniesJsonUpdateSuccessful"),e("settings.toniesJsonUpdateSuccessful"),e("settings.navigationTitle"))}catch(b){a(dt.Error,e("settings.toniesJsonUpdateFailed"),e("settings.toniesJsonUpdateFailed")+": "+b,e("settings.navigationTitle"))}},m=[{key:"general",label:f.jsx(ot,{to:"/settings",onClick:()=>{t(!1),n(!1)},children:e("settings.general.navigationTitle")}),icon:de.createElement(zN),title:e("settings.general.navigationTitle")},{key:"certificates",label:f.jsx(ot,{to:"/settings/certificates",onClick:()=>{t(!1),n(!1)},children:e("settings.certificates.navigationTitle")}),icon:de.createElement(BN),title:e("settings.certificates.navigationTitle")},{key:"rtnl",label:f.jsx(ot,{to:"/settings/rtnl",onClick:()=>{t(!1),n(!1)},children:e("settings.rtnl.navigationTitle")}),icon:de.createElement(kEe),title:e("settings.rtnl.navigationTitle")},{key:"notifications",label:f.jsx(ot,{to:"/settings/notifications",onClick:()=>{t(!1),n(!1)},children:e("settings.notifications.navigationTitle")}),icon:de.createElement(cK),title:e("settings.notifications.navigationTitle")},{key:"reload_toniesJson",label:f.jsx("label",{style:{cursor:"pointer"},children:e("settings.toniesJsonUpdate")}),onClick:()=>{g(),t(!1),n(!1)},icon:de.createElement(xK),title:e("settings.toniesJsonUpdate")},{key:"restart_server",label:f.jsx("label",{style:{cursor:"pointer"},children:e("settings.restartServer")}),onClick:()=>{p(),t(!1),n(!1)},icon:de.createElement(sIe),title:e("settings.restartServer")},{key:"legacy",label:f.jsx(ot,{to:`${d(new URL(window.location.href))}/legacy.html`,target:"_blank",onClick:()=>{t(!1),n(!1)},children:e("settings.legacyGui")}),icon:de.createElement(i2e),title:e("settings.legacyGui")}];return f.jsx(Dm,{mode:"inline",selectedKeys:[c],defaultOpenKeys:["sub"],items:m})};function LL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rd(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var g1={};function a3e(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return g1[t]||(g1[t]=r3e(e)),g1[t]}function o3e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),a=a3e(r);return a.reduce(function(o,i){return rd(rd({},o),n[i])},t)}function jL(e){return e.join(" ")}function i3e(e,t){var n=0;return function(r){return n+=1,r.map(function(a,o){return qY({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function qY(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,o=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if(c==="text")return d;if(u){var p=i3e(n,o),g;if(!o)g=rd(rd({},s),{},{className:jL(s.className)});else{var m=Object.keys(n).reduce(function(S,v){return v.split(".").forEach(function(y){S.includes(y)||S.push(y)}),S},[]),h=s.className&&s.className.includes("token")?["token"]:[],b=s.className&&h.concat(s.className.filter(function(S){return!m.includes(S)}));g=rd(rd({},s),{},{className:jL(b)||void 0,style:o3e(s.className,Object.assign({},s.style,a),n)})}var x=p(t.children);return de.createElement(u,he({key:i},g),x)}}const s3e=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var l3e=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function FL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t{const{t:e}=Nt(),{token:t}=Vke(),[n,r]=l.useState(0),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState(""),d=()=>{const p=document.querySelector("footer");p&&r(p.offsetHeight)};return l.useEffect(()=>{m1.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(p=>p.text()).then(p=>o(p)).catch(p=>console.error("Error fetching data:",p)),m1.apiGetTeddyCloudSettingRaw("internal.version.v_short").then(p=>p.text()).then(p=>s(p)).catch(p=>console.error("Error fetching data:",p)),m1.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(p=>p.text()).then(p=>u(p)).catch(p=>console.error("Error fetching data:",p))},[]),f.jsxs(f.Fragment,{children:[f.jsx("div",{style:{paddingBottom:n}}),f.jsxs(Wke,{children:[f.jsx(PL,{children:f.jsx(Bke,{onVisibilityChange:d})}),f.jsx(PL,{children:f.jsx("div",{children:f.jsxs("small",{style:{display:"flex",color:t.colorText},children:[f.jsxs(it,{to:gke,target:"_blank",children:[f.jsxs(o0,{children:[i," (",c,")"]}),f.jsx(qd,{children:a})]}),f.jsx("div",{style:{paddingLeft:8},children:"-"}),f.jsx(e2e,{style:{color:"#eb2f96",paddingLeft:8}}),f.jsxs(qd,{style:{paddingLeft:8},children:[e("footer.sponsorText")," "]}),f.jsx("b",{children:f.jsx(it,{to:dk,target:"_blank",style:{paddingLeft:8},children:e("footer.sponsor")})})]})})})]})]})},qke=new WY(On()),Kke=new Ike(On()),Yke=new Dn(On()),Xke=()=>{const{t:e}=Nt(),{fetchCloudStatus:t}=Qn(),[n,r]=l.useState(!1),[a,o]=l.useState(!0),[i,s]=l.useState(!1),c=async()=>{try{const p=await(await Yke.apiGetTeddyCloudSettingRaw("cloud.enabled")).text()==="true";return o(p),p||r(!1),p}catch{return console.log("Something went wrong getting cloud.enabled."),o(!1),!1}},u=async()=>{const d=await c();try{(await qke.v1TimeGet()).length===10&&s(!0)}catch{s(!1)}if(d){async function p(){let m=0,h=!1;for(;m<10&&!h;)try{(await Kke.reverseV1TimeGet()).length===10&&(r(!0),h=!0)}catch{m++,r(!1),await new Promise(x=>setTimeout(x,500))}}p()}};return l.useEffect(()=>{u()},[]),l.useEffect(()=>{u()},[t]),f.jsxs(Ha,{children:[f.jsx(Ft,{title:e(a?n?"server.boxineStatusOnline":"server.boxineStatusOffline":"server.boxineDisabled"),children:f.jsxs(Lg,{icon:a?n?f.jsx(h_,{}):f.jsx(OP,{}):f.jsx(gK,{}),color:a?n?"#87d068":"#f50":"#faad14",bordered:!1,style:{cursor:"help",color:"#001529"},children:[f.jsx(o0,{children:"B"}),f.jsx(qd,{children:"Boxine"})]})}),f.jsx(Ft,{title:e(i?"server.teddycloudStatusOnline":"server.teddycloudStatusOffline"),children:f.jsxs(Lg,{icon:i?f.jsx(h_,{}):f.jsx(OP,{}),color:i?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[f.jsx(o0,{children:"TC"}),f.jsx(qd,{children:"TeddyCloud"})]})})]})},Zke=()=>{var o;const{t:e,i18n:t}=Nt(),n=i=>{t.changeLanguage(i)},r=[{key:"1",label:e("language.english"),onClick:()=>n("en")},{key:"2",label:e("language.german"),onClick:()=>n("de")},{key:"3",label:e("language.french"),onClick:()=>n("fr")},{key:"4",label:e("language.spanish"),onClick:()=>n("es")}],a=t.language;return f.jsx(Ha,{style:{marginRight:-8},children:f.jsx(Ay,{menu:{items:r},trigger:["click"],children:f.jsx("a",{href:"/",onClick:i=>i.preventDefault(),title:e("language.change"),children:f.jsxs(Lg,{color:"transparent",children:[f.jsx(pK,{})," ",f.jsx("strong",{children:(o=r.find(i=>i.onClick&&i.onClick.toString().includes(a)))==null?void 0:o.label})]})})})})},Qke=({notificationCount:e})=>{const t=Zc();return f.jsx(AW,{dot:e>0,offset:[-2,2],style:{color:"#595959",borderColor:"#000"},children:f.jsx(tt,{shape:"circle",icon:f.jsx(cK,{}),size:"small",onClick:()=>t("/settings/notifications"),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ffffff",color:"#595959",borderColor:"#d9d9d9"}})})},Lm=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),a=dr.language;l.useEffect(()=>{r(e("home.navigationTitle"))},[a]);const o=[{key:"home",label:f.jsx(it,{to:"/",onClick:()=>{t(!1),n(!1)},children:e("home.navigationTitle")}),icon:de.createElement(f2e),title:e("home.navigationTitle")},{key:"features",label:f.jsx(it,{to:"/home/features",onClick:()=>{t(!1),n(!1)},children:e("home.features.navigationTitle")}),icon:de.createElement(lEe),title:e("home.features.navigationTitle")},{key:"statistics",label:f.jsx(it,{to:"/home/stats",onClick:()=>{t(!1),n(!1)},children:e("home.stats.navigationTitle")}),icon:de.createElement(b_),title:e("home.stats.navigationTitle")},{key:"sponsor",label:f.jsx(it,{to:dk,target:"_blank",onClick:()=>{t(!1),n(!1)},children:e("home.sponsor.navigationTitle")}),icon:de.createElement(r2e),title:e("home.sponsor.navigationTitle")},{key:"hiddenMeeting",label:f.jsx(it,{to:"/home/tonieMeeting",onClick:()=>{t(!1),n(!1)}})}];return f.jsx(Pm,{mode:"inline",selectedKeys:[],defaultOpenKeys:["sub"],items:o})},Fs=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),a=dr.language,[o,i]=l.useState([]);l.useEffect(()=>{r(e("community.navigationTitle"))},[a]);const s=p=>{const g=[];p.includes("/contribution")&&g.push("contribution"),i(m=>Array.from(new Set([...m,...g])))};l.useEffect(()=>{s(location.pathname)},[location.pathname]);const c=p=>{const g=p.find(h=>!o.includes(h)),m=o.find(h=>!p.includes(h));g?i(h=>[...h,g]):m&&i(h=>h.filter(b=>b!==m))},u=({isOpen:p})=>p??!1?f.jsx(mK,{style:{margin:"16px 0 16px 16px"}}):f.jsx(_m,{style:{margin:"16px 0 16px 16px"}}),d=[{key:"community",label:f.jsx(it,{to:"/community",onClick:()=>{t(!1),n(!1)},children:e("community.navigationTitle")}),icon:de.createElement(y2e),title:e("community.navigationTitle")},{key:"faq",label:f.jsx(it,{to:"/community/faq",onClick:()=>{t(!1),n(!1)},children:e("community.faq.navigationTitle")}),icon:de.createElement(Dg),title:e("community.faq.navigationTitle")},{key:"request",label:f.jsx(it,{to:"/community/supportrequestguide",onClick:()=>{t(!1),n(!1)},children:e("community.supportRequestGuide.navigationTitle")}),icon:de.createElement(Dg),title:e("community.supportRequestGuide.navigationTitle")},{key:"contribution",label:f.jsx(it,{to:"/community/contribution",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},onClick:()=>{t(!1),n(!1)},children:e("community.contribution.navigationTitle")}),icon:de.createElement(vEe),title:e("community.contribution.navigationTitle"),children:[{key:"toniesJson",label:f.jsx(it,{to:"/community/contribution/tonies-json",onClick:()=>{t(!1),n(!1)},children:e("community.contribution.toniesJson.navigationTitle")}),icon:de.createElement(CSe),title:e("community.contribution.toniesJson.navigationTitle")},{key:"translation",label:f.jsx(it,{to:"/community/contribution/translations",onClick:()=>{t(!1),n(!1)},children:e("community.translations.navigationTitle")}),icon:de.createElement(pK),title:e("community.translations.navigationTitle")}]},{key:"contributors",label:f.jsx(it,{to:"/community/contributors",onClick:()=>{t(!1),n(!1)},children:e("community.contributors.navigationTitle")}),icon:de.createElement(zEe),title:e("community.contributors.navigationTitle")},{key:"changelog",label:f.jsx(it,{to:"/community/changelog",onClick:()=>{t(!1),n(!1)},children:e("community.changelog.navigationTitle")}),icon:de.createElement($Ce),title:e("community.changelog.navigationTitle")},{key:"Forum",label:f.jsx(it,{to:hd,target:"_blank",onClick:()=>{t(!1),n(!1)},children:e("community.forum.navigationTitle")}),icon:de.createElement(oEe),title:e("community.forum.navigationTitle")}];return f.jsx(Pm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:o,selectedKeys:[],onOpenChange:c,items:d,expandIcon:({isOpen:p})=>u({isOpen:p})})},Jke=new Dn(On()),e3e=new WY(On()),t3e=async(e=!0,t,n,r)=>{const a="restart-tc";n(a,Tt("settings.restartTC"),Tt("settings.tryToRestartTC"));try{const s=await(await Jke.apiGetTeddyCloudApiRaw("/api/triggerRestart")).text();if(s.toString()!=="OK"){r(a),t(dt.Error,Tt("settings.restartFailed"),Tt("settings.restartFailed")+": "+s.toString(),Tt("settings.navigationTitle"));return}}catch(i){r(a),t(dt.Error,Tt("settings.restartFailed"),Tt("settings.restartFailed")+": "+i,Tt("settings.navigationTitle"));return}n(a,Tt("settings.restartTC"),Tt("settings.restartInProgress")),await new Promise(i=>setTimeout(i,3e3));let o=0;for(;o<10;)try{if((await e3e.v1TimeGet()).length===10){r(a),t(dt.Success,Tt("settings.restartComplete"),Tt("settings.restartComplete"),Tt("settings.navigationTitle")),e&&(window.location.href="/web");return}}catch{o++,await new Promise(s=>setTimeout(s,3e3))}r(a),t(dt.Error,Tt("settings.restartFailed"),Tt("settings.restartFailed"),Tt("settings.navigationTitle"))},n3e=new Dn(On()),jm=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),{addNotification:a,addLoadingNotification:o,closeLoadingNotification:i}=Qn(),s=dr.language,[c,u]=l.useState("");l.useEffect(()=>{r(e("settings.navigationTitle"))},[s]);const d=h=>{const b=new URL(h),x=b.port?`:${b.port}`:"";return`${b.protocol}//${b.hostname}${x}`},p=async()=>{await t3e(!0,a,o,i),u("")},g=async()=>{const h="reloadToniesJson";o(h,e("settings.toniesJsonUpdate"),e("settings.toniesJsonUpdateInProgress"));try{const x=await(await n3e.apiGetTeddyCloudApiRaw("/api/toniesJsonUpdate")).text();u(""),i(h),x.toString()!=="Triggered tonies.json update"?a(dt.Error,e("settings.toniesJsonUpdateFailed"),e("settings.toniesJsonUpdateFailed")+": "+x.toString(),e("settings.navigationTitle")):a(dt.Success,e("settings.toniesJsonUpdateSuccessful"),e("settings.toniesJsonUpdateSuccessful"),e("settings.navigationTitle"))}catch(b){a(dt.Error,e("settings.toniesJsonUpdateFailed"),e("settings.toniesJsonUpdateFailed")+": "+b,e("settings.navigationTitle"))}},m=[{key:"general",label:f.jsx(it,{to:"/settings",onClick:()=>{t(!1),n(!1)},children:e("settings.general.navigationTitle")}),icon:de.createElement(zN),title:e("settings.general.navigationTitle")},{key:"certificates",label:f.jsx(it,{to:"/settings/certificates",onClick:()=>{t(!1),n(!1)},children:e("settings.certificates.navigationTitle")}),icon:de.createElement(BN),title:e("settings.certificates.navigationTitle")},{key:"rtnl",label:f.jsx(it,{to:"/settings/rtnl",onClick:()=>{t(!1),n(!1)},children:e("settings.rtnl.navigationTitle")}),icon:de.createElement(kEe),title:e("settings.rtnl.navigationTitle")},{key:"notifications",label:f.jsx(it,{to:"/settings/notifications",onClick:()=>{t(!1),n(!1)},children:e("settings.notifications.navigationTitle")}),icon:de.createElement(cK),title:e("settings.notifications.navigationTitle")},{key:"reload_toniesJson",label:f.jsx("label",{style:{cursor:"pointer"},children:e("settings.toniesJsonUpdate")}),onClick:()=>{g(),t(!1),n(!1)},icon:de.createElement(xK),title:e("settings.toniesJsonUpdate")},{key:"restart_server",label:f.jsx("label",{style:{cursor:"pointer"},children:e("settings.restartServer")}),onClick:()=>{p(),t(!1),n(!1)},icon:de.createElement(sIe),title:e("settings.restartServer")},{key:"legacy",label:f.jsx(it,{to:`${d(new URL(window.location.href))}/legacy.html`,target:"_blank",onClick:()=>{t(!1),n(!1)},children:e("settings.legacyGui")}),icon:de.createElement(i2e),title:e("settings.legacyGui")}];return f.jsx(Pm,{mode:"inline",selectedKeys:[c],defaultOpenKeys:["sub"],items:m})};function LL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rd(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var h1={};function a3e(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return h1[t]||(h1[t]=r3e(e)),h1[t]}function o3e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),a=a3e(r);return a.reduce(function(o,i){return rd(rd({},o),n[i])},t)}function jL(e){return e.join(" ")}function i3e(e,t){var n=0;return function(r){return n+=1,r.map(function(a,o){return qY({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function qY(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,o=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if(c==="text")return d;if(u){var p=i3e(n,o),g;if(!o)g=rd(rd({},s),{},{className:jL(s.className)});else{var m=Object.keys(n).reduce(function(S,v){return v.split(".").forEach(function(y){S.includes(y)||S.push(y)}),S},[]),h=s.className&&s.className.includes("token")?["token"]:[],b=s.className&&h.concat(s.className.filter(function(S){return!m.includes(S)}));g=rd(rd({},s),{},{className:jL(b)||void 0,style:o3e(s.className,Object.assign({},s.style,a),n)})}var x=p(t.children);return de.createElement(u,be({key:i},g),x)}}const s3e=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var l3e=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function FL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Wv({children:w,lineNumber:E,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:c,wrapLines:t})}function b(w,E){if(r&&E&&a){var I=YY(s,E,i);w.unshift(KY(E,I))}return w}function x(w,E){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?h(w,E,I):b(w,E)}for(var S=function(){var E=d[m],I=E.children[0].value,T=u3e(I);if(T){var R=I.split(` +`),style:i,startingLineNumber:s}))}function p3e(e){return"".concat(e.toString().length,".25em")}function KY(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function YY(e,t,n){var r={display:"inline-block",minWidth:p3e(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,o=gl(gl({},r),a);return o}function qv(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=i===void 0?{}:i,c=e.className,u=c===void 0?[]:c,d=e.showLineNumbers,p=e.wrapLongLines,g=e.wrapLines,m=g===void 0?!1:g,h=m?gl({},typeof s=="function"?s(n):s):{};if(h.className=h.className?[].concat(De(h.className.trim().split(/\s+/)),De(u)):u,n&&o){var b=YY(r,n,a);t.unshift(KY(n,b))}return p&d&&(h.style=gl({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:t}}function XY(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return qv({children:C,lineNumber:E,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:c,wrapLines:t})}function b(C,E){if(r&&E&&a){var I=YY(s,E,i);C.unshift(KY(E,I))}return C}function x(C,E){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?h(C,E,I):b(C,E)}for(var S=function(){var E=d[m],I=E.children[0].value,T=u3e(I);if(T){var R=I.split(` `);R.forEach(function(_,$){var M=r&&p.length+o,P={type:"text",value:"".concat(_,` -`)};if($===0){var D=d.slice(g+1,m).concat(Wv({children:[P],className:E.properties.className})),O=x(D,M);p.push(O)}else if($===R.length-1){var k=d[m+1]&&d[m+1].children&&d[m+1].children[0],N={type:"text",value:"".concat(_)};if(k){var A=Wv({children:[N],className:E.properties.className});d.splice(m+1,0,A)}else{var L=[N],j=x(L,M,E.properties.className);p.push(j)}}else{var F=[P],B=x(F,M,E.properties.className);p.push(B)}}),g=m}m++};m0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.allSettled(n.map(c=>{if(c=y3e(c),c in BL)return;BL[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":b3e,u||(p.as="script"),p.crossOrigin="",p.href=c,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((g,m)=>{p.addEventListener("load",g),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return a.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},x3e=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var S3e=w3e,C3e=Object.prototype.hasOwnProperty;function w3e(){for(var e={},t=0;t4&&n.slice(0,4)===hk&&uAe.test(t)&&(t.charAt(4)==="-"?r=pAe(t):t=gAe(t),a=sAe),new a(r,t))}function pAe(e){var t=e.slice(5).replace(iX,hAe);return hk+t.charAt(0).toUpperCase()+t.slice(1)}function gAe(e){var t=e.slice(4);return iX.test(t)?e:(t=t.replace(dAe,mAe),t.charAt(0)!=="-"&&(t="-"+t),hk+t)}function mAe(e){return"-"+e.toLowerCase()}function hAe(e){return e.charAt(1).toUpperCase()}var vAe=bAe,WL=/[#.]/g;function bAe(e,t){for(var n=e||"",r=t||"div",a={},o=0,i,s,c;o=48&&t<=57}var BMe=zMe;function zMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var HMe=UMe;function UMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var VMe=HMe,WMe=cX,GMe=qMe;function qMe(e){return VMe(e)||WMe(e)}var Zh,KMe=59,YMe=XMe;function XMe(e){var t="&"+e+";",n;return Zh=Zh||document.createElement("i"),Zh.innerHTML=t,n=Zh.textContent,n.charCodeAt(n.length-1)===KMe&&e!=="semi"||n===t?!1:n}var QL=LMe,JL=jMe,ZMe=cX,QMe=BMe,uX=GMe,JMe=YMe,eDe=pDe,tDe={}.hasOwnProperty,Ou=String.fromCharCode,nDe=Function.prototype,e6={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},rDe=9,t6=10,aDe=12,oDe=32,n6=38,iDe=59,sDe=60,lDe=61,cDe=35,uDe=88,dDe=120,fDe=65533,ju="named",yk="hexadecimal",xk="decimal",Sk={};Sk[yk]=16;Sk[xk]=10;var Yy={};Yy[ju]=uX;Yy[xk]=ZMe;Yy[yk]=QMe;var dX=1,fX=2,pX=3,gX=4,mX=5,U_=6,hX=7,ql={};ql[dX]="Named character references must be terminated by a semicolon";ql[fX]="Numeric character references must be terminated by a semicolon";ql[pX]="Named character references cannot be empty";ql[gX]="Numeric character references cannot be empty";ql[mX]="Named character references must be known";ql[U_]="Numeric character references cannot be disallowed";ql[hX]="Numeric character references cannot be outside the permissible Unicode range";function pDe(e,t){var n={},r,a;t||(t={});for(a in e6)r=t[a],n[a]=r??e6[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),gDe(e,n)}function gDe(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,o=t.reference,i=t.warning,s=t.textContext,c=t.referenceContext,u=t.warningContext,d=t.position,p=t.indent||[],g=e.length,m=0,h=-1,b=d.column||1,x=d.line||1,S="",v=[],y,C,w,E,I,T,R,_,$,M,P,D,O,k,N,A,L,j,F;for(typeof n=="string"&&(n=n.charCodeAt(0)),A=B(),_=i?z:nDe,m--,g++;++m65535&&(T-=65536,M+=Ou(T>>>10|55296),T=56320|T&1023),T=M+Ou(T))):k!==ju&&_(gX,j)),T?(U(),A=B(),m=F-1,b+=F-O+1,v.push(T),L=B(),L.offset++,o&&o.call(c,T,{start:A,end:L},e.slice(O-1,F)),A=L):(E=e.slice(O-1,F),S+=E,b+=E.length,m=F-1)}else I===10&&(x++,h++,b=0),I===I?(S+=Ou(I),b++):U();return v.join("");function B(){return{line:x,column:b,offset:m+(d.offset||0)}}function z(H,Y){var K=B();K.column+=Y,K.offset+=Y,i.call(u,ql[H],K,H)}function U(){S&&(v.push(S),a&&a.call(s,S,{start:A,end:B()}),S="")}}function mDe(e){return e>=55296&&e<=57343||e>1114111}function hDe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var vX={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`)};if($===0){var D=d.slice(g+1,m).concat(qv({children:[P],className:E.properties.className})),O=x(D,M);p.push(O)}else if($===R.length-1){var k=d[m+1]&&d[m+1].children&&d[m+1].children[0],N={type:"text",value:"".concat(_)};if(k){var A=qv({children:[N],className:E.properties.className});d.splice(m+1,0,A)}else{var L=[N],j=x(L,M,E.properties.className);p.push(j)}}else{var F=[P],B=x(F,M,E.properties.className);p.push(B)}}),g=m}m++};m0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.allSettled(n.map(c=>{if(c=y3e(c),c in BL)return;BL[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":b3e,u||(p.as="script"),p.crossOrigin="",p.href=c,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((g,m)=>{p.addEventListener("load",g),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return a.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},x3e=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var S3e=C3e,w3e=Object.prototype.hasOwnProperty;function C3e(){for(var e={},t=0;t4&&n.slice(0,4)===hk&&uAe.test(t)&&(t.charAt(4)==="-"?r=pAe(t):t=gAe(t),a=sAe),new a(r,t))}function pAe(e){var t=e.slice(5).replace(iX,hAe);return hk+t.charAt(0).toUpperCase()+t.slice(1)}function gAe(e){var t=e.slice(4);return iX.test(t)?e:(t=t.replace(dAe,mAe),t.charAt(0)!=="-"&&(t="-"+t),hk+t)}function mAe(e){return"-"+e.toLowerCase()}function hAe(e){return e.charAt(1).toUpperCase()}var vAe=bAe,WL=/[#.]/g;function bAe(e,t){for(var n=e||"",r=t||"div",a={},o=0,i,s,c;o=48&&t<=57}var BMe=zMe;function zMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var HMe=UMe;function UMe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var VMe=HMe,WMe=cX,GMe=qMe;function qMe(e){return VMe(e)||WMe(e)}var Qh,KMe=59,YMe=XMe;function XMe(e){var t="&"+e+";",n;return Qh=Qh||document.createElement("i"),Qh.innerHTML=t,n=Qh.textContent,n.charCodeAt(n.length-1)===KMe&&e!=="semi"||n===t?!1:n}var QL=LMe,JL=jMe,ZMe=cX,QMe=BMe,uX=GMe,JMe=YMe,eDe=pDe,tDe={}.hasOwnProperty,Ou=String.fromCharCode,nDe=Function.prototype,e6={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},rDe=9,t6=10,aDe=12,oDe=32,n6=38,iDe=59,sDe=60,lDe=61,cDe=35,uDe=88,dDe=120,fDe=65533,ju="named",yk="hexadecimal",xk="decimal",Sk={};Sk[yk]=16;Sk[xk]=10;var Zy={};Zy[ju]=uX;Zy[xk]=ZMe;Zy[yk]=QMe;var dX=1,fX=2,pX=3,gX=4,mX=5,U_=6,hX=7,ql={};ql[dX]="Named character references must be terminated by a semicolon";ql[fX]="Numeric character references must be terminated by a semicolon";ql[pX]="Named character references cannot be empty";ql[gX]="Numeric character references cannot be empty";ql[mX]="Named character references must be known";ql[U_]="Numeric character references cannot be disallowed";ql[hX]="Numeric character references cannot be outside the permissible Unicode range";function pDe(e,t){var n={},r,a;t||(t={});for(a in e6)r=t[a],n[a]=r??e6[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),gDe(e,n)}function gDe(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,o=t.reference,i=t.warning,s=t.textContext,c=t.referenceContext,u=t.warningContext,d=t.position,p=t.indent||[],g=e.length,m=0,h=-1,b=d.column||1,x=d.line||1,S="",v=[],y,w,C,E,I,T,R,_,$,M,P,D,O,k,N,A,L,j,F;for(typeof n=="string"&&(n=n.charCodeAt(0)),A=B(),_=i?z:nDe,m--,g++;++m65535&&(T-=65536,M+=Ou(T>>>10|55296),T=56320|T&1023),T=M+Ou(T))):k!==ju&&_(gX,j)),T?(U(),A=B(),m=F-1,b+=F-O+1,v.push(T),L=B(),L.offset++,o&&o.call(c,T,{start:A,end:L},e.slice(O-1,F)),A=L):(E=e.slice(O-1,F),S+=E,b+=E.length,m=F-1)}else I===10&&(x++,h++,b=0),I===I?(S+=Ou(I),b++):U();return v.join("");function B(){return{line:x,column:b,offset:m+(d.offset||0)}}function z(H,K){var Y=B();Y.column+=K,Y.offset+=K,i.call(u,ql[H],Y,H)}function U(){S&&(v.push(S),a&&a.call(s,S,{start:A,end:B()}),S="")}}function mDe(e){return e>=55296&&e<=57343||e>1114111}function hDe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var vX={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(y){return y instanceof c?new c(y.type,v(y.content),y.alias):Array.isArray(y)?y.map(v):y.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var y=document.getElementsByTagName("script");for(var C in y)if(y[C].src==v)return y[C]}return null}},isActive:function(v,y,C){for(var w="no-"+y;v;){var E=v.classList;if(E.contains(y))return!0;if(E.contains(w))return!1;v=v.parentElement}return!!C}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,y){var C=s.util.clone(s.languages[v]);for(var w in y)C[w]=y[w];return C},insertBefore:function(v,y,C,w){w=w||s.languages;var E=w[v],I={};for(var T in E)if(E.hasOwnProperty(T)){if(T==y)for(var R in C)C.hasOwnProperty(R)&&(I[R]=C[R]);C.hasOwnProperty(T)||(I[T]=E[T])}var _=w[v];return w[v]=I,s.languages.DFS(s.languages,function($,M){M===_&&$!=v&&(this[$]=I)}),I},DFS:function v(y,C,w,E){E=E||{};var I=s.util.objId;for(var T in y)if(y.hasOwnProperty(T)){C.call(y,T,y[T],w||T);var R=y[T],_=s.util.type(R);_==="Object"&&!E[I(R)]?(E[I(R)]=!0,v(R,C,null,E)):_==="Array"&&!E[I(R)]&&(E[I(R)]=!0,v(R,C,T,E))}}},plugins:{},highlightAll:function(v,y){s.highlightAllUnder(document,v,y)},highlightAllUnder:function(v,y,C){var w={callback:C,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),s.hooks.run("before-all-elements-highlight",w);for(var E=0,I;I=w.elements[E++];)s.highlightElement(I,y===!0,w.callback)},highlightElement:function(v,y,C){var w=s.util.getLanguage(v),E=s.languages[w];s.util.setLanguage(v,w);var I=v.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(I,w);var T=v.textContent,R={element:v,language:w,grammar:E,code:T};function _(M){R.highlightedCode=M,s.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,s.hooks.run("after-highlight",R),s.hooks.run("complete",R),C&&C.call(R.element)}if(s.hooks.run("before-sanity-check",R),I=R.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!R.code){s.hooks.run("complete",R),C&&C.call(R.element);return}if(s.hooks.run("before-highlight",R),!R.grammar){_(s.util.encode(R.code));return}if(y&&r.Worker){var $=new Worker(s.filename);$.onmessage=function(M){_(M.data)},$.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else _(s.highlight(R.code,R.grammar,R.language))},highlight:function(v,y,C){var w={code:v,grammar:y,language:C};if(s.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=s.tokenize(w.code,w.grammar),s.hooks.run("after-tokenize",w),c.stringify(s.util.encode(w.tokens),w.language)},tokenize:function(v,y){var C=y.rest;if(C){for(var w in C)y[w]=C[w];delete y.rest}var E=new p;return g(E,E.head,v),d(v,E,y,E.head,0),h(E)},hooks:{all:{},add:function(v,y){var C=s.hooks.all;C[v]=C[v]||[],C[v].push(y)},run:function(v,y){var C=s.hooks.all[v];if(!(!C||!C.length))for(var w=0,E;E=C[w++];)E(y)}},Token:c};r.Prism=s;function c(v,y,C,w){this.type=v,this.content=y,this.alias=C,this.length=(w||"").length|0}c.stringify=function v(y,C){if(typeof y=="string")return y;if(Array.isArray(y)){var w="";return y.forEach(function(_){w+=v(_,C)}),w}var E={type:y.type,content:v(y.content,C),tag:"span",classes:["token",y.type],attributes:{},language:C},I=y.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(E.classes,I):E.classes.push(I)),s.hooks.run("wrap",E);var T="";for(var R in E.attributes)T+=" "+R+'="'+(E.attributes[R]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+T+">"+E.content+""};function u(v,y,C,w){v.lastIndex=y;var E=v.exec(C);if(E&&w&&E[1]){var I=E[1].length;E.index+=I,E[0]=E[0].slice(I)}return E}function d(v,y,C,w,E,I){for(var T in C)if(!(!C.hasOwnProperty(T)||!C[T])){var R=C[T];R=Array.isArray(R)?R:[R];for(var _=0;_=I.reach);L+=A.value.length,A=A.next){var j=A.value;if(y.length>v.length)return;if(!(j instanceof c)){var F=1,B;if(D){if(B=u(N,L,v,P),!B||B.index>=v.length)break;var Y=B.index,z=B.index+B[0].length,U=L;for(U+=A.value.length;Y>=U;)A=A.next,U+=A.value.length;if(U-=A.value.length,L=U,A.value instanceof c)continue;for(var H=A;H!==y.tail&&(UI.reach&&(I.reach=W);var q=A.prev;J&&(q=g(y,q,J),L+=J.length),m(y,q,F);var Z=new c(T,M?s.tokenize(K,M):K,O,K);if(A=g(y,q,Z),ne&&g(y,A,ne),F>1){var Q={cause:T+","+_,reach:W};d(v,y,C,A.prev,L,Q),I&&Q.reach>I.reach&&(I.reach=Q.reach)}}}}}}function p(){var v={value:null,prev:null,next:null},y={value:null,prev:v,next:null};v.next=y,this.head=v,this.tail=y,this.length=0}function g(v,y,C){var w=y.next,E={value:C,prev:y,next:w};return y.next=E,w.prev=E,v.length++,E}function m(v,y,C){for(var w=y.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var yDe=wk;wk.displayName="css";wk.aliases=[];function wk(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var xDe=Ek;Ek.displayName="clike";Ek.aliases=[];function Ek(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var SDe=Ik;Ik.displayName="javascript";Ik.aliases=["js"];function Ik(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var bp=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Aa=="object"?Aa:{},CDe=jDe();bp.Prism={manual:!0,disableWorkerMessageHandler:!0};var wDe=jAe,EDe=eDe,bX=vDe,IDe=bDe,TDe=yDe,RDe=xDe,_De=SDe;CDe();var Tk={}.hasOwnProperty;function yX(){}yX.prototype=bX;var Vr=new yX,$De=Vr;Vr.highlight=NDe;Vr.register=Fm;Vr.alias=ODe;Vr.registered=kDe;Vr.listLanguages=ADe;Fm(IDe);Fm(TDe);Fm(RDe);Fm(_De);Vr.util.encode=PDe;Vr.Token.stringify=MDe;function Fm(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Vr.languages[e.displayName]===void 0&&e(Vr)}function ODe(e,t){var n=Vr.languages,r=e,a,o,i,s;t&&(r={},r[e]=t);for(a in r)for(o=r[a],o=typeof o=="string"?[o]:o,i=o.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var m1,r6;function BDe(){if(r6)return m1;r6=1,m1=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return m1}var h1,a6;function zDe(){if(a6)return h1;a6=1,h1=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return h1}var v1,o6;function HDe(){if(o6)return v1;o6=1,v1=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return v1}var b1,i6;function UDe(){if(i6)return b1;i6=1,b1=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return b1}var y1,s6;function VDe(){if(s6)return y1;s6=1,y1=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return y1}var x1,l6;function WDe(){if(l6)return x1;l6=1,x1=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return x1}var S1,c6;function GDe(){if(c6)return S1;c6=1,S1=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return S1}var C1,u6;function qDe(){if(u6)return C1;u6=1,C1=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return C1}var w1,d6;function Rk(){if(d6)return w1;d6=1,w1=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return w1}var E1,f6;function KDe(){if(f6)return E1;f6=1;var e=Rk();E1=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,o=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function i(c){return RegExp(c.replace(//g,function(){return o}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return E1}var I1,p6;function YDe(){if(p6)return I1;p6=1,I1=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return I1}var T1,g6;function XDe(){if(g6)return T1;g6=1,T1=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return T1}var R1,m6;function ZDe(){if(m6)return R1;m6=1,R1=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return R1}var _1,h6;function ou(){if(h6)return _1;h6=1,_1=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return _1}var $1,v6;function _k(){if(v6)return $1;v6=1;var e=ou();$1=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return $1}var O1,b6;function QDe(){if(b6)return O1;b6=1;var e=_k();O1=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return O1}var N1,y6;function JDe(){if(y6)return N1;y6=1,N1=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return N1}var k1,x6;function ePe(){if(x6)return k1;x6=1,k1=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function o(i){i=i.split(" ");for(var s={},c=0,u=i.length;c>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return M1}var D1,w6;function Xy(){if(w6)return D1;w6=1,D1=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(F,B){return F.replace(/<<(\d+)>>/g,function(z,U){return"(?:"+B[+U]+")"})}function a(F,B,z){return RegExp(r(F,B),"")}function o(F,B){for(var z=0;z>/g,function(){return"(?:"+F+")"});return F.replace(/<>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(F){return"\\b(?:"+F.trim().replace(/ /g,"|")+")\\b"}var c=s(i.typeDeclaration),u=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),d=s(i.typeDeclaration+" "+i.contextual+" "+i.other),p=s(i.type+" "+i.typeDeclaration+" "+i.other),g=o(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=o(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[h,g]),x=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,b]),S=/\[\s*(?:,\s*)*\]/.source,v=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[x,S]),y=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,m,S]),C=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),w=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,x,S]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,w]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[c,b]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[x]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,p,h]),inside:E}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,x]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,g]),inside:{function:a(/^<<0>>/.source,[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,b,h,w,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=T+"|"+I,$=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),M=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),P=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,D=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[x,M]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[P,D]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[P]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[M]),inside:n.languages.csharp},"class-name":{pattern:RegExp(x),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var O=/:[^}\r\n]+/.source,k=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),N=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[k,O]),A=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),L=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,O]);function j(F,B){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[F]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[B,O]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:j(N,k)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:j(L,A)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return D1}var P1,E6;function rPe(){if(E6)return P1;E6=1;var e=Xy();P1=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return P1}var L1,I6;function aPe(){if(I6)return L1;I6=1,L1=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return L1}var j1,T6;function oPe(){if(T6)return j1;T6=1,j1=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return j1}var F1,R6;function iPe(){if(R6)return F1;R6=1,F1=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(d,p){return d.replace(/<<(\d+)>>/g,function(g,m){return p[+m]})}function a(d,p,g){return RegExp(r(d,p),g)}var o=/bool|clip|float|int|string|val/.source,i=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),c=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[i,s,c].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[o],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[o],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return F1}var B1,_6;function sPe(){if(_6)return B1;_6=1,B1=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return B1}var z1,$6;function xX(){if($6)return z1;$6=1,z1=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=o.variable[1].inside,c=0;c?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return H1}var U1,N6;function lPe(){if(N6)return U1;N6=1,U1=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},o=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:o,parameter:a,variable:r,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:o,parameter:a,variable:r,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:o,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:o,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return U1}var V1,k6;function cPe(){if(k6)return V1;k6=1,V1=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return V1}var W1,A6;function uPe(){if(A6)return W1;A6=1,W1=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return W1}var G1,M6;function dPe(){if(M6)return G1;M6=1,G1=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return G1}var q1,D6;function fPe(){if(D6)return q1;D6=1;var e=ou();q1=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return q1}var K1,P6;function pPe(){if(P6)return K1;P6=1,K1=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return K1}var Y1,L6;function gPe(){if(L6)return Y1;L6=1,Y1=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return Y1}var X1,j6;function mPe(){if(j6)return X1;j6=1,X1=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return X1}var Z1,F6;function hPe(){if(F6)return Z1;F6=1,Z1=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return Z1}var Q1,B6;function vPe(){if(B6)return Q1;B6=1,Q1=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return Q1}var J1,z6;function bPe(){if(z6)return J1;z6=1,J1=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return J1}var eC,H6;function yPe(){if(H6)return eC;H6=1;var e=_k();eC=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return eC}var tC,U6;function xPe(){if(U6)return tC;U6=1,tC=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return tC}var nC,V6;function SPe(){if(V6)return nC;V6=1,nC=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return nC}var rC,W6;function CPe(){if(W6)return rC;W6=1,rC=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return rC}var aC,G6;function wPe(){if(G6)return aC;G6=1,aC=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return aC}var oC,q6;function EPe(){if(q6)return oC;q6=1,oC=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return oC}var iC,K6;function IPe(){if(K6)return iC;K6=1,iC=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return iC}var sC,Y6;function TPe(){if(Y6)return sC;Y6=1,sC=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return sC}var lC,X6;function Zy(){if(X6)return lC;X6=1,lC=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return lC}var cC,Z6;function RPe(){if(Z6)return cC;Z6=1;var e=Zy();cC=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return cC}var uC,Q6;function _Pe(){if(Q6)return uC;Q6=1;var e=Xy();uC=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,o=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,S){for(var v=0;v/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+o+")").replace(//g,"(?:"+a+")")}var s=i(/\((?:[^()'"@/]|||)*\)/.source,2),c=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),u=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=i(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var o={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:o,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:o,number:i})})(t)}return fC}var pC,tj;function NPe(){if(tj)return pC;tj=1,pC=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return pC}var gC,nj;function kPe(){if(nj)return gC;nj=1,gC=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return gC}var mC,rj;function APe(){if(rj)return mC;rj=1,mC=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return mC}var hC,aj;function MPe(){if(aj)return hC;aj=1,hC=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return hC}var vC,oj;function DPe(){if(oj)return vC;oj=1,vC=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return vC}var bC,ij;function PPe(){if(ij)return bC;ij=1,bC=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return bC}var yC,sj;function LPe(){if(sj)return yC;sj=1,yC=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return yC}var xC,lj;function jPe(){if(lj)return xC;lj=1,xC=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var o=r[a],i=[];/^\w+$/.test(a)||i.push(/\w+/.exec(a)[0]),a==="diff"&&i.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+o+`].*(?:\r + */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(y){return y instanceof c?new c(y.type,v(y.content),y.alias):Array.isArray(y)?y.map(v):y.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(C){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(v){var y=document.getElementsByTagName("script");for(var w in y)if(y[w].src==v)return y[w]}return null}},isActive:function(v,y,w){for(var C="no-"+y;v;){var E=v.classList;if(E.contains(y))return!0;if(E.contains(C))return!1;v=v.parentElement}return!!w}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,y){var w=s.util.clone(s.languages[v]);for(var C in y)w[C]=y[C];return w},insertBefore:function(v,y,w,C){C=C||s.languages;var E=C[v],I={};for(var T in E)if(E.hasOwnProperty(T)){if(T==y)for(var R in w)w.hasOwnProperty(R)&&(I[R]=w[R]);w.hasOwnProperty(T)||(I[T]=E[T])}var _=C[v];return C[v]=I,s.languages.DFS(s.languages,function($,M){M===_&&$!=v&&(this[$]=I)}),I},DFS:function v(y,w,C,E){E=E||{};var I=s.util.objId;for(var T in y)if(y.hasOwnProperty(T)){w.call(y,T,y[T],C||T);var R=y[T],_=s.util.type(R);_==="Object"&&!E[I(R)]?(E[I(R)]=!0,v(R,w,null,E)):_==="Array"&&!E[I(R)]&&(E[I(R)]=!0,v(R,w,T,E))}}},plugins:{},highlightAll:function(v,y){s.highlightAllUnder(document,v,y)},highlightAllUnder:function(v,y,w){var C={callback:w,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),s.hooks.run("before-all-elements-highlight",C);for(var E=0,I;I=C.elements[E++];)s.highlightElement(I,y===!0,C.callback)},highlightElement:function(v,y,w){var C=s.util.getLanguage(v),E=s.languages[C];s.util.setLanguage(v,C);var I=v.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(I,C);var T=v.textContent,R={element:v,language:C,grammar:E,code:T};function _(M){R.highlightedCode=M,s.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,s.hooks.run("after-highlight",R),s.hooks.run("complete",R),w&&w.call(R.element)}if(s.hooks.run("before-sanity-check",R),I=R.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!R.code){s.hooks.run("complete",R),w&&w.call(R.element);return}if(s.hooks.run("before-highlight",R),!R.grammar){_(s.util.encode(R.code));return}if(y&&r.Worker){var $=new Worker(s.filename);$.onmessage=function(M){_(M.data)},$.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else _(s.highlight(R.code,R.grammar,R.language))},highlight:function(v,y,w){var C={code:v,grammar:y,language:w};if(s.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=s.tokenize(C.code,C.grammar),s.hooks.run("after-tokenize",C),c.stringify(s.util.encode(C.tokens),C.language)},tokenize:function(v,y){var w=y.rest;if(w){for(var C in w)y[C]=w[C];delete y.rest}var E=new p;return g(E,E.head,v),d(v,E,y,E.head,0),h(E)},hooks:{all:{},add:function(v,y){var w=s.hooks.all;w[v]=w[v]||[],w[v].push(y)},run:function(v,y){var w=s.hooks.all[v];if(!(!w||!w.length))for(var C=0,E;E=w[C++];)E(y)}},Token:c};r.Prism=s;function c(v,y,w,C){this.type=v,this.content=y,this.alias=w,this.length=(C||"").length|0}c.stringify=function v(y,w){if(typeof y=="string")return y;if(Array.isArray(y)){var C="";return y.forEach(function(_){C+=v(_,w)}),C}var E={type:y.type,content:v(y.content,w),tag:"span",classes:["token",y.type],attributes:{},language:w},I=y.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(E.classes,I):E.classes.push(I)),s.hooks.run("wrap",E);var T="";for(var R in E.attributes)T+=" "+R+'="'+(E.attributes[R]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+T+">"+E.content+""};function u(v,y,w,C){v.lastIndex=y;var E=v.exec(w);if(E&&C&&E[1]){var I=E[1].length;E.index+=I,E[0]=E[0].slice(I)}return E}function d(v,y,w,C,E,I){for(var T in w)if(!(!w.hasOwnProperty(T)||!w[T])){var R=w[T];R=Array.isArray(R)?R:[R];for(var _=0;_=I.reach);L+=A.value.length,A=A.next){var j=A.value;if(y.length>v.length)return;if(!(j instanceof c)){var F=1,B;if(D){if(B=u(N,L,v,P),!B||B.index>=v.length)break;var K=B.index,z=B.index+B[0].length,U=L;for(U+=A.value.length;K>=U;)A=A.next,U+=A.value.length;if(U-=A.value.length,L=U,A.value instanceof c)continue;for(var H=A;H!==y.tail&&(UI.reach&&(I.reach=W);var q=A.prev;ee&&(q=g(y,q,ee),L+=ee.length),m(y,q,F);var Z=new c(T,M?s.tokenize(Y,M):Y,O,Y);if(A=g(y,q,Z),ae&&g(y,A,ae),F>1){var Q={cause:T+","+_,reach:W};d(v,y,w,A.prev,L,Q),I&&Q.reach>I.reach&&(I.reach=Q.reach)}}}}}}function p(){var v={value:null,prev:null,next:null},y={value:null,prev:v,next:null};v.next=y,this.head=v,this.tail=y,this.length=0}function g(v,y,w){var C=y.next,E={value:w,prev:y,next:C};return y.next=E,C.prev=E,v.length++,E}function m(v,y,w){for(var C=y.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var yDe=Ck;Ck.displayName="css";Ck.aliases=[];function Ck(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var xDe=Ek;Ek.displayName="clike";Ek.aliases=[];function Ek(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var SDe=Ik;Ik.displayName="javascript";Ik.aliases=["js"];function Ik(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var bp=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Aa=="object"?Aa:{},wDe=jDe();bp.Prism={manual:!0,disableWorkerMessageHandler:!0};var CDe=jAe,EDe=eDe,bX=vDe,IDe=bDe,TDe=yDe,RDe=xDe,_De=SDe;wDe();var Tk={}.hasOwnProperty;function yX(){}yX.prototype=bX;var Vr=new yX,$De=Vr;Vr.highlight=NDe;Vr.register=Bm;Vr.alias=ODe;Vr.registered=kDe;Vr.listLanguages=ADe;Bm(IDe);Bm(TDe);Bm(RDe);Bm(_De);Vr.util.encode=PDe;Vr.Token.stringify=MDe;function Bm(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Vr.languages[e.displayName]===void 0&&e(Vr)}function ODe(e,t){var n=Vr.languages,r=e,a,o,i,s;t&&(r={},r[e]=t);for(a in r)for(o=r[a],o=typeof o=="string"?[o]:o,i=o.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var v1,r6;function BDe(){if(r6)return v1;r6=1,v1=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return v1}var b1,a6;function zDe(){if(a6)return b1;a6=1,b1=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return b1}var y1,o6;function HDe(){if(o6)return y1;o6=1,y1=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return y1}var x1,i6;function UDe(){if(i6)return x1;i6=1,x1=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return x1}var S1,s6;function VDe(){if(s6)return S1;s6=1,S1=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return S1}var w1,l6;function WDe(){if(l6)return w1;l6=1,w1=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return w1}var C1,c6;function GDe(){if(c6)return C1;c6=1,C1=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return C1}var E1,u6;function qDe(){if(u6)return E1;u6=1,E1=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return E1}var I1,d6;function Rk(){if(d6)return I1;d6=1,I1=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return I1}var T1,f6;function KDe(){if(f6)return T1;f6=1;var e=Rk();T1=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,o=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function i(c){return RegExp(c.replace(//g,function(){return o}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return T1}var R1,p6;function YDe(){if(p6)return R1;p6=1,R1=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return R1}var _1,g6;function XDe(){if(g6)return _1;g6=1,_1=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return _1}var $1,m6;function ZDe(){if(m6)return $1;m6=1,$1=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return $1}var O1,h6;function ou(){if(h6)return O1;h6=1,O1=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return O1}var N1,v6;function _k(){if(v6)return N1;v6=1;var e=ou();N1=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return N1}var k1,b6;function QDe(){if(b6)return k1;b6=1;var e=_k();k1=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return k1}var A1,y6;function JDe(){if(y6)return A1;y6=1,A1=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return A1}var M1,x6;function ePe(){if(x6)return M1;x6=1,M1=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function o(i){i=i.split(" ");for(var s={},c=0,u=i.length;c>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return P1}var L1,C6;function Qy(){if(C6)return L1;C6=1,L1=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(F,B){return F.replace(/<<(\d+)>>/g,function(z,U){return"(?:"+B[+U]+")"})}function a(F,B,z){return RegExp(r(F,B),"")}function o(F,B){for(var z=0;z>/g,function(){return"(?:"+F+")"});return F.replace(/<>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(F){return"\\b(?:"+F.trim().replace(/ /g,"|")+")\\b"}var c=s(i.typeDeclaration),u=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),d=s(i.typeDeclaration+" "+i.contextual+" "+i.other),p=s(i.type+" "+i.typeDeclaration+" "+i.other),g=o(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=o(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[h,g]),x=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,b]),S=/\[\s*(?:,\s*)*\]/.source,v=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[x,S]),y=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,m,S]),w=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),C=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,x,S]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,C]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[c,b]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[x]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,p,h]),inside:E}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,x]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,g]),inside:{function:a(/^<<0>>/.source,[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,b,h,C,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,m]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(C),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=T+"|"+I,$=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),M=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),P=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,D=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[x,M]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[P,D]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[P]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[M]),inside:n.languages.csharp},"class-name":{pattern:RegExp(x),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var O=/:[^}\r\n]+/.source,k=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),N=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[k,O]),A=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),L=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,O]);function j(F,B){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[F]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[B,O]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:j(N,k)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:j(L,A)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return L1}var j1,E6;function rPe(){if(E6)return j1;E6=1;var e=Qy();j1=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return j1}var F1,I6;function aPe(){if(I6)return F1;I6=1,F1=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return F1}var B1,T6;function oPe(){if(T6)return B1;T6=1,B1=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return B1}var z1,R6;function iPe(){if(R6)return z1;R6=1,z1=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(d,p){return d.replace(/<<(\d+)>>/g,function(g,m){return p[+m]})}function a(d,p,g){return RegExp(r(d,p),g)}var o=/bool|clip|float|int|string|val/.source,i=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),c=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[i,s,c].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[o],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[o],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return z1}var H1,_6;function sPe(){if(_6)return H1;_6=1,H1=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return H1}var U1,$6;function xX(){if($6)return U1;$6=1,U1=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=o.variable[1].inside,c=0;c?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return V1}var W1,N6;function lPe(){if(N6)return W1;N6=1,W1=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},o=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:o,parameter:a,variable:r,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:o,parameter:a,variable:r,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:o,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:o,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return W1}var G1,k6;function cPe(){if(k6)return G1;k6=1,G1=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return G1}var q1,A6;function uPe(){if(A6)return q1;A6=1,q1=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return q1}var K1,M6;function dPe(){if(M6)return K1;M6=1,K1=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return K1}var Y1,D6;function fPe(){if(D6)return Y1;D6=1;var e=ou();Y1=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return Y1}var X1,P6;function pPe(){if(P6)return X1;P6=1,X1=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return X1}var Z1,L6;function gPe(){if(L6)return Z1;L6=1,Z1=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return Z1}var Q1,j6;function mPe(){if(j6)return Q1;j6=1,Q1=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return Q1}var J1,F6;function hPe(){if(F6)return J1;F6=1,J1=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return J1}var ew,B6;function vPe(){if(B6)return ew;B6=1,ew=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return ew}var tw,z6;function bPe(){if(z6)return tw;z6=1,tw=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return tw}var nw,H6;function yPe(){if(H6)return nw;H6=1;var e=_k();nw=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return nw}var rw,U6;function xPe(){if(U6)return rw;U6=1,rw=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return rw}var aw,V6;function SPe(){if(V6)return aw;V6=1,aw=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return aw}var ow,W6;function wPe(){if(W6)return ow;W6=1,ow=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return ow}var iw,G6;function CPe(){if(G6)return iw;G6=1,iw=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return iw}var sw,q6;function EPe(){if(q6)return sw;q6=1,sw=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return sw}var lw,K6;function IPe(){if(K6)return lw;K6=1,lw=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return lw}var cw,Y6;function TPe(){if(Y6)return cw;Y6=1,cw=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return cw}var uw,X6;function Jy(){if(X6)return uw;X6=1,uw=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return uw}var dw,Z6;function RPe(){if(Z6)return dw;Z6=1;var e=Jy();dw=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return dw}var fw,Q6;function _Pe(){if(Q6)return fw;Q6=1;var e=Qy();fw=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,o=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,S){for(var v=0;v/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+o+")").replace(//g,"(?:"+a+")")}var s=i(/\((?:[^()'"@/]|||)*\)/.source,2),c=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),u=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=i(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var o={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:o,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:o,number:i})})(t)}return gw}var mw,tj;function NPe(){if(tj)return mw;tj=1,mw=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return mw}var hw,nj;function kPe(){if(nj)return hw;nj=1,hw=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return hw}var vw,rj;function APe(){if(rj)return vw;rj=1,vw=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return vw}var bw,aj;function MPe(){if(aj)return bw;aj=1,bw=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return bw}var yw,oj;function DPe(){if(oj)return yw;oj=1,yw=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return yw}var xw,ij;function PPe(){if(ij)return xw;ij=1,xw=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return xw}var Sw,sj;function LPe(){if(sj)return Sw;sj=1,Sw=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return Sw}var ww,lj;function jPe(){if(lj)return ww;lj=1,ww=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var o=r[a],i=[];/^\w+$/.test(a)||i.push(/\w+/.exec(a)[0]),a==="diff"&&i.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+o+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return xC}var SC,cj;function lo(){if(cj)return SC;cj=1,SC=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,i,s){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(i,function(u){if(typeof s=="function"&&!s(u))return u;for(var d=c.length,p;a.code.indexOf(p=r(o,d))!==-1;)++d;return c[d]=u,p}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=n.languages[o];var i=0,s=Object.keys(a.tokenStack);function c(u){for(var d=0;d=s.length);d++){var p=u[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var g=s[i],m=a.tokenStack[g],h=typeof p=="string"?p:p.content,b=r(o,g),x=h.indexOf(b);if(x>-1){++i;var S=h.substring(0,x),v=new n.Token(o,n.tokenize(m,a.grammar),"language-"+o,m),y=h.substring(x+b.length),C=[];S&&C.push.apply(C,c([S])),C.push(v),y&&C.push.apply(C,c([y])),typeof p=="string"?u.splice.apply(u,[d,1].concat(C)):p.content=C}}else p.content&&c(p.content)}return u}c(a.tokens)}}})})(t)}return SC}var CC,uj;function FPe(){if(uj)return CC;uj=1;var e=lo();CC=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,o=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"django",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"jinja2",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"jinja2")})}(n)}return CC}var wC,dj;function BPe(){if(dj)return wC;dj=1,wC=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return wC}var EC,fj;function zPe(){if(fj)return EC;fj=1,EC=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return o}),s={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(d,p){return d=d.replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(d,p)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:c},n.languages.dockerfile=n.languages.docker})(t)}return EC}var IC,pj;function HPe(){if(pj)return IC;pj=1,IC=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function o(i,s){return RegExp(i.replace(//g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:o(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:o(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:o(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:o(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return IC}var TC,gj;function UPe(){if(gj)return TC;gj=1,TC=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return TC}var RC,mj;function VPe(){if(mj)return RC;mj=1,RC=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return RC}var _C,hj;function WPe(){if(hj)return _C;hj=1,_C=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return _C}var $C,vj;function GPe(){if(vj)return $C;vj=1;var e=lo();$C=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var o=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return $C}var OC,bj;function qPe(){if(bj)return OC;bj=1,OC=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return OC}var NC,yj;function KPe(){if(yj)return NC;yj=1,NC=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return NC}var kC,xj;function YPe(){if(xj)return kC;xj=1;var e=Zy(),t=lo();kC=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(o){var i=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"erb",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"erb")})}(r)}return kC}var AC,Sj;function XPe(){if(Sj)return AC;Sj=1,AC=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return AC}var MC,Cj;function CX(){if(Cj)return MC;Cj=1,MC=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return MC}var DC,wj;function ZPe(){if(wj)return DC;wj=1;var e=CX(),t=lo();DC=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(o){var i=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"etlua",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"etlua")})}(r)}return DC}var PC,Ej;function QPe(){if(Ej)return PC;Ej=1,PC=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return PC}var LC,Ij;function JPe(){if(Ij)return LC;Ij=1,LC=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},o={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},i=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(i).join("|")+")(?=\\s|$)")},c={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(c).forEach(function(d){o[d].pattern=s(c[d])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];o.combinators.pattern=s(u),n.languages.factor=o})(t)}return LC}var jC,Tj;function eLe(){if(Tj)return jC;Tj=1,jC=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return FC}var BC,_j;function nLe(){if(_j)return BC;_j=1,BC=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return BC}var zC,$j;function rLe(){if($j)return zC;$j=1,zC=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return zC}var HC,Oj;function aLe(){if(Oj)return HC;Oj=1,HC=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return HC}var UC,Nj;function oLe(){if(Nj)return UC;Nj=1;var e=lo();UC=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,o=0;o<2;o++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},r.hooks.add("before-tokenize",function(s){var c=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",c)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return UC}var VC,kj;function iLe(){if(kj)return VC;kj=1,VC=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return VC}var WC,Aj;function sLe(){if(Aj)return WC;Aj=1,WC=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return WC}var GC,Mj;function lLe(){if(Mj)return GC;Mj=1,GC=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return GC}var qC,Dj;function cLe(){if(Dj)return qC;Dj=1,qC=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return qC}var KC,Pj;function uLe(){if(Pj)return KC;Pj=1,KC=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return KC}var YC,Lj;function dLe(){if(Lj)return YC;Lj=1,YC=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return YC}var XC,jj;function fLe(){if(jj)return XC;jj=1;var e=ou();XC=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return XC}var ZC,Fj;function pLe(){if(Fj)return ZC;Fj=1,ZC=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return ZC}var QC,Bj;function gLe(){if(Bj)return QC;Bj=1,QC=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return QC}var JC,zj;function mLe(){if(zj)return JC;zj=1,JC=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return JC}var ew,Hj;function hLe(){if(Hj)return ew;Hj=1,ew=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return ew}var tw,Uj;function vLe(){if(Uj)return tw;Uj=1,tw=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),o=0;function i(S){return a[o+S]}function s(S,v){v=v||0;for(var y=0;y0)){var h=c(/^\{$/,/^\}$/);if(h===-1)continue;for(var b=o;b=0&&u(x,"variable-input")}}}}})}return tw}var nw,Vj;function bLe(){if(Vj)return nw;Vj=1,nw=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return nw}var rw,Wj;function yLe(){if(Wj)return rw;Wj=1;var e=Zy();rw=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",o=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},s=0,c=o.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var o=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return aw}var ow,qj;function $k(){if(qj)return ow;qj=1,ow=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return ow}var iw,Kj;function SLe(){if(Kj)return iw;Kj=1,iw=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return iw}var sw,Yj;function CLe(){if(Yj)return sw;Yj=1,sw=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return sw}var lw,Xj;function wLe(){if(Xj)return lw;Xj=1;var e=ou();lw=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return lw}var cw,Zj;function ELe(){if(Zj)return cw;Zj=1,cw=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return cw}var uw,Qj;function ILe(){if(Qj)return uw;Qj=1,uw=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return uw}var dw,Jj;function TLe(){if(Jj)return dw;Jj=1,dw=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return dw}var fw,eF;function RLe(){if(eF)return fw;eF=1,fw=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,o={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},i={"application/json":!0,"application/xml":!0};function s(p){var g=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var c;for(var u in o)if(o[u]){c=c||{};var d=i[u]?s(u):u;c[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:o[u]}}c&&n.languages.insertBefore("http","header",c)})(t)}return fw}var pw,tF;function _Le(){if(tF)return pw;tF=1,pw=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return pw}var gw,nF;function $Le(){if(nF)return gw;nF=1,gw=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return gw}var mw,rF;function OLe(){if(rF)return mw;rF=1,mw=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,d){return d<=0?/[]/.source:u.replace(//g,function(){return r(u,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,o={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:a,greedy:!0,inside:{escape:o}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),c={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":c,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":c,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:o,string:i},c.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return mw}var hw,aF;function NLe(){if(aF)return hw;aF=1;var e=$k();hw=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return hw}var vw,oF;function kLe(){if(oF)return vw;oF=1,vw=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return vw}var bw,iF;function ALe(){if(iF)return bw;iF=1,bw=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return bw}var yw,sF;function MLe(){if(sF)return yw;sF=1,yw=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return yw}var xw,lF;function DLe(){if(lF)return xw;lF=1,xw=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return xw}var Sw,cF;function PLe(){if(cF)return Sw;cF=1,Sw=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Cw}var ww,dF;function Ok(){if(dF)return ww;dF=1,ww=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return ww}var Ew,fF;function Qy(){if(fF)return Ew;fF=1,Ew=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(i,s){var c="doc-comment",u=n.languages[i];if(u){var d=u[c];if(!d){var p={};p[c]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(i,"comment",p),d=u[c]}if(d instanceof RegExp&&(d=u[c]={pattern:d}),Array.isArray(d))for(var g=0,m=d.length;g)?|/.source.replace(//g,function(){return i});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:o,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:o,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(r)}return Iw}var Tw,gF;function FLe(){if(gF)return Tw;gF=1,Tw=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return Tw}var Rw,mF;function BLe(){if(mF)return Rw;mF=1,Rw=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return Rw}var _w,hF;function zLe(){if(hF)return _w;hF=1,_w=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return _w}var $w,vF;function HLe(){if(vF)return $w;vF=1,$w=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),o={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:o},string:{pattern:a,lookbehind:!0,greedy:!0,inside:o},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};o.interpolation.inside.content.inside=i})(t)}return $w}var Ow,bF;function ULe(){if(bF)return Ow;bF=1,Ow=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,d){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],o=0;o=I.length)return;var $=R[_];if(typeof $=="string"||typeof $.content=="string"){var M=I[y],P=typeof $=="string"?$:$.content,D=P.indexOf(M);if(D!==-1){++y;var O=P.substring(0,D),k=p(C[M]),N=P.substring(D+M.length),A=[];if(O&&A.push(O),A.push(k),N){var L=[N];T(L),A.push.apply(A,L)}typeof $=="string"?(R.splice.apply(R,[_,1].concat(A)),_+=A.length-1):$.content=A}}else{var j=$.content;Array.isArray(j)?T(j):T([j])}}}return T(E),new n.Token(S,E,"language-"+S,b)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in m))return;function x(S){for(var v=0,y=S.length;v]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return kw}var Aw,SF;function WLe(){if(SF)return Aw;SF=1;var e=Qy(),t=Nk();Aw=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.languages.javascript,i=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+i+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:o,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return i})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+i),lookbehind:!0,inside:{string:o.string,number:o.number,boolean:o.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:o,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(r)}return Aw}var Mw,CF;function kk(){if(CF)return Mw;CF=1,Mw=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return Mw}var Dw,wF;function GLe(){if(wF)return Dw;wF=1;var e=kk();Dw=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return Dw}var Pw,EF;function qLe(){if(EF)return Pw;EF=1;var e=kk();Pw=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return Pw}var Lw,IF;function KLe(){if(IF)return Lw;IF=1,Lw=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return Lw}var jw,TF;function wX(){if(TF)return jw;TF=1,jw=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,p){return d=d.replace(//g,function(){return a}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(d,p)}i=s(i).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var c=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(c).join(""):""},u=function(d){for(var p=[],g=0;g0&&p[p.length-1].tagName===c(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:c(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:h=!0),(h||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=c(m);g0&&(typeof d[g-1]=="string"||d[g-1].type==="plain-text")&&(b=c(d[g-1])+b,d.splice(g-1,1),g--),d[g]=new n.Token("plain-text",b,null,b)}m.content&&typeof m.content!="string"&&u(m.content)}};n.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||u(d.tokens)})})(t)}return jw}var Fw,RF;function YLe(){if(RF)return Fw;RF=1,Fw=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return Fw}var Bw,_F;function XLe(){if(_F)return Bw;_F=1,Bw=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return Bw}var zw,$F;function ZLe(){if($F)return zw;$F=1,zw=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return zw}var Hw,OF;function QLe(){if(OF)return Hw;OF=1,Hw=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return Hw}var Uw,NF;function JLe(){if(NF)return Uw;NF=1,Uw=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(o,i){return RegExp(o.replace(//g,r),i)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return Uw}var Vw,kF;function e6e(){if(kF)return Vw;kF=1,Vw=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return Vw}var Ww,AF;function t6e(){if(AF)return Ww;AF=1,Ww=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return Ww}var Gw,MF;function Jy(){if(MF)return Gw;MF=1;var e=lo();Gw=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,o=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,c=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:c};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,number:i,operator:s,punctuation:c}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(p,"php",g)}}),r.hooks.add("after-tokenize",function(p){r.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(n)}return Gw}var qw,DF;function n6e(){if(DF)return qw;DF=1;var e=lo(),t=Jy();qw=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var o=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},o.tag),a.hooks.add("before-tokenize",function(i){if(i.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(i,"latte",s),i.grammar=o}}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"latte")})}(r)}return qw}var Kw,PF;function r6e(){if(PF)return Kw;PF=1,Kw=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return Kw}var Yw,LF;function Ak(){if(LF)return Yw;LF=1,Yw=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var o in a)a[o]=a[o].replace(/<[\w\s]+>/g,function(i){return"(?:"+a[i].trim()+")"});return a[o]}})(t)}return Yw}var Xw,jF;function a6e(){if(jF)return Xw;jF=1;var e=Ak();Xw=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,o=5,i=0;i/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return Xw}var Zw,FF;function o6e(){if(FF)return Zw;FF=1;var e=lo();Zw=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,o=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(i){var s=/^\{%-?\s*(\w+)/.exec(i);if(s){var c=s[1];if(c==="raw"&&!o)return o=!0,!0;if(c==="endraw")return o=!1,!0}return!o})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return Zw}var Qw,BF;function i6e(){if(BF)return Qw;BF=1,Qw=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function a(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var o=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+o,s="(\\()",c="(?=\\))",u="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+o+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+o),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+o),alias:"property"},splice:{pattern:RegExp(",@?"+o),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+o),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(o)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+o+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+o),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+o+"(?:\\s+&?"+o+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+o),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+o+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+o),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(s+d+c),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:g},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(o),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=h,p.defun.inside.arguments=n.util.clone(h),p.defun.inside.arguments.inside.sublist=h,n.languages.lisp=p,n.languages.elisp=p,n.languages.emacs=p,n.languages["emacs-lisp"]=p})(t)}return Qw}var Jw,zF;function s6e(){if(zF)return Jw;zF=1,Jw=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return Jw}var eE,HF;function l6e(){if(HF)return eE;HF=1,eE=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return eE}var tE,UF;function c6e(){if(UF)return tE;UF=1,tE=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return tE}var nE,VF;function u6e(){if(VF)return nE;VF=1,nE=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return nE}var rE,WF;function d6e(){if(WF)return rE;WF=1,rE=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return rE}var aE,GF;function f6e(){if(GF)return aE;GF=1,aE=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return aE}var oE,qF;function p6e(){if(qF)return oE;qF=1,oE=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(g){return g=g.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(n.languages.markdown[g].inside.content.inside[m]=n.languages.markdown[m])})}),n.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function m(h){if(!(!h||typeof h=="string"))for(var b=0,x=h.length;b",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(g){var m=g.replace(c,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,b){if(b=b.toLowerCase(),b[0]==="#"){var x;return b[1]==="x"?x=parseInt(b.slice(2),16):x=Number(b.slice(1)),d(x)}else{var S=u[b];return S||h}}),m}n.languages.md=n.languages.markdown})(t)}return oE}var iE,KF;function g6e(){if(KF)return iE;KF=1,iE=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return iE}var sE,YF;function m6e(){if(YF)return sE;YF=1,sE=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return sE}var lE,XF;function h6e(){if(XF)return lE;XF=1,lE=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return lE}var cE,ZF;function v6e(){if(ZF)return cE;ZF=1,cE=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return cE}var uE,QF;function b6e(){if(QF)return uE;QF=1,uE=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return uE}var dE,JF;function y6e(){if(JF)return dE;JF=1,dE=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(i){return i.replace("$","\\$")});var o="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+o+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return dE}var fE,e8;function x6e(){if(e8)return fE;e8=1,fE=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return fE}var pE,t8;function S6e(){if(t8)return pE;t8=1,pE=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return pE}var gE,n8;function C6e(){if(n8)return gE;n8=1,gE=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return gE}var mE,r8;function w6e(){if(r8)return mE;r8=1,mE=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return mE}var hE,a8;function E6e(){if(a8)return hE;a8=1,hE=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return hE}var vE,o8;function I6e(){if(o8)return vE;o8=1,vE=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var c=s.tokens;c.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var d=i(u);o(d)||(u.type="bad-line",u.content=d)}})});function o(s){for(var c="[]{}",u=[],d=0;d=&|$!]/}}return bE}var yE,s8;function R6e(){if(s8)return yE;s8=1,yE=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return yE}var xE,l8;function _6e(){if(l8)return xE;l8=1,xE=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return xE}var SE,c8;function $6e(){if(c8)return SE;c8=1,SE=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return SE}var CE,u8;function O6e(){if(u8)return CE;u8=1,CE=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return CE}var wE,d8;function N6e(){if(d8)return wE;d8=1,wE=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return wE}var EE,f8;function k6e(){if(f8)return EE;f8=1,EE=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return EE}var IE,p8;function A6e(){if(p8)return IE;p8=1;var e=ou();IE=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return IE}var TE,g8;function M6e(){if(g8)return TE;g8=1,TE=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return TE}var RE,m8;function D6e(){if(m8)return RE;m8=1;var e=ou();RE=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))}(n)}return RE}var _E,h8;function P6e(){if(h8)return _E;h8=1,_E=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return _E}var $E,v8;function L6e(){if(v8)return $E;v8=1,$E=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return $E}var OE,b8;function j6e(){if(b8)return OE;b8=1,OE=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return OE}var NE,y8;function F6e(){if(y8)return NE;y8=1,NE=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return NE}var kE,x8;function B6e(){if(x8)return kE;x8=1,kE=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return kE}var AE,S8;function z6e(){if(S8)return AE;S8=1,AE=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),o=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,c){return s[c]=o[c],s},{});o["class-name"].forEach(function(s){s.inside=i})})(t)}return AE}var ME,C8;function H6e(){if(C8)return ME;C8=1,ME=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return ME}var DE,w8;function U6e(){if(w8)return DE;w8=1,DE=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return DE}var PE,E8;function V6e(){if(E8)return PE;E8=1,PE=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return PE}var LE,I8;function W6e(){if(I8)return LE;I8=1;var e=Jy();LE=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return LE}var jE,T8;function G6e(){if(T8)return jE;T8=1;var e=Jy(),t=Qy();jE=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+o+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+o),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(r)}return jE}var FE,R8;function q6e(){if(R8)return FE;R8=1;var e=Rk();FE=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return FE}var BE,_8;function K6e(){if(_8)return BE;_8=1,BE=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return BE}var zE,$8;function Y6e(){if($8)return zE;$8=1,zE=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return zE}var HE,O8;function X6e(){if(O8)return HE;O8=1,HE=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return HE}var UE,N8;function Z6e(){if(N8)return UE;N8=1,UE=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return UE}var VE,k8;function Q6e(){if(k8)return VE;k8=1,VE=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],o=["offset"],i=r.concat(a,o);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+i.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return VE}var WE,A8;function J6e(){if(A8)return WE;A8=1,WE=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return WE}var GE,M8;function eje(){if(M8)return GE;M8=1,GE=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return GE}var qE,D8;function tje(){if(D8)return qE;D8=1,qE=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return qE}var KE,P8;function nje(){if(P8)return KE;P8=1,KE=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],o={},i=0,s=a.length;i",function(){return c.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[c.language,"language-"+c.language],inside:n.languages[c.language]}}})}n.languages.insertBefore("pug","filter",o)})(t)}return KE}var YE,L8;function rje(){if(L8)return YE;L8=1,YE=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return YE}var XE,j8;function aje(){if(j8)return XE;j8=1,XE=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(o){var i=o;if(typeof o!="string"&&(i=o.alias,o=o.lang),n.languages[i]){var s={};s["inline-lang-"+i]={pattern:RegExp(a.replace("",o.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+i].inside.rest=n.util.clone(n.languages[i]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return XE}var ZE,F8;function oje(){if(F8)return ZE;F8=1,ZE=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return ZE}var QE,B8;function ije(){if(B8)return QE;B8=1;var e=$k();QE=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return QE}var JE,z8;function sje(){if(z8)return JE;z8=1,JE=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return JE}var e2,H8;function lje(){if(H8)return e2;H8=1,e2=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return e2}var t2,U8;function cje(){if(U8)return t2;U8=1,t2=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,o=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),i=0;i<2;i++)o=o.replace(//g,function(){return o});o=o.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return t2}var n2,V8;function uje(){if(V8)return n2;V8=1,n2=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return n2}var r2,W8;function dje(){if(W8)return r2;W8=1,r2=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(h,b){return h.replace(/<<(\d+)>>/g,function(x,S){return"(?:"+b[+S]+")"})}function a(h,b,x){return RegExp(r(h,b),"")}function o(h,b){for(var x=0;x>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var c=RegExp(s(i.type+" "+i.other)),u=/\b[A-Za-z_]\w*\b/.source,d=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:c,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:c,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=o(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[g]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return r2}var a2,G8;function fje(){if(G8)return a2;G8=1,a2=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return a2}var o2,q8;function pje(){if(q8)return o2;q8=1;var e=Ak();o2=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return o2}var i2,K8;function gje(){if(K8)return i2;K8=1,i2=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return i2}var s2,Y8;function mje(){if(Y8)return s2;Y8=1,s2=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",c=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:c,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":i,escape:a}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return l2}var c2,Z8;function vje(){if(Z8)return c2;Z8=1,c2=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return c2}var u2,Q8;function bje(){if(Q8)return u2;Q8=1,u2=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return u2}var d2,J8;function yje(){if(J8)return d2;J8=1,d2=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return d2}var f2,e5;function xje(){if(e5)return f2;e5=1,f2=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return f2}var p2,t5;function Sje(){if(t5)return p2;t5=1,p2=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function o(u,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in d)p[g]=d[g];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},c={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:o("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:o("Variables"),"test-cases":o("Test Cases",{"test-name":s,documentation:i,property:c}),keywords:o("Keywords",{"keyword-name":s,documentation:i,property:c}),tasks:o("Tasks",{"task-name":s,documentation:i,property:c}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return p2}var g2,n5;function Cje(){if(n5)return g2;n5=1,g2=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return g2}var m2,r5;function wje(){if(r5)return m2;r5=1,m2=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,o={pattern:RegExp(r+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},c={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(r),greedy:!0},p=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":o,punctuation:p,string:d},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},x={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},S={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:g,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:a,"numeric-constant":o,punctuation:p,string:d}},C={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":x,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:C,"submit-statement":S,"global-statements":x,number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:C,"submit-statement":S,"global-statements":x,number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:c,keyword:C,function:g,format:h,altformat:b,"global-statements":x,number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:m},"macro-keyword":s,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":o}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":y,comment:u,function:g,format:h,altformat:b,"numeric-constant":o,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:d,step:c,keyword:C,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return m2}var h2,a5;function Eje(){if(a5)return h2;a5=1,h2=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return h2}var v2,o5;function Ije(){if(o5)return v2;o5=1;var e=Ok();v2=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return v2}var b2,i5;function Tje(){if(i5)return b2;i5=1,b2=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return b2}var y2,s5;function Rje(){if(s5)return y2;s5=1;var e=xX();y2=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return y2}var x2,l5;function _je(){if(l5)return x2;l5=1,x2=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return x2}var S2,c5;function $je(){if(c5)return S2;c5=1,S2=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return S2}var C2,u5;function Oje(){if(u5)return C2;u5=1;var e=lo();C2=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,o=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(i){var s="{literal}",c="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(i,"smarty",o,function(d){return d===c&&(u=!1),u?!1:(d===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(n)}return C2}var w2,d5;function Nje(){if(d5)return w2;d5=1,w2=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return w2}var E2,f5;function kje(){if(f5)return E2;f5=1,E2=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return E2}var I2,p5;function Aje(){if(p5)return I2;p5=1,I2=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return I2}var T2,g5;function Mje(){if(g5)return T2;g5=1;var e=lo();T2=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,o=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:o,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:o,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(i){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,c="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(i,"soy",s,function(p){return p===u&&(d=!1),d?!1:(p===c&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(n)}return T2}var R2,m5;function EX(){if(m5)return R2;m5=1,R2=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return R2}var _2,h5;function Dje(){if(h5)return _2;h5=1;var e=EX();_2=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return _2}var $2,v5;function Pje(){if(v5)return $2;v5=1,$2=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return $2}var O2,b5;function Lje(){if(b5)return O2;b5=1,O2=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return O2}var N2,y5;function jje(){if(y5)return N2;y5=1,N2=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return N2}var k2,x5;function Fje(){if(x5)return k2;x5=1,k2=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return k2}var A2,S5;function Bje(){if(S5)return A2;S5=1,A2=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},o={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};o.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:o}},o.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:o}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:o}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:o}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:o}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:o.interpolation}},rest:o}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:o.interpolation,comment:o.comment,punctuation:/[{},]/}},func:o.func,string:o.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:o.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return A2}var M2,C5;function zje(){if(C5)return M2;C5=1,M2=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return M2}var D2,w5;function Hje(){if(w5)return D2;w5=1,D2=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return D2}var P2,E5;function Mk(){if(E5)return P2;E5=1,P2=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(o,i,s){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:s}}}}function a(o){var i=n.languages[o],s="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",i,s),"class-feature":r("\\+",i,s),standard:r("",i,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return P2}var L2,I5;function Uje(){if(I5)return L2;I5=1;var e=Mk(),t=Xy();L2=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return L2}var j2,T5;function IX(){if(T5)return j2;T5=1;var e=SX();j2=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return j2}var F2,R5;function Vje(){if(R5)return F2;R5=1;var e=Mk(),t=IX();F2=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return F2}var B2,_5;function TX(){if(_5)return B2;_5=1,B2=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(u,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return u});return RegExp(p,d)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(s),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return B2}var z2,$5;function Wje(){if($5)return z2;$5=1;var e=TX();z2=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return z2}var H2,O5;function Gje(){if(O5)return H2;O5=1,H2=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return H2}var U2,N5;function qje(){if(N5)return U2;N5=1,U2=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function o(g,m){return RegExp(g.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),m||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:o(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:o(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:o(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:o(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:o(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:o(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:o(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:o(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:o(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:o(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:o(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:o(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:o(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:o(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:o(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:o(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:o(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:o(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:o(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:o(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:o(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),c=s.phrase.inside,u={inline:c.inline,link:c.link,image:c.image,footnote:c.footnote,acronym:c.acronym,mark:c.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=c.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var p=c.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return U2}var V2,k5;function Kje(){if(k5)return V2;k5=1,V2=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(o){return o.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return V2}var W2,A5;function Yje(){if(A5)return W2;A5=1,W2=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return W2}var G2,M5;function Xje(){if(M5)return G2;M5=1;var e=wX(),t=Nk();G2=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",o),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var i=a.languages.tsx.tag;i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0}(r)}return G2}var q2,D5;function Zje(){if(D5)return q2;D5=1;var e=lo();q2=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var o=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return q2}var K2,P5;function Qje(){if(P5)return K2;P5=1;var e=lo();K2=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return K2}var Y2,L5;function Jje(){if(L5)return Y2;L5=1,Y2=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return Y2}var X2,j5;function eFe(){if(j5)return X2;j5=1,X2=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return X2}var Z2,F5;function tFe(){if(F5)return Z2;F5=1,Z2=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return Z2}var Q2,B5;function nFe(){if(B5)return Q2;B5=1,Q2=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return Q2}var J2,z5;function rFe(){if(z5)return J2;z5=1,J2=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return J2}var eI,H5;function aFe(){if(H5)return eI;H5=1,eI=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return eI}var tI,U5;function oFe(){if(U5)return tI;U5=1,tI=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return tI}var nI,V5;function iFe(){if(V5)return nI;V5=1,nI=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return nI}var rI,W5;function sFe(){if(W5)return rI;W5=1,rI=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return rI}var aI,G5;function lFe(){if(G5)return aI;G5=1,aI=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return aI}var oI,q5;function cFe(){if(q5)return oI;q5=1,oI=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return oI}var iI,K5;function uFe(){if(K5)return iI;K5=1,iI=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return iI}var sI,Y5;function dFe(){if(Y5)return sI;Y5=1,sI=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return sI}var lI,X5;function fFe(){if(X5)return lI;X5=1,lI=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,o={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:o}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in n.languages["web-idl"])i!=="class-name"&&(o[i]=n.languages["web-idl"][i]);n.languages.webidl=n.languages["web-idl"]})(t)}return lI}var cI,Z5;function pFe(){if(Z5)return cI;Z5=1,cI=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return cI}var uI,Q5;function gFe(){if(Q5)return uI;Q5=1,uI=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return uI}var dI,J5;function mFe(){if(J5)return dI;J5=1,dI=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return dI}var fI,eB;function hFe(){if(eB)return fI;eB=1,fI=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return fI}var pI,tB;function vFe(){if(tB)return pI;tB=1,pI=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,c){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":c})}var a=n.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",o),r("fsharp",o),r("vbnet",i)})(t)}return pI}var gI,nB;function bFe(){if(nB)return gI;nB=1,gI=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return gI}var mI,rB;function yFe(){if(rB)return mI;rB=1,mI=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(o){return typeof o=="string"?o:typeof o.content=="string"?o.content:o.content.map(r).join("")},a=function(o){for(var i=[],s=0;s0&&i[i.length-1].tagName===r(c.content[0].content[1])&&i.pop():c.content[c.content.length-1].content==="/>"||i.push({tagName:r(c.content[0].content[1]),openedBraces:0}):i.length>0&&c.type==="punctuation"&&c.content==="{"&&(!o[s+1]||o[s+1].type!=="punctuation"||o[s+1].content!=="{")&&(!o[s-1]||o[s-1].type!=="plain-text"||o[s-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?i[i.length-1].openedBraces--:c.type!=="comment"&&(u=!0)),(u||typeof c=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var d=r(c);s0&&(typeof o[s-1]=="string"||o[s-1].type==="plain-text")&&(d=r(o[s-1])+d,o.splice(s-1,1),s--),/^\s+$/.test(d)?o[s]=d:o[s]=new n.Token("plain-text",d,null,d)}c.content&&typeof c.content!="string"&&a(c.content)}};n.hooks.add("after-tokenize",function(o){o.language==="xquery"&&a(o.tokens)})})(t)}return mI}var hI,aB;function xFe(){if(aB)return hI;aB=1,hI=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return hI}var vI,oB;function SFe(){if(oB)return vI;oB=1,vI=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,o="\\b(?!"+a.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(i)),c=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(o)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+c+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return vI}var ve=$De,CFe=ve;ve.register(BDe());ve.register(zDe());ve.register(HDe());ve.register(UDe());ve.register(VDe());ve.register(WDe());ve.register(GDe());ve.register(qDe());ve.register(KDe());ve.register(YDe());ve.register(XDe());ve.register(ZDe());ve.register(QDe());ve.register(JDe());ve.register(ePe());ve.register(tPe());ve.register(nPe());ve.register(rPe());ve.register(aPe());ve.register(oPe());ve.register(iPe());ve.register(sPe());ve.register(xX());ve.register(SX());ve.register(lPe());ve.register(cPe());ve.register(uPe());ve.register(dPe());ve.register(fPe());ve.register(pPe());ve.register(gPe());ve.register(mPe());ve.register(hPe());ve.register(vPe());ve.register(ou());ve.register(bPe());ve.register(yPe());ve.register(xPe());ve.register(SPe());ve.register(CPe());ve.register(wPe());ve.register(EPe());ve.register(IPe());ve.register(TPe());ve.register(_k());ve.register(RPe());ve.register(Xy());ve.register(_Pe());ve.register($Pe());ve.register(OPe());ve.register(NPe());ve.register(kPe());ve.register(APe());ve.register(MPe());ve.register(DPe());ve.register(PPe());ve.register(LPe());ve.register(jPe());ve.register(FPe());ve.register(BPe());ve.register(zPe());ve.register(HPe());ve.register(UPe());ve.register(VPe());ve.register(WPe());ve.register(GPe());ve.register(qPe());ve.register(KPe());ve.register(YPe());ve.register(XPe());ve.register(ZPe());ve.register(QPe());ve.register(JPe());ve.register(eLe());ve.register(tLe());ve.register(nLe());ve.register(rLe());ve.register(aLe());ve.register(oLe());ve.register(iLe());ve.register(sLe());ve.register(lLe());ve.register(cLe());ve.register(uLe());ve.register(dLe());ve.register(fLe());ve.register(pLe());ve.register(gLe());ve.register(mLe());ve.register(hLe());ve.register(vLe());ve.register(bLe());ve.register(yLe());ve.register(xLe());ve.register($k());ve.register(SLe());ve.register(CLe());ve.register(wLe());ve.register(ELe());ve.register(ILe());ve.register(TLe());ve.register(RLe());ve.register(_Le());ve.register($Le());ve.register(OLe());ve.register(NLe());ve.register(kLe());ve.register(ALe());ve.register(MLe());ve.register(DLe());ve.register(PLe());ve.register(LLe());ve.register(Ok());ve.register(jLe());ve.register(Qy());ve.register(FLe());ve.register(BLe());ve.register(zLe());ve.register(HLe());ve.register(ULe());ve.register(VLe());ve.register(WLe());ve.register(kk());ve.register(GLe());ve.register(qLe());ve.register(KLe());ve.register(wX());ve.register(YLe());ve.register(XLe());ve.register(ZLe());ve.register(QLe());ve.register(JLe());ve.register(e6e());ve.register(t6e());ve.register(n6e());ve.register(r6e());ve.register(a6e());ve.register(o6e());ve.register(i6e());ve.register(s6e());ve.register(l6e());ve.register(c6e());ve.register(u6e());ve.register(CX());ve.register(d6e());ve.register(f6e());ve.register(p6e());ve.register(lo());ve.register(g6e());ve.register(m6e());ve.register(h6e());ve.register(v6e());ve.register(b6e());ve.register(y6e());ve.register(x6e());ve.register(S6e());ve.register(C6e());ve.register(w6e());ve.register(E6e());ve.register(I6e());ve.register(T6e());ve.register(R6e());ve.register(_6e());ve.register($6e());ve.register(O6e());ve.register(N6e());ve.register(k6e());ve.register(A6e());ve.register(M6e());ve.register(D6e());ve.register(P6e());ve.register(L6e());ve.register(j6e());ve.register(F6e());ve.register(B6e());ve.register(z6e());ve.register(H6e());ve.register(U6e());ve.register(V6e());ve.register(W6e());ve.register(Jy());ve.register(G6e());ve.register(q6e());ve.register(K6e());ve.register(Y6e());ve.register(X6e());ve.register(Z6e());ve.register(Q6e());ve.register(J6e());ve.register(eje());ve.register(tje());ve.register(nje());ve.register(rje());ve.register(aje());ve.register(oje());ve.register(ije());ve.register(sje());ve.register(lje());ve.register(cje());ve.register(uje());ve.register(dje());ve.register(fje());ve.register(pje());ve.register(gje());ve.register(mje());ve.register(hje());ve.register(vje());ve.register(bje());ve.register(yje());ve.register(xje());ve.register(Sje());ve.register(Zy());ve.register(Cje());ve.register(wje());ve.register(Eje());ve.register(Ije());ve.register(Ak());ve.register(Tje());ve.register(Rje());ve.register(_je());ve.register($je());ve.register(Oje());ve.register(Nje());ve.register(kje());ve.register(Aje());ve.register(Mje());ve.register(Dje());ve.register(Pje());ve.register(Lje());ve.register(Rk());ve.register(jje());ve.register(Fje());ve.register(Bje());ve.register(zje());ve.register(Hje());ve.register(Uje());ve.register(Mk());ve.register(Vje());ve.register(Wje());ve.register(Gje());ve.register(qje());ve.register(Kje());ve.register(Yje());ve.register(Xje());ve.register(Zje());ve.register(EX());ve.register(Qje());ve.register(Nk());ve.register(Jje());ve.register(eFe());ve.register(tFe());ve.register(nFe());ve.register(rFe());ve.register(aFe());ve.register(IX());ve.register(oFe());ve.register(iFe());ve.register(sFe());ve.register(lFe());ve.register(cFe());ve.register(uFe());ve.register(dFe());ve.register(fFe());ve.register(pFe());ve.register(gFe());ve.register(mFe());ve.register(hFe());ve.register(vFe());ve.register(bFe());ve.register(yFe());ve.register(TX());ve.register(xFe());ve.register(SFe());const wFe=Wa(CFe);var Dk=v3e(wFe,FDe);Dk.supportedLanguages=x3e;const RX={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},_X={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},{useToken:EFe}=kr,gn=({language:e,code:t,showLineNumbers:n=!0})=>{const{t:r}=Nt(),{token:a}=EFe(),[o,i]=l.useState(""),[s,c]=l.useState(!1),u=l.useRef(null);l.useEffect(()=>{c(window.isSecureContext)},[]);const d=()=>{navigator.clipboard.writeText(t).then(()=>{i(r("utils.copied")),setTimeout(()=>i(""),2e3)})},p=()=>{if(u.current){u.current.select();try{document.execCommand("copy"),i(r("utils.copied")),setTimeout(()=>i(""),2e3)}catch{i(r("utils.failedToCopied"))}}};return f.jsxs("div",{style:{position:"relative"},children:[f.jsx(Dk,{language:e,style:Ss()==="dark"?RX:_X,customStyle:{padding:"0.5rem",borderRadius:"8px",margin:"0.5rem 0",border:"1px solid",borderColor:a.colorBorderSecondary},showLineNumbers:n,lineNumberStyle:{minWidth:"2rem",textAlign:"right",paddingRight:"1rem"},wrapLines:!0,lineProps:{style:{whiteSpace:"pre-wrap"}},children:t}),!s&&f.jsx("textarea",{ref:u,value:t,readOnly:!0,style:{position:"absolute",left:"-9999px",opacity:0}}),o?null:f.jsx(Wt,{title:r("utils.copyToClipboard"),children:f.jsx("button",{onClick:s?d:p,style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",cursor:"pointer"},children:f.jsx(Dy,{style:{color:a.colorText}})})}),o&&f.jsxs("span",{style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",color:a.colorSuccess,fontSize:"small"},children:[f.jsx(df,{})," ",o]})]})};new Dn($n());const $X=({open:e,onClose:t,setValue:n,props:r,tonieCardProps:a,audioId:o,hash:i})=>{const{t:s}=Nt();Qn();const[c]=Kt.useForm();l.useEffect(()=>{e&&g(),e&&a&&c.setFieldsValue({series:a.tonieInfo.series,episodes:a.tonieInfo.episode,model:a.tonieInfo.model,language:a.tonieInfo.language,pic:a.tonieInfo.picture,tracks:a.tonieInfo.tracks})},[e,a,c]);const u=async C=>{if(C.tracks&&(C.tracks=C.tracks.filter(w=>w.track&&w.track.trim()).map(w=>w.track)),C.audio_id){C.audio_id=C.audio_id.filter(I=>I.audio_id&&I.audio_id.trim()&&I.hash&&I.hash.trim());const w=C.audio_id.map(I=>I.audio_id),E=C.audio_id.map(I=>I.hash);C={no:C.no,model:C.model,audio_id:w,hash:E,title:C.title,series:C.series,episodes:C.episodes,tracks:C.tracks,release:C.release,language:C.language,category:C.category,pic:C.pic}}h(C),x(!0)},d=()=>{c.submit()},p=()=>{g(),t()},g=()=>{c.resetFields(),c.setFieldsValue({audio_id:[{audio_id:o||"",hash:i||""}],tracks:[{track:""}]})},[m,h]=l.useState(""),[b,x]=l.useState(!1),S=f.jsx(nt,{type:"primary",onClick:()=>v(),children:s("tonies.informationModal.ok")}),v=()=>{x(!1),p()},y=f.jsx(Rn,{footer:S,width:1e3,title:"File (you can copy the content to the tonies.custom.json)",open:b,onCancel:v,children:m?f.jsxs(f.Fragment,{children:[f.jsx(gn,{language:"json",code:JSON.stringify(m,null,2)},"json-readable"),f.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),f.jsx(gn,{language:"json",showLineNumbers:!1,code:JSON.stringify(m,null,0)},"json-minimized")]}):"Loading..."});return f.jsxs(f.Fragment,{children:[f.jsxs(Rn,{title:s("tonies.addNewCustomTonieModal.title"),open:e,onCancel:p,onOk:d,okText:s("tonies.addNewCustomTonieModal.save"),width:Math.max(Math.min(window.innerWidth*.75,800),500),children:[f.jsx(Cn,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json fragment is displayed when saving the new model. This is not automatically inserted into the tonies.custom.json. You have to copy this into the file yourself.",style:{marginBottom:8}}),f.jsx(Kt,{form:c,layout:"vertical",onFinish:u,children:f.jsxs(Oa,{gutter:[16,0],children:[f.jsx(Nn,{span:24,children:f.jsxs(Oa,{gutter:[16,0],children:[f.jsx(Nn,{span:8,children:f.jsx(Kt.Item,{label:[s("tonies.addNewCustomTonieModal.series"),f.jsx(Wt,{title:s("tonies.addNewCustomTonieModal.seriesHint"),children:f.jsx(pl,{style:{marginLeft:2}})},"series-tooltip")],name:"series",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.seriesRequired")}],children:f.jsx(Jt,{style:{width:"100%"}})},"series")}),f.jsx(Nn,{span:10,children:f.jsx(Kt.Item,{label:[s("tonies.addNewCustomTonieModal.episode"),f.jsx(Wt,{title:s("tonies.addNewCustomTonieModal.episodeHint"),children:f.jsx(pl,{style:{marginLeft:2}})},"episodes-tooltip")],name:"episodes",children:f.jsx(Jt,{style:{width:"100%"}})},"episodes")}),f.jsx(Nn,{span:6,children:f.jsx(Kt.Item,{label:[s("tonies.addNewCustomTonieModal.language"),f.jsx(Wt,{title:s("tonies.addNewCustomTonieModal.languageHint"),children:f.jsx(pl,{style:{marginLeft:2}})},"language-tooltip")],name:"language",children:f.jsx(Jt,{style:{width:"100%"}})},"language")})]})}),f.jsx(Nn,{span:24,children:f.jsxs(Oa,{gutter:[16,0],children:[f.jsx(Nn,{span:8,children:f.jsx(Kt.Item,{label:s("tonies.addNewCustomTonieModal.model"),name:"model",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.modelRequired")}],children:f.jsx(Jt,{style:{width:"100%"}})},"model")}),f.jsx(Nn,{span:16,children:f.jsx(Kt.Item,{label:s("tonies.addNewCustomTonieModal.pic"),name:"pic",children:f.jsx(Jt,{style:{width:"100%"}})},"pic")})]})}),f.jsx(Nn,{span:24,children:f.jsxs(Oa,{gutter:[16,0],children:[f.jsx(Nn,{span:8,children:f.jsx(Kt.Item,{label:s("tonies.addNewCustomTonieModal.no"),name:"no",children:f.jsx(Jt,{style:{width:"100%"}})},"no")}),f.jsx(Nn,{span:16,children:f.jsx(Kt.Item,{label:[s("tonies.addNewCustomTonieModal.formfieldTitle"),f.jsx(Wt,{title:s("tonies.addNewCustomTonieModal.formfieldTitleHint"),children:f.jsx(pl,{style:{marginLeft:2}})},"title-tooltip")],name:"title",children:f.jsx(Jt,{style:{width:"100%"}})},"title")})]})}),f.jsx(Nn,{span:24,children:f.jsxs(Oa,{gutter:[16,0],children:[f.jsx(Nn,{span:8,children:f.jsx(Kt.Item,{label:s("tonies.addNewCustomTonieModal.release"),name:"release",children:f.jsx(Jt,{style:{width:"100%"}})},"release")}),f.jsx(Nn,{span:16,children:f.jsx(Kt.Item,{label:s("tonies.addNewCustomTonieModal.category"),name:"category",children:f.jsx(Jt,{style:{width:"100%"}})},"category")})]})}),f.jsx(Nn,{span:24,children:f.jsx(Oa,{gutter:[16,0],children:f.jsx(Nn,{span:24,children:f.jsx(Kt.List,{name:"audio_id",children:(C,{add:w,remove:E})=>f.jsxs(f.Fragment,{children:[C.map(({key:I,name:T,...R},_)=>f.jsxs(Oa,{gutter:[16,0],children:[f.jsx(Nn,{span:8,children:l.createElement(Kt.Item,{...R,key:`audio-id-${I}`,name:[T,"audio_id"],label:f.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.audioId"):""},`audio-id-label-${I}`)},f.jsx(Jt,{style:{width:"100%"}}))}),f.jsx(Nn,{span:16,children:l.createElement(Kt.Item,{...R,key:`hash-${I}`,name:[T,"hash"],label:f.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.hash"):""},`hash-label-${I}`)},f.jsx(Jt,{style:{width:"100%"},addonAfter:f.jsx(nt,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`audio-id-hash-remove-${I}`)}))})]},`audio-id-hash-row-${I}`)),f.jsx(Kt.Item,{children:f.jsx(nt,{type:"dashed",onClick:()=>w(),block:!0,children:s("tonies.addNewCustomTonieModal.addAudioIdHash")})},"add-audio-id-hash")]})},"audio-id-hash-list")})})}),f.jsx(Nn,{span:24,children:f.jsx(Kt.List,{name:"tracks",children:(C,{add:w,remove:E})=>f.jsxs(f.Fragment,{children:[C.map(({key:I,name:T,...R},_)=>f.jsx(Oa,{gutter:[16,0],children:f.jsx(Nn,{span:24,children:l.createElement(Kt.Item,{...R,key:`track-${I}`,name:[T,"track"],label:f.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.track"):""},`track-label-${I}`)},f.jsx(Jt,{style:{width:"100%"},addonAfter:f.jsx(nt,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`track-remove-${I}`)},"input-track-"+I))})},`track-row-${I}`)),f.jsx(Kt.Item,{children:f.jsx(nt,{type:"dashed",onClick:()=>w(),block:!0,children:s("tonies.addNewCustomTonieModal.addTrack")})},"add-track")]})},"track-list")})]})})]}),y]})},iu=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),[a,o]=l.useState(!1),[i,s]=l.useState(""),c=dr.language;l.useEffect(()=>{r(e("tonies.tonies.navigationTitle"))},[c]);const u=()=>{o(!0),s("")},d=[{key:"tonies",label:f.jsx(ot,{to:"/tonies",onClick:()=>{t(!1),n(!1)},children:e("tonies.tonies.navigationTitle")}),icon:de.createElement(KIe),title:e("tonies.tonies.navigationTitle")},{key:"custom-json",label:f.jsx("label",{style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor",cursor:"pointer"},children:e("tonies.addToniesCustomJsonEntry")}),onClick:()=>{u(),t(!1),n(!1)},icon:de.createElement(WIe),title:e("tonies.addToniesCustomJsonEntry")},{key:"encoder",label:f.jsx(ot,{to:"/tonies/encoder",onClick:()=>{t(!1),n(!1)},children:e("tonies.encoder.navigationTitle")}),icon:de.createElement(eEe),title:e("tonies.encoder.navigationTitle")},{key:"tap",label:f.jsx(ot,{to:"/tonies/tap",style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor"},onClick:()=>{t(!1),n(!1)},children:e("tonies.tap.navigationTitle")}),icon:de.createElement(BIe),title:e("tonies.tap.navigationTitle")},{key:"library",label:f.jsx(ot,{to:"/tonies/library",onClick:()=>{t(!1),n(!1)},children:e("tonies.library.navigationTitle")}),icon:de.createElement(Twe),title:e("tonies.library.navigationTitle")},{key:"content",label:f.jsx(ot,{to:"/tonies/content",onClick:()=>{t(!1),n(!1)},children:e("tonies.content.navigationTitle")}),icon:de.createElement(yK),title:e("tonies.content.navigationTitle")},{key:"system-sounds",label:f.jsx(ot,{to:"/tonies/system-sounds",onClick:()=>{t(!1),n(!1)},children:e("tonies.system-sounds.navigationTitle")}),icon:de.createElement(zN),title:e("tonies.system-sounds.navigationTitle")}];return f.jsxs(f.Fragment,{children:[f.jsx(Dm,{mode:"inline",selectedKeys:[i],defaultOpenKeys:["sub"],items:d}),a&&f.jsx($X,{open:a,onClose:()=>o(!1)})]})},IFe=()=>f.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"12.000000pt",height:"12.000000pt",viewBox:"0 0 900.000000 900.000000",preserveAspectRatio:"xMidYMid meet",children:f.jsxs("g",{transform:"translate(0.000000,900.000000) scale(0.100000,-0.100000)",fill:"currentColor",stroke:"none",children:[f.jsx("path",{d:"M5895 8380 c-4 -6 -21 -16 -38 -24 -60 -25 -301 -236 -416 -363 -42 -46 -101 -103 -131 -127 -30 -24 -116 -104 -190 -177 -75 -74 -167 -163 -205 -199 -39 -36 -132 -124 -208 -195 -186 -175 -194 -179 -368 -195 -138 -13 -274 -10 -303 7 -45 25 -385 357 -446 434 -65 84 -279 313 -345 369 -17 14 -58 40 -91 58 -59 31 -67 32 -177 32 -87 0 -117 -3 -127 -14 -6 -8 -23 -16 -37 -18 -28 -3 -61 -47 -62 -83 -1 -12 -5 -25 -10 -30 -5 -6 -28 -64 -50 -130 -51 -151 -94 -274 -121 -345 -12 -30 -32 -86 -45 -125 -13 -38 -38 -108 -54 -154 -17 -46 -31 -85 -31 -87 0 -2 -181 -4 -402 -4 -362 0 -410 -2 -473 -19 -93 -25 -147 -55 -209 -117 -62 -62 -92 -116 -117 -209 -18 -68 -19 -160 -19 -2724 0 -2915 -4 -2713 58 -2836 31 -62 127 -155 189 -185 109 -52 -33 -49 2843 -49 2835 0 2752 -2 2840 44 111 57 194 152 230 266 20 61 20 110 20 2759 0 2673 0 2697 -20 2755 -50 147 -153 247 -300 294 -33 10 -131 15 -370 20 l-325 6 -2 50 c-9 210 -37 703 -49 855 -8 102 -14 239 -14 306 0 171 9 164 -233 164 -115 0 -188 -4 -192 -10z m-1 -652 c3 -13 6 -68 6 -123 0 -55 7 -174 15 -265 8 -91 15 -202 15 -247 l0 -83 -420 0 c-356 0 -420 2 -420 14 0 8 4 16 9 18 5 2 34 26 63 53 29 28 118 111 198 185 147 137 229 213 402 378 53 51 103 92 111 92 8 0 17 -10 21 -22z m-2697 -470 c65 -61 146 -138 181 -171 34 -32 62 -63 62 -68 0 -5 -107 -9 -255 -9 -169 0 -255 3 -255 10 0 10 30 104 49 152 18 47 40 104 56 151 9 26 23 47 31 47 7 0 66 -50 131 -112z m3746 -698 c16 0 17 -130 15 -2622 l-3 -2623 -2642 -3 -2643 -2 -2 2617 c-2 1850 0 2620 8 2627 7 8 777 10 2630 9 1440 -2 2627 -3 2637 -3z"}),f.jsx("path",{d:"M5735 6087 c-54 -22 -72 -36 -104 -83 -27 -41 -31 -57 -31 -111 0 -129 77 -205 206 -205 90 0 154 42 188 126 66 160 -100 335 -259 273z"}),f.jsx("path",{d:"M2842 5359 c-52 -16 -118 -90 -132 -148 -36 -150 102 -286 252 -250 61 14 129 75 148 134 29 86 -9 195 -83 242 -45 29 -131 39 -185 22z"}),f.jsx("path",{d:"M5035 5362 c-90 -32 -145 -106 -145 -197 0 -96 68 -183 161 -205 39 -10 57 -9 101 4 63 19 75 28 116 85 28 39 32 52 32 110 0 120 -72 199 -186 206 -32 2 -68 1 -79 -3z"}),f.jsx("path",{d:"M5730 5359 c-85 -36 -130 -105 -130 -202 0 -56 4 -70 32 -108 40 -56 52 -65 112 -85 43 -15 57 -15 100 -4 235 59 212 392 -28 406 -33 2 -72 -1 -86 -7z"}),f.jsx("path",{d:"M2818 4620 c-48 -26 -93 -82 -108 -135 -29 -103 38 -216 147 -250 54 -17 58 -17 112 0 36 12 69 33 93 57 92 94 68 260 -47 325 -52 29 -144 31 -197 3z"}),f.jsx("path",{d:"M3506 4609 c-150 -100 -116 -315 59 -375 54 -18 56 -18 109 0 89 30 156 116 156 199 0 73 -68 172 -137 198 -13 5 -50 9 -82 9 -48 0 -66 -5 -105 -31z"}),f.jsx("path",{d:"M4258 4610 c-152 -101 -119 -316 57 -376 54 -18 56 -18 109 0 89 31 156 116 156 200 0 73 -66 170 -133 195 -16 6 -54 11 -86 11 -47 0 -66 -5 -103 -30z"}),f.jsx("path",{d:"M4984 4607 c-149 -103 -115 -318 60 -373 55 -17 59 -17 111 0 52 18 92 51 128 106 22 33 23 140 1 183 -40 78 -103 117 -193 117 -50 0 -66 -5 -107 -33z"}),f.jsx("path",{d:"M5715 4623 c-79 -41 -115 -103 -115 -195 0 -42 6 -72 17 -88 36 -55 76 -88 129 -106 53 -18 55 -18 109 1 121 41 182 154 143 266 -15 46 -42 79 -90 112 -34 22 -52 27 -102 27 -36 -1 -74 -7 -91 -17z"}),f.jsx("path",{d:"M2841 3901 c-60 -24 -107 -74 -127 -134 -15 -44 -15 -57 -4 -101 41 -161 208 -217 339 -114 48 37 65 78 66 155 0 63 -3 76 -30 115 -34 49 -120 98 -169 97 -17 0 -51 -8 -75 -18z"}),f.jsx("path",{d:"M3532 3894 c-162 -80 -161 -292 0 -375 46 -24 127 -25 171 -3 73 37 127 119 127 193 -1 77 -59 158 -138 192 -59 26 -98 24 -160 -7z"}),f.jsx("path",{d:"M4279 3892 c-99 -51 -148 -176 -103 -265 86 -170 309 -169 385 2 35 80 19 159 -47 225 -36 35 -105 66 -149 66 -18 0 -57 -13 -86 -28z"}),f.jsx("path",{d:"M5015 3896 c-60 -28 -94 -63 -112 -114 -28 -81 -10 -163 48 -220 104 -102 265 -77 330 50 22 42 26 146 8 181 -34 65 -128 127 -193 127 -17 0 -53 -11 -81 -24z"}),f.jsx("path",{d:"M5727 3901 c-45 -21 -93 -65 -113 -103 -21 -40 -18 -141 5 -186 37 -72 102 -112 181 -112 151 0 251 153 191 292 -23 52 -52 80 -111 107 -54 25 -102 25 -153 2z"}),f.jsx("path",{d:"M2855 3201 c-70 -17 -128 -80 -146 -159 -25 -105 47 -216 156 -242 49 -12 62 -11 110 4 148 46 194 226 86 337 -60 62 -122 80 -206 60z"}),f.jsx("path",{d:"M3546 3196 c-181 -67 -179 -326 3 -391 69 -24 127 -15 194 29 44 29 87 112 87 166 -1 59 -43 136 -95 172 -50 34 -132 45 -189 24z"}),f.jsx("path",{d:"M4296 3196 c-145 -54 -180 -230 -69 -348 27 -29 99 -58 142 -58 71 1 142 46 182 114 38 67 38 123 1 191 -51 93 -161 136 -256 101z"}),f.jsx("path",{d:"M5038 3203 c-36 -6 -115 -77 -133 -120 -45 -107 14 -239 124 -278 52 -18 84 -19 131 -2 49 17 72 35 108 86 28 39 32 52 32 110 0 80 -26 132 -85 173 -41 28 -117 42 -177 31z"}),f.jsx("path",{d:"M5737 3200 c-44 -14 -95 -58 -117 -100 -31 -61 -28 -153 8 -207 36 -55 69 -80 126 -95 129 -34 261 76 253 212 -4 71 -21 104 -78 152 -38 32 -54 39 -105 43 -32 2 -72 0 -87 -5z"}),f.jsx("path",{d:"M3535 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),f.jsx("path",{d:"M4285 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),f.jsx("path",{d:"M5012 2463 c-69 -38 -104 -83 -123 -162 -10 -46 20 -134 61 -176 32 -33 107 -65 151 -65 61 0 156 64 188 127 6 12 11 49 11 83 0 94 -42 161 -122 195 -50 20 -126 19 -166 -2z"})]})}),ns=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),a=oi(),[o,i]=l.useState([]),s=dr.language;l.useEffect(()=>{r(e("tonieboxes.navigationTitle"))},[o,s]);const c=g=>{const m=[];g.includes("/tonieboxes/boxsetup")&&(m.push("boxsetup"),g.includes("/tonieboxes/boxsetup/esp32")?m.push("esp32"):g.includes("/tonieboxes/boxsetup/cc3200")?m.push("cc3200"):g.includes("/tonieboxes/boxsetup/cc3235")&&m.push("cc3235")),i(h=>Array.from(new Set([...h,...m])))};l.useEffect(()=>{c(a.pathname)},[a.pathname]);const u=g=>{const m=g.find(b=>!o.includes(b)),h=o.find(b=>!g.includes(b));m?i(b=>[...b,m]):h&&i(b=>b.filter(x=>x!==h))},d=({isOpen:g})=>g??!1?f.jsx(mK,{style:{margin:"16px 0 16px 16px"}}):f.jsx(Rm,{style:{margin:"16px 0 16px 16px"}}),p=[{key:"tonieboxes",label:f.jsx(ot,{to:"/tonieboxes",style:{marginLeft:8},onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.navigationTitle")}),icon:de.createElement(IFe),title:e("tonieboxes.navigationTitle")},{key:"boxsetup",label:f.jsx(ot,{to:"/tonieboxes/boxsetup",style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor"},onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.navigationTitle")}),icon:de.createElement(hK),title:e("tonieboxes.boxSetup.navigationTitle"),children:[{key:"boxversioninfo",label:f.jsx(ot,{to:"/tonieboxes/boxsetup/boxversioninfo",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.boxVersion.navigationTitle")}),icon:de.createElement(pl),title:e("tonieboxes.boxSetup.boxVersion.navigationTitle")},{key:"identifyboxversion",label:f.jsx(ot,{to:"/tonieboxes/boxsetup/identifyboxversion",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}),icon:de.createElement(ym),title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")},{key:"openbox",label:f.jsx(ot,{to:"/tonieboxes/boxsetup/openboxguide",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}),icon:de.createElement(G2e),title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")},{key:"esp32",label:f.jsx(ot,{to:"/tonieboxes/boxsetup/esp32/flashing",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.esp32BoxFlashing.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.esp32BoxFlashing.navigationTitle"),children:[{key:"esp32legacy",label:f.jsx(ot,{to:"/tonieboxes/boxsetup/esp32/legacy",onClick:()=>{t(!1),n(!1)},style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor"},children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]},{key:"cc3200",label:f.jsx(ot,{to:"/tonieboxes/boxsetup/cc3200/flashing",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")},{key:"cc3235",label:f.jsx(ot,{to:"/tonieboxes/boxsetup/cc3235/flashing",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}];return f.jsx(Dm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:o,selectedKeys:[],onOpenChange:u,items:p,expandIcon:({isOpen:g})=>d({isOpen:g})})},{useToken:TFe}=kr,RFe=Ia.img` +|(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return ww}var Cw,cj;function lo(){if(cj)return Cw;cj=1,Cw=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,i,s){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(i,function(u){if(typeof s=="function"&&!s(u))return u;for(var d=c.length,p;a.code.indexOf(p=r(o,d))!==-1;)++d;return c[d]=u,p}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=n.languages[o];var i=0,s=Object.keys(a.tokenStack);function c(u){for(var d=0;d=s.length);d++){var p=u[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var g=s[i],m=a.tokenStack[g],h=typeof p=="string"?p:p.content,b=r(o,g),x=h.indexOf(b);if(x>-1){++i;var S=h.substring(0,x),v=new n.Token(o,n.tokenize(m,a.grammar),"language-"+o,m),y=h.substring(x+b.length),w=[];S&&w.push.apply(w,c([S])),w.push(v),y&&w.push.apply(w,c([y])),typeof p=="string"?u.splice.apply(u,[d,1].concat(w)):p.content=w}}else p.content&&c(p.content)}return u}c(a.tokens)}}})})(t)}return Cw}var Ew,uj;function FPe(){if(uj)return Ew;uj=1;var e=lo();Ew=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,o=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"django",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"jinja2",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"jinja2")})}(n)}return Ew}var Iw,dj;function BPe(){if(dj)return Iw;dj=1,Iw=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return Iw}var Tw,fj;function zPe(){if(fj)return Tw;fj=1,Tw=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return o}),s={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(d,p){return d=d.replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(d,p)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:c},n.languages.dockerfile=n.languages.docker})(t)}return Tw}var Rw,pj;function HPe(){if(pj)return Rw;pj=1,Rw=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function o(i,s){return RegExp(i.replace(//g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:o(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:o(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:o(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:o(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return Rw}var _w,gj;function UPe(){if(gj)return _w;gj=1,_w=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return _w}var $w,mj;function VPe(){if(mj)return $w;mj=1,$w=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return $w}var Ow,hj;function WPe(){if(hj)return Ow;hj=1,Ow=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return Ow}var Nw,vj;function GPe(){if(vj)return Nw;vj=1;var e=lo();Nw=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var o=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return Nw}var kw,bj;function qPe(){if(bj)return kw;bj=1,kw=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return kw}var Aw,yj;function KPe(){if(yj)return Aw;yj=1,Aw=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return Aw}var Mw,xj;function YPe(){if(xj)return Mw;xj=1;var e=Jy(),t=lo();Mw=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(o){var i=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"erb",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"erb")})}(r)}return Mw}var Dw,Sj;function XPe(){if(Sj)return Dw;Sj=1,Dw=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return Dw}var Pw,wj;function wX(){if(wj)return Pw;wj=1,Pw=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return Pw}var Lw,Cj;function ZPe(){if(Cj)return Lw;Cj=1;var e=wX(),t=lo();Lw=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(o){var i=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"etlua",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"etlua")})}(r)}return Lw}var jw,Ej;function QPe(){if(Ej)return jw;Ej=1,jw=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return jw}var Fw,Ij;function JPe(){if(Ij)return Fw;Ij=1,Fw=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},o={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},i=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(i).join("|")+")(?=\\s|$)")},c={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(c).forEach(function(d){o[d].pattern=s(c[d])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];o.combinators.pattern=s(u),n.languages.factor=o})(t)}return Fw}var Bw,Tj;function eLe(){if(Tj)return Bw;Tj=1,Bw=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return zw}var Hw,_j;function nLe(){if(_j)return Hw;_j=1,Hw=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return Hw}var Uw,$j;function rLe(){if($j)return Uw;$j=1,Uw=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Uw}var Vw,Oj;function aLe(){if(Oj)return Vw;Oj=1,Vw=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return Vw}var Ww,Nj;function oLe(){if(Nj)return Ww;Nj=1;var e=lo();Ww=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,o=0;o<2;o++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},r.hooks.add("before-tokenize",function(s){var c=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",c)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return Ww}var Gw,kj;function iLe(){if(kj)return Gw;kj=1,Gw=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return Gw}var qw,Aj;function sLe(){if(Aj)return qw;Aj=1,qw=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return qw}var Kw,Mj;function lLe(){if(Mj)return Kw;Mj=1,Kw=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Kw}var Yw,Dj;function cLe(){if(Dj)return Yw;Dj=1,Yw=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Yw}var Xw,Pj;function uLe(){if(Pj)return Xw;Pj=1,Xw=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return Xw}var Zw,Lj;function dLe(){if(Lj)return Zw;Lj=1,Zw=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Zw}var Qw,jj;function fLe(){if(jj)return Qw;jj=1;var e=ou();Qw=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Qw}var Jw,Fj;function pLe(){if(Fj)return Jw;Fj=1,Jw=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Jw}var eC,Bj;function gLe(){if(Bj)return eC;Bj=1,eC=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return eC}var tC,zj;function mLe(){if(zj)return tC;zj=1,tC=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return tC}var nC,Hj;function hLe(){if(Hj)return nC;Hj=1,nC=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return nC}var rC,Uj;function vLe(){if(Uj)return rC;Uj=1,rC=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),o=0;function i(S){return a[o+S]}function s(S,v){v=v||0;for(var y=0;y0)){var h=c(/^\{$/,/^\}$/);if(h===-1)continue;for(var b=o;b=0&&u(x,"variable-input")}}}}})}return rC}var aC,Vj;function bLe(){if(Vj)return aC;Vj=1,aC=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return aC}var oC,Wj;function yLe(){if(Wj)return oC;Wj=1;var e=Jy();oC=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",o=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},s=0,c=o.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var o=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return iC}var sC,qj;function $k(){if(qj)return sC;qj=1,sC=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return sC}var lC,Kj;function SLe(){if(Kj)return lC;Kj=1,lC=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return lC}var cC,Yj;function wLe(){if(Yj)return cC;Yj=1,cC=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return cC}var uC,Xj;function CLe(){if(Xj)return uC;Xj=1;var e=ou();uC=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return uC}var dC,Zj;function ELe(){if(Zj)return dC;Zj=1,dC=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return dC}var fC,Qj;function ILe(){if(Qj)return fC;Qj=1,fC=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return fC}var pC,Jj;function TLe(){if(Jj)return pC;Jj=1,pC=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return pC}var gC,eF;function RLe(){if(eF)return gC;eF=1,gC=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,o={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},i={"application/json":!0,"application/xml":!0};function s(p){var g=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var c;for(var u in o)if(o[u]){c=c||{};var d=i[u]?s(u):u;c[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:o[u]}}c&&n.languages.insertBefore("http","header",c)})(t)}return gC}var mC,tF;function _Le(){if(tF)return mC;tF=1,mC=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return mC}var hC,nF;function $Le(){if(nF)return hC;nF=1,hC=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return hC}var vC,rF;function OLe(){if(rF)return vC;rF=1,vC=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,d){return d<=0?/[]/.source:u.replace(//g,function(){return r(u,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,o={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:a,greedy:!0,inside:{escape:o}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),c={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":c,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":c,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:o,string:i},c.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return vC}var bC,aF;function NLe(){if(aF)return bC;aF=1;var e=$k();bC=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return bC}var yC,oF;function kLe(){if(oF)return yC;oF=1,yC=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return yC}var xC,iF;function ALe(){if(iF)return xC;iF=1,xC=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return xC}var SC,sF;function MLe(){if(sF)return SC;sF=1,SC=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return SC}var wC,lF;function DLe(){if(lF)return wC;lF=1,wC=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return wC}var CC,cF;function PLe(){if(cF)return CC;cF=1,CC=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return EC}var IC,dF;function Ok(){if(dF)return IC;dF=1,IC=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return IC}var TC,fF;function ex(){if(fF)return TC;fF=1,TC=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(i,s){var c="doc-comment",u=n.languages[i];if(u){var d=u[c];if(!d){var p={};p[c]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(i,"comment",p),d=u[c]}if(d instanceof RegExp&&(d=u[c]={pattern:d}),Array.isArray(d))for(var g=0,m=d.length;g)?|/.source.replace(//g,function(){return i});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:o,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:o,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(r)}return RC}var _C,gF;function FLe(){if(gF)return _C;gF=1,_C=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return _C}var $C,mF;function BLe(){if(mF)return $C;mF=1,$C=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return $C}var OC,hF;function zLe(){if(hF)return OC;hF=1,OC=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return OC}var NC,vF;function HLe(){if(vF)return NC;vF=1,NC=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),o={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:o},string:{pattern:a,lookbehind:!0,greedy:!0,inside:o},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};o.interpolation.inside.content.inside=i})(t)}return NC}var kC,bF;function ULe(){if(bF)return kC;bF=1,kC=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,d){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],o=0;o=I.length)return;var $=R[_];if(typeof $=="string"||typeof $.content=="string"){var M=I[y],P=typeof $=="string"?$:$.content,D=P.indexOf(M);if(D!==-1){++y;var O=P.substring(0,D),k=p(w[M]),N=P.substring(D+M.length),A=[];if(O&&A.push(O),A.push(k),N){var L=[N];T(L),A.push.apply(A,L)}typeof $=="string"?(R.splice.apply(R,[_,1].concat(A)),_+=A.length-1):$.content=A}}else{var j=$.content;Array.isArray(j)?T(j):T([j])}}}return T(E),new n.Token(S,E,"language-"+S,b)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in m))return;function x(S){for(var v=0,y=S.length;v]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return MC}var DC,SF;function WLe(){if(SF)return DC;SF=1;var e=ex(),t=Nk();DC=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.languages.javascript,i=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+i+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:o,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return i})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+i),lookbehind:!0,inside:{string:o.string,number:o.number,boolean:o.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:o,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(r)}return DC}var PC,wF;function kk(){if(wF)return PC;wF=1,PC=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return PC}var LC,CF;function GLe(){if(CF)return LC;CF=1;var e=kk();LC=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return LC}var jC,EF;function qLe(){if(EF)return jC;EF=1;var e=kk();jC=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return jC}var FC,IF;function KLe(){if(IF)return FC;IF=1,FC=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return FC}var BC,TF;function CX(){if(TF)return BC;TF=1,BC=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,p){return d=d.replace(//g,function(){return a}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(d,p)}i=s(i).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var c=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(c).join(""):""},u=function(d){for(var p=[],g=0;g0&&p[p.length-1].tagName===c(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:c(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:h=!0),(h||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=c(m);g0&&(typeof d[g-1]=="string"||d[g-1].type==="plain-text")&&(b=c(d[g-1])+b,d.splice(g-1,1),g--),d[g]=new n.Token("plain-text",b,null,b)}m.content&&typeof m.content!="string"&&u(m.content)}};n.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||u(d.tokens)})})(t)}return BC}var zC,RF;function YLe(){if(RF)return zC;RF=1,zC=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return zC}var HC,_F;function XLe(){if(_F)return HC;_F=1,HC=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return HC}var UC,$F;function ZLe(){if($F)return UC;$F=1,UC=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return UC}var VC,OF;function QLe(){if(OF)return VC;OF=1,VC=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return VC}var WC,NF;function JLe(){if(NF)return WC;NF=1,WC=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(o,i){return RegExp(o.replace(//g,r),i)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return WC}var GC,kF;function e6e(){if(kF)return GC;kF=1,GC=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return GC}var qC,AF;function t6e(){if(AF)return qC;AF=1,qC=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return qC}var KC,MF;function tx(){if(MF)return KC;MF=1;var e=lo();KC=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,o=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,c=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:c};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,number:i,operator:s,punctuation:c}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(p,"php",g)}}),r.hooks.add("after-tokenize",function(p){r.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(n)}return KC}var YC,DF;function n6e(){if(DF)return YC;DF=1;var e=lo(),t=tx();YC=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var o=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},o.tag),a.hooks.add("before-tokenize",function(i){if(i.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(i,"latte",s),i.grammar=o}}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"latte")})}(r)}return YC}var XC,PF;function r6e(){if(PF)return XC;PF=1,XC=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return XC}var ZC,LF;function Ak(){if(LF)return ZC;LF=1,ZC=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var o in a)a[o]=a[o].replace(/<[\w\s]+>/g,function(i){return"(?:"+a[i].trim()+")"});return a[o]}})(t)}return ZC}var QC,jF;function a6e(){if(jF)return QC;jF=1;var e=Ak();QC=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,o=5,i=0;i/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return QC}var JC,FF;function o6e(){if(FF)return JC;FF=1;var e=lo();JC=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,o=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(i){var s=/^\{%-?\s*(\w+)/.exec(i);if(s){var c=s[1];if(c==="raw"&&!o)return o=!0,!0;if(c==="endraw")return o=!1,!0}return!o})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return JC}var eE,BF;function i6e(){if(BF)return eE;BF=1,eE=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function a(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var o=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+o,s="(\\()",c="(?=\\))",u="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+o+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+o),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+o),alias:"property"},splice:{pattern:RegExp(",@?"+o),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+o),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(o)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+o+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+o),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+o+"(?:\\s+&?"+o+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+o),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+o+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+o),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(s+d+c),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:g},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(o),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=h,p.defun.inside.arguments=n.util.clone(h),p.defun.inside.arguments.inside.sublist=h,n.languages.lisp=p,n.languages.elisp=p,n.languages.emacs=p,n.languages["emacs-lisp"]=p})(t)}return eE}var tE,zF;function s6e(){if(zF)return tE;zF=1,tE=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return tE}var nE,HF;function l6e(){if(HF)return nE;HF=1,nE=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return nE}var rE,UF;function c6e(){if(UF)return rE;UF=1,rE=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return rE}var aE,VF;function u6e(){if(VF)return aE;VF=1,aE=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return aE}var oE,WF;function d6e(){if(WF)return oE;WF=1,oE=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return oE}var iE,GF;function f6e(){if(GF)return iE;GF=1,iE=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return iE}var sE,qF;function p6e(){if(qF)return sE;qF=1,sE=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(g){return g=g.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(n.languages.markdown[g].inside.content.inside[m]=n.languages.markdown[m])})}),n.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function m(h){if(!(!h||typeof h=="string"))for(var b=0,x=h.length;b",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(g){var m=g.replace(c,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,b){if(b=b.toLowerCase(),b[0]==="#"){var x;return b[1]==="x"?x=parseInt(b.slice(2),16):x=Number(b.slice(1)),d(x)}else{var S=u[b];return S||h}}),m}n.languages.md=n.languages.markdown})(t)}return sE}var lE,KF;function g6e(){if(KF)return lE;KF=1,lE=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return lE}var cE,YF;function m6e(){if(YF)return cE;YF=1,cE=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return cE}var uE,XF;function h6e(){if(XF)return uE;XF=1,uE=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return uE}var dE,ZF;function v6e(){if(ZF)return dE;ZF=1,dE=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return dE}var fE,QF;function b6e(){if(QF)return fE;QF=1,fE=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return fE}var pE,JF;function y6e(){if(JF)return pE;JF=1,pE=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(i){return i.replace("$","\\$")});var o="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+o+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return pE}var gE,e8;function x6e(){if(e8)return gE;e8=1,gE=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return gE}var mE,t8;function S6e(){if(t8)return mE;t8=1,mE=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return mE}var hE,n8;function w6e(){if(n8)return hE;n8=1,hE=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return hE}var vE,r8;function C6e(){if(r8)return vE;r8=1,vE=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return vE}var bE,a8;function E6e(){if(a8)return bE;a8=1,bE=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return bE}var yE,o8;function I6e(){if(o8)return yE;o8=1,yE=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var c=s.tokens;c.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var d=i(u);o(d)||(u.type="bad-line",u.content=d)}})});function o(s){for(var c="[]{}",u=[],d=0;d=&|$!]/}}return xE}var SE,s8;function R6e(){if(s8)return SE;s8=1,SE=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return SE}var wE,l8;function _6e(){if(l8)return wE;l8=1,wE=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return wE}var CE,c8;function $6e(){if(c8)return CE;c8=1,CE=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return CE}var EE,u8;function O6e(){if(u8)return EE;u8=1,EE=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return EE}var IE,d8;function N6e(){if(d8)return IE;d8=1,IE=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return IE}var TE,f8;function k6e(){if(f8)return TE;f8=1,TE=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return TE}var RE,p8;function A6e(){if(p8)return RE;p8=1;var e=ou();RE=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return RE}var _E,g8;function M6e(){if(g8)return _E;g8=1,_E=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return _E}var $E,m8;function D6e(){if(m8)return $E;m8=1;var e=ou();$E=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))}(n)}return $E}var OE,h8;function P6e(){if(h8)return OE;h8=1,OE=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return OE}var NE,v8;function L6e(){if(v8)return NE;v8=1,NE=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return NE}var kE,b8;function j6e(){if(b8)return kE;b8=1,kE=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return kE}var AE,y8;function F6e(){if(y8)return AE;y8=1,AE=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return AE}var ME,x8;function B6e(){if(x8)return ME;x8=1,ME=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return ME}var DE,S8;function z6e(){if(S8)return DE;S8=1,DE=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),o=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,c){return s[c]=o[c],s},{});o["class-name"].forEach(function(s){s.inside=i})})(t)}return DE}var PE,w8;function H6e(){if(w8)return PE;w8=1,PE=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return PE}var LE,C8;function U6e(){if(C8)return LE;C8=1,LE=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return LE}var jE,E8;function V6e(){if(E8)return jE;E8=1,jE=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return jE}var FE,I8;function W6e(){if(I8)return FE;I8=1;var e=tx();FE=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return FE}var BE,T8;function G6e(){if(T8)return BE;T8=1;var e=tx(),t=ex();BE=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+o+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+o),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(r)}return BE}var zE,R8;function q6e(){if(R8)return zE;R8=1;var e=Rk();zE=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return zE}var HE,_8;function K6e(){if(_8)return HE;_8=1,HE=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return HE}var UE,$8;function Y6e(){if($8)return UE;$8=1,UE=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return UE}var VE,O8;function X6e(){if(O8)return VE;O8=1,VE=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return VE}var WE,N8;function Z6e(){if(N8)return WE;N8=1,WE=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return WE}var GE,k8;function Q6e(){if(k8)return GE;k8=1,GE=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],o=["offset"],i=r.concat(a,o);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+i.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return GE}var qE,A8;function J6e(){if(A8)return qE;A8=1,qE=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return qE}var KE,M8;function eje(){if(M8)return KE;M8=1,KE=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return KE}var YE,D8;function tje(){if(D8)return YE;D8=1,YE=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return YE}var XE,P8;function nje(){if(P8)return XE;P8=1,XE=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],o={},i=0,s=a.length;i",function(){return c.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[c.language,"language-"+c.language],inside:n.languages[c.language]}}})}n.languages.insertBefore("pug","filter",o)})(t)}return XE}var ZE,L8;function rje(){if(L8)return ZE;L8=1,ZE=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return ZE}var QE,j8;function aje(){if(j8)return QE;j8=1,QE=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(o){var i=o;if(typeof o!="string"&&(i=o.alias,o=o.lang),n.languages[i]){var s={};s["inline-lang-"+i]={pattern:RegExp(a.replace("",o.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+i].inside.rest=n.util.clone(n.languages[i]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return QE}var JE,F8;function oje(){if(F8)return JE;F8=1,JE=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return JE}var e2,B8;function ije(){if(B8)return e2;B8=1;var e=$k();e2=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return e2}var t2,z8;function sje(){if(z8)return t2;z8=1,t2=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return t2}var n2,H8;function lje(){if(H8)return n2;H8=1,n2=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return n2}var r2,U8;function cje(){if(U8)return r2;U8=1,r2=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,o=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),i=0;i<2;i++)o=o.replace(//g,function(){return o});o=o.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return r2}var a2,V8;function uje(){if(V8)return a2;V8=1,a2=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return a2}var o2,W8;function dje(){if(W8)return o2;W8=1,o2=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(h,b){return h.replace(/<<(\d+)>>/g,function(x,S){return"(?:"+b[+S]+")"})}function a(h,b,x){return RegExp(r(h,b),"")}function o(h,b){for(var x=0;x>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var c=RegExp(s(i.type+" "+i.other)),u=/\b[A-Za-z_]\w*\b/.source,d=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:c,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:c,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=o(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[g]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return o2}var i2,G8;function fje(){if(G8)return i2;G8=1,i2=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return i2}var s2,q8;function pje(){if(q8)return s2;q8=1;var e=Ak();s2=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return s2}var l2,K8;function gje(){if(K8)return l2;K8=1,l2=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return l2}var c2,Y8;function mje(){if(Y8)return c2;Y8=1,c2=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",c=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:c,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":i,escape:a}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return u2}var d2,Z8;function vje(){if(Z8)return d2;Z8=1,d2=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return d2}var f2,Q8;function bje(){if(Q8)return f2;Q8=1,f2=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return f2}var p2,J8;function yje(){if(J8)return p2;J8=1,p2=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return p2}var g2,e5;function xje(){if(e5)return g2;e5=1,g2=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return g2}var m2,t5;function Sje(){if(t5)return m2;t5=1,m2=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function o(u,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in d)p[g]=d[g];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},c={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:o("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:o("Variables"),"test-cases":o("Test Cases",{"test-name":s,documentation:i,property:c}),keywords:o("Keywords",{"keyword-name":s,documentation:i,property:c}),tasks:o("Tasks",{"task-name":s,documentation:i,property:c}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return m2}var h2,n5;function wje(){if(n5)return h2;n5=1,h2=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return h2}var v2,r5;function Cje(){if(r5)return v2;r5=1,v2=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,o={pattern:RegExp(r+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},c={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(r),greedy:!0},p=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":o,punctuation:p,string:d},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},x={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},S={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:g,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:a,"numeric-constant":o,punctuation:p,string:d}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":x,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:w,"submit-statement":S,"global-statements":x,number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:w,"submit-statement":S,"global-statements":x,number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:c,keyword:w,function:g,format:h,altformat:b,"global-statements":x,number:a,"numeric-constant":o,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:m},"macro-keyword":s,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":o}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":y,comment:u,function:g,format:h,altformat:b,"numeric-constant":o,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:d,step:c,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return v2}var b2,a5;function Eje(){if(a5)return b2;a5=1,b2=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return b2}var y2,o5;function Ije(){if(o5)return y2;o5=1;var e=Ok();y2=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return y2}var x2,i5;function Tje(){if(i5)return x2;i5=1,x2=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return x2}var S2,s5;function Rje(){if(s5)return S2;s5=1;var e=xX();S2=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return S2}var w2,l5;function _je(){if(l5)return w2;l5=1,w2=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return w2}var C2,c5;function $je(){if(c5)return C2;c5=1,C2=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return C2}var E2,u5;function Oje(){if(u5)return E2;u5=1;var e=lo();E2=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,o=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(i){var s="{literal}",c="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(i,"smarty",o,function(d){return d===c&&(u=!1),u?!1:(d===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(n)}return E2}var I2,d5;function Nje(){if(d5)return I2;d5=1,I2=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return I2}var T2,f5;function kje(){if(f5)return T2;f5=1,T2=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return T2}var R2,p5;function Aje(){if(p5)return R2;p5=1,R2=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return R2}var _2,g5;function Mje(){if(g5)return _2;g5=1;var e=lo();_2=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,o=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:o,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:o,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(i){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,c="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(i,"soy",s,function(p){return p===u&&(d=!1),d?!1:(p===c&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(n)}return _2}var $2,m5;function EX(){if(m5)return $2;m5=1,$2=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return $2}var O2,h5;function Dje(){if(h5)return O2;h5=1;var e=EX();O2=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return O2}var N2,v5;function Pje(){if(v5)return N2;v5=1,N2=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return N2}var k2,b5;function Lje(){if(b5)return k2;b5=1,k2=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return k2}var A2,y5;function jje(){if(y5)return A2;y5=1,A2=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return A2}var M2,x5;function Fje(){if(x5)return M2;x5=1,M2=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return M2}var D2,S5;function Bje(){if(S5)return D2;S5=1,D2=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},o={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};o.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:o}},o.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:o}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:o}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:o}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:o}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:o.interpolation}},rest:o}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:o.interpolation,comment:o.comment,punctuation:/[{},]/}},func:o.func,string:o.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:o.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return D2}var P2,w5;function zje(){if(w5)return P2;w5=1,P2=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return P2}var L2,C5;function Hje(){if(C5)return L2;C5=1,L2=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return L2}var j2,E5;function Mk(){if(E5)return j2;E5=1,j2=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(o,i,s){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:s}}}}function a(o){var i=n.languages[o],s="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",i,s),"class-feature":r("\\+",i,s),standard:r("",i,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return j2}var F2,I5;function Uje(){if(I5)return F2;I5=1;var e=Mk(),t=Qy();F2=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return F2}var B2,T5;function IX(){if(T5)return B2;T5=1;var e=SX();B2=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return B2}var z2,R5;function Vje(){if(R5)return z2;R5=1;var e=Mk(),t=IX();z2=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return z2}var H2,_5;function TX(){if(_5)return H2;_5=1,H2=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(u,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return u});return RegExp(p,d)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(s),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return H2}var U2,$5;function Wje(){if($5)return U2;$5=1;var e=TX();U2=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return U2}var V2,O5;function Gje(){if(O5)return V2;O5=1,V2=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return V2}var W2,N5;function qje(){if(N5)return W2;N5=1,W2=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function o(g,m){return RegExp(g.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),m||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:o(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:o(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:o(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:o(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:o(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:o(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:o(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:o(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:o(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:o(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:o(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:o(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:o(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:o(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:o(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:o(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:o(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:o(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:o(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:o(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:o(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),c=s.phrase.inside,u={inline:c.inline,link:c.link,image:c.image,footnote:c.footnote,acronym:c.acronym,mark:c.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=c.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var p=c.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return W2}var G2,k5;function Kje(){if(k5)return G2;k5=1,G2=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(o){return o.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return G2}var q2,A5;function Yje(){if(A5)return q2;A5=1,q2=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return q2}var K2,M5;function Xje(){if(M5)return K2;M5=1;var e=CX(),t=Nk();K2=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",o),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var i=a.languages.tsx.tag;i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0}(r)}return K2}var Y2,D5;function Zje(){if(D5)return Y2;D5=1;var e=lo();Y2=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var o=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return Y2}var X2,P5;function Qje(){if(P5)return X2;P5=1;var e=lo();X2=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return X2}var Z2,L5;function Jje(){if(L5)return Z2;L5=1,Z2=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return Z2}var Q2,j5;function eFe(){if(j5)return Q2;j5=1,Q2=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return Q2}var J2,F5;function tFe(){if(F5)return J2;F5=1,J2=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return J2}var eI,B5;function nFe(){if(B5)return eI;B5=1,eI=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return eI}var tI,z5;function rFe(){if(z5)return tI;z5=1,tI=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return tI}var nI,H5;function aFe(){if(H5)return nI;H5=1,nI=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return nI}var rI,U5;function oFe(){if(U5)return rI;U5=1,rI=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return rI}var aI,V5;function iFe(){if(V5)return aI;V5=1,aI=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return aI}var oI,W5;function sFe(){if(W5)return oI;W5=1,oI=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return oI}var iI,G5;function lFe(){if(G5)return iI;G5=1,iI=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return iI}var sI,q5;function cFe(){if(q5)return sI;q5=1,sI=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return sI}var lI,K5;function uFe(){if(K5)return lI;K5=1,lI=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return lI}var cI,Y5;function dFe(){if(Y5)return cI;Y5=1,cI=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return cI}var uI,X5;function fFe(){if(X5)return uI;X5=1,uI=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,o={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:o}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in n.languages["web-idl"])i!=="class-name"&&(o[i]=n.languages["web-idl"][i]);n.languages.webidl=n.languages["web-idl"]})(t)}return uI}var dI,Z5;function pFe(){if(Z5)return dI;Z5=1,dI=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return dI}var fI,Q5;function gFe(){if(Q5)return fI;Q5=1,fI=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return fI}var pI,J5;function mFe(){if(J5)return pI;J5=1,pI=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return pI}var gI,eB;function hFe(){if(eB)return gI;eB=1,gI=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return gI}var mI,tB;function vFe(){if(tB)return mI;tB=1,mI=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,c){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":c})}var a=n.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",o),r("fsharp",o),r("vbnet",i)})(t)}return mI}var hI,nB;function bFe(){if(nB)return hI;nB=1,hI=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return hI}var vI,rB;function yFe(){if(rB)return vI;rB=1,vI=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(o){return typeof o=="string"?o:typeof o.content=="string"?o.content:o.content.map(r).join("")},a=function(o){for(var i=[],s=0;s0&&i[i.length-1].tagName===r(c.content[0].content[1])&&i.pop():c.content[c.content.length-1].content==="/>"||i.push({tagName:r(c.content[0].content[1]),openedBraces:0}):i.length>0&&c.type==="punctuation"&&c.content==="{"&&(!o[s+1]||o[s+1].type!=="punctuation"||o[s+1].content!=="{")&&(!o[s-1]||o[s-1].type!=="plain-text"||o[s-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?i[i.length-1].openedBraces--:c.type!=="comment"&&(u=!0)),(u||typeof c=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var d=r(c);s0&&(typeof o[s-1]=="string"||o[s-1].type==="plain-text")&&(d=r(o[s-1])+d,o.splice(s-1,1),s--),/^\s+$/.test(d)?o[s]=d:o[s]=new n.Token("plain-text",d,null,d)}c.content&&typeof c.content!="string"&&a(c.content)}};n.hooks.add("after-tokenize",function(o){o.language==="xquery"&&a(o.tokens)})})(t)}return vI}var bI,aB;function xFe(){if(aB)return bI;aB=1,bI=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return bI}var yI,oB;function SFe(){if(oB)return yI;oB=1,yI=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,o="\\b(?!"+a.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(i)),c=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(o)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+c+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return yI}var ye=$De,wFe=ye;ye.register(BDe());ye.register(zDe());ye.register(HDe());ye.register(UDe());ye.register(VDe());ye.register(WDe());ye.register(GDe());ye.register(qDe());ye.register(KDe());ye.register(YDe());ye.register(XDe());ye.register(ZDe());ye.register(QDe());ye.register(JDe());ye.register(ePe());ye.register(tPe());ye.register(nPe());ye.register(rPe());ye.register(aPe());ye.register(oPe());ye.register(iPe());ye.register(sPe());ye.register(xX());ye.register(SX());ye.register(lPe());ye.register(cPe());ye.register(uPe());ye.register(dPe());ye.register(fPe());ye.register(pPe());ye.register(gPe());ye.register(mPe());ye.register(hPe());ye.register(vPe());ye.register(ou());ye.register(bPe());ye.register(yPe());ye.register(xPe());ye.register(SPe());ye.register(wPe());ye.register(CPe());ye.register(EPe());ye.register(IPe());ye.register(TPe());ye.register(_k());ye.register(RPe());ye.register(Qy());ye.register(_Pe());ye.register($Pe());ye.register(OPe());ye.register(NPe());ye.register(kPe());ye.register(APe());ye.register(MPe());ye.register(DPe());ye.register(PPe());ye.register(LPe());ye.register(jPe());ye.register(FPe());ye.register(BPe());ye.register(zPe());ye.register(HPe());ye.register(UPe());ye.register(VPe());ye.register(WPe());ye.register(GPe());ye.register(qPe());ye.register(KPe());ye.register(YPe());ye.register(XPe());ye.register(ZPe());ye.register(QPe());ye.register(JPe());ye.register(eLe());ye.register(tLe());ye.register(nLe());ye.register(rLe());ye.register(aLe());ye.register(oLe());ye.register(iLe());ye.register(sLe());ye.register(lLe());ye.register(cLe());ye.register(uLe());ye.register(dLe());ye.register(fLe());ye.register(pLe());ye.register(gLe());ye.register(mLe());ye.register(hLe());ye.register(vLe());ye.register(bLe());ye.register(yLe());ye.register(xLe());ye.register($k());ye.register(SLe());ye.register(wLe());ye.register(CLe());ye.register(ELe());ye.register(ILe());ye.register(TLe());ye.register(RLe());ye.register(_Le());ye.register($Le());ye.register(OLe());ye.register(NLe());ye.register(kLe());ye.register(ALe());ye.register(MLe());ye.register(DLe());ye.register(PLe());ye.register(LLe());ye.register(Ok());ye.register(jLe());ye.register(ex());ye.register(FLe());ye.register(BLe());ye.register(zLe());ye.register(HLe());ye.register(ULe());ye.register(VLe());ye.register(WLe());ye.register(kk());ye.register(GLe());ye.register(qLe());ye.register(KLe());ye.register(CX());ye.register(YLe());ye.register(XLe());ye.register(ZLe());ye.register(QLe());ye.register(JLe());ye.register(e6e());ye.register(t6e());ye.register(n6e());ye.register(r6e());ye.register(a6e());ye.register(o6e());ye.register(i6e());ye.register(s6e());ye.register(l6e());ye.register(c6e());ye.register(u6e());ye.register(wX());ye.register(d6e());ye.register(f6e());ye.register(p6e());ye.register(lo());ye.register(g6e());ye.register(m6e());ye.register(h6e());ye.register(v6e());ye.register(b6e());ye.register(y6e());ye.register(x6e());ye.register(S6e());ye.register(w6e());ye.register(C6e());ye.register(E6e());ye.register(I6e());ye.register(T6e());ye.register(R6e());ye.register(_6e());ye.register($6e());ye.register(O6e());ye.register(N6e());ye.register(k6e());ye.register(A6e());ye.register(M6e());ye.register(D6e());ye.register(P6e());ye.register(L6e());ye.register(j6e());ye.register(F6e());ye.register(B6e());ye.register(z6e());ye.register(H6e());ye.register(U6e());ye.register(V6e());ye.register(W6e());ye.register(tx());ye.register(G6e());ye.register(q6e());ye.register(K6e());ye.register(Y6e());ye.register(X6e());ye.register(Z6e());ye.register(Q6e());ye.register(J6e());ye.register(eje());ye.register(tje());ye.register(nje());ye.register(rje());ye.register(aje());ye.register(oje());ye.register(ije());ye.register(sje());ye.register(lje());ye.register(cje());ye.register(uje());ye.register(dje());ye.register(fje());ye.register(pje());ye.register(gje());ye.register(mje());ye.register(hje());ye.register(vje());ye.register(bje());ye.register(yje());ye.register(xje());ye.register(Sje());ye.register(Jy());ye.register(wje());ye.register(Cje());ye.register(Eje());ye.register(Ije());ye.register(Ak());ye.register(Tje());ye.register(Rje());ye.register(_je());ye.register($je());ye.register(Oje());ye.register(Nje());ye.register(kje());ye.register(Aje());ye.register(Mje());ye.register(Dje());ye.register(Pje());ye.register(Lje());ye.register(Rk());ye.register(jje());ye.register(Fje());ye.register(Bje());ye.register(zje());ye.register(Hje());ye.register(Uje());ye.register(Mk());ye.register(Vje());ye.register(Wje());ye.register(Gje());ye.register(qje());ye.register(Kje());ye.register(Yje());ye.register(Xje());ye.register(Zje());ye.register(EX());ye.register(Qje());ye.register(Nk());ye.register(Jje());ye.register(eFe());ye.register(tFe());ye.register(nFe());ye.register(rFe());ye.register(aFe());ye.register(IX());ye.register(oFe());ye.register(iFe());ye.register(sFe());ye.register(lFe());ye.register(cFe());ye.register(uFe());ye.register(dFe());ye.register(fFe());ye.register(pFe());ye.register(gFe());ye.register(mFe());ye.register(hFe());ye.register(vFe());ye.register(bFe());ye.register(yFe());ye.register(TX());ye.register(xFe());ye.register(SFe());const CFe=Wa(wFe);var Dk=v3e(CFe,FDe);Dk.supportedLanguages=x3e;const RX={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},_X={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},{useToken:EFe}=kr,gn=({language:e,code:t,showLineNumbers:n=!0})=>{const{t:r}=Nt(),{token:a}=EFe(),[o,i]=l.useState(""),[s,c]=l.useState(!1),u=l.useRef(null);l.useEffect(()=>{c(window.isSecureContext)},[]);const d=()=>{navigator.clipboard.writeText(t).then(()=>{i(r("utils.copied")),setTimeout(()=>i(""),2e3)})},p=()=>{if(u.current){u.current.select();try{document.execCommand("copy"),i(r("utils.copied")),setTimeout(()=>i(""),2e3)}catch{i(r("utils.failedToCopied"))}}};return f.jsxs("div",{style:{position:"relative"},children:[f.jsx(Dk,{language:e,style:Cs()==="dark"?RX:_X,customStyle:{padding:"0.5rem",borderRadius:"8px",margin:"0.5rem 0",border:"1px solid",borderColor:a.colorBorderSecondary},showLineNumbers:n,lineNumberStyle:{minWidth:"2rem",textAlign:"right",paddingRight:"1rem"},wrapLines:!0,lineProps:{style:{whiteSpace:"pre-wrap"}},children:t}),!s&&f.jsx("textarea",{ref:u,value:t,readOnly:!0,style:{position:"absolute",left:"-9999px",opacity:0}}),o?null:f.jsx(Ft,{title:r("utils.copyToClipboard"),children:f.jsx("button",{onClick:s?d:p,style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",cursor:"pointer"},children:f.jsx(Ly,{style:{color:a.colorText}})})}),o&&f.jsxs("span",{style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",color:a.colorSuccess,fontSize:"small"},children:[f.jsx(df,{})," ",o]})]})};new Dn(On());const $X=({open:e,onClose:t,setValue:n,props:r,tonieCardProps:a,audioId:o,hash:i})=>{const{t:s}=Nt();Qn();const[c]=Gt.useForm();l.useEffect(()=>{e&&g(),e&&a&&c.setFieldsValue({series:a.tonieInfo.series,episodes:a.tonieInfo.episode,model:a.tonieInfo.model,language:a.tonieInfo.language,pic:a.tonieInfo.picture,tracks:a.tonieInfo.tracks})},[e,a,c]);const u=async w=>{if(w.tracks&&(w.tracks=w.tracks.filter(C=>C.track&&C.track.trim()).map(C=>C.track)),w.audio_id){w.audio_id=w.audio_id.filter(I=>I.audio_id&&I.audio_id.trim()&&I.hash&&I.hash.trim());const C=w.audio_id.map(I=>I.audio_id),E=w.audio_id.map(I=>I.hash);w={no:w.no,model:w.model,audio_id:C,hash:E,title:w.title,series:w.series,episodes:w.episodes,tracks:w.tracks,release:w.release,language:w.language,category:w.category,pic:w.pic}}h(w),x(!0)},d=()=>{c.submit()},p=()=>{g(),t()},g=()=>{c.resetFields(),c.setFieldsValue({audio_id:[{audio_id:o||"",hash:i||""}],tracks:[{track:""}]})},[m,h]=l.useState(""),[b,x]=l.useState(!1),S=f.jsx(tt,{type:"primary",onClick:()=>v(),children:s("tonies.informationModal.ok")}),v=()=>{x(!1),p()},y=f.jsx(_n,{footer:S,width:1e3,title:"File (you can copy the content to the tonies.custom.json)",open:b,onCancel:v,children:m?f.jsxs(f.Fragment,{children:[f.jsx(gn,{language:"json",code:JSON.stringify(m,null,2)},"json-readable"),f.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),f.jsx(gn,{language:"json",showLineNumbers:!1,code:JSON.stringify(m,null,0)},"json-minimized")]}):"Loading..."});return f.jsxs(f.Fragment,{children:[f.jsxs(_n,{title:s("tonies.addNewCustomTonieModal.title"),open:e,onCancel:p,onOk:d,okText:s("tonies.addNewCustomTonieModal.save"),width:Math.max(Math.min(window.innerWidth*.75,800),500),children:[f.jsx(Sn,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json fragment is displayed when saving the new model. This is not automatically inserted into the tonies.custom.json. You have to copy this into the file yourself.",style:{marginBottom:8}}),f.jsx(Gt,{form:c,layout:"vertical",onFinish:u,children:f.jsxs(la,{gutter:[16,0],children:[f.jsx(Cn,{span:24,children:f.jsxs(la,{gutter:[16,0],children:[f.jsx(Cn,{span:8,children:f.jsx(Gt.Item,{label:[s("tonies.addNewCustomTonieModal.series"),f.jsx(Ft,{title:s("tonies.addNewCustomTonieModal.seriesHint"),children:f.jsx(Xo,{style:{marginLeft:2}})},"series-tooltip")],name:"series",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.seriesRequired")}],children:f.jsx(Jt,{style:{width:"100%"}})},"series")}),f.jsx(Cn,{span:10,children:f.jsx(Gt.Item,{label:[s("tonies.addNewCustomTonieModal.episode"),f.jsx(Ft,{title:s("tonies.addNewCustomTonieModal.episodeHint"),children:f.jsx(Xo,{style:{marginLeft:2}})},"episodes-tooltip")],name:"episodes",children:f.jsx(Jt,{style:{width:"100%"}})},"episodes")}),f.jsx(Cn,{span:6,children:f.jsx(Gt.Item,{label:[s("tonies.addNewCustomTonieModal.language"),f.jsx(Ft,{title:s("tonies.addNewCustomTonieModal.languageHint"),children:f.jsx(Xo,{style:{marginLeft:2}})},"language-tooltip")],name:"language",children:f.jsx(Jt,{style:{width:"100%"}})},"language")})]})}),f.jsx(Cn,{span:24,children:f.jsxs(la,{gutter:[16,0],children:[f.jsx(Cn,{span:8,children:f.jsx(Gt.Item,{label:s("tonies.addNewCustomTonieModal.model"),name:"model",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.modelRequired")}],children:f.jsx(Jt,{style:{width:"100%"}})},"model")}),f.jsx(Cn,{span:16,children:f.jsx(Gt.Item,{label:s("tonies.addNewCustomTonieModal.pic"),name:"pic",children:f.jsx(Jt,{style:{width:"100%"}})},"pic")})]})}),f.jsx(Cn,{span:24,children:f.jsxs(la,{gutter:[16,0],children:[f.jsx(Cn,{span:8,children:f.jsx(Gt.Item,{label:s("tonies.addNewCustomTonieModal.no"),name:"no",children:f.jsx(Jt,{style:{width:"100%"}})},"no")}),f.jsx(Cn,{span:16,children:f.jsx(Gt.Item,{label:[s("tonies.addNewCustomTonieModal.formfieldTitle"),f.jsx(Ft,{title:s("tonies.addNewCustomTonieModal.formfieldTitleHint"),children:f.jsx(Xo,{style:{marginLeft:2}})},"title-tooltip")],name:"title",children:f.jsx(Jt,{style:{width:"100%"}})},"title")})]})}),f.jsx(Cn,{span:24,children:f.jsxs(la,{gutter:[16,0],children:[f.jsx(Cn,{span:8,children:f.jsx(Gt.Item,{label:s("tonies.addNewCustomTonieModal.release"),name:"release",children:f.jsx(Jt,{style:{width:"100%"}})},"release")}),f.jsx(Cn,{span:16,children:f.jsx(Gt.Item,{label:s("tonies.addNewCustomTonieModal.category"),name:"category",children:f.jsx(Jt,{style:{width:"100%"}})},"category")})]})}),f.jsx(Cn,{span:24,children:f.jsx(la,{gutter:[16,0],children:f.jsx(Cn,{span:24,children:f.jsx(Gt.List,{name:"audio_id",children:(w,{add:C,remove:E})=>f.jsxs(f.Fragment,{children:[w.map(({key:I,name:T,...R},_)=>f.jsxs(la,{gutter:[16,0],children:[f.jsx(Cn,{span:8,children:l.createElement(Gt.Item,{...R,key:`audio-id-${I}`,name:[T,"audio_id"],label:f.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.audioId"):""},`audio-id-label-${I}`)},f.jsx(Jt,{style:{width:"100%"}}))}),f.jsx(Cn,{span:16,children:l.createElement(Gt.Item,{...R,key:`hash-${I}`,name:[T,"hash"],label:f.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.hash"):""},`hash-label-${I}`)},f.jsx(Jt,{style:{width:"100%"},addonAfter:f.jsx(tt,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`audio-id-hash-remove-${I}`)}))})]},`audio-id-hash-row-${I}`)),f.jsx(Gt.Item,{children:f.jsx(tt,{type:"dashed",onClick:()=>C(),block:!0,children:s("tonies.addNewCustomTonieModal.addAudioIdHash")})},"add-audio-id-hash")]})},"audio-id-hash-list")})})}),f.jsx(Cn,{span:24,children:f.jsx(Gt.List,{name:"tracks",children:(w,{add:C,remove:E})=>f.jsxs(f.Fragment,{children:[w.map(({key:I,name:T,...R},_)=>f.jsx(la,{gutter:[16,0],children:f.jsx(Cn,{span:24,children:l.createElement(Gt.Item,{...R,key:`track-${I}`,name:[T,"track"],label:f.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.track"):""},`track-label-${I}`)},f.jsx(Jt,{style:{width:"100%"},addonAfter:f.jsx(tt,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`track-remove-${I}`)},"input-track-"+I))})},`track-row-${I}`)),f.jsx(Gt.Item,{children:f.jsx(tt,{type:"dashed",onClick:()=>C(),block:!0,children:s("tonies.addNewCustomTonieModal.addTrack")})},"add-track")]})},"track-list")})]})})]}),y]})},iu=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),[a,o]=l.useState(!1),[i,s]=l.useState(""),c=dr.language;l.useEffect(()=>{r(e("tonies.tonies.navigationTitle"))},[c]);const u=()=>{o(!0),s("")},d=[{key:"tonies",label:f.jsx(it,{to:"/tonies",onClick:()=>{t(!1),n(!1)},children:e("tonies.tonies.navigationTitle")}),icon:de.createElement(KIe),title:e("tonies.tonies.navigationTitle")},{key:"custom-json",label:f.jsx("label",{style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor",cursor:"pointer"},children:e("tonies.addToniesCustomJsonEntry")}),onClick:()=>{u(),t(!1),n(!1)},icon:de.createElement(WIe),title:e("tonies.addToniesCustomJsonEntry")},{key:"encoder",label:f.jsx(it,{to:"/tonies/encoder",onClick:()=>{t(!1),n(!1)},children:e("tonies.encoder.navigationTitle")}),icon:de.createElement(eEe),title:e("tonies.encoder.navigationTitle")},{key:"tap",label:f.jsx(it,{to:"/tonies/tap",style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor"},onClick:()=>{t(!1),n(!1)},children:e("tonies.tap.navigationTitle")}),icon:de.createElement(BIe),title:e("tonies.tap.navigationTitle")},{key:"library",label:f.jsx(it,{to:"/tonies/library",onClick:()=>{t(!1),n(!1)},children:e("tonies.library.navigationTitle")}),icon:de.createElement(TCe),title:e("tonies.library.navigationTitle")},{key:"content",label:f.jsx(it,{to:"/tonies/content",onClick:()=>{t(!1),n(!1)},children:e("tonies.content.navigationTitle")}),icon:de.createElement(yK),title:e("tonies.content.navigationTitle")},{key:"system-sounds",label:f.jsx(it,{to:"/tonies/system-sounds",onClick:()=>{t(!1),n(!1)},children:e("tonies.system-sounds.navigationTitle")}),icon:de.createElement(zN),title:e("tonies.system-sounds.navigationTitle")}];return f.jsxs(f.Fragment,{children:[f.jsx(Pm,{mode:"inline",selectedKeys:[i],defaultOpenKeys:["sub"],items:d}),a&&f.jsx($X,{open:a,onClose:()=>o(!1)})]})},IFe=()=>f.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"12.000000pt",height:"12.000000pt",viewBox:"0 0 900.000000 900.000000",preserveAspectRatio:"xMidYMid meet",children:f.jsxs("g",{transform:"translate(0.000000,900.000000) scale(0.100000,-0.100000)",fill:"currentColor",stroke:"none",children:[f.jsx("path",{d:"M5895 8380 c-4 -6 -21 -16 -38 -24 -60 -25 -301 -236 -416 -363 -42 -46 -101 -103 -131 -127 -30 -24 -116 -104 -190 -177 -75 -74 -167 -163 -205 -199 -39 -36 -132 -124 -208 -195 -186 -175 -194 -179 -368 -195 -138 -13 -274 -10 -303 7 -45 25 -385 357 -446 434 -65 84 -279 313 -345 369 -17 14 -58 40 -91 58 -59 31 -67 32 -177 32 -87 0 -117 -3 -127 -14 -6 -8 -23 -16 -37 -18 -28 -3 -61 -47 -62 -83 -1 -12 -5 -25 -10 -30 -5 -6 -28 -64 -50 -130 -51 -151 -94 -274 -121 -345 -12 -30 -32 -86 -45 -125 -13 -38 -38 -108 -54 -154 -17 -46 -31 -85 -31 -87 0 -2 -181 -4 -402 -4 -362 0 -410 -2 -473 -19 -93 -25 -147 -55 -209 -117 -62 -62 -92 -116 -117 -209 -18 -68 -19 -160 -19 -2724 0 -2915 -4 -2713 58 -2836 31 -62 127 -155 189 -185 109 -52 -33 -49 2843 -49 2835 0 2752 -2 2840 44 111 57 194 152 230 266 20 61 20 110 20 2759 0 2673 0 2697 -20 2755 -50 147 -153 247 -300 294 -33 10 -131 15 -370 20 l-325 6 -2 50 c-9 210 -37 703 -49 855 -8 102 -14 239 -14 306 0 171 9 164 -233 164 -115 0 -188 -4 -192 -10z m-1 -652 c3 -13 6 -68 6 -123 0 -55 7 -174 15 -265 8 -91 15 -202 15 -247 l0 -83 -420 0 c-356 0 -420 2 -420 14 0 8 4 16 9 18 5 2 34 26 63 53 29 28 118 111 198 185 147 137 229 213 402 378 53 51 103 92 111 92 8 0 17 -10 21 -22z m-2697 -470 c65 -61 146 -138 181 -171 34 -32 62 -63 62 -68 0 -5 -107 -9 -255 -9 -169 0 -255 3 -255 10 0 10 30 104 49 152 18 47 40 104 56 151 9 26 23 47 31 47 7 0 66 -50 131 -112z m3746 -698 c16 0 17 -130 15 -2622 l-3 -2623 -2642 -3 -2643 -2 -2 2617 c-2 1850 0 2620 8 2627 7 8 777 10 2630 9 1440 -2 2627 -3 2637 -3z"}),f.jsx("path",{d:"M5735 6087 c-54 -22 -72 -36 -104 -83 -27 -41 -31 -57 -31 -111 0 -129 77 -205 206 -205 90 0 154 42 188 126 66 160 -100 335 -259 273z"}),f.jsx("path",{d:"M2842 5359 c-52 -16 -118 -90 -132 -148 -36 -150 102 -286 252 -250 61 14 129 75 148 134 29 86 -9 195 -83 242 -45 29 -131 39 -185 22z"}),f.jsx("path",{d:"M5035 5362 c-90 -32 -145 -106 -145 -197 0 -96 68 -183 161 -205 39 -10 57 -9 101 4 63 19 75 28 116 85 28 39 32 52 32 110 0 120 -72 199 -186 206 -32 2 -68 1 -79 -3z"}),f.jsx("path",{d:"M5730 5359 c-85 -36 -130 -105 -130 -202 0 -56 4 -70 32 -108 40 -56 52 -65 112 -85 43 -15 57 -15 100 -4 235 59 212 392 -28 406 -33 2 -72 -1 -86 -7z"}),f.jsx("path",{d:"M2818 4620 c-48 -26 -93 -82 -108 -135 -29 -103 38 -216 147 -250 54 -17 58 -17 112 0 36 12 69 33 93 57 92 94 68 260 -47 325 -52 29 -144 31 -197 3z"}),f.jsx("path",{d:"M3506 4609 c-150 -100 -116 -315 59 -375 54 -18 56 -18 109 0 89 30 156 116 156 199 0 73 -68 172 -137 198 -13 5 -50 9 -82 9 -48 0 -66 -5 -105 -31z"}),f.jsx("path",{d:"M4258 4610 c-152 -101 -119 -316 57 -376 54 -18 56 -18 109 0 89 31 156 116 156 200 0 73 -66 170 -133 195 -16 6 -54 11 -86 11 -47 0 -66 -5 -103 -30z"}),f.jsx("path",{d:"M4984 4607 c-149 -103 -115 -318 60 -373 55 -17 59 -17 111 0 52 18 92 51 128 106 22 33 23 140 1 183 -40 78 -103 117 -193 117 -50 0 -66 -5 -107 -33z"}),f.jsx("path",{d:"M5715 4623 c-79 -41 -115 -103 -115 -195 0 -42 6 -72 17 -88 36 -55 76 -88 129 -106 53 -18 55 -18 109 1 121 41 182 154 143 266 -15 46 -42 79 -90 112 -34 22 -52 27 -102 27 -36 -1 -74 -7 -91 -17z"}),f.jsx("path",{d:"M2841 3901 c-60 -24 -107 -74 -127 -134 -15 -44 -15 -57 -4 -101 41 -161 208 -217 339 -114 48 37 65 78 66 155 0 63 -3 76 -30 115 -34 49 -120 98 -169 97 -17 0 -51 -8 -75 -18z"}),f.jsx("path",{d:"M3532 3894 c-162 -80 -161 -292 0 -375 46 -24 127 -25 171 -3 73 37 127 119 127 193 -1 77 -59 158 -138 192 -59 26 -98 24 -160 -7z"}),f.jsx("path",{d:"M4279 3892 c-99 -51 -148 -176 -103 -265 86 -170 309 -169 385 2 35 80 19 159 -47 225 -36 35 -105 66 -149 66 -18 0 -57 -13 -86 -28z"}),f.jsx("path",{d:"M5015 3896 c-60 -28 -94 -63 -112 -114 -28 -81 -10 -163 48 -220 104 -102 265 -77 330 50 22 42 26 146 8 181 -34 65 -128 127 -193 127 -17 0 -53 -11 -81 -24z"}),f.jsx("path",{d:"M5727 3901 c-45 -21 -93 -65 -113 -103 -21 -40 -18 -141 5 -186 37 -72 102 -112 181 -112 151 0 251 153 191 292 -23 52 -52 80 -111 107 -54 25 -102 25 -153 2z"}),f.jsx("path",{d:"M2855 3201 c-70 -17 -128 -80 -146 -159 -25 -105 47 -216 156 -242 49 -12 62 -11 110 4 148 46 194 226 86 337 -60 62 -122 80 -206 60z"}),f.jsx("path",{d:"M3546 3196 c-181 -67 -179 -326 3 -391 69 -24 127 -15 194 29 44 29 87 112 87 166 -1 59 -43 136 -95 172 -50 34 -132 45 -189 24z"}),f.jsx("path",{d:"M4296 3196 c-145 -54 -180 -230 -69 -348 27 -29 99 -58 142 -58 71 1 142 46 182 114 38 67 38 123 1 191 -51 93 -161 136 -256 101z"}),f.jsx("path",{d:"M5038 3203 c-36 -6 -115 -77 -133 -120 -45 -107 14 -239 124 -278 52 -18 84 -19 131 -2 49 17 72 35 108 86 28 39 32 52 32 110 0 80 -26 132 -85 173 -41 28 -117 42 -177 31z"}),f.jsx("path",{d:"M5737 3200 c-44 -14 -95 -58 -117 -100 -31 -61 -28 -153 8 -207 36 -55 69 -80 126 -95 129 -34 261 76 253 212 -4 71 -21 104 -78 152 -38 32 -54 39 -105 43 -32 2 -72 0 -87 -5z"}),f.jsx("path",{d:"M3535 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),f.jsx("path",{d:"M4285 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),f.jsx("path",{d:"M5012 2463 c-69 -38 -104 -83 -123 -162 -10 -46 20 -134 61 -176 32 -33 107 -65 151 -65 61 0 156 64 188 127 6 12 11 49 11 83 0 94 -42 161 -122 195 -50 20 -126 19 -166 -2z"})]})}),as=()=>{const{t:e}=Nt(),{setNavOpen:t,setSubNavOpen:n,setCurrentTCSection:r}=Qn(),a=ii(),[o,i]=l.useState([]),s=dr.language;l.useEffect(()=>{r(e("tonieboxes.navigationTitle"))},[o,s]);const c=g=>{const m=[];g.includes("/tonieboxes/boxsetup")&&(m.push("boxsetup"),g.includes("/tonieboxes/boxsetup/esp32")?m.push("esp32"):g.includes("/tonieboxes/boxsetup/cc3200")?m.push("cc3200"):g.includes("/tonieboxes/boxsetup/cc3235")&&m.push("cc3235")),i(h=>Array.from(new Set([...h,...m])))};l.useEffect(()=>{c(a.pathname)},[a.pathname]);const u=g=>{const m=g.find(b=>!o.includes(b)),h=o.find(b=>!g.includes(b));m?i(b=>[...b,m]):h&&i(b=>b.filter(x=>x!==h))},d=({isOpen:g})=>g??!1?f.jsx(mK,{style:{margin:"16px 0 16px 16px"}}):f.jsx(_m,{style:{margin:"16px 0 16px 16px"}}),p=[{key:"tonieboxes",label:f.jsx(it,{to:"/tonieboxes",style:{marginLeft:8},onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.navigationTitle")}),icon:de.createElement(IFe),title:e("tonieboxes.navigationTitle")},{key:"boxsetup",label:f.jsx(it,{to:"/tonieboxes/boxsetup",style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor"},onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.navigationTitle")}),icon:de.createElement(hK),title:e("tonieboxes.boxSetup.navigationTitle"),children:[{key:"boxversioninfo",label:f.jsx(it,{to:"/tonieboxes/boxsetup/boxversioninfo",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.boxVersion.navigationTitle")}),icon:de.createElement(Xo),title:e("tonieboxes.boxSetup.boxVersion.navigationTitle")},{key:"identifyboxversion",label:f.jsx(it,{to:"/tonieboxes/boxsetup/identifyboxversion",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}),icon:de.createElement(xm),title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")},{key:"openbox",label:f.jsx(it,{to:"/tonieboxes/boxsetup/openboxguide",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}),icon:de.createElement(G2e),title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")},{key:"esp32",label:f.jsx(it,{to:"/tonieboxes/boxsetup/esp32/flashing",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.esp32BoxFlashing.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.esp32BoxFlashing.navigationTitle"),children:[{key:"esp32legacy",label:f.jsx(it,{to:"/tonieboxes/boxsetup/esp32/legacy",onClick:()=>{t(!1),n(!1)},style:{overflow:"hidden",textOverflow:"ellipsis",color:"currentColor"},children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]},{key:"cc3200",label:f.jsx(it,{to:"/tonieboxes/boxsetup/cc3200/flashing",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")},{key:"cc3235",label:f.jsx(it,{to:"/tonieboxes/boxsetup/cc3235/flashing",onClick:()=>{t(!1),n(!1)},children:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}),icon:de.createElement(gp),title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}];return f.jsx(Pm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:o,selectedKeys:[],onOpenChange:u,items:p,expandIcon:({isOpen:g})=>d({isOpen:g})})},{useToken:TFe}=kr,RFe=Ta.img` height: 32px; -`,_Fe=Ia(Yq)` +`,_Fe=Ta(Yq)` color: white; display: flex; align-items: center; padding-left: 16px; padding-right: 16px; background: #141414; -`,$Fe=Ia.div` +`,$Fe=Ta.div` margin-left: auto; display: flex; align-items: center; -`,OFe=Ia.div` +`,OFe=Ta.div` margin-right: 12px; display: flex; align-items: center; -`,NFe=Ia(Ps)` +`,NFe=Ta(Ls)` .ant-menu-title-content { width: 100%; } -`,kFe=Ia(nt)` +`,kFe=Ta(tt)` &:hover { background: transparent !important; } -`,AFe=({themeSwitch:e})=>{const{t}=Nt(),{token:n}=TFe(),{unconfirmedCount:r,navOpen:a,setNavOpen:o,subNavOpen:i,setSubNavOpen:s,currentTCSection:c,setCurrentTCSection:u}=Qn(),d=oi(),[p,g]=l.useState(window.innerWidth<=768);l.useEffect(()=>{const S=()=>g(window.innerWidth<=768);return window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]),l.useEffect(()=>{p||(s(!1),o(!1))},[p]),l.useEffect(()=>{const S=document.querySelector('meta[name="theme-color"]');if(S)S.setAttribute("content",n.colorBgBase);else{const v=document.createElement("meta");v.name="theme-color",v.content=n.colorBgBase,document.head.appendChild(v)}},[n.colorBgBase]);const m=({title:S,to:v,isMobile:y=!1})=>{const C=()=>{o(!1)},w=()=>{u(S),y&&s(!0)};return y?f.jsxs("div",{style:{display:"flex",gap:16,width:"100%",justifyContent:"space-between",alignItems:"center"},children:[f.jsx(ot,{to:v,onClick:C,children:S}),f.jsx(kFe,{type:"text",style:{width:"100%",justifyContent:"end"},icon:f.jsx(Rm,{style:{margin:16}}),onClick:w})]}):f.jsx(ot,{to:v,onClick:C,children:S})},h=[{key:"/",label:f.jsx(m,{title:t("home.navigationTitle"),to:"/",isMobile:p})},{key:"tonies",label:f.jsx(m,{title:t("tonies.navigationTitle"),to:"/tonies",isMobile:p})},{key:"tonieboxes",label:f.jsx(m,{title:t("tonieboxes.navigationTitle"),to:"/tonieboxes",isMobile:p})},{key:"settings",label:f.jsx(m,{title:t("settings.navigationTitle"),to:"/settings",isMobile:p})},{key:"community",label:f.jsx(m,{title:t("community.navigationTitle"),to:"/community",isMobile:p})}];let b=d.pathname.split("/")[1];b||(b="/"),b==="home"&&(b="/");const x=()=>c===t("community.navigationTitle")?f.jsx(js,{}):c===t("settings.navigationTitle")?f.jsx(Lm,{}):c===t("tonies.navigationTitle")?f.jsx(iu,{}):c===t("tonieboxes.navigationTitle")?f.jsx(ns,{}):f.jsx(Pm,{});return f.jsxs(_Fe,{children:[f.jsx(ot,{to:"/",style:{color:"white"},children:f.jsxs(OFe,{children:[f.jsx(RFe,{src:pY}),f.jsx(qd,{style:{textWrap:"nowrap"},children:" TeddyCloud Server"})]})}),f.jsx(qd,{children:f.jsx(Ps,{theme:"dark",mode:"horizontal",items:h,selectedKeys:[b],style:{width:"calc(100vw - 510px)",background:"#141414 !important"}})}),f.jsxs($Fe,{children:[f.jsx(Xke,{}),e,f.jsx(Zke,{}),f.jsx(Qke,{notificationCount:r}),f.jsxs(r0,{style:{marginLeft:8},children:[f.jsx(nt,{className:"barsMenu",type:"primary",onClick:()=>o(!0),icon:f.jsx(R2e,{})}),f.jsxs(d_,{placement:"right",open:a,onClose:()=>o(!1),title:"TeddyCloud",children:[f.jsx(NFe,{mode:"vertical",items:h,selectedKeys:[b],style:{background:"transparent",borderRight:"none"}}),f.jsx(d_,{placement:"right",open:i,onClose:()=>s(!1),title:c,children:x()})]})]})]})]})},{useToken:MFe}=kr,DFe=()=>{const{token:e}=MFe();return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",width:"100%",viewBox:"0 0 512 512",children:[f.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M285.000000,95.000000 C285.726776,91.291718 284.143219,89.788498 280.551392,88.369873 C247.948990,75.493263 212.672882,91.508270 199.495224,122.998001 C196.613541,129.884201 195.385559,137.055237 195.485504,144.500198 C195.559326,149.999207 195.570007,155.501114 195.483032,160.999725 C195.362961,168.591705 191.442429,172.487579 184.000000,172.494614 C166.333344,172.511307 148.666656,172.510849 131.000000,172.494736 C123.739044,172.488113 119.744461,168.704391 119.512695,161.499588 C118.937752,143.626343 119.484947,125.767700 124.620247,108.535835 C129.305405,92.814384 136.600082,78.329407 146.361160,64.899094 C160.063324,46.046219 177.407562,31.600046 198.103745,21.717247 C219.862259,11.327159 243.132431,6.942070 267.508698,8.891317 C284.115204,10.219257 299.968292,14.037633 314.973419,21.056805 C338.704193,32.157684 357.928345,48.584900 372.550323,70.466385 C383.991730,87.588272 391.730164,106.267952 394.317322,126.523338 C399.345093,165.887207 389.786652,201.671356 364.978485,232.982956 C350.265991,251.552322 331.599060,265.211121 309.924530,274.320435 C296.501526,279.961792 282.229004,283.352203 267.499878,283.997559 C263.333923,284.180115 259.162445,284.263275 255.000793,284.513092 C242.331039,285.273529 234.536453,294.940430 234.510101,310.000031 C234.471024,332.333282 234.502640,354.666656 234.498566,377.000000 C234.497147,384.740631 230.771179,388.486389 223.000000,388.494385 C205.666687,388.512268 188.326492,388.221069 171.003571,388.645569 C164.614304,388.802094 159.267792,383.378479 159.354935,376.998016 C159.705429,351.336151 159.031464,325.655487 159.642624,300.003387 C160.167542,277.971313 168.603424,258.489746 183.103546,242.091568 C198.977600,224.139587 218.895264,213.013474 242.995743,209.966385 C250.478912,209.020279 258.084564,209.344330 265.476685,208.330063 C284.746246,205.686066 300.188782,196.120834 310.413757,179.447113 C323.347626,158.355911 322.759064,136.763321 311.652649,114.922371 C309.739319,111.159721 306.957031,112.566917 304.500000,111.750000"}),f.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M197.500000,506.500000 C203.208725,504.136566 209.499985,503.955261 215.081406,500.636932 C226.722000,493.716095 233.515152,484.355804 234.104324,470.504425 C234.416428,463.166840 234.755539,456.042480 232.056686,448.978333 C227.973969,438.291962 214.538635,425.846741 198.510223,425.232910 C181.959915,424.599152 164.725250,435.753998 160.707718,453.048248 C155.331696,476.190460 163.819122,500.451569 192.494766,505.032776 C194.035324,505.278900 195.500000,506.000000 197.000000,506.500000"})]})},PFe=new Dn($n()),{useToken:LFe}=kr,Pk=({maxNoOfGuests:e,toniesSize:t,showQuestionMark:n,title:r,description:a,height:o=(s=>(s=document.getElementById("collage-container"))==null?void 0:s.clientHeight)()||0,width:i=(c=>(c=document.getElementById("collage-container"))==null?void 0:c.clientWidth)()||0})=>{var v,y;const{token:u}=LFe(),[d,p]=l.useState([]),g=i,m=o,h=50,b=50,x=(((v=document.getElementById("central-text"))==null?void 0:v.clientWidth)||0)/(g<450?3:2),S=(((y=document.getElementById("central-text"))==null?void 0:y.clientHeight)||0)/(m<500?3:2);return l.useEffect(()=>{(async()=>{const I=(await PFe.apiGetTagIndexMergedAllOverlays(!1)).sort((T,R)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())).filter(T=>!T.tonieInfo.picture.endsWith("/img_unknown.png")&&T.tonieInfo.picture!==null&&T.tonieInfo.picture!==void 0&&T.tonieInfo.picture!==""&&!T.nocloud).slice(0,e).flatMap(T=>T.tonieInfo.picture).map((T,R)=>{if(r&&a){let _,$;do _=Math.random()*(100-t/m*100),$=Math.random()*(100-t/g*100);while(0h-S/m*100-t/m*100&&_b-x/g*100-t/g*100&&$f.jsxs("div",{className:"collage-image-container",style:{position:"absolute",top:C.top,left:C.left,width:"150px",height:"150px",overflow:"hidden",pointerEvents:"none"},children:[f.jsx("img",{src:C.src,alt:`Random ${C.id}`,className:"collage-image",style:{width:"100%",height:"100%",objectFit:"cover"}}),n&&f.jsx("div",{className:"question-mark-overlay",style:{position:"absolute",top:"5%",right:"20%",width:"30%",height:"30%",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(DFe,{})})]},C.id))]})},{Paragraph:jFe}=xn,FFe=()=>{const{t:e}=Nt();return f.jsx(f.Fragment,{children:f.jsx(Pn,{children:f.jsx(jFe,{children:f.jsx(Pk,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!0,title:e("404.title"),description:e("404.description")})})})})},{Paragraph:iB,Text:bI}=xn,BFe=()=>{const{t:e}=Nt(),t=[{version:"0.6.3",changes:["Stabilization backend","Fixed some memory leaks","Added Hide Information in filesV2 Api https://github.com/toniebox-reverse-engineering/teddycloud/issues/234","Added retain option last will in MQTT https://github.com/toniebox-reverse-engineering/teddycloud/issues/251","Support image caching for tonieboxes images (using setting tonie_json.cache_images) https://github.com/toniebox-reverse-engineering/teddycloud/issues/220","Provide c2.der symlink","Added custom_img volume for storing custom images - adapt your docker-compose.yaml according https://github.com/toniebox-reverse-engineering/teddycloud/blob/master/docker/docker-compose.yaml","gui: Added version overview page","gui: Added spinning wheel to lists, should also fix https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/129","gui: Extended cc3235 guide based on https://github.com/toniebox-reverse-engineering/teddycloud/issues/232, https://github.com/toniebox-reverse-engineering/teddycloud/issues/230 and https://github.com/toniebox-reverse-engineering/teddycloud/issues/229","gui: Extended audioplayer, fixed bugs, show info of currently played content (in case of taf), added play icon to each track in tonieinfomodal (only if tracks and trackseconds have the same number of elements), on click plays the chapter directly","gui: Edit Tonie/Tag: Overworked rollback and empty field functionality https://github.com/toniebox-reverse-engineering/teddycloud/issues/235","gui: Edit Tonie/Tag: Fixed some bugs","gui: Set Cursor to Default on Filebrowser directory row","gui: Show disabled Cloud in Boxine status badge https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/164","gui: Recheck cloud status on certain changes (cloud.enabled, uploaded certs, autoextracted certs in esp32 flashing process) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/167","gui: Added notification system, own page. Migrated messages to notification (except settingspages) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/165","gui: Fixed bug deleting Toniebox https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/174","gui: Mark hidden Tonies/Tags in content view","gui: Only allow *.der files to be uploaded on certificate upload","gui: Added Download buttons/link to download TeddyCloud CA Certificate https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/177","gui: Overworked filebrowsers directory visualization and multi select action buttons https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/162","gui: Overworked settings forms: Instead of autosaving and manual save of strings, there is a new save button to store the changed settings https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/23","gui: Box flashing section: Added links to the great newbie guides in the forum thanks to marco79cgn, chuckf and Wurst420!","gui: Added Certificate upload to box flashing","gui: Completed CC3200 Flashing guide https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/130","gui: Added selection of baudrate in ESP32 flash process https://github.com/toniebox-reverse-engineering/teddycloud/issues/101, https://github.com/toniebox-reverse-engineering/teddycloud/issues/258","gui: Overworked mobile menu layout: section menus now part of the drawer and not shown always on each page, use + icon in mobile to expand menu","gui: Added How to Create a Good Support Request page","gui: Some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.2...tc_v0.6.3","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.2...tcw_v0.6.3"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-3/812",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.3"},{version:"0.6.2",changes:["Stabilization backend","Provide TrackSeconds for Frontend https://github.com/toniebox-reverse-engineering/teddycloud/issues/187","Fixed bug no update of model in content.json if empty https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Added web_version.json for consistency checks, including new setting frontend.ignore_web_version_mismatch","Added frontend setting frontend.confirm_audioplayer_close","Fixed some bugs","gui: Next button in audio player now jumps according tracks of taf","gui: Show error if something went wrong while encoding new taf (Audio Encoder)","gui: Added translation overview page in community contribution section","gui: Improved Audio Encoder, leave selected target folder till reload of page, if only one file is added, take filename as preset for taf filename https://github.com/toniebox-reverse-engineering/teddycloud/issues/223","gui: Fixed filterbug in FileBrowser Component (List + Select) https://github.com/toniebox-reverse-engineering/teddycloud/issues/224","gui: Show warning if web_version of gui does not match expected web_version from backend","gui: Show warning if ogg/opus (taf) is not supported by browser","gui: Integrated frontend.confirm_audioplayer_close","gui: Improved Code Snippet Element, show line numbers and added copy functionality","gui: Added Box setup overview page","gui: Added Box version identification page https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/145","gui: Added Open Toniebox guide page https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/146","gui: Extended CC3200 Firmware flash section, added custom alt Url Patch generation. https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/126","gui: Extended CC3200 Firmware flash section, extended Applying Patches step","gui: Extended CC3235 Firmware flash section, same version as wiki, but additional images flash chip","gui: Added ESP32 Firmware flash legacy section, same version as wiki","gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.1...tc_v0.6.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.1...tcw_v0.6.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-2/773",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.2"},{version:"0.6.1",changes:["Stabilization backend","Changed default for setting cloud.prioCustomContent to false","Disabled prioCustomContent if lower audio id is allowed","Added reload tonies(.custom).json api https://github.com/toniebox-reverse-engineering/teddycloud/issues/177","Added moveFile api https://github.com/toniebox-reverse-engineering/teddycloud/issues/198","Added server side taf file encoding","Support TAF files in taps and server side taf file encoding","Added API to extract certificates https://github.com/toniebox-reverse-engineering/teddycloud/issues/103","Initial cert generation generates now a 4096bit long cert https://github.com/toniebox-reverse-engineering/teddycloud/issues/138","Extended settings api","Fixed bug updating empty model information if entry was added in tonies.json https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Fixed some bugs","gui: Fixed bug storing source with html special chars","gui: Fixed bug saving model and source of a tonie/tag at once","gui: Fixed display bug sourceInfo with unknown content","gui: Integrated new reload tonies.json api","gui: Added Moving and renaming of files in library and content","gui: Fixing security weaknesses","gui: Added file upload to library",`gui: If setting "Category frontend: Split content / model" is disabled, don't show the source info in Tonies list and details modal`,"gui: Added encoding functionality in library","gui: Allow playing all encodable files in teddyCloud","gui: ESP32 flash process - integrated remaining manual steps. Certificate extraction is now also automated","gui: Fixed bug tonieboxes if tonieboxes.custom.json was empty or not available https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/133","gui: Added Spanish language - feel free to improve translations as current translation is completely done by ChatGPT."],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.0...tc_v0.6.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.0...tcw_v0.6.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-1/701",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.1"},{version:"0.6.0",changes:["Stabilization backend","store last played time of last played tag","extend getTagIndex API, provide language in tonieInfos","PoC Toniebox api access (explicitly allow access to teddy cloud api on tonebox level)","Added enable/disable new Tonieboxes: prohibit registration of new tonieboxes if not enabled","Added removal of overlays (= removal of Tonieboxes from TeddyCloud)","add hide tonie/tag functionality (hide using new /web gui, present to box to unhide)","fixed locking bug, reworked locking.","fixed bug not storing cloud auth in some circumstances","fixed bug not storing source in json file: https://github.com/toniebox-reverse-engineering/teddycloud/issues/165","added limit to tempfile creation for radiostreams, default: 240mb (~6h) (configurable if expert mode is activated) https://github.com/toniebox-reverse-engineering/teddycloud/issues/180","added possibility to set WiFi Credentials on ESP32 Firmware patching","introduced second HTTPS port for WebFrontend only, which allows using https for webfrontend (Default: 8443)","tonie images from boxine can now be cached locally (PoC)","new /web gui is now default web gui: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/47","new /web gui: enhanced Toniecard, added search for Radiostream in Edit Modal","new /web gui: Tonies - Content section - added Migrate Content to Lib button on TAF files","new /web gui: added RTNL Log Page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/48","new /web gui: added show Json File when double click on json file (File browser view)","new /web gui: added show TAP File when double click on tap file (File browser view)","new /web gui: added show TAF Header (including AudioID + Hash) when double click on a taf file (File browser view)","new /web gui: show date time of last played tag (toniecard + toniboxcard)","new /web gui: added Tonie Audio Playlist page (WIP - Implementation not yet finished), rearranged menu entries tonies section: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/52","new /web gui: added delete feature in content, library and audio playlist page","new /web gui: improved changelog page, parse links and open links in new tab; completed contributors page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/27","new /web gui: added language flag to tonies card if it's not the same as the most owned language ones, added language filter","new /web gui: deletion of tonieboxes","new /web gui: info if add new boxes is enabled on homepage and tonieboxes page","new /web gui: enable/disable API access for toniebox added on tonieboxes page","new /web gui: add hide tonie/tag in tonies list (in info modal)","new /web gui: PoC Tonies Custom Json Editor (WiP, not working, but you get the json part to copy into the tonies.custom.json)","new /web gui: PoC Tonie Audio Playlist Editor (WiP, not working, but you get the json to copy and save as a TAP file) ","new /web gui: allow TAP files to be selected on Edit Tag Modal","new /web gui: new 404 page","new /web gui: hidden feature Tonie meeting. Search for it!","new /web gui: added link to Toniebox if the box is version cc3200, an ip is available and cfw is installed: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/28","new /web gui: hide audioplayer if no source is set, when clicking on play icon of a tonie/taf/... the player is shown: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: added minimize/maximize audioplayer https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: show Tonie on tonie article search","new /web gui: improved audioplayer, added volume control to custom one, hide doubled audioplayer","new /web gui: added French translation. Feel free to check if chatGPT is a good translator. If something is wrong, give us a shout at telegram!","new /weg gui: overworked filebrowser to be responsive","new /web gui: overworked tonie information modal, now also available in file browser (library + content)","new /web gui: added Create Directory functionality in file browser","new /web gui: added better breadcrumb to filebrowser (clickable for easy directory switching) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/78","new /web gui: set nocloud to true if source of a tag is changed https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/77","new /web gui: show image and information from set source if different from model https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/80","new /web gui: tonie overview: filter now also considers information from set source","new /web gui: fixed bugs after updating tonies in tonies overview","new /web gui: added FAQ page in community section","new /web gui: support web streams in audioplayer","new /web gui: improved filebrowser, added filter field and made buttons sticky","new /web gui: integrated ESP32 Firmware Flashing https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/46","new /web gui: integrated setting of WiFi credentials in ESP32 Firmware Flashing","new /web gui: show hint on ESP32 Firmware Flashing page if browser does not support WebSerial","new /web gui: allow multiselection in file browser for file deletion","new /web gui: limit audio encoder to 99 files (as Toniebox only supports 99 chapters)","new /web gui: fixed image fetch loop when playing a tonie","new /web gui: fixed poor audio quality in some case when using audio encoder","new /web gui: migrated gui from create-react-app to vite","new /web gui: fixed some bugs and minor refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.2...tc_v0.6.0","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.2...tcw_v0.6.0"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-0/468",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.0"},{version:"0.5.2",changes:["Stabilization backend","Several fixes and changes regards backend crashes and emptied config files when changing any tonie setting","Fix for random directories in library (and everywhere)","Fixed bug storing last played tonie per box","Fixed bug clearing text settings (like paths or flex tonie)","API for searching models is now case insensitive","Save IP of Toniebox as prepartion for linking CFW Tonieboxes","Introduced Settings level - 1: Basic, 2: Detail, 3: Expert (1 Default - if you are missing settings, increase level!)","new /web gui: enhanced Tonies Card, added editable content source","new /web gui: enhanced Toniebox Card, improved UX","new /web gui: Dark theme (Last used Theme stored in localStorage in Browser)","new /web gui: Show All (Hide Pagination on Tonies List, stored in localStorage in Browser)","new /web gui: Support of overlayed content folder. More details can be found here: https://forum.revvox.de/t/teddycloud-supporting-multiple-tonieboxes/451/1","new /web gui: Text inputs in Settings must be saved explicitly. (only Textinputs, other types are still autosaved.) Expect changes in future releases.","new /web gui: fixed various state bugs","new /web gui: show last online date of offline tonieboxes","new /web gui: Messages on successful setting updates","new /web gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.1...tc_v0.5.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.1...tcw_v0.5.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-2/450",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.2"},{version:"0.5.1",changes:["Stabilization Backend (added locks to prevent crashes, removed memory leaks)","Creating dirs when uploading certificates to a not yet existing path","Moving Tafs from Content to Library on click (not yet available in (new?) frontend)","new /web gui: Pagination + Filtering on Tonies List ( Paging Tonies · Issue #24 · toniebox-reverse-engineering/teddycloud_web · GitHub 2 )","new /web gui: Extend Box Management: Certificate upload now box specific possible, overworked certificate upload ( Certificate upload box related · Issue #26 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: Show last played Tonie on Box Management, link to prefiltered Tonieslist, added marking of the Last played Tonies on each box in Tonieslist ( Make use of internal.last_ruid · Issue #30 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: adapted cursor on cards to default as cards not really clickable ( TonieCard Cursor · Issue #25 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: fixed navigation item marking","new /web gui: updated box models, added pseudomodels of the official tonies covers (sleepy bear, sheep and rabbit). They are now placed in a json in the config folder. Custom tonieboxes are now also possible. Add your customised one in tonieboxes.custom.json and choose it in the box mgmt.","new /web gui: added community section (WIP) ( Add Changelog and contribution page · Issue #27 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: fixed warnings"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.0...tc_v0.5.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.0...tcw_v0.5.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-1/447",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.1"},{version:"0.5.0",changes:["security mitigations on public instances as it‘s definitely not recommended to host teddycloud in public accessible for all","prepared authentication for frontend (backend adaptions)","linked new /web gui on teddycloud administration gui","overworked header, reordered menu items, new icons, better readable status in new /web gui","fixed modals (still some display problems on small devices like mobiles exists)","added audio encoder to new /web gui, you are now able to select files and encode them to a taf","This lets you bring your own content easily on an existing tonie.","added toniebox management to new /web gui, improved backend functions for that","only at least once connected boxes are listed, model must be set manually","enriched homepage in new /web gui with 5 randomly selected tonies of yours","adapt tonie card list to different cover image sizes in new /web gui (all cards within one row have now the same height)","added no cloud and live icon (Toggle to enable/disable) on tonie card in new /web gui","fixed several bugs"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/pull/154","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/8","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/9","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/19","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/21","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/22"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-0/444",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.0"},{version:"0.4.5 and older",changes:["A lot more. See Github for details!"],commits:[]}],n=r=>{const a=/(https?:\/\/[^\s]+)/g;return r.split(a).map((i,s)=>a.test(i)?f.jsx(ot,{to:i,target:"_blank",rel:"noopener noreferrer",children:i},s):i)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.changelog.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.changelog.title")}),f.jsx(iB,{children:f.jsx(Er,{dataSource:t,renderItem:r=>f.jsxs(f.Fragment,{children:[f.jsxs("h2",{children:[e("community.changelog.version")," ",r.version]}),f.jsxs(iB,{children:[f.jsx("h3",{children:e("community.changelog.changes")}),f.jsx("ul",{children:r.changes.map((a,o)=>f.jsx("li",{children:n(a)},o))})]}),r.commits&&r.commits.length>0&&f.jsxs(f.Fragment,{children:[f.jsxs(bI,{strong:!0,children:[e("community.changelog.allCommits"),":"]}),f.jsx("ul",{children:r.commits.map((a,o)=>f.jsx("li",{children:f.jsx(ot,{to:a,target:"_blank",children:a})},o))})]}),r.discussionLink&&f.jsxs(f.Fragment,{children:[f.jsxs(bI,{strong:!0,children:[e("community.changelog.discussion"),":"]}),f.jsx("ul",{children:f.jsx("li",{children:f.jsx(ot,{to:r.discussionLink,target:"_blank",children:r.discussionLink})})})]}),r.githubReleaseLink&&f.jsxs(f.Fragment,{children:[f.jsxs(bI,{strong:!0,children:[e("community.changelog.githubRelease"),":"]}),f.jsx("ul",{children:f.jsx("li",{children:f.jsx(ot,{to:r.githubReleaseLink,target:"_blank",children:r.githubReleaseLink})})})]})]})})})]})]})]})},{Paragraph:yI}=xn,zFe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.title")}),f.jsxs(yI,{children:[f.jsx("h2",{children:e("community.community.getInvolved")}),e("community.community.getInvolvedText1")]}),f.jsxs(yI,{children:[f.jsx(yI,{children:e("community.community.getInvolvedText2")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx(ot,{to:FY,target:"_blank",children:"GitHub"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.github")})})]}),f.jsxs("li",{children:[f.jsx(ot,{to:uk,target:"_blank",children:"Telegram Chat"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.telegram")})})]}),f.jsxs("li",{children:[f.jsx(ot,{to:hd,target:"_blank",children:"Discourse Forum"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.discourse")})})]}),f.jsxs("li",{children:[f.jsx(ot,{to:BY,target:"_blank",children:"TeddyCloud Wiki"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.teddyCloudWiki")})})]})]})]})]})]})]})},{Paragraph:ec}=xn,HFe=()=>{const{t:e}=Nt(),t=[e("community.contribution.communityValues1"),e("community.contribution.communityValues2"),e("community.contribution.communityValues3"),e("community.contribution.communityValues4"),e("community.contribution.communityValues5"),e("community.contribution.communityValues6")],n=[e("community.contribution.makeFirstContribution1"),e("community.contribution.makeFirstContribution2"),e("community.contribution.makeFirstContribution3"),e("community.contribution.makeFirstContribution4"),e("community.contribution.makeFirstContribution5"),e("community.contribution.makeFirstContribution6"),e("community.contribution.makeFirstContribution7")];return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.contribution.title")}),f.jsxs(ec,{children:[f.jsx(ec,{children:e("community.contribution.contributionIntro")}),f.jsxs(ec,{children:[f.jsx("h2",{children:e("community.contribution.communityValues")}),f.jsx(ec,{children:e("community.contribution.communityValuesIntro")}),f.jsx(ec,{children:e("community.contribution.communityValuesExamples")}),f.jsx("ul",{children:t.map((r,a)=>f.jsx("li",{children:r},a))})]}),f.jsxs(ec,{children:[f.jsx("h2",{children:e("community.contribution.makeFirstContribution")}),f.jsx(ec,{children:e("community.contribution.makeFirstContributionIntro")}),f.jsx("ul",{children:n.map((r,a)=>f.jsx("li",{children:r},a))})]})]})]})]})]})},UFe=new Dn($n()),{Paragraph:sB}=xn,{Panel:VFe}=Rs,WFe=()=>{const{t:e}=Nt(),[t,n]=l.useState({});return l.useEffect(()=>{async function r(){try{const s=(await(await UFe.apiGetTeddyCloudApiRaw("/api/toniesJson")).json()).filter(u=>u.audio_id&&u.audio_id.length===0&&!["creative-tonie","system"].includes(u.category)&&!u.model.includes("20000")).map(u=>({model:u.model,series:u.series,episodes:u.episodes,pic:u.pic,audio_id:u.audio_id||[],category:u.category,language:u.language})),c={};s.forEach(u=>{c[u.language]||(c[u.language]=[]),c[u.language].push(u)}),n(c)}catch(a){console.error("Error fetching and transforming data:",a)}}r()},[]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")},{title:e("community.contribution.toniesJson.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.contribution.toniesJson.title")}),f.jsx(sB,{children:e("community.contribution.toniesJson.text")}),f.jsx(sB,{children:f.jsx(Rs,{accordion:!0,children:Object.keys(t).map((r,a)=>f.jsx(VFe,{header:r,children:f.jsx(Er,{children:Array.isArray(t[r])&&t[r].map((o,i)=>f.jsx(Er.Item,{id:o.model,children:f.jsxs("div",{children:[f.jsx("img",{src:o.pic,alt:"",style:{width:"100px",height:"auto"}}),o.model," - ",o.series," -"," ",o.episodes]})},i))})},a))})})]})]})]})},{Paragraph:tc}=xn,GFe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contributors.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.contributors.title")}),f.jsxs(tc,{children:[e("community.contributors.contributorsIntro"),f.jsxs(tc,{children:[f.jsx("h3",{children:"teddycloud"}),f.jsx("div",{children:e("community.contributors.teddyCloud")}),f.jsx(ot,{to:ML,target:"_blank",children:ML})]}),f.jsxs(tc,{children:[f.jsx("h3",{children:"teddycloud_web"}),f.jsx("div",{children:e("community.contributors.teddyCloudWeb")}),f.jsx(ot,{to:DL,target:"_blank",children:DL})]}),f.jsxs(tc,{children:[e("community.contributors.others")," ",f.jsx(ot,{to:AL,target:"_blank",children:AL})]})]}),f.jsxs(tc,{children:[f.jsx("div",{style:{marginBottom:24},children:e("community.contributors.bigRoundOfApplause")}),f.jsx(Pk,{maxNoOfGuests:50,toniesSize:150,showQuestionMark:!1,height:150})]}),f.jsx(Ha,{}),f.jsxs(tc,{children:[f.jsx("h3",{children:e("community.contributors.supportTeam")}),f.jsx(tc,{children:e("community.contributors.supportTeamText")}),f.jsx(ot,{to:dk,target:"_blank",children:e("community.contributors.supportTeamLink")})]})]})]})]})},{Paragraph:lB}=xn,qFe=()=>{const{t:e}=Nt(),t=e("faq",{returnObjects:!0});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.faq.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.faq.title")}),f.jsx(lB,{children:e("community.faq.intro")}),f.jsx(lB,{children:t.map((n,r)=>f.jsxs("div",{style:{marginBottom:"20px"},children:[f.jsx("h3",{children:n.question}),f.jsx("p",{children:n.answer})]},r))})]})]})]})},OX=(e,t,n="")=>{const r=[];return Object.keys(e).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(e[a])?Array.isArray(t[a])?e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;t[a][s]||r.push(c,u)}):e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof e[a]=="object"&&e[a]!==null?!(a in t)||typeof t[a]!="object"?r.push(...NX(e[a],o)):r.push(...OX(e[a],t[a],o)):a in t||r.push(o)}),r},NX=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...NX(e[r],a)):n.push(a)}),n},kX=(e,t,n="")=>{const r=[];return Object.keys(t).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(t[a])?Array.isArray(e[a])?t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;e[a][s]||r.push(c,u)}):t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof t[a]=="object"&&t[a]!==null?!e[a]||typeof e[a]!="object"?r.push(o):r.push(...kX(e[a],t[a],o)):a in e||r.push(o)}),r},KFe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState({}),[o,i]=l.useState({}),[s,c]=l.useState(!0),u=["en","fr","de","es"],d="en";return l.useEffect(()=>{(async()=>{const g={};for(let m of u){const b=await(await fetch(`/web/translations/${m}.json`)).json();g[m]=b}n(g),c(!1)})()},[]),l.useEffect(()=>{if(!s&&t[d]){const p=t[d],g={},m={};u.forEach(h=>{if(h!==d){const b=t[h];g[h]=OX(p,b),m[h]=kX(p,b)}}),a(g),i(m)}},[s,t]),s?f.jsx("p",{children:"Loading translations..."}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{children:e("community.translations.missingExtraKeysHeadline")}),u.every(p=>{var g,m;return p===d||((g=r[p])==null?void 0:g.length)===0&&((m=o[p])==null?void 0:m.length)===0})?f.jsx("p",{children:e("community.translations.noDiscrepancies")}):f.jsx("div",{children:u.map(p=>{var g,m;return p!==d&&f.jsxs("div",{children:[f.jsxs("h2",{children:[e("community.translations.language"),": ",p.toUpperCase()]}),f.jsx("h3",{children:e("community.translations.missingKeys")}),((g=r[p])==null?void 0:g.length)>0?f.jsx("ul",{children:r[p].map((h,b)=>f.jsx("li",{children:h},b))}):f.jsx("p",{children:e("community.translations.noMissingKeys")}),f.jsxs("h3",{children:[e("community.translations.extraKeys"),":"]}),((m=o[p])==null?void 0:m.length)>0?f.jsx("ul",{children:o[p].map((h,b)=>f.jsx("li",{children:h},b))}):f.jsx("p",{children:e("community.translations.noExtraKeys")})]},p)})})]})},AX=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...AX(e[r],a)):n.push(a)}),n},YFe=(e,t)=>{const n=t.split(".");let r=e;for(let a of n){if(a.includes("[")){const[o,i]=a.split("["),s=parseInt(i.replace("]",""),10);if(r=r[o],Array.isArray(r))r=r[s];else return}else r=r?r[a]:void 0;if(r===void 0)return}return typeof r=="string"?r:void 0},XFe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState(!0),o=["en","fr","de","es"],i="en";if(l.useEffect(()=>{(async()=>{const p={};for(let g of o){const h=await(await fetch(`/web/translations/${g}.json`)).json();p[g]=h}n(p),a(!1)})()},[]),r)return f.jsx("p",{children:"Loading translations..."});const s=AX(t[i]),c=[{title:e("community.translations.key"),dataIndex:"key",key:"key",width:"30%",fixed:"left",render:d=>f.jsx("div",{style:{wordWrap:"break-word",wordBreak:"break-all"},children:d})},...o.map(d=>({title:d.toUpperCase(),dataIndex:d,key:d}))],u=s.map(d=>{const p={key:d};return o.forEach(g=>{const m=YFe(t[g],d);p[g]=m||"<"+e("community.translations.missing")+">"}),p});return f.jsxs(f.Fragment,{children:[f.jsx("h2",{children:e("community.translations.allTranslationStrings")}),f.jsx(ya,{size:"small",columns:c,scroll:{x:"100%"},dataSource:u,rowKey:"key",pagination:!1})]})},{Paragraph:ZFe}=xn,QFe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.translations.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.translations.title")}),f.jsx(ZFe,{children:e("community.translations.hint")}),f.jsx(KFe,{}),f.jsx(XFe,{})]})]})]})},xI=new Dn($n()),JFe=()=>{const{t:e}=Nt(),[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState("");l.useEffect(()=>{xI.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(d=>d.text()).then(d=>n(d)).catch(d=>console.error("Error fetching data:",d)),xI.apiGetTeddyCloudSettingRaw("internal.version.id").then(d=>d.text()).then(d=>a(d)).catch(d=>console.error("Error fetching data:",d)),xI.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(d=>d.text()).then(d=>i(d)).catch(d=>console.error("Error fetching data:",d))},[]);const s=(d,p)=>f.jsx("ul",{children:Object.keys(d).map(g=>{const m=d[g],h=`${p}.${g}`;return typeof m=="object"&&m.items?f.jsxs("li",{children:[e(`${h}.title`),s(m.items,h+".items")]},g):f.jsx("li",{children:e(h)},g)})}),c=e("home.features.features",{returnObjects:!0}),u=e("home.features.futureFeatures",{returnObjects:!0});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Pm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("home.features.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("home.features.title")+" "+r}),f.jsx("p",{children:e("home.features.description")}),f.jsxs("p",{children:["Build:"," ",f.jsx(ot,{to:mke+o,target:"_blank",children:t.replace(r,"")})]}),f.jsx("h2",{children:e("home.features.currentlyImplementedFeatures")}),s(c,"home.features.features"),f.jsx("h2",{children:e("home.features.yetToCome")}),s(u,"home.features.futureFeatures")]})]})]})},e8e=({currentPage:e,onChange:t,total:n,pageSize:r,additionalButtonOnClick:a})=>{const{t:o}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(kN,{current:e,total:n,pageSize:r,onChange:t,showSizeChanger:!0,pageSizeOptions:["24","48","96","192"],locale:{items_per_page:o("tonies.tonies.pageSelector")},style:{marginBottom:8}}),f.jsx(nt,{onClick:a,style:{marginLeft:16},children:o("tonies.tonies.showAll")})]})},t8e=new Dn($n()),n8e=e=>{const{t}=Nt(),{addNotification:n}=Qn(),[r,a]=l.useState([]),[o,i]=l.useState(),[s,c]=l.useState(!1),u=async g=>{const m=encodeURIComponent(g),h="/api/toniesJsonSearch?searchModel="+m+"&searchSeries="+m+"&searchEpisode="+m;try{const S=(await(await t8e.apiGetTeddyCloudApiRaw(h)).json()).map(v=>({value:v.model,text:"["+v.model+"] "+v.series+" - "+v.episode,picture:v.picture}));a(S)}catch(b){n(dt.Error,t("tonieArticleSearch.failedToFetchSearchResults"),t("tonieArticleSearch.failedToFetchSearchResultsDetails")+b,t("tonies.navigationTitle"));return}},d=g=>{i(g),e.onChange(g)},p=()=>{c(!0)};return f.jsxs(f.Fragment,{children:[f.jsx(cr,{showSearch:!0,value:o,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:u,onChange:d,notFoundContent:null,options:(r||[]).map(g=>({value:g.value,label:f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("img",{src:g.picture,alt:g.text,style:{display:"none"}}),g.text]})})),style:{marginTop:"8px"}}),f.jsx($X,{open:s,props:e,setValue:i,onClose:()=>c(!1)}),f.jsx(Wt,{title:t("tonies.addNewCustomTonieHint"),children:f.jsx(nt,{onClick:p,style:{marginTop:8},children:t("tonies.addNewCustomTonie")})})]})},{useToken:r8e}=kr,MX=({parentRef:e})=>{const{token:t}=r8e(),n={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:t.colorBgContainer,opacity:.6,display:"flex",justifyContent:"center",alignItems:"center",zIndex:2e3};return f.jsx("div",{style:n,children:f.jsx(vf,{style:{position:"absolute",top:250},size:"default"})})},su=()=>f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"20px",minHeight:"100px"},children:f.jsx(vf,{size:"default"})});function ad(e,t=!0,n=1){if(!e||e<0)return"NaN";const r=t?1e3:1024;if(Math.abs(e)=r&&o{const{t:c}=Nt(),{playAudio:u}=Am(),{token:d}=o8e(),{addNotification:p,addLoadingNotification:g,closeLoadingNotification:m}=Qn(),h=oi(),b=Zc(),x=l.useRef(null),S=l.useRef(null),[v,y]=l.useState([]),[C,w]=l.useState(""),[E,I]=l.useState(!1),[T,R]=l.useState([]),[_,$]=l.useState(!1),[M,P]=l.useState(),[D,O]=l.useState(""),[k,N]=l.useState(""),[A,L]=l.useState(!1),[j,F]=l.useState(!0),B=l.useRef(null);l.useEffect(()=>{R([])},[]),l.useEffect(()=>{if(n){const te=new URLSearchParams(h.search);te.set("path",""),w("");const ie=`${window.location.pathname}?${te.toString()}`;window.history.replaceState(null,"",ie),I(pe=>!pe)}},[n]),l.useEffect(()=>{F(!0),a8e.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${C}&special=${e}`+(n?`&overlay=${n}`:"")).then(te=>te.json()).then(te=>{var ie=te.files;o&&(ie=ie.filter(pe=>pe.isDir)),t.length>0&&(ie=ie.filter(pe=>pe.isDir||t.some(me=>pe.name.endsWith(me)))),y(ie)}).catch(te=>p(dt.Error,c("fileBrowser.messages.errorFetchingDirContent"),c("fileBrowser.messages.errorFetchingDirContentDetails",{path:C||"/"})+te,c("fileBrowser.title"))).finally(()=>{F(!1)})},[C,e,o,E]),l.useEffect(()=>{S.current!==null&&x.current&&x.current.setSelectionRange(S.current,S.current)},[k]);const z=te=>{var ie;!te.isDir&&((ie=te.tonieInfo)!=null&&ie.tracks)&&(P(te),O(encodeURI("/content"+C+"/"+te.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:"")),$(!0))},U=te=>{a&&b(`?path=${te}`),C===te&&I(ie=>!ie),L(!1),w(te)},H=(te,ie)=>{const pe=te.split("/").filter(re=>re),me=[{title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>ie(""),children:c("fileBrowser.root")}),key:"/"}];return pe.forEach((re,ce)=>{const ge=`/${pe.slice(0,ce+1).join("/")}`;me.push({title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>ie(ge),children:re}),key:ge})}),f.jsx(Cm,{items:me})},Y=te=>{N(te.target.value),S.current=te.target.selectionStart,L(!0)},K=()=>{N(""),S.current=0},J=()=>{L(!0)},ne=()=>{L(!1)},W=te=>T.includes(te.key)?"highlight-row":"",q=te=>{if(r>0){if(t){const pe=te.length;te=te.filter(me=>{const re=v.find(ce=>ce.name===me);return re&&re.tafHeader!==void 0||re&&t.some(ce=>re.name.toLowerCase().endsWith(ce))}),pe!==te.length&&p(dt.Warning,c("fileBrowser.fileTypesWarning"),c("fileBrowser.selectAllowedFileTypesOnly",{fileTypes:t.join(", ")}),c("fileBrowser.title"))}te.length>r?p(dt.Warning,c("fileBrowser.maxSelectedRowsWarning"),c("fileBrowser.maxSelectedRows",{maxSelectedRows:r}),c("fileBrowser.title")):R(te)}else R(te);const ie=(v==null?void 0:v.filter(pe=>te.includes(pe.name)))||[];s!==void 0&&s(ie,C,e)},Z=te=>{F(!0);const ie=te===".."?C.split("/").slice(0,-1).join("/"):`${C}/${te}`;a&&b(`?path=${ie}`),L(!1),R([]),w(ie)},Q=(te,ie)=>ie.reduce((pe,me)=>{if(pe&&pe[me]!==void 0)return pe[me]},te),ee=(te,ie,pe)=>{const me=Array.isArray(pe)?Q(te,pe):te[pe],re=Array.isArray(pe)?Q(ie,pe):ie[pe];return me===void 0&&re===void 0?0:me===void 0?1:re===void 0?-1:typeof me=="string"&&typeof re=="string"?me.localeCompare(re):typeof me=="number"&&typeof re=="number"?me-re:(console.log("Unsupported types for sorting:",te,ie),console.log("Unsupported types for sorting field:",pe,me,re),0)},oe=(te,ie)=>te.isDir===ie.isDir?ee(te,ie,"name"):te.isDir?-1:1;var se=[{title:"",dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(te,ie)=>{var pe,me;return ie&&((pe=ie.tonieInfo)!=null&&pe.picture)?f.jsx("img",{src:ie.tonieInfo.picture,alt:c("tonies.content.toniePicture"),onClick:()=>z(ie),style:{width:100,cursor:!ie.isDir&&((me=ie==null?void 0:ie.tonieInfo)!=null&&me.tracks)?"help":"default"}},`picture-${ie.name}`):f.jsx(f.Fragment,{})},showOnDirOnly:!1},{title:c("fileBrowser.name"),dataIndex:"name",key:"name",sorter:oe,defaultSortOrder:"ascend",render:(te,ie)=>{var pe,me,re,ce,ge;return ie&&f.jsxs("div",{children:[f.jsx("div",{className:"showSmallDevicesOnly",children:f.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[f.jsxs("div",{style:{display:"flex"},children:[ie.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:ie.isDir?"normal":"break-word"},children:ie.isDir?f.jsx(f.Fragment,{children:ie.name}):ie.name})]}),f.jsx("div",{children:(pe=ie.tonieInfo)==null?void 0:pe.model}),f.jsx("div",{style:{wordBreak:ie.isDir?"normal":"break-word"},children:((me=ie.tonieInfo)!=null&&me.series?(re=ie.tonieInfo)==null?void 0:re.series:"")+((ce=ie.tonieInfo)!=null&&ce.episode?" - "+((ge=ie.tonieInfo)==null?void 0:ge.episode):"")})]})}),f.jsx("div",{className:"showMediumDevicesOnly",children:f.jsxs("div",{style:{display:"flex"},children:[ie.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:ie.isDir?"normal":"break-word"},children:ie.isDir?f.jsx(f.Fragment,{children:ie.name}):ie.name})]})}),f.jsx("div",{className:"showBigDevicesOnly",children:f.jsxs("div",{style:{display:"flex"},children:[ie.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:ie.isDir?"normal":"break-word"},children:ie.isDir?f.jsx(f.Fragment,{children:ie.name}):ie.name})]})})]},`name-${ie.name}`)},filteredValue:[k],onFilter:(te,ie)=>{var me,re,ce,ge;const pe=te.toLowerCase();return ie.name===".."||ie.name.toLowerCase().includes(pe)||!ie.isDir&&"tafHeader"in ie&&ie.tafHeader.size&&ad(ie.tafHeader.size).toString().includes(pe)||"tafHeader"in ie&&((me=ie.tafHeader.audioId)==null?void 0:me.toString().includes(pe))||"tonieInfo"in ie&&((re=ie.tonieInfo)==null?void 0:re.model.toLowerCase().includes(pe))||"tonieInfo"in ie&&((ce=ie.tonieInfo)==null?void 0:ce.series.toLowerCase().includes(pe))||"tonieInfo"in ie&&((ge=ie.tonieInfo)==null?void 0:ge.episode.toLowerCase().includes(pe))},showOnDirOnly:!0},{title:c("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(te,ie)=>{var pe;return f.jsx("div",{children:(pe=ie.tonieInfo)==null?void 0:pe.model},`model-${ie.name}`)}},{title:f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[c("fileBrowser.model"),"/",c("fileBrowser.series"),"/",c("fileBrowser.episode")]}),f.jsx("div",{className:"showBigDevicesOnly",children:c("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(te,ie)=>{var pe,me,re,ce,ge,ye,Ee;return f.jsxs("div",{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[f.jsx("div",{children:(pe=ie.tonieInfo)==null?void 0:pe.model}),f.jsx("div",{style:{wordBreak:"break-word"},children:((me=ie.tonieInfo)!=null&&me.series?(re=ie.tonieInfo)==null?void 0:re.series:"")+((ce=ie.tonieInfo)!=null&&ce.episode?" - "+((ge=ie.tonieInfo)==null?void 0:ge.episode):"")})]}),f.jsx("div",{className:"showBigDevicesOnly",children:(ye=ie.tonieInfo)!=null&&ye.series?(Ee=ie.tonieInfo)==null?void 0:Ee.series:""})]},`series-${ie.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:c("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(te,ie)=>{var pe;return f.jsx("div",{children:(pe=ie.tonieInfo)==null?void 0:pe.episode},`episode-${ie.name}`)}},{title:f.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:c("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(te,ie)=>{let pe=[];return ie.tafHeader?pe.push(f.jsx(Wt,{title:c("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+C+"/"+ie.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:""),ie.tonieInfo,{...ie,audioUrl:encodeURI("/content"+C+"/"+ie.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:"")})})},`action-play-${ie.name}`)):i8e.some(me=>ie.name.endsWith(me))&&pe.push(f.jsx(Wt,{title:c("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+C+"/"+ie.name)+"?special="+e+(n?`&overlay=${n}`:""),ie.tonieInfo)})},`action-play-${ie.name}`)),pe},showOnDirOnly:!1}];se.forEach(te=>{te.hasOwnProperty("sorter")||(te.sorter=(ie,pe)=>ee(ie,pe,te.dataIndex))}),o&&(se=se.filter(te=>te.showOnDirOnly)),i&&(se=se.filter(te=>typeof te.key=="string"?i.includes(te.key):!1));const fe=j?"":f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE});return f.jsxs(f.Fragment,{children:[M?f.jsx(Ky,{open:_,tonieCardOrTAFRecord:{...M,audioUrl:D},onClose:()=>$(!1),overlay:n}):"",f.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:f.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[f.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:c("tonies.currentPath")}),H(C,U)]})}),f.jsxs("div",{className:"test",style:{position:"relative"},ref:B,children:[j?f.jsx(MX,{parentRef:B}):"",f.jsx(ya,{dataSource:v,columns:se,rowKey:te=>te.name,pagination:!1,onRow:te=>({onDoubleClick:()=>{if(te.isDir)Z(te.name);else{const ie=T.includes(te.name)?T.filter(pe=>pe!==te.name):[...T,te.name];q(ie)}},style:{cursor:te.isDir?"context-menu":"unset"}}),rowClassName:W,rowSelection:r>0?{selectedRowKeys:T,onChange:q}:{selectedRowKeys:T,onChange:q,getCheckboxProps:te=>({disabled:te.name===".."}),onSelectAll:(te,ie)=>{const pe=te?ie.filter(me=>me.name!=="..").map(me=>me.name):[];R(pe)}},components:{header:{wrapper:te=>f.jsx("thead",{...te}),row:te=>f.jsxs(f.Fragment,{children:[f.jsx("tr",{...te}),f.jsx("tr",{children:f.jsx("th",{style:{padding:"10px 8px"},colSpan:se.length+1,children:f.jsx(Jt,{placeholder:c("fileBrowser.filter"),value:k,onChange:Y,onFocus:J,onBlur:ne,ref:x,style:{width:"100%"},autoFocus:A,addonAfter:f.jsx(pa,{onClick:K,disabled:k.length===0,style:{color:k.length===0?d.colorTextDisabled:d.colorText,cursor:k.length===0?"default":"pointer"}})})})})]}),cell:te=>f.jsx("th",{...te,style:{position:"sticky",top:0,zIndex:8}})}},locale:{emptyText:fe}})]})]})},s8e=e=>{const{t}=Nt(),{addNotification:n}=Qn(),[r,a]=l.useState([]),[o,i]=l.useState(),[s,c]=l.useState(!1),u="https://de1.api.radio-browser.info/json/";l.useEffect(()=>{(async()=>{try{(await fetch(u+"stats")).ok&&c(!0)}catch{console.log("Radio Browser API not available, disable radiostream search."),c(!1)}})()},[]);const d=(b,x)=>{let S;return(...v)=>{clearTimeout(S),S=setTimeout(()=>b.apply(void 0,v),x)}},p=async b=>{if(a([]),b==="")return;const x=encodeURIComponent(b),S=u+"stations/search?name="+x+"&is_https=true&hidebroken=true";try{const v=await fetch(S,{});if(!v.ok)throw new Error(v.status+" "+v.statusText);const y=await v.json(),C=Array.from(new Set(y.map(w=>w.url))).map(w=>{const E=y.find(I=>I.url===w);return{value:E.url,text:(E.country?"["+E.country+"] ":"")+E.name+(E.language?" ("+E.language+")":"")}});a(C)}catch(v){n(dt.Error,t("radioStreamSearch.failedToFetchSearchResults"),t("radioStreamSearch.failedToFetchSearchResultsDetails")+v,t("tonies.title"));return}},g=l.useCallback(d(p,300),[]),m=b=>{i(b),e.onChange(b)};return s?f.jsxs(f.Fragment,{children:[f.jsx(xn.Text,{style:{fontSize:"small",display:"inline-block",marginTop:"8px"},children:t("radioStreamSearch.searchLabel")}),f.jsx(cr,{showSearch:!0,style:{margin:"8px 0"},value:o,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:g,onChange:m,notFoundContent:null,options:(r||[]).map(b=>({value:b.value,label:b.text}))})]}):f.jsx(f.Fragment,{})},l8e=({countryCode:e,height:t})=>{switch(e){case"de-de":return f.jsxs("svg",{height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 60",children:[f.jsx("path",{d:"M0 0h100v20H0z"}),f.jsx("path",{fill:"#D00",d:"M0 20h100v20H0z"}),f.jsx("path",{fill:"#FFCE00",d:"M0 40h100v20H0z"})]});case"en-gb":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.666",height:t,children:[f.jsxs("g",{fill:"#FFF",children:[f.jsx("path",{d:"M0 0h100v66.53H0z"}),f.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zM39.045 21.696 0 0v6.141l28.012 15.556z"})]}),f.jsx("path",{d:"M76.764 44.834 100 57.642V44.834zm-16.004 0L100 66.53v-6.141L71.988 44.834zM89.396 66.53 60.741 50.604V66.53zM17.602 44.834 0 54.62v-9.786zm21.442 2.768V66.55H4.971zM23.041 21.696 0 8.889v12.807zm16.004 0L0 0v6.141l28.012 15.556zM10.409 0l28.655 15.926V0zm71.793 21.696L100 11.911v9.786zM60.76 18.928V0h34.093z",fill:"#0052B4"}),f.jsxs("g",{fill:"#D80027",children:[f.jsx("path",{d:"M56.141 0H43.665v27.037H0v12.476h43.664V66.55H56.14V39.513h43.664V27.037H56.14z"}),f.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zm-32.748 0L0 60.41v6.14l39.045-21.715zm11.033-23.139L0 0v6.141l28.012 15.556zm32.748 0L100 6.141V0L60.76 21.696z"})]})]});case"en-us":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),f.jsx("path",{d:"M0 0h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.273h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.129H0z",fill:"#D80027"}),f.jsx("path",{fill:"#2E52B2",d:"M0 0h50v35.887H0z"}),f.jsx("path",{d:"m9.318 27.076-.78-2.495-.858 2.495H5.107l2.086 1.501-.78 2.495 2.125-1.54 2.066 1.54-.799-2.495 2.125-1.501zm10.975 0-.799-2.495-.819 2.495h-2.574l2.086 1.501-.78 2.495 2.086-1.54 2.105 1.54-.78-2.495 2.086-1.501zm11.014 0-.838-2.495-.78 2.495h-2.632l2.144 1.501-.819 2.495 2.086-1.54 2.144 1.54-.819-2.495 2.086-1.501zm10.955 0-.78-2.495-.819 2.495H38.07l2.105 1.501-.78 2.495 2.086-1.54 2.105 1.54-.838-2.495 2.144-1.501zM19.493 14.678l-.819 2.495h-2.573l2.086 1.54-.78 2.456 2.086-1.52 2.105 1.52-.78-2.456 2.086-1.54h-2.612zm-10.955 0-.858 2.495H5.107l2.086 1.54-.78 2.456 2.125-1.52 2.066 1.52-.799-2.456 2.125-1.54H9.318zm21.93 0-.78 2.495h-2.632l2.144 1.54-.819 2.456 2.086-1.52 2.144 1.52-.819-2.456 2.086-1.54h-2.573zm11.014 0-.819 2.495H38.07l2.105 1.54-.78 2.456 2.086-1.52 2.105 1.52-.838-2.456 2.144-1.54H42.26zM8.539 4.814 7.681 7.27H5.107l2.086 1.54-.78 2.476 2.125-1.539 2.066 1.54-.799-2.476 2.125-1.54H9.318zm10.955 0-.819 2.456h-2.574l2.086 1.54-.78 2.476 2.086-1.539 2.105 1.54-.78-2.476 2.086-1.54h-2.612zm10.975 0-.78 2.456h-2.632l2.144 1.54-.819 2.476 2.086-1.54 2.144 1.54-.819-2.476 2.086-1.54h-2.573zm11.014 0-.819 2.456h-2.593l2.105 1.54-.78 2.476 2.086-1.54 2.105 1.54-.838-2.476 2.144-1.54h-2.632z",fill:"#FFF"})]});case"fr-fr":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),f.jsx("path",{fill:"#0052B4",d:"M0 0h33.333v66.667H0z"}),f.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-be":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#fdda25",d:"M0 0h100v66.667H0z"}),f.jsx("path",{d:"M0 0h33.333v66.667H0z"}),f.jsx("path",{fill:"#ef3340",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-nl":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M0 22.222h100v22.222H0z"}),f.jsx("path",{fill:"#cd1f2a",d:"M0 0h100v22.222H0z"}),f.jsx("path",{fill:"#1d4185",d:"M0 44.444h100v22.223H0z"})]});case"pt-pt":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[f.jsx("path",{y:"85.337",fill:"#D80027",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),f.jsx("path",{fill:"#6DA544",points:"196.641,85.337 196.641,261.565 196.641,426.663 0,426.663 0,85.337 ",d:"M38.406 16.667L38.406 51.087L38.406 83.333L0 83.333L0 16.667Z"}),f.jsx("path",{fill:"#FFDA44",cx:"196.641",cy:"256",r:"64",d:"M50.906 50A12.5 12.5 0 0 1 38.406 62.5A12.5 12.5 0 0 1 25.906 50A12.5 12.5 0 0 1 50.906 50z"}),f.jsx("path",{fill:"#D80027",d:"M31.375 43.75v7.813c0 3.883 3.148 7.031 7.031 7.031s7.031 -3.148 7.031 -7.031V43.75z"}),f.jsx("path",{fill:"#FFFFFF",d:"M38.406 53.906c-1.292 0 -2.344 -1.051 -2.344 -2.344v-3.125h4.688v3.125c0 1.292 -1.052 2.344 -2.344 2.344"})]});case"it-it":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M66.667 0H0v66.53h99.805V0Z"}),f.jsx("path",{fill:"#6DA544",d:"M0 0h33.333v66.667H0z"}),f.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"es-es":return f.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFFFFF",d:"M0 0h100v66.667H0z"}),f.jsx("path",{fill:"#D03433",d:"M0 0h100v17.778H0zm0 48.889h100v17.778H0z"}),f.jsx("path",{fill:"#FBCA46",d:"M0 17.778h100v31.111H0z"}),f.jsx("path",{fill:"#FFFFFF",d:"M34.667 31.111h4.444v2.222h-4.444z"}),f.jsx("path",{fill:"#A41517",d:"M32 37.778c0 1.333 1.333 2.222 2.667 2.222s2.667 -0.889 2.667 -2.222L37.778 31.111H31.556zM29.333 31.111c0 -1.333 0.889 -2.222 1.778 -2.222h6.667c1.333 0 2.222 0.889 2.222 1.778V31.111l-0.444 6.667c-0.444 2.667 -2.222 4.444 -4.889 4.444s-4.444 -1.778 -4.889 -4.444z"}),f.jsx("path",{fill:"#A41517",d:"M30.222 33.333h8.889V35.556h-2.222l-2.222 4.444 -2.222 -4.444h-2.222zM23.556 26.667h4.444v15.556h-4.444zm17.778 0h4.444v15.556h-4.444zm-11.111 -2.222c0 -1.333 0.889 -2.222 2.222 -2.222h4.444c1.333 0 2.222 0.889 2.222 2.222v0.889q0 1.333 -1.333 1.333H31.111c-0.444 0 -0.889 -0.444 -0.889 -0.889z"})]});case"pl-pl":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[f.jsxs("g",{children:[f.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),f.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"170.663",d:"M0 16.667H100V50H0V16.667z"})]}),f.jsx("path",{y:"256",fill:"#D80027",width:"512",height:"170.663",d:"M0 50H100V83.333H0V50z"})]});case"tr-tr":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"0 -5000 15000 10000",children:[f.jsx("path",{fill:"#E30A17",d:"M0-5000h15000V5000H0z"}),f.jsx("path",{fill:"#FFFFFF",d:"m6958.333 0 2261.333-734.667-1397.667 1923.5v-2377.666l1397.667 1923.5zM7112.5 1336.833a2500 2500 0 1 1 0-2673.667 2000 2000 0 1 0 0 2673.667"})]});default:return null}},SI=["de-de","en-gb","en-us","es-es","fr-fr","it-it","nl-be","nl-nl","pl-pl","pt-pt","tr-tr","undefined"],Nu=new Dn($n()),{Meta:c8e}=nu,{Text:cB}=xn,{useToken:u8e}=kr,d8e=({tonieCard:e,lastRUIDs:t,overlay:n,readOnly:r,defaultLanguage:a="",showSourceInfo:o=!0,onHide:i,onUpdate:s})=>{const{t:c}=Nt(),{token:u}=u8e(),{addNotification:d,addLoadingNotification:p,closeLoadingNotification:g}=Qn(),[m,h]=l.useState(0),[b,x]=l.useState(0),[S,v]=l.useState(0),[y,C]=l.useState(0),[w,E]=l.useState(e),[I,T]=l.useState(w.nocloud),[R,_]=l.useState(w.live),[$,M]=l.useState(w.downloadTriggerUrl),{playAudio:P}=Am(),[D,O]=l.useState(!1),[k,N]=l.useState(!1),[A,L]=l.useState(!1),[j,F]=l.useState(w.tonieInfo.model),[B,z]=l.useState(""),[U,H]=l.useState({validateStatus:"",help:""}),[Y,K]=l.useState(w.source),[J,ne]=l.useState(w.source),[W,q]=l.useState(Y),[Z,Q]=l.useState(W),[ee,oe]=l.useState({validateStatus:"",help:""}),se=async()=>{try{const ue=await Nu.apiGetTagInfo(w.ruid,n);E(ue),s(ue)}catch(ue){d(dt.Error,c("tonies.messages.errorFetchingUpdatedCard"),c("tonies.messages.errorFetchingUpdatedCardDetails",{model:fe,ruid:w.ruid}).replace(' "" ',"")+ue,c("tonies.title"))}},fe=`${w.tonieInfo.series}`+(w.tonieInfo.episode?` - ${w.tonieInfo.episode}`:""),te="sourceInfo"in w?`${w.sourceInfo.series}`+(w.sourceInfo.episode?` - ${w.sourceInfo.episode}`:""):"",ie=o&&"sourceInfo"in w&&(w.sourceInfo.picture!==w.tonieInfo.picture&&fe!==te||w.sourceInfo.picture===w.tonieInfo.picture&&fe!==te),pe=(ue,Ie,We)=>{if(ue&&ue.length===1){const Be=(We==="library"?"lib:/":"content:/")+Ie+"/"+ue[0].name;Q(Be)}else Q(Y)},me=()=>{C(y+1),L(!0)},re=()=>{q(J||Y),L(!1)},ce=()=>{z(j),q(Y),x(b+1),v(S+1),N(!0)},ge=async()=>{try{Y!==W&&await Le(),j!==B&&await Pe()}catch{se();return}N(!1),se()},ye=async()=>{try{await Nu.apiPostTeddyCloudContentJson(w.ruid,"live="+!R,n),_(!R),R?d(dt.Success,c("tonies.messages.liveDisabled"),c("tonies.messages.liveDisabledDetails",{model:fe,ruid:w.ruid}).replace(' "" '," "),c("tonies.title")):d(dt.Success,c("tonies.messages.liveEnabled"),c("tonies.messages.liveEnabledDetails",{model:fe,ruid:w.ruid}).replace(' "" '," "),c("tonies.title")),se()}catch(ue){d(dt.Error,c("tonies.messages.couldNotChangeLiveFlag"),c("tonies.messages.couldNotChangeLiveFlagDetails",{model:fe,ruid:w.ruid}).replace(' "" ',"")+ue,c("tonies.title"))}},Ee=async()=>{try{await Nu.apiPostTeddyCloudContentJson(w.ruid,"nocloud="+!I,n),E({...w,nocloud:!I}),T(!I),I?d(dt.Success,c("tonies.messages.cloudAccessEnabled"),c("tonies.messages.cloudAccessEnabledDetails",{model:fe,ruid:w.ruid}).replace(' "" '," "),c("tonies.title")):d(dt.Success,c("tonies.messages.cloudAccessBlocked"),c("tonies.messages.cloudAccessBlockedDetails",{model:fe,ruid:w.ruid}).replace(' "" '," "),c("tonies.title")),se()}catch(ue){d(dt.Error,c("tonies.messages.couldNotChangeCloudFlag"),c("tonies.messages.couldNotChangeCloudFlagDetails",{model:fe,ruid:w.ruid}).replace(' "" ',"")+ue,c("tonies.title"))}},Ne=async ue=>{P(ue,ie?w.sourceInfo:w.tonieInfo,w)},_e=async()=>{const ue=w.downloadTriggerUrl;M("");const Ie="loading"+w.ruid;try{p(Ie,c("tonies.messages.downloading"),c("tonies.messages.downloadingDetails",{model:fe,ruid:w.ruid}).replace(' "" '," "));const He=await(await Nu.apiGetTeddyCloudApiRaw(ue)).blob();g(Ie),d(dt.Success,c("tonies.messages.downloadedFile"),c("tonies.messages.downloadedFileDetails",{model:fe,ruid:w.ruid}).replace(' "" '," "),c("tonies.title")),se()}catch(We){g(Ie),d(dt.Error,c("tonies.messages.errorDuringDownload"),c("tonies.messages.errorDuringDownloadDetails",{model:fe,ruid:w.ruid}).replace(' "" ',"")+We,c("tonies.title")),M(""+ue)}},Pe=async()=>{try{await Nu.apiPostTeddyCloudContentJson(w.ruid,"tonie_model="+encodeURIComponent(B),n),F(B),d(dt.Success,c("tonies.messages.setTonieToModelSuccessful",{selectedModel:B||c("tonies.messages.setToEmptyValue")}),c("tonies.messages.setTonieToModelSuccessfulDetails",{ruid:w.ruid,selectedModel:B||c("tonies.messages.setToEmptyValue")}),c("tonies.title")),H({validateStatus:"",help:""})}catch(ue){throw d(dt.Error,c("tonies.messages.setTonieToModelFailed"),c("tonies.messages.setTonieToModelFailedDetails",{ruid:w.ruid})+ue,c("tonies.title")),H({validateStatus:"error",help:c("tonies.messages.setTonieToModelFailed")+ue}),ue}},Le=async()=>{try{await Nu.apiPostTeddyCloudContentJson(w.ruid,"source="+encodeURIComponent(W),n),K(W),d(dt.Success,c("tonies.messages.setTonieToSourceSuccessful"),c("tonies.messages.setTonieToSourceSuccessfulDetails",{ruid:w.ruid,selectedSource:W||c("tonies.messages.setToEmptyValue")}),c("tonies.title")),oe({validateStatus:"",help:""})}catch(ue){throw d(dt.Error,c("tonies.messages.setTonieToSourceFailed"),c("tonies.messages.setTonieToSourceFailedDetails",{ruid:w.ruid})+ue,c("tonies.title")),oe({validateStatus:"error",help:c("tonies.messages.setTonieToSourceFailed")+ue}),ue}I||Ee(),(W.startsWith("http")&&!R||!W.startsWith("http")&&R)&&ye()},Ve=ue=>{z(ue.target.value)},je=ue=>{q(ue.target.value),Q(ue.target.value)},De=t.filter(([ue])=>ue===w.ruid).map(([,ue,Ie])=>({ruidTime:ue,boxName:Ie})),Se=ue=>{z(ue)},Oe=ue=>{q(ue),ne(ue)},Re=f.jsxs(f.Fragment,{children:[f.jsxs("h3",{style:{lineHeight:0},children:[c("tonies.editModal.title"),w.tonieInfo.model?" ("+w.tonieInfo.model+")":""]}),w.tonieInfo.series?f.jsx(cB,{type:"secondary",children:fe}):" "]}),Ce=f.jsx(f.Fragment,{children:f.jsxs(nt,{type:"primary",onClick:ge,disabled:Y===W&&j===B,children:[f.jsx(vK,{},"saveClick")," ",c("tonies.editModal.save")]})}),xe=f.jsxs(Rn,{open:k,onCancel:()=>{N(!1),Q("")},title:Re,footer:Ce,width:700,children:[f.jsx(Vn,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.source")}),f.jsx("div",{children:f.jsxs(Kt.Item,{validateStatus:ee.validateStatus,help:ee.help,children:[f.jsx(Jt,{value:W,width:"auto",onChange:je,addonBefore:[f.jsx(pa,{onClick:()=>{q(""),oe({validateStatus:"",help:""})}},"close-source"),f.jsx(Vn,{type:"vertical",style:{height:16}},"divider-source"),f.jsx(v_,{onClick:()=>{q(Y),Q(Y),oe({validateStatus:"",help:""})},style:{color:Y===W?u.colorTextDisabled:u.colorText,cursor:Y===W?"default":"pointer"}},"rollback-source")],addonAfter:f.jsx(jN,{onClick:()=>me()})},"source"),f.jsx(s8e,{placeholder:c("tonies.editModal.placeholderSearchForARadioStream"),onChange:Oe},b)]})}),f.jsx(Vn,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.model")}),f.jsx("div",{children:f.jsxs(Kt.Item,{validateStatus:U.validateStatus,help:U.help,children:[f.jsx(Jt,{value:B,width:"auto",onChange:Ve,addonBefore:[f.jsx(pa,{onClick:()=>{z(""),H({validateStatus:"",help:""})}},"close-model"),f.jsx(Vn,{type:"vertical",style:{height:16}},"divider-model"),f.jsx(v_,{onClick:()=>{z(j),H({validateStatus:"",help:""})},style:{color:j===B?u.colorTextDisabled:u.colorText,cursor:j===B?"default":"pointer"}},"rollback-model")]},"model"),f.jsx(n8e,{placeholder:c("tonies.editModal.placeholderSearchForAModel"),onChange:Se},S)]})})]}),$e=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[f.jsx(nt,{onClick:re,children:c("tonies.selectFileModal.cancel")}),f.jsx(nt,{type:"primary",onClick:()=>{q(Z),ne(Z),L(!1)},children:c("tonies.selectFileModal.ok")})]}),Fe=f.jsx(Rn,{className:"sticky-footer",title:c("tonies.selectFileModal.selectFile"),open:A,onCancel:re,width:"auto",footer:$e,children:f.jsx(jk,{special:"library",maxSelectedRows:1,trackUrl:!1,filetypeFilter:[".taf",".tap"],onFileSelectChange:pe},y)}),be=r?[f.jsx(pl,{onClick:()=>{h(m+1),O(!0)}},"info"),w.valid||Y.startsWith("http")?f.jsx(Eo,{onClick:()=>Ne(w.valid?""+w.audioUrl:Y)},"playpause"):f.jsx(Eo,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),f.jsx(Yb,{style:{cursor:"default",color:I?"red":u.colorTextDisabled}},"nocloud"),f.jsx(kP,{style:{cursor:"default",color:R?"red":u.colorTextDisabled}},"live")]:[f.jsx(pl,{onClick:()=>{h(m+1),O(!0)}},"info"),f.jsx(Ml,{onClick:ce},"edit"),w.valid||Y.startsWith("http")?f.jsx(Eo,{onClick:()=>Ne(w.valid?""+w.audioUrl:Y)},"playpause"):$&&$.length>0?f.jsx(LN,{onClick:_e},"download"):f.jsx(Eo,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),f.jsx(Yb,{style:{color:I?"red":u.colorTextDescription},onClick:Ee},"nocloud"),f.jsx(kP,{style:{color:R?"red":u.colorTextDescription},onClick:ye},"live")];return f.jsxs(f.Fragment,{children:[f.jsx(nu,{hoverable:!1,size:"small",style:De&&De.length>0?{background:u.colorBgContainerDisabled,borderTop:"3px #1677ff inset"}:{background:u.colorBgContainerDisabled,paddingTop:"2px"},title:f.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:w.tonieInfo.series?w.tonieInfo.series:c("tonies.unsetTonie")}),a!==w.tonieInfo.language?f.jsx(Wt,{placement:"top",zIndex:2,title:c("languageUtil."+w.tonieInfo.language),children:f.jsx(cB,{style:{height:20,width:"auto"},children:f.jsx(l8e,{countryCode:w.tonieInfo.language,height:20})})}):""]}),cover:f.jsxs("div",{style:{position:"relative"},children:[f.jsx("img",{alt:`${w.tonieInfo.series} - ${w.tonieInfo.episode}`,src:w.tonieInfo.picture?w.tonieInfo.picture:"/img_unknown.png",style:w.tonieInfo.picture.endsWith("img_unknown.png")?{padding:8,paddingTop:10,width:"100%"}:{padding:8,width:"100%"}}),ie?f.jsx(Wt,{title:`${te}`?c("tonies.alternativeSource",{originalTonie:'"'+fe+'"',assignedContent:'"'+te+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+fe+'"'}).replace(' "" '," "),placement:"bottom",children:f.jsx("img",{src:w.sourceInfo.picture,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),actions:be,children:f.jsx(c8e,{title:`${w.tonieInfo.episode}`,description:w.uid})},w.ruid),f.jsx(Ky,{open:D,onClose:()=>O(!1),tonieCardOrTAFRecord:w,showSourceInfo:o,readOnly:r,lastRUIDs:t,onHide:i,overlay:n},m),Fe,xe]})},Qh=new Dn($n()),CI="toniesListState",{Option:f8e}=cr,Fk=({tonieCards:e,showFilter:t,showPagination:n,overlay:r,readOnly:a,defaultLanguage:o="",onToniesCardUpdate:i})=>{const{t:s}=Nt(),c=oi(),[u,d]=l.useState(e),[p,g]=l.useState(""),[m,h]=l.useState(""),[b,x]=l.useState(""),[S,v]=l.useState([]),[y,C]=l.useState(!1),[w,E]=l.useState(!1),[I,T]=l.useState(!1),[R,_]=l.useState(!1),[$,M]=l.useState(!1),[P,D]=l.useState(!1),[O,k]=l.useState(!1),[N,A]=l.useState(!1),[L,j]=l.useState(!1),[F,B]=l.useState(!1),[z,U]=l.useState(!1),[H,Y]=l.useState(!0),[K,J]=l.useState(!0),[ne,W]=l.useState([]),[q,Z]=l.useState(()=>{const be=localStorage.getItem(CI);if(be){const{pageSize:ue}=JSON.parse(be);return ue}return 24}),[Q,ee]=l.useState(1),[oe,se]=l.useState(!0),[fe,te]=l.useState(!1),[ie,pe]=l.useState(!0),[me,re]=l.useState([]),[ce,ge]=l.useState(0),[ye,Ee]=l.useState(!1);l.useEffect(()=>{const be=localStorage.getItem(CI);if(be)try{const{pageSize:ue,showAll:Ie}=JSON.parse(be);Ie?De():(Z(ue),Oe(1,ue))}catch(ue){console.error("Error parsing stored state:",ue)}else console.log("No stored state found.")},[]),l.useEffect(()=>{(async()=>{const Ie=async ke=>await Qh.apiGetTonieboxLastRUID(ke),We=async ke=>await Qh.apiGetTonieboxLastRUIDTime(ke),He=await Qh.apiGetTonieboxesIndex(),Be=await Promise.all(He.map(async ke=>{const Ae=await Ie(ke.ID),Ue=await We(ke.ID);return[Ae,Ue,ke.boxName]}));W(Be)})(),(async()=>{const Ie=await Qh.apiGetTeddyCloudSettingRaw("frontend.split_model_content");Ee(await Ie.text()==="true")})()},[]);const Ne=l.useMemo(()=>e.map(be=>be.ruid).join(","),[e]);l.useEffect(()=>{const ue=new URLSearchParams(c.search).get("tonieRUID");if(ue){g(ue),Y(!1);const Ie=e.filter(We=>We.ruid.toLowerCase()===ue);d(Ie)}else d(e);ge(Ie=>Ie+1),J(!1)},[c.search,Ne]),l.useEffect(()=>{ee(1),ge(be=>be+1)},[Ne]),l.useEffect(()=>{const be=JSON.stringify({pageSize:q,paginationEnabled:oe,showAll:fe});localStorage.setItem(CI,be)},[ie,q,oe,fe]);const _e=()=>{pe(!ie)},Pe=be=>{i&&i(be),d(ue=>ue.map(Ie=>Ie.ruid===be.ruid?be:Ie))},Le=()=>{let be=e.filter(ue=>{var Ie,We;return(((Ie=ue.sourceInfo)==null?void 0:Ie.series)&&ue.sourceInfo.series.toLowerCase().includes(m.toLowerCase())||ue.tonieInfo.series.toLowerCase().includes(m.toLowerCase()))&&(((We=ue.sourceInfo)==null?void 0:We.episode)&&ue.sourceInfo.episode.toLowerCase().includes(b.toLowerCase())||ue.tonieInfo.episode.toLowerCase().includes(b.toLowerCase()))&&(S.length===0||S.includes(ue.tonieInfo.language!==void 0&&SI.includes(ue.tonieInfo.language)?ue.tonieInfo.language:"undefined")||S.includes(ue.sourceInfo&&ue.sourceInfo.language!==void 0&&SI.includes(ue.sourceInfo.language)?ue.sourceInfo.language:"undefined"))&&(!w||ue.valid)&&(!I||!ue.valid)&&(!R||ue.exists)&&(!$||!ue.exists)&&(!P||ue.live)&&(!O||!ue.live)&&(!N||ue.nocloud)&&(!L||!ue.nocloud)&&(!F||ue.hasCloudAuth)&&(!z||!ue.hasCloudAuth)});p&&(be=be.filter(ue=>{var Ie,We,He;return ue.tonieInfo.series.toLowerCase().includes(p.toLowerCase())||((Ie=ue.sourceInfo)==null?void 0:Ie.series)&&ue.sourceInfo.series.toLowerCase().includes(p.toLowerCase())||ue.tonieInfo.episode.toLowerCase().includes(p.toLowerCase())||((We=ue.sourceInfo)==null?void 0:We.episode)&&ue.sourceInfo.episode.toLowerCase().includes(p.toLowerCase())||ue.tonieInfo.model.toLowerCase().includes(p.toLowerCase())||((He=ue.sourceInfo)==null?void 0:He.model)&&ue.sourceInfo.model.toLowerCase().includes(p.toLowerCase())||ue.ruid.toLowerCase().includes(p.toLowerCase())||ue.uid.toLowerCase().includes(p.toLowerCase())})),y&&(be=be.filter(ue=>ne.some(([Ie])=>Ie===ue.ruid))),me&&(be=be.filter(ue=>!me.includes(ue.ruid))),ee(1),d(be),ge(ue=>ue+1)},Ve=be=>{d(u.filter(ue=>ue.ruid!==be)),re(ue=>[...ue,be]),ge(ue=>ue+1)},je=()=>{g(""),h(""),x(""),E(!1),T(!1),_(!1),M(!1),D(!1),k(!1),A(!1),j(!1),B(!1),U(!1),C(!1),v([]);const be=window.location.pathname;window.history.pushState({},"",be),c.search="",me&&(e=e.filter(ue=>!me.includes(ue.ruid))),d(e),ge(ue=>ue+1)},De=()=>{ge(be=>be+1),te(!0),se(!1),_e()},Se=()=>{se(!0),te(!1),Oe(1,q)},Oe=(be,ue)=>{Z(ue),ge(Ie=>Ie+1),ee(be),_e(),window.scrollTo(0,0)},Re=()=>{if(fe)return u!==null?u:e;{const be=(Q-1)*q,ue=be+q;return u!==null?u.slice(be,ue):e.slice(be,ue)}},Ce=f.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:oe?f.jsx(e8e,{currentPage:Q,onChange:Oe,total:u!==null?u.length:e.length,pageSize:q,additionalButtonOnClick:De}):f.jsx(nt,{onClick:Se,children:s("tonies.tonies.showPagination")})}),xe=f.jsxs(f.Fragment,{children:[f.jsx("label",{htmlFor:"search-field",className:"filter-label",children:s("tonies.tonies.filterBar.searchLabel")}),f.jsx(Jt.Search,{id:"search-field",placeholder:s("tonies.tonies.filterBar.searchPlaceholder"),value:p,onChange:be=>g(be.target.value),onSearch:Le,enterButton:!0,style:{margin:"8px 0 8px 0"}}),f.jsxs("div",{className:"filter-container",children:[f.jsx("label",{className:"filter-label",children:s("tonies.tonies.filterBar.filterLabel")}),f.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.seriesFilterPlaceholder"),value:m,onChange:be=>h(be.target.value)}),f.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.episodeFilterPlaceholder"),value:b,onChange:be=>x(be.target.value)}),f.jsx(cr,{mode:"multiple",placeholder:s("tonies.tonies.filterBar.languagePlaceholder"),value:S,onChange:be=>v(be),style:{width:"100%",margin:"8px 0"},children:SI.map(be=>f.jsx(f8e,{value:be,children:s(be?"languageUtil."+be:"languageUtil.other")},be))}),f.jsxs("div",{children:[f.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:[f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:w,onChange:be=>E(be)}),s("tonies.tonies.filterBar.valid")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:I,onChange:be=>T(be)}),s("tonies.tonies.filterBar.invalid")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:R,onChange:be=>_(be)})," ",s("tonies.tonies.filterBar.exists")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:$,onChange:be=>M(be)}),s("tonies.tonies.filterBar.notExists")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:P,onChange:be=>D(be)})," ",s("tonies.tonies.filterBar.live")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:O,onChange:be=>k(be)})," ",s("tonies.tonies.filterBar.unsetLive")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:L,onChange:be=>j(be)}),s("tonies.tonies.filterBar.unsetNoCloud")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:N,onChange:be=>A(be)}),s("tonies.tonies.filterBar.noCloud")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:F,onChange:be=>B(be)}),s("tonies.tonies.filterBar.hasCloudAuth")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:z,onChange:be=>U(be)}),s("tonies.tonies.filterBar.unsetHasCloudAuth")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:y,onChange:be=>C(be)}),s("tonies.tonies.filterBar.lastPlayed")]})]}),f.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"flex-end",marginTop:8},children:[f.jsx(nt,{onClick:je,style:{marginLeft:16},children:s("tonies.tonies.filterBar.resetFilters")}),f.jsx(nt,{onClick:Le,style:{marginLeft:16},children:s("tonies.tonies.filterBar.applyFilters")})]})]})]})]}),$e=[{key:"search-filter",label:s(H?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:xe}],Fe=f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:f.jsxs("div",{children:[f.jsx("p",{children:s("tonies.noData")}),f.jsx("p",{children:s("tonies.noDataText")})]})});return K?f.jsx(su,{}):f.jsxs("div",{className:"tonies-list-container",children:[t?f.jsx(Rs,{items:$e,defaultActiveKey:H?[]:["search-filter"],onChange:()=>Y(!H),bordered:!1}):"",f.jsx(Er,{header:n?Ce:"",footer:n?Ce:"",grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:4,xxl:6},dataSource:Re(),renderItem:be=>f.jsx(Er.Item,{id:be.ruid,children:f.jsx(d8e,{tonieCard:be,lastRUIDs:ne,overlay:r,readOnly:a,defaultLanguage:o,showSourceInfo:ye,onHide:Ve,onUpdate:Pe})}),locale:{emptyText:Fe}},ce)]})},ep=new Dn($n()),{Paragraph:tp}=xn,p8e=()=>{const{t:e}=Nt(),t=Zc(),{addNotification:n}=Qn(),[r,a]=l.useState([]),[o,i]=l.useState(!1),[s,c]=l.useState(!1),[u,d]=l.useState(""),[p,g]=l.useState([]),[m,h]=l.useState(!0);l.useEffect(()=>{(async()=>{const C=await ep.apiGetSecurityMITAlert();i(C)})(),(async()=>{try{const C=await ep.apiGetNewBoxesAllowed();c(C),C&&(async()=>{const E=await ep.apiGetTonieboxesIndex(),I=await Promise.all(E.map(async T=>{const R=await ep.apiGetTonieboxApiAccess(T.ID);return[T.boxName,R]}));g(I)})()}catch(C){n(dt.Error,e("settings.errorFetchingSetting"),e("settings.errorFetchingSettingDetails",{setting:"toniebox.api_access"})+C,e("home.navigationTitle"))}})(),(async()=>{h(!0);const C=(await ep.apiGetTagIndexMergedAllOverlays(!0)).filter(w=>!w.hide);a(C.sort((w,E)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random()))),h(!1)})()},[]),l.useEffect(()=>{const S={};r.forEach(C=>{const w=C.tonieInfo.language;S[w]?S[w]++:S[w]=1});let v=0,y="";for(const C in S)S.hasOwnProperty(C)&&S[C]>v&&(v=S[C],y=C);d(y)},[r]);const b=p.filter(S=>!S[1]),x=s?f.jsxs(f.Fragment,{children:[f.jsx(Cn,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}),b.length>0&&f.jsx(Cn,{message:e("tonieboxes.boxWithoutAPIAccess"),description:f.jsxs(f.Fragment,{children:[e("tonieboxes.boxWithoutAPIAccessText"),f.jsx("ul",{children:b.map(S=>f.jsx("li",{children:S[0]},S[0]))}),e("tonieboxes.boxWithoutAPIAccessGoToTonieboxes"),f.jsx(ot,{to:"/tonieboxes",children:e("tonieboxes.navigationTitle")})]}),type:"info",showIcon:!0,style:{margin:"16px 0"}})]}):null;return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Pm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs(tp,{children:[f.jsx("h1",{children:e("home.title")}),o?f.jsx(Cn,{message:e("security.alert"),description:e("security.incident_detected"),type:"error",showIcon:!0,style:{margin:"16px 0"}}):"",e("home.intro"),x]}),f.jsxs(tp,{children:[e("home.forumIntroPart1"),f.jsx(ot,{to:hd,target:"_blank",children:hd}),e("home.forumIntroPart2")]}),f.jsxs(tp,{children:[f.jsx("h2",{children:e("home.yourTonies")}),m?f.jsx(su,{}):f.jsx(Fk,{tonieCards:r.filter(S=>S.type==="tag"&&S.tonieInfo.series).slice(0,6),overlay:"",showFilter:!1,showPagination:!1,readOnly:!0,defaultLanguage:u}),f.jsx(tp,{children:f.jsxs(nt,{onClick:()=>t("/tonies"),children:[e("home.toAllYourTonies")," (",r.filter(S=>S.type==="tag").length,")"]})})]}),f.jsxs(tp,{children:[f.jsx("h2",{children:e("home.helpfulLinks")}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx(ot,{to:"/community/faq",children:"FAQ"})}),f.jsx("li",{children:f.jsx(ot,{to:FY,target:"_blank",children:"GitHub"})}),f.jsx("li",{children:f.jsx(ot,{to:uk,target:"_blank",children:"Telegram Chat"})}),f.jsx("li",{children:f.jsx(ot,{to:hd,target:"_blank",children:"Discourse Forum"})}),f.jsx("li",{children:f.jsx(ot,{to:BY,target:"_blank",children:"TeddyCloud Wiki"})})]})]})]})]})]})},g8e=new Dn($n()),m8e=()=>{var a;const{t:e}=Nt(),[t,n]=l.useState(),r=async()=>{var i,s;const o=await g8e.apiStatsGet();(i=o==null?void 0:o.stats)!=null&&i.length&&((s=o==null?void 0:o.stats)==null?void 0:s.length)>0&&n(o)};return l.useEffect(()=>{r()},[]),l.useEffect(()=>{const o=setInterval(()=>{r()},1e4);return()=>clearInterval(o)},[]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Pm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("home.stats.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("home.stats.title")}),(a=t==null?void 0:t.stats)==null?void 0:a.map(o=>f.jsxs("div",{children:[f.jsx("h2",{children:e("home.stats."+o.iD)}),f.jsx("p",{children:o.value})]},o.iD))]})]})]})},{Paragraph:h8e}=xn,v8e=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Pm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("home.tonieMeeting.navigationTitle")}]}),f.jsx(Pn,{children:f.jsx(h8e,{children:f.jsx(Pk,{maxNoOfGuests:500,toniesSize:150,showQuestionMark:!1})})})]})]})},{Paragraph:uB,Text:b8e}=xn,y8e=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),r=l.useRef(null),[a,o]=l.useState(!1),i=p=>{let g="";for(let m=0;m=32&&b<=126?g+=String.fromCharCode(b):g+="."}return g},s=p=>{let g="";for(let b=0;b=h&&(m=m-2*h),m},c={"15-15452":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(m=>[...m,`UnknownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"15-16065":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(m=>[...m,`KnownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15427":p=>{if(p.length===8){const g=s(p);n(m=>[...m,`UpsideState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15426":p=>{if(p.length===8){const g=s(p);n(m=>[...m,`UprightState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)}};l.useEffect(()=>{if(a){const p=new EventSource("/api/sse");return p.onopen=()=>{console.log("Connection established.")},p.addEventListener("keep-alive",g=>{console.log("keep-alive event received:",g)}),p.addEventListener("pressed",g=>{const m=JSON.parse(g.data);n(h=>[...h,"Pressed: "+m.data])}),p.addEventListener("rtnl-raw-log2",g=>{const m=JSON.parse(g.data),h=`${"Raw2 | #"+m.data.sequence+" Uptime: "+m.data.uptime+" Func: "+m.data.function_group.toString().padStart(2," ")+"-"+m.data.function+" Payload: '"+m.data.field6+"' ASCII: '"+i(m.data.field6)+"'"}`;n(x=>[...x,h]);const b=`${m.data.function_group.toString().padStart(2," ")}-${m.data.function}`;c[b]&&c[b](m.data.field6)}),p.addEventListener("rtnl-raw-log3",g=>{const m=JSON.parse(g.data);n(h=>[...h,"Raw3 | Datetime: "+m.data.datetime+" Unknown: "+m.data.field2])}),p.onerror=g=>{console.error("EventSource failed:",g)},()=>{console.log("Connection closed."),p.close()}}else return},[a]),l.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[t]);const u=p=>{o(p)},d=()=>{n([])};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.rtnl.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.rtnl.title")}),f.jsxs(uB,{style:{margin:"8px 0"},children:[f.jsxs(uB,{children:[f.jsx(Xa,{checked:a,onChange:u,style:{marginRight:8}}),f.jsx(b8e,{children:e("settings.rtnl.enableRtnl")})]}),f.jsx(Vn,{children:e("settings.rtnl.title")}),f.jsx("div",{ref:r,style:{minHeight:"max(40vh, 333px)",maxHeight:"max(40vh, 333px)",overflow:"auto",padding:1,background:Ss()==="dark"?"hsl(220, 13%, 18%)":"hsl(230, 1%, 98%)"},children:f.jsx(Dk,{language:"log",style:Ss()==="dark"?RX:_X,customStyle:{borderRadius:0,margin:0,border:"none"},children:t.join(` -`)})}),f.jsx(nt,{onClick:d,style:{marginTop:8},children:e("settings.rtnl.clear")})]})]})]})]})};var x8e=function(t){return S8e(t)&&!C8e(t)};function S8e(e){return!!e&&typeof e=="object"}function C8e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||I8e(e)}var w8e=typeof Symbol=="function"&&Symbol.for,E8e=w8e?Symbol.for("react.element"):60103;function I8e(e){return e.$$typeof===E8e}function T8e(e){return Array.isArray(e)?[]:{}}function a0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Fg(T8e(e),e,t):e}function R8e(e,t,n){return e.concat(t).map(function(r){return a0(r,n)})}function _8e(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=a0(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=a0(t[a],n):r[a]=Fg(e[a],t[a],n)}),r}function Fg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||R8e,n.isMergeableObject=n.isMergeableObject||x8e;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):_8e(e,t,n):a0(t,n)}Fg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Fg(r,a,n)},{})};var V_=Fg,DX=typeof global=="object"&&global&&global.Object===Object&&global,$8e=typeof self=="object"&&self&&self.Object===Object&&self,rs=DX||$8e||Function("return this")(),Pl=rs.Symbol,PX=Object.prototype,O8e=PX.hasOwnProperty,N8e=PX.toString,np=Pl?Pl.toStringTag:void 0;function k8e(e){var t=O8e.call(e,np),n=e[np];try{e[np]=void 0;var r=!0}catch{}var a=N8e.call(e);return r&&(t?e[np]=n:delete e[np]),a}var A8e=Object.prototype,M8e=A8e.toString;function D8e(e){return M8e.call(e)}var P8e="[object Null]",L8e="[object Undefined]",dB=Pl?Pl.toStringTag:void 0;function lu(e){return e==null?e===void 0?L8e:P8e:dB&&dB in Object(e)?k8e(e):D8e(e)}function LX(e,t){return function(n){return e(t(n))}}var Bk=LX(Object.getPrototypeOf,Object);function cu(e){return e!=null&&typeof e=="object"}var j8e="[object Object]",F8e=Function.prototype,B8e=Object.prototype,jX=F8e.toString,z8e=B8e.hasOwnProperty,H8e=jX.call(Object);function fB(e){if(!cu(e)||lu(e)!=j8e)return!1;var t=Bk(e);if(t===null)return!0;var n=z8e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&jX.call(n)==H8e}function U8e(){this.__data__=[],this.size=0}function FX(e,t){return e===t||e!==e&&t!==t}function ex(e,t){for(var n=e.length;n--;)if(FX(e[n][0],t))return n;return-1}var V8e=Array.prototype,W8e=V8e.splice;function G8e(e){var t=this.__data__,n=ex(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():W8e.call(t,n,1),--this.size,!0}function q8e(e){var t=this.__data__,n=ex(t,e);return n<0?void 0:t[n][1]}function K8e(e){return ex(this.__data__,e)>-1}function Y8e(e,t){var n=this.__data__,r=ex(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Fs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Y5e}var X5e="[object Arguments]",Z5e="[object Array]",Q5e="[object Boolean]",J5e="[object Date]",eBe="[object Error]",tBe="[object Function]",nBe="[object Map]",rBe="[object Number]",aBe="[object Object]",oBe="[object RegExp]",iBe="[object Set]",sBe="[object String]",lBe="[object WeakMap]",cBe="[object ArrayBuffer]",uBe="[object DataView]",dBe="[object Float32Array]",fBe="[object Float64Array]",pBe="[object Int8Array]",gBe="[object Int16Array]",mBe="[object Int32Array]",hBe="[object Uint8Array]",vBe="[object Uint8ClampedArray]",bBe="[object Uint16Array]",yBe="[object Uint32Array]",hr={};hr[dBe]=hr[fBe]=hr[pBe]=hr[gBe]=hr[mBe]=hr[hBe]=hr[vBe]=hr[bBe]=hr[yBe]=!0;hr[X5e]=hr[Z5e]=hr[cBe]=hr[Q5e]=hr[uBe]=hr[J5e]=hr[eBe]=hr[tBe]=hr[nBe]=hr[rBe]=hr[aBe]=hr[oBe]=hr[iBe]=hr[sBe]=hr[lBe]=!1;function xBe(e){return cu(e)&&GX(e.length)&&!!hr[lu(e)]}function zk(e){return function(t){return e(t)}}var qX=typeof To=="object"&&To&&!To.nodeType&&To,Hp=qX&&typeof Ro=="object"&&Ro&&!Ro.nodeType&&Ro,SBe=Hp&&Hp.exports===qX,EI=SBe&&DX.process,Kd=function(){try{var e=Hp&&Hp.require&&Hp.require("util").types;return e||EI&&EI.binding&&EI.binding("util")}catch{}}(),bB=Kd&&Kd.isTypedArray,CBe=bB?zk(bB):xBe,wBe=Object.prototype,EBe=wBe.hasOwnProperty;function KX(e,t){var n=zm(e),r=!n&&H5e(e),a=!n&&!r&&WX(e),o=!n&&!r&&!a&&CBe(e),i=n||r||a||o,s=i?j5e(e.length,String):[],c=s.length;for(var u in e)(t||EBe.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||K5e(u,c)))&&s.push(u);return s}var IBe=Object.prototype;function Hk(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||IBe;return e===n}var TBe=LX(Object.keys,Object),RBe=Object.prototype,_Be=RBe.hasOwnProperty;function $Be(e){if(!Hk(e))return TBe(e);var t=[];for(var n in Object(e))_Be.call(e,n)&&n!="constructor"&&t.push(n);return t}function YX(e){return e!=null&&GX(e.length)&&!BX(e)}function Uk(e){return YX(e)?KX(e):$Be(e)}function OBe(e,t){return e&&nx(t,Uk(t),e)}function NBe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var kBe=Object.prototype,ABe=kBe.hasOwnProperty;function MBe(e){if(!Bm(e))return NBe(e);var t=Hk(e),n=[];for(var r in e)r=="constructor"&&(t||!ABe.call(e,r))||n.push(r);return n}function Vk(e){return YX(e)?KX(e,!0):MBe(e)}function DBe(e,t){return e&&nx(t,Vk(t),e)}var XX=typeof To=="object"&&To&&!To.nodeType&&To,yB=XX&&typeof Ro=="object"&&Ro&&!Ro.nodeType&&Ro,PBe=yB&&yB.exports===XX,xB=PBe?rs.Buffer:void 0,SB=xB?xB.allocUnsafe:void 0;function LBe(e,t){if(t)return e.slice();var n=e.length,r=SB?SB(n):new e.constructor(n);return e.copy(r),r}function ZX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{const{t}=Nt(),{token:n}=TFe(),{unconfirmedCount:r,navOpen:a,setNavOpen:o,subNavOpen:i,setSubNavOpen:s,currentTCSection:c,setCurrentTCSection:u}=Qn(),d=ii(),[p,g]=l.useState(window.innerWidth<=768);l.useEffect(()=>{const S=()=>g(window.innerWidth<=768);return window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]),l.useEffect(()=>{p||(s(!1),o(!1))},[p]),l.useEffect(()=>{const S=document.querySelector('meta[name="theme-color"]');if(S)S.setAttribute("content",n.colorBgBase);else{const v=document.createElement("meta");v.name="theme-color",v.content=n.colorBgBase,document.head.appendChild(v)}},[n.colorBgBase]);const m=({title:S,to:v,isMobile:y=!1})=>{const w=()=>{o(!1)},C=()=>{u(S),y&&s(!0)};return y?f.jsxs("div",{style:{display:"flex",gap:16,width:"100%",justifyContent:"space-between",alignItems:"center"},children:[f.jsx(it,{to:v,onClick:w,children:S}),f.jsx(kFe,{type:"text",style:{width:"100%",justifyContent:"end"},icon:f.jsx(_m,{style:{margin:16}}),onClick:C})]}):f.jsx(it,{to:v,onClick:w,children:S})},h=[{key:"/",label:f.jsx(m,{title:t("home.navigationTitle"),to:"/",isMobile:p})},{key:"tonies",label:f.jsx(m,{title:t("tonies.navigationTitle"),to:"/tonies",isMobile:p})},{key:"tonieboxes",label:f.jsx(m,{title:t("tonieboxes.navigationTitle"),to:"/tonieboxes",isMobile:p})},{key:"settings",label:f.jsx(m,{title:t("settings.navigationTitle"),to:"/settings",isMobile:p})},{key:"community",label:f.jsx(m,{title:t("community.navigationTitle"),to:"/community",isMobile:p})}];let b=d.pathname.split("/")[1];b||(b="/"),b==="home"&&(b="/");const x=()=>c===t("community.navigationTitle")?f.jsx(Fs,{}):c===t("settings.navigationTitle")?f.jsx(jm,{}):c===t("tonies.navigationTitle")?f.jsx(iu,{}):c===t("tonieboxes.navigationTitle")?f.jsx(as,{}):f.jsx(Lm,{});return f.jsxs(_Fe,{children:[f.jsx(it,{to:"/",style:{color:"white"},children:f.jsxs(OFe,{children:[f.jsx(RFe,{src:pY}),f.jsx(qd,{style:{textWrap:"nowrap"},children:" TeddyCloud Server"})]})}),f.jsx(qd,{children:f.jsx(Ls,{theme:"dark",mode:"horizontal",items:h,selectedKeys:[b],style:{width:"calc(100vw - 510px)",background:"#141414 !important"}})}),f.jsxs($Fe,{children:[f.jsx(Xke,{}),e,f.jsx(Zke,{}),f.jsx(Qke,{notificationCount:r}),f.jsxs(o0,{style:{marginLeft:8},children:[f.jsx(tt,{className:"barsMenu",type:"primary",onClick:()=>o(!0),icon:f.jsx(R2e,{})}),f.jsxs(f_,{placement:"right",open:a,onClose:()=>o(!1),title:"TeddyCloud",children:[f.jsx(NFe,{mode:"vertical",items:h,selectedKeys:[b],style:{background:"transparent",borderRight:"none"}}),f.jsx(f_,{placement:"right",open:i,onClose:()=>s(!1),title:c,children:x()})]})]})]})]})},{useToken:MFe}=kr,DFe=()=>{const{token:e}=MFe();return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",width:"100%",viewBox:"0 0 512 512",children:[f.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M285.000000,95.000000 C285.726776,91.291718 284.143219,89.788498 280.551392,88.369873 C247.948990,75.493263 212.672882,91.508270 199.495224,122.998001 C196.613541,129.884201 195.385559,137.055237 195.485504,144.500198 C195.559326,149.999207 195.570007,155.501114 195.483032,160.999725 C195.362961,168.591705 191.442429,172.487579 184.000000,172.494614 C166.333344,172.511307 148.666656,172.510849 131.000000,172.494736 C123.739044,172.488113 119.744461,168.704391 119.512695,161.499588 C118.937752,143.626343 119.484947,125.767700 124.620247,108.535835 C129.305405,92.814384 136.600082,78.329407 146.361160,64.899094 C160.063324,46.046219 177.407562,31.600046 198.103745,21.717247 C219.862259,11.327159 243.132431,6.942070 267.508698,8.891317 C284.115204,10.219257 299.968292,14.037633 314.973419,21.056805 C338.704193,32.157684 357.928345,48.584900 372.550323,70.466385 C383.991730,87.588272 391.730164,106.267952 394.317322,126.523338 C399.345093,165.887207 389.786652,201.671356 364.978485,232.982956 C350.265991,251.552322 331.599060,265.211121 309.924530,274.320435 C296.501526,279.961792 282.229004,283.352203 267.499878,283.997559 C263.333923,284.180115 259.162445,284.263275 255.000793,284.513092 C242.331039,285.273529 234.536453,294.940430 234.510101,310.000031 C234.471024,332.333282 234.502640,354.666656 234.498566,377.000000 C234.497147,384.740631 230.771179,388.486389 223.000000,388.494385 C205.666687,388.512268 188.326492,388.221069 171.003571,388.645569 C164.614304,388.802094 159.267792,383.378479 159.354935,376.998016 C159.705429,351.336151 159.031464,325.655487 159.642624,300.003387 C160.167542,277.971313 168.603424,258.489746 183.103546,242.091568 C198.977600,224.139587 218.895264,213.013474 242.995743,209.966385 C250.478912,209.020279 258.084564,209.344330 265.476685,208.330063 C284.746246,205.686066 300.188782,196.120834 310.413757,179.447113 C323.347626,158.355911 322.759064,136.763321 311.652649,114.922371 C309.739319,111.159721 306.957031,112.566917 304.500000,111.750000"}),f.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M197.500000,506.500000 C203.208725,504.136566 209.499985,503.955261 215.081406,500.636932 C226.722000,493.716095 233.515152,484.355804 234.104324,470.504425 C234.416428,463.166840 234.755539,456.042480 232.056686,448.978333 C227.973969,438.291962 214.538635,425.846741 198.510223,425.232910 C181.959915,424.599152 164.725250,435.753998 160.707718,453.048248 C155.331696,476.190460 163.819122,500.451569 192.494766,505.032776 C194.035324,505.278900 195.500000,506.000000 197.000000,506.500000"})]})},PFe=new Dn(On()),{useToken:LFe}=kr,Pk=({maxNoOfGuests:e,toniesSize:t,showQuestionMark:n,title:r,description:a,height:o=(s=>(s=document.getElementById("collage-container"))==null?void 0:s.clientHeight)()||0,width:i=(c=>(c=document.getElementById("collage-container"))==null?void 0:c.clientWidth)()||0})=>{var v,y;const{token:u}=LFe(),[d,p]=l.useState([]),g=i,m=o,h=50,b=50,x=(((v=document.getElementById("central-text"))==null?void 0:v.clientWidth)||0)/(g<450?3:2),S=(((y=document.getElementById("central-text"))==null?void 0:y.clientHeight)||0)/(m<500?3:2);return l.useEffect(()=>{(async()=>{const I=(await PFe.apiGetTagIndexMergedAllOverlays(!1)).sort((T,R)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())).filter(T=>!T.tonieInfo.picture.endsWith("/img_unknown.png")&&T.tonieInfo.picture!==null&&T.tonieInfo.picture!==void 0&&T.tonieInfo.picture!==""&&!T.nocloud).slice(0,e).flatMap(T=>T.tonieInfo.picture).map((T,R)=>{if(r&&a){let _,$;do _=Math.random()*(100-t/m*100),$=Math.random()*(100-t/g*100);while(0h-S/m*100-t/m*100&&_b-x/g*100-t/g*100&&$f.jsxs("div",{className:"collage-image-container",style:{position:"absolute",top:w.top,left:w.left,width:"150px",height:"150px",overflow:"hidden",pointerEvents:"none"},children:[f.jsx("img",{src:w.src,alt:`Random ${w.id}`,className:"collage-image",style:{width:"100%",height:"100%",objectFit:"cover"}}),n&&f.jsx("div",{className:"question-mark-overlay",style:{position:"absolute",top:"5%",right:"20%",width:"30%",height:"30%",display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(DFe,{})})]},w.id))]})},{Paragraph:jFe}=xn,FFe=()=>{const{t:e}=Nt();return f.jsx(f.Fragment,{children:f.jsx(Pn,{children:f.jsx(jFe,{children:f.jsx(Pk,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!0,title:e("404.title"),description:e("404.description")})})})})},{Paragraph:iB,Text:xI}=xn,BFe=()=>{const{t:e}=Nt(),t=[{version:"0.6.3",changes:["Stabilization backend","Fixed some memory leaks","Added Hide Information in filesV2 Api https://github.com/toniebox-reverse-engineering/teddycloud/issues/234","Added retain option last will in MQTT https://github.com/toniebox-reverse-engineering/teddycloud/issues/251","Support image caching for tonieboxes images (using setting tonie_json.cache_images) https://github.com/toniebox-reverse-engineering/teddycloud/issues/220","Provide c2.der symlink","Added custom_img volume for storing custom images - adapt your docker-compose.yaml according https://github.com/toniebox-reverse-engineering/teddycloud/blob/master/docker/docker-compose.yaml","Don't disable MQTT on an error https://github.com/toniebox-reverse-engineering/teddycloud/issues/263","Added some more debug information on readTrackPosition","Added TAF checks (new setting core.full_taf_validation)",'Added experimental new ESP32 flasher "revvox_flasher", currently unused',"Extended fileIndexV2 Api with taf valid flag","Added contrib/verify-tc-certificates.sh for certificate verification","gui: Added version overview page","gui: Added spinning wheel to lists, should also fix https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/129","gui: Extended cc3235 guide based on https://github.com/toniebox-reverse-engineering/teddycloud/issues/232, https://github.com/toniebox-reverse-engineering/teddycloud/issues/230 and https://github.com/toniebox-reverse-engineering/teddycloud/issues/229","gui: Extended audioplayer, fixed bugs, show info of currently played content (in case of taf), added play icon to each track in tonieinfomodal (only if tracks and trackseconds have the same number of elements), on click plays the chapter directly","gui: Edit Tonie/Tag: Overworked rollback and empty field functionality https://github.com/toniebox-reverse-engineering/teddycloud/issues/235","gui: Edit Tonie/Tag: Fixed some bugs","gui: Set Cursor to Default on Filebrowser directory row","gui: Show disabled Cloud in Boxine status badge https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/164","gui: Recheck cloud status on certain changes (cloud.enabled, uploaded certs, autoextracted certs in esp32 flashing process) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/167","gui: Added notification system, own page. Migrated messages to notification (except settingspages) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/165","gui: Fixed bug deleting Toniebox https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/174","gui: Mark hidden Tonies/Tags in content view","gui: Only allow *.der files to be uploaded on certificate upload","gui: Added Download buttons/link to download TeddyCloud CA Certificate https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/177","gui: Overworked filebrowsers directory visualization and multi select action buttons https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/162","gui: Overworked settings forms: Instead of autosaving and manual save of strings, there is a new save button to store the changed settings https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/23","gui: Box flashing section: Added links to the great newbie guides in the forum thanks to marco79cgn, chuckf and Wurst420!","gui: Added Certificate upload to box flashing","gui: Completed CC3200 Flashing guide https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/130","gui: Added selection of baudrate in ESP32 flash process https://github.com/toniebox-reverse-engineering/teddycloud/issues/101, https://github.com/toniebox-reverse-engineering/teddycloud/issues/258","gui: Overworked mobile menu layout: section menus now part of the drawer and not shown always on each page, use + icon in mobile to expand menu","gui: Added How to Create a Good Support Request page","gui: Added reset shortcut in esp32 flashing process https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/190","gui: Prepared esp32 flashing with previously set TeddyCloud hostname instead of original one https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/189","gui: Some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.2...tc_v0.6.3","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.2...tcw_v0.6.3"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-3/812",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.3"},{version:"0.6.2",changes:["Stabilization backend","Provide TrackSeconds for Frontend https://github.com/toniebox-reverse-engineering/teddycloud/issues/187","Fixed bug no update of model in content.json if empty https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Added web_version.json for consistency checks, including new setting frontend.ignore_web_version_mismatch","Added frontend setting frontend.confirm_audioplayer_close","Fixed some bugs","gui: Next button in audio player now jumps according tracks of taf","gui: Show error if something went wrong while encoding new taf (Audio Encoder)","gui: Added translation overview page in community contribution section","gui: Improved Audio Encoder, leave selected target folder till reload of page, if only one file is added, take filename as preset for taf filename https://github.com/toniebox-reverse-engineering/teddycloud/issues/223","gui: Fixed filterbug in FileBrowser Component (List + Select) https://github.com/toniebox-reverse-engineering/teddycloud/issues/224","gui: Show warning if web_version of gui does not match expected web_version from backend","gui: Show warning if ogg/opus (taf) is not supported by browser","gui: Integrated frontend.confirm_audioplayer_close","gui: Improved Code Snippet Element, show line numbers and added copy functionality","gui: Added Box setup overview page","gui: Added Box version identification page https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/145","gui: Added Open Toniebox guide page https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/146","gui: Extended CC3200 Firmware flash section, added custom alt Url Patch generation. https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/126","gui: Extended CC3200 Firmware flash section, extended Applying Patches step","gui: Extended CC3235 Firmware flash section, same version as wiki, but additional images flash chip","gui: Added ESP32 Firmware flash legacy section, same version as wiki","gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.1...tc_v0.6.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.1...tcw_v0.6.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-2/773",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.2"},{version:"0.6.1",changes:["Stabilization backend","Changed default for setting cloud.prioCustomContent to false","Disabled prioCustomContent if lower audio id is allowed","Added reload tonies(.custom).json api https://github.com/toniebox-reverse-engineering/teddycloud/issues/177","Added moveFile api https://github.com/toniebox-reverse-engineering/teddycloud/issues/198","Added server side taf file encoding","Support TAF files in taps and server side taf file encoding","Added API to extract certificates https://github.com/toniebox-reverse-engineering/teddycloud/issues/103","Initial cert generation generates now a 4096bit long cert https://github.com/toniebox-reverse-engineering/teddycloud/issues/138","Extended settings api","Fixed bug updating empty model information if entry was added in tonies.json https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Fixed some bugs","gui: Fixed bug storing source with html special chars","gui: Fixed bug saving model and source of a tonie/tag at once","gui: Fixed display bug sourceInfo with unknown content","gui: Integrated new reload tonies.json api","gui: Added Moving and renaming of files in library and content","gui: Fixing security weaknesses","gui: Added file upload to library",`gui: If setting "Category frontend: Split content / model" is disabled, don't show the source info in Tonies list and details modal`,"gui: Added encoding functionality in library","gui: Allow playing all encodable files in teddyCloud","gui: ESP32 flash process - integrated remaining manual steps. Certificate extraction is now also automated","gui: Fixed bug tonieboxes if tonieboxes.custom.json was empty or not available https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/133","gui: Added Spanish language - feel free to improve translations as current translation is completely done by ChatGPT."],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.0...tc_v0.6.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.0...tcw_v0.6.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-1/701",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.1"},{version:"0.6.0",changes:["Stabilization backend","store last played time of last played tag","extend getTagIndex API, provide language in tonieInfos","PoC Toniebox api access (explicitly allow access to teddy cloud api on tonebox level)","Added enable/disable new Tonieboxes: prohibit registration of new tonieboxes if not enabled","Added removal of overlays (= removal of Tonieboxes from TeddyCloud)","add hide tonie/tag functionality (hide using new /web gui, present to box to unhide)","fixed locking bug, reworked locking.","fixed bug not storing cloud auth in some circumstances","fixed bug not storing source in json file: https://github.com/toniebox-reverse-engineering/teddycloud/issues/165","added limit to tempfile creation for radiostreams, default: 240mb (~6h) (configurable if expert mode is activated) https://github.com/toniebox-reverse-engineering/teddycloud/issues/180","added possibility to set WiFi Credentials on ESP32 Firmware patching","introduced second HTTPS port for WebFrontend only, which allows using https for webfrontend (Default: 8443)","tonie images from boxine can now be cached locally (PoC)","new /web gui is now default web gui: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/47","new /web gui: enhanced Toniecard, added search for Radiostream in Edit Modal","new /web gui: Tonies - Content section - added Migrate Content to Lib button on TAF files","new /web gui: added RTNL Log Page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/48","new /web gui: added show Json File when double click on json file (File browser view)","new /web gui: added show TAP File when double click on tap file (File browser view)","new /web gui: added show TAF Header (including AudioID + Hash) when double click on a taf file (File browser view)","new /web gui: show date time of last played tag (toniecard + toniboxcard)","new /web gui: added Tonie Audio Playlist page (WIP - Implementation not yet finished), rearranged menu entries tonies section: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/52","new /web gui: added delete feature in content, library and audio playlist page","new /web gui: improved changelog page, parse links and open links in new tab; completed contributors page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/27","new /web gui: added language flag to tonies card if it's not the same as the most owned language ones, added language filter","new /web gui: deletion of tonieboxes","new /web gui: info if add new boxes is enabled on homepage and tonieboxes page","new /web gui: enable/disable API access for toniebox added on tonieboxes page","new /web gui: add hide tonie/tag in tonies list (in info modal)","new /web gui: PoC Tonies Custom Json Editor (WiP, not working, but you get the json part to copy into the tonies.custom.json)","new /web gui: PoC Tonie Audio Playlist Editor (WiP, not working, but you get the json to copy and save as a TAP file) ","new /web gui: allow TAP files to be selected on Edit Tag Modal","new /web gui: new 404 page","new /web gui: hidden feature Tonie meeting. Search for it!","new /web gui: added link to Toniebox if the box is version cc3200, an ip is available and cfw is installed: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/28","new /web gui: hide audioplayer if no source is set, when clicking on play icon of a tonie/taf/... the player is shown: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: added minimize/maximize audioplayer https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: show Tonie on tonie article search","new /web gui: improved audioplayer, added volume control to custom one, hide doubled audioplayer","new /web gui: added French translation. Feel free to check if chatGPT is a good translator. If something is wrong, give us a shout at telegram!","new /weg gui: overworked filebrowser to be responsive","new /web gui: overworked tonie information modal, now also available in file browser (library + content)","new /web gui: added Create Directory functionality in file browser","new /web gui: added better breadcrumb to filebrowser (clickable for easy directory switching) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/78","new /web gui: set nocloud to true if source of a tag is changed https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/77","new /web gui: show image and information from set source if different from model https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/80","new /web gui: tonie overview: filter now also considers information from set source","new /web gui: fixed bugs after updating tonies in tonies overview","new /web gui: added FAQ page in community section","new /web gui: support web streams in audioplayer","new /web gui: improved filebrowser, added filter field and made buttons sticky","new /web gui: integrated ESP32 Firmware Flashing https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/46","new /web gui: integrated setting of WiFi credentials in ESP32 Firmware Flashing","new /web gui: show hint on ESP32 Firmware Flashing page if browser does not support WebSerial","new /web gui: allow multiselection in file browser for file deletion","new /web gui: limit audio encoder to 99 files (as Toniebox only supports 99 chapters)","new /web gui: fixed image fetch loop when playing a tonie","new /web gui: fixed poor audio quality in some case when using audio encoder","new /web gui: migrated gui from create-react-app to vite","new /web gui: fixed some bugs and minor refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.2...tc_v0.6.0","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.2...tcw_v0.6.0"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-0/468",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.0"},{version:"0.5.2",changes:["Stabilization backend","Several fixes and changes regards backend crashes and emptied config files when changing any tonie setting","Fix for random directories in library (and everywhere)","Fixed bug storing last played tonie per box","Fixed bug clearing text settings (like paths or flex tonie)","API for searching models is now case insensitive","Save IP of Toniebox as prepartion for linking CFW Tonieboxes","Introduced Settings level - 1: Basic, 2: Detail, 3: Expert (1 Default - if you are missing settings, increase level!)","new /web gui: enhanced Tonies Card, added editable content source","new /web gui: enhanced Toniebox Card, improved UX","new /web gui: Dark theme (Last used Theme stored in localStorage in Browser)","new /web gui: Show All (Hide Pagination on Tonies List, stored in localStorage in Browser)","new /web gui: Support of overlayed content folder. More details can be found here: https://forum.revvox.de/t/teddycloud-supporting-multiple-tonieboxes/451/1","new /web gui: Text inputs in Settings must be saved explicitly. (only Textinputs, other types are still autosaved.) Expect changes in future releases.","new /web gui: fixed various state bugs","new /web gui: show last online date of offline tonieboxes","new /web gui: Messages on successful setting updates","new /web gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.1...tc_v0.5.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.1...tcw_v0.5.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-2/450",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.2"},{version:"0.5.1",changes:["Stabilization Backend (added locks to prevent crashes, removed memory leaks)","Creating dirs when uploading certificates to a not yet existing path","Moving Tafs from Content to Library on click (not yet available in (new?) frontend)","new /web gui: Pagination + Filtering on Tonies List ( Paging Tonies · Issue #24 · toniebox-reverse-engineering/teddycloud_web · GitHub 2 )","new /web gui: Extend Box Management: Certificate upload now box specific possible, overworked certificate upload ( Certificate upload box related · Issue #26 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: Show last played Tonie on Box Management, link to prefiltered Tonieslist, added marking of the Last played Tonies on each box in Tonieslist ( Make use of internal.last_ruid · Issue #30 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: adapted cursor on cards to default as cards not really clickable ( TonieCard Cursor · Issue #25 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: fixed navigation item marking","new /web gui: updated box models, added pseudomodels of the official tonies covers (sleepy bear, sheep and rabbit). They are now placed in a json in the config folder. Custom tonieboxes are now also possible. Add your customised one in tonieboxes.custom.json and choose it in the box mgmt.","new /web gui: added community section (WIP) ( Add Changelog and contribution page · Issue #27 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: fixed warnings"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.0...tc_v0.5.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.0...tcw_v0.5.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-1/447",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.1"},{version:"0.5.0",changes:["security mitigations on public instances as it‘s definitely not recommended to host teddycloud in public accessible for all","prepared authentication for frontend (backend adaptions)","linked new /web gui on teddycloud administration gui","overworked header, reordered menu items, new icons, better readable status in new /web gui","fixed modals (still some display problems on small devices like mobiles exists)","added audio encoder to new /web gui, you are now able to select files and encode them to a taf","This lets you bring your own content easily on an existing tonie.","added toniebox management to new /web gui, improved backend functions for that","only at least once connected boxes are listed, model must be set manually","enriched homepage in new /web gui with 5 randomly selected tonies of yours","adapt tonie card list to different cover image sizes in new /web gui (all cards within one row have now the same height)","added no cloud and live icon (Toggle to enable/disable) on tonie card in new /web gui","fixed several bugs"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/pull/154","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/8","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/9","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/19","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/21","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/22"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-0/444",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.0"},{version:"0.4.5 and older",changes:["A lot more. See Github for details!"],commits:[]}],n=r=>{const a=/(https?:\/\/[^\s]+)/g;return r.split(a).map((i,s)=>a.test(i)?f.jsx(it,{to:i,target:"_blank",rel:"noopener noreferrer",children:i},s):i)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.changelog.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.changelog.title")}),f.jsx(iB,{children:f.jsx(Er,{dataSource:t,renderItem:r=>f.jsxs(f.Fragment,{children:[f.jsxs("h2",{children:[e("community.changelog.version")," ",r.version]}),f.jsxs(iB,{children:[f.jsx("h3",{children:e("community.changelog.changes")}),f.jsx("ul",{children:r.changes.map((a,o)=>f.jsx("li",{children:n(a)},o))})]}),r.commits&&r.commits.length>0&&f.jsxs(f.Fragment,{children:[f.jsxs(xI,{strong:!0,children:[e("community.changelog.allCommits"),":"]}),f.jsx("ul",{children:r.commits.map((a,o)=>f.jsx("li",{children:f.jsx(it,{to:a,target:"_blank",children:a})},o))})]}),r.discussionLink&&f.jsxs(f.Fragment,{children:[f.jsxs(xI,{strong:!0,children:[e("community.changelog.discussion"),":"]}),f.jsx("ul",{children:f.jsx("li",{children:f.jsx(it,{to:r.discussionLink,target:"_blank",children:r.discussionLink})})})]}),r.githubReleaseLink&&f.jsxs(f.Fragment,{children:[f.jsxs(xI,{strong:!0,children:[e("community.changelog.githubRelease"),":"]}),f.jsx("ul",{children:f.jsx("li",{children:f.jsx(it,{to:r.githubReleaseLink,target:"_blank",children:r.githubReleaseLink})})})]})]})})})]})]})]})},{Paragraph:SI}=xn,zFe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.title")}),f.jsxs(SI,{children:[f.jsx("h2",{children:e("community.community.getInvolved")}),e("community.community.getInvolvedText1")]}),f.jsxs(SI,{children:[f.jsx(SI,{children:e("community.community.getInvolvedText2")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx(it,{to:FY,target:"_blank",children:"GitHub"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.github")})})]}),f.jsxs("li",{children:[f.jsx(it,{to:uk,target:"_blank",children:"Telegram Chat"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.telegram")})})]}),f.jsxs("li",{children:[f.jsx(it,{to:hd,target:"_blank",children:"Discourse Forum"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.discourse")})})]}),f.jsxs("li",{children:[f.jsx(it,{to:BY,target:"_blank",children:"TeddyCloud Wiki"}),f.jsx("ul",{children:f.jsx("li",{children:e("community.community.teddyCloudWiki")})})]})]})]})]})]})]})},{Paragraph:ec}=xn,HFe=()=>{const{t:e}=Nt(),t=[e("community.contribution.communityValues1"),e("community.contribution.communityValues2"),e("community.contribution.communityValues3"),e("community.contribution.communityValues4"),e("community.contribution.communityValues5"),e("community.contribution.communityValues6")],n=[e("community.contribution.makeFirstContribution1"),e("community.contribution.makeFirstContribution2"),e("community.contribution.makeFirstContribution3"),e("community.contribution.makeFirstContribution4"),e("community.contribution.makeFirstContribution5"),e("community.contribution.makeFirstContribution6"),e("community.contribution.makeFirstContribution7")];return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.contribution.title")}),f.jsxs(ec,{children:[f.jsx(ec,{children:e("community.contribution.contributionIntro")}),f.jsxs(ec,{children:[f.jsx("h2",{children:e("community.contribution.communityValues")}),f.jsx(ec,{children:e("community.contribution.communityValuesIntro")}),f.jsx(ec,{children:e("community.contribution.communityValuesExamples")}),f.jsx("ul",{children:t.map((r,a)=>f.jsx("li",{children:r},a))})]}),f.jsxs(ec,{children:[f.jsx("h2",{children:e("community.contribution.makeFirstContribution")}),f.jsx(ec,{children:e("community.contribution.makeFirstContributionIntro")}),f.jsx("ul",{children:n.map((r,a)=>f.jsx("li",{children:r},a))})]})]})]})]})]})},UFe=new Dn(On()),{Paragraph:sB}=xn,{Panel:VFe}=$s,WFe=()=>{const{t:e}=Nt(),[t,n]=l.useState({});return l.useEffect(()=>{async function r(){try{const s=(await(await UFe.apiGetTeddyCloudApiRaw("/api/toniesJson")).json()).filter(u=>u.audio_id&&u.audio_id.length===0&&!["creative-tonie","system"].includes(u.category)&&!u.model.includes("20000")).map(u=>({model:u.model,series:u.series,episodes:u.episodes,pic:u.pic,audio_id:u.audio_id||[],category:u.category,language:u.language})),c={};s.forEach(u=>{c[u.language]||(c[u.language]=[]),c[u.language].push(u)}),n(c)}catch(a){console.error("Error fetching and transforming data:",a)}}r()},[]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")},{title:e("community.contribution.toniesJson.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.contribution.toniesJson.title")}),f.jsx(sB,{children:e("community.contribution.toniesJson.text")}),f.jsx(sB,{children:f.jsx($s,{accordion:!0,children:Object.keys(t).map((r,a)=>f.jsx(VFe,{header:r,children:f.jsx(Er,{children:Array.isArray(t[r])&&t[r].map((o,i)=>f.jsx(Er.Item,{id:o.model,children:f.jsxs("div",{children:[f.jsx("img",{src:o.pic,alt:"",style:{width:"100px",height:"auto"}}),o.model," - ",o.series," -"," ",o.episodes]})},i))})},a))})})]})]})]})},{Paragraph:tc}=xn,GFe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contributors.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.contributors.title")}),f.jsxs(tc,{children:[e("community.contributors.contributorsIntro"),f.jsxs(tc,{children:[f.jsx("h3",{children:"teddycloud"}),f.jsx("div",{children:e("community.contributors.teddyCloud")}),f.jsx(it,{to:ML,target:"_blank",children:ML})]}),f.jsxs(tc,{children:[f.jsx("h3",{children:"teddycloud_web"}),f.jsx("div",{children:e("community.contributors.teddyCloudWeb")}),f.jsx(it,{to:DL,target:"_blank",children:DL})]}),f.jsxs(tc,{children:[e("community.contributors.others")," ",f.jsx(it,{to:AL,target:"_blank",children:AL})]})]}),f.jsxs(tc,{children:[f.jsx("div",{style:{marginBottom:24},children:e("community.contributors.bigRoundOfApplause")}),f.jsx(Pk,{maxNoOfGuests:50,toniesSize:150,showQuestionMark:!1,height:150})]}),f.jsx(Ha,{}),f.jsxs(tc,{children:[f.jsx("h3",{children:e("community.contributors.supportTeam")}),f.jsx(tc,{children:e("community.contributors.supportTeamText")}),f.jsx(it,{to:dk,target:"_blank",children:e("community.contributors.supportTeamLink")})]})]})]})]})},{Paragraph:lB}=xn,qFe=()=>{const{t:e}=Nt(),t=e("faq",{returnObjects:!0});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.faq.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.faq.title")}),f.jsx(lB,{children:e("community.faq.intro")}),f.jsx(lB,{children:t.map((n,r)=>f.jsxs("div",{style:{marginBottom:"20px"},children:[f.jsx("h3",{children:n.question}),f.jsx("p",{children:n.answer})]},r))})]})]})]})},OX=(e,t,n="")=>{const r=[];return Object.keys(e).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(e[a])?Array.isArray(t[a])?e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;t[a][s]||r.push(c,u)}):e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof e[a]=="object"&&e[a]!==null?!(a in t)||typeof t[a]!="object"?r.push(...NX(e[a],o)):r.push(...OX(e[a],t[a],o)):a in t||r.push(o)}),r},NX=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...NX(e[r],a)):n.push(a)}),n},kX=(e,t,n="")=>{const r=[];return Object.keys(t).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(t[a])?Array.isArray(e[a])?t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;e[a][s]||r.push(c,u)}):t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof t[a]=="object"&&t[a]!==null?!e[a]||typeof e[a]!="object"?r.push(o):r.push(...kX(e[a],t[a],o)):a in e||r.push(o)}),r},KFe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState({}),[o,i]=l.useState({}),[s,c]=l.useState(!0),u=["en","fr","de","es"],d="en";return l.useEffect(()=>{(async()=>{const g={};for(let m of u){const b=await(await fetch(`/web/translations/${m}.json`)).json();g[m]=b}n(g),c(!1)})()},[]),l.useEffect(()=>{if(!s&&t[d]){const p=t[d],g={},m={};u.forEach(h=>{if(h!==d){const b=t[h];g[h]=OX(p,b),m[h]=kX(p,b)}}),a(g),i(m)}},[s,t]),s?f.jsx("p",{children:"Loading translations..."}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{children:e("community.translations.missingExtraKeysHeadline")}),u.every(p=>{var g,m;return p===d||((g=r[p])==null?void 0:g.length)===0&&((m=o[p])==null?void 0:m.length)===0})?f.jsx("p",{children:e("community.translations.noDiscrepancies")}):f.jsx("div",{children:u.map(p=>{var g,m;return p!==d&&f.jsxs("div",{children:[f.jsxs("h2",{children:[e("community.translations.language"),": ",p.toUpperCase()]}),f.jsx("h3",{children:e("community.translations.missingKeys")}),((g=r[p])==null?void 0:g.length)>0?f.jsx("ul",{children:r[p].map((h,b)=>f.jsx("li",{children:h},b))}):f.jsx("p",{children:e("community.translations.noMissingKeys")}),f.jsxs("h3",{children:[e("community.translations.extraKeys"),":"]}),((m=o[p])==null?void 0:m.length)>0?f.jsx("ul",{children:o[p].map((h,b)=>f.jsx("li",{children:h},b))}):f.jsx("p",{children:e("community.translations.noExtraKeys")})]},p)})})]})},AX=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...AX(e[r],a)):n.push(a)}),n},YFe=(e,t)=>{const n=t.split(".");let r=e;for(let a of n){if(a.includes("[")){const[o,i]=a.split("["),s=parseInt(i.replace("]",""),10);if(r=r[o],Array.isArray(r))r=r[s];else return}else r=r?r[a]:void 0;if(r===void 0)return}return typeof r=="string"?r:void 0},XFe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState(!0),o=["en","fr","de","es"],i="en";if(l.useEffect(()=>{(async()=>{const p={};for(let g of o){const h=await(await fetch(`/web/translations/${g}.json`)).json();p[g]=h}n(p),a(!1)})()},[]),r)return f.jsx("p",{children:"Loading translations..."});const s=AX(t[i]),c=[{title:e("community.translations.key"),dataIndex:"key",key:"key",width:"30%",fixed:"left",render:d=>f.jsx("div",{style:{wordWrap:"break-word",wordBreak:"break-all"},children:d})},...o.map(d=>({title:d.toUpperCase(),dataIndex:d,key:d}))],u=s.map(d=>{const p={key:d};return o.forEach(g=>{const m=YFe(t[g],d);p[g]=m||"<"+e("community.translations.missing")+">"}),p});return f.jsxs(f.Fragment,{children:[f.jsx("h2",{children:e("community.translations.allTranslationStrings")}),f.jsx(xa,{size:"small",columns:c,scroll:{x:"100%"},dataSource:u,rowKey:"key",pagination:!1})]})},{Paragraph:ZFe}=xn,QFe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.translations.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.translations.title")}),f.jsx(ZFe,{children:e("community.translations.hint")}),f.jsx(KFe,{}),f.jsx(XFe,{})]})]})]})},wI=new Dn(On()),JFe=()=>{const{t:e}=Nt(),[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState("");l.useEffect(()=>{wI.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(d=>d.text()).then(d=>n(d)).catch(d=>console.error("Error fetching data:",d)),wI.apiGetTeddyCloudSettingRaw("internal.version.id").then(d=>d.text()).then(d=>a(d)).catch(d=>console.error("Error fetching data:",d)),wI.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(d=>d.text()).then(d=>i(d)).catch(d=>console.error("Error fetching data:",d))},[]);const s=(d,p)=>f.jsx("ul",{children:Object.keys(d).map(g=>{const m=d[g],h=`${p}.${g}`;return typeof m=="object"&&m.items?f.jsxs("li",{children:[e(`${h}.title`),s(m.items,h+".items")]},g):f.jsx("li",{children:e(h)},g)})}),c=e("home.features.features",{returnObjects:!0}),u=e("home.features.futureFeatures",{returnObjects:!0});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("home.features.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("home.features.title")+" "+r}),f.jsx("p",{children:e("home.features.description")}),f.jsxs("p",{children:["Build:"," ",f.jsx(it,{to:mke+o,target:"_blank",children:t.replace(r,"")})]}),f.jsx("h2",{children:e("home.features.currentlyImplementedFeatures")}),s(c,"home.features.features"),f.jsx("h2",{children:e("home.features.yetToCome")}),s(u,"home.features.futureFeatures")]})]})]})},e8e=({currentPage:e,onChange:t,total:n,pageSize:r,additionalButtonOnClick:a})=>{const{t:o}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(kN,{current:e,total:n,pageSize:r,onChange:t,showSizeChanger:!0,pageSizeOptions:["24","48","96","192"],locale:{items_per_page:o("tonies.tonies.pageSelector")},style:{marginBottom:8}}),f.jsx(tt,{onClick:a,style:{marginLeft:16},children:o("tonies.tonies.showAll")})]})},t8e=new Dn(On()),n8e=e=>{const{t}=Nt(),{addNotification:n}=Qn(),[r,a]=l.useState([]),[o,i]=l.useState(),[s,c]=l.useState(!1),u=async g=>{const m=encodeURIComponent(g),h="/api/toniesJsonSearch?searchModel="+m+"&searchSeries="+m+"&searchEpisode="+m;try{const S=(await(await t8e.apiGetTeddyCloudApiRaw(h)).json()).map(v=>({value:v.model,text:"["+v.model+"] "+v.series+" - "+v.episode,picture:v.picture}));a(S)}catch(b){n(dt.Error,t("tonieArticleSearch.failedToFetchSearchResults"),t("tonieArticleSearch.failedToFetchSearchResultsDetails")+b,t("tonies.navigationTitle"));return}},d=g=>{i(g),e.onChange(g)},p=()=>{c(!0)};return f.jsxs(f.Fragment,{children:[f.jsx(cr,{showSearch:!0,value:o,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:u,onChange:d,notFoundContent:null,options:(r||[]).map(g=>({value:g.value,label:f.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[f.jsx("img",{src:g.picture,alt:g.text,style:{display:"none"}}),g.text]})})),style:{marginTop:"8px"}}),f.jsx($X,{open:s,props:e,setValue:i,onClose:()=>c(!1)}),f.jsx(Ft,{title:t("tonies.addNewCustomTonieHint"),children:f.jsx(tt,{onClick:p,style:{marginTop:8},children:t("tonies.addNewCustomTonie")})})]})},{useToken:r8e}=kr,MX=({parentRef:e})=>{const{token:t}=r8e(),n={position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:t.colorBgContainer,opacity:.6,display:"flex",justifyContent:"center",alignItems:"center",zIndex:2e3};return f.jsx("div",{style:n,children:f.jsx(vf,{style:{position:"absolute",top:250},size:"default"})})},su=()=>f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"20px",minHeight:"100px"},children:f.jsx(vf,{size:"default"})});function ad(e,t=!0,n=1){if(!e||e<0)return"NaN";const r=t?1e3:1024;if(Math.abs(e)=r&&o{const{t:c}=Nt(),{playAudio:u}=Mm(),{token:d}=o8e(),{addNotification:p,addLoadingNotification:g,closeLoadingNotification:m}=Qn(),h=ii(),b=Zc(),x=l.useRef(null),S=l.useRef(null),[v,y]=l.useState([]),[w,C]=l.useState(""),[E,I]=l.useState(!1),[T,R]=l.useState([]),[_,$]=l.useState(!1),[M,P]=l.useState(),[D,O]=l.useState(""),[k,N]=l.useState(""),[A,L]=l.useState(!1),[j,F]=l.useState(!0),B=l.useRef(null);l.useEffect(()=>{R([])},[]),l.useEffect(()=>{if(n){const te=new URLSearchParams(h.search);te.set("path",""),C("");const se=`${window.location.pathname}?${te.toString()}`;window.history.replaceState(null,"",se),I(pe=>!pe)}},[n]),l.useEffect(()=>{F(!0),a8e.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${w}&special=${e}`+(n?`&overlay=${n}`:"")).then(te=>te.json()).then(te=>{var se=te.files;o&&(se=se.filter(pe=>pe.isDir)),t.length>0&&(se=se.filter(pe=>pe.isDir||t.some(he=>pe.name.endsWith(he)))),y(se)}).catch(te=>p(dt.Error,c("fileBrowser.messages.errorFetchingDirContent"),c("fileBrowser.messages.errorFetchingDirContentDetails",{path:w||"/"})+te,c("fileBrowser.title"))).finally(()=>{F(!1)})},[w,e,o,E]),l.useEffect(()=>{S.current!==null&&x.current&&x.current.setSelectionRange(S.current,S.current)},[k]);const z=te=>{var se;!te.isDir&&((se=te.tonieInfo)!=null&&se.tracks)&&(P(te),O(encodeURI("/content"+w+"/"+te.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:"")),$(!0))},U=te=>{a&&b(`?path=${te}`),w===te&&I(se=>!se),L(!1),C(te)},H=(te,se)=>{const pe=te.split("/").filter(re=>re),he=[{title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>se(""),children:c("fileBrowser.root")}),key:"/"}];return pe.forEach((re,ue)=>{const me=`/${pe.slice(0,ue+1).join("/")}`;he.push({title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>se(me),children:re}),key:me})}),f.jsx(Cm,{items:he})},K=te=>{N(te.target.value),S.current=te.target.selectionStart,L(!0)},Y=()=>{N(""),S.current=0},ee=()=>{L(!0)},ae=()=>{L(!1)},W=te=>T.includes(te.key)?"highlight-row":"",q=te=>{if(r>0){if(t){const pe=te.length;te=te.filter(he=>{const re=v.find(ue=>ue.name===he);return re&&re.tafHeader!==void 0||re&&t.some(ue=>re.name.toLowerCase().endsWith(ue))}),pe!==te.length&&p(dt.Warning,c("fileBrowser.fileTypesWarning"),c("fileBrowser.selectAllowedFileTypesOnly",{fileTypes:t.join(", ")}),c("fileBrowser.title"))}te.length>r?p(dt.Warning,c("fileBrowser.maxSelectedRowsWarning"),c("fileBrowser.maxSelectedRows",{maxSelectedRows:r}),c("fileBrowser.title")):R(te)}else R(te);const se=(v==null?void 0:v.filter(pe=>te.includes(pe.name)))||[];s!==void 0&&s(se,w,e)},Z=te=>{F(!0);const se=te===".."?w.split("/").slice(0,-1).join("/"):`${w}/${te}`;a&&b(`?path=${se}`),L(!1),R([]),C(se)},Q=(te,se)=>se.reduce((pe,he)=>{if(pe&&pe[he]!==void 0)return pe[he]},te),J=(te,se,pe)=>{const he=Array.isArray(pe)?Q(te,pe):te[pe],re=Array.isArray(pe)?Q(se,pe):se[pe];return he===void 0&&re===void 0?0:he===void 0?1:re===void 0?-1:typeof he=="string"&&typeof re=="string"?he.localeCompare(re):typeof he=="number"&&typeof re=="number"?he-re:(console.log("Unsupported types for sorting:",te,se),console.log("Unsupported types for sorting field:",pe,he,re),0)},ie=(te,se)=>te.isDir===se.isDir?J(te,se,"name"):te.isDir?-1:1;var le=[{title:"",dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(te,se)=>{var pe,he;return se&&((pe=se.tonieInfo)!=null&&pe.picture)?f.jsx("img",{src:se.tonieInfo.picture,alt:c("tonies.content.toniePicture"),onClick:()=>z(se),style:{width:100,cursor:!se.isDir&&((he=se==null?void 0:se.tonieInfo)!=null&&he.tracks)?"help":"default"}},`picture-${se.name}`):f.jsx(f.Fragment,{})},showOnDirOnly:!1},{title:c("fileBrowser.name"),dataIndex:"name",key:"name",sorter:ie,defaultSortOrder:"ascend",render:(te,se)=>{var pe,he,re,ue,me;return se&&f.jsxs("div",{children:[f.jsx("div",{className:"showSmallDevicesOnly",children:f.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[f.jsxs("div",{style:{display:"flex"},children:[se.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:se.isDir?"normal":"break-word"},children:se.isDir?f.jsx(f.Fragment,{children:se.name}):se.name})]}),f.jsx("div",{children:(pe=se.tonieInfo)==null?void 0:pe.model}),f.jsx("div",{style:{wordBreak:se.isDir?"normal":"break-word"},children:((he=se.tonieInfo)!=null&&he.series?(re=se.tonieInfo)==null?void 0:re.series:"")+((ue=se.tonieInfo)!=null&&ue.episode?" - "+((me=se.tonieInfo)==null?void 0:me.episode):"")})]})}),f.jsx("div",{className:"showMediumDevicesOnly",children:f.jsxs("div",{style:{display:"flex"},children:[se.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:se.isDir?"normal":"break-word"},children:se.isDir?f.jsx(f.Fragment,{children:se.name}):se.name})]})}),f.jsx("div",{className:"showBigDevicesOnly",children:f.jsxs("div",{style:{display:"flex"},children:[se.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:se.isDir?"normal":"break-word"},children:se.isDir?f.jsx(f.Fragment,{children:se.name}):se.name})]})})]},`name-${se.name}`)},filteredValue:[k],onFilter:(te,se)=>{var he,re,ue,me;const pe=te.toLowerCase();return se.name===".."||se.name.toLowerCase().includes(pe)||!se.isDir&&"tafHeader"in se&&se.tafHeader.size&&ad(se.tafHeader.size).toString().includes(pe)||"tafHeader"in se&&((he=se.tafHeader.audioId)==null?void 0:he.toString().includes(pe))||"tonieInfo"in se&&((re=se.tonieInfo)==null?void 0:re.model.toLowerCase().includes(pe))||"tonieInfo"in se&&((ue=se.tonieInfo)==null?void 0:ue.series.toLowerCase().includes(pe))||"tonieInfo"in se&&((me=se.tonieInfo)==null?void 0:me.episode.toLowerCase().includes(pe))},showOnDirOnly:!0},{title:c("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(te,se)=>{var pe;return f.jsx("div",{children:(pe=se.tonieInfo)==null?void 0:pe.model},`model-${se.name}`)}},{title:f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[c("fileBrowser.model"),"/",c("fileBrowser.series"),"/",c("fileBrowser.episode")]}),f.jsx("div",{className:"showBigDevicesOnly",children:c("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(te,se)=>{var pe,he,re,ue,me,xe,Ee;return f.jsxs("div",{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[f.jsx("div",{children:(pe=se.tonieInfo)==null?void 0:pe.model}),f.jsx("div",{style:{wordBreak:"break-word"},children:((he=se.tonieInfo)!=null&&he.series?(re=se.tonieInfo)==null?void 0:re.series:"")+((ue=se.tonieInfo)!=null&&ue.episode?" - "+((me=se.tonieInfo)==null?void 0:me.episode):"")})]}),f.jsx("div",{className:"showBigDevicesOnly",children:(xe=se.tonieInfo)!=null&&xe.series?(Ee=se.tonieInfo)==null?void 0:Ee.series:""})]},`series-${se.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:c("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(te,se)=>{var pe;return f.jsx("div",{children:(pe=se.tonieInfo)==null?void 0:pe.episode},`episode-${se.name}`)}},{title:f.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:c("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(te,se)=>{let pe=[];return se.tafHeader?pe.push(f.jsx(Ft,{title:c("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+w+"/"+se.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:""),se.tonieInfo,{...se,audioUrl:encodeURI("/content"+w+"/"+se.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:"")})})},`action-play-${se.name}`)):i8e.some(he=>se.name.endsWith(he))&&pe.push(f.jsx(Ft,{title:c("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+w+"/"+se.name)+"?special="+e+(n?`&overlay=${n}`:""),se.tonieInfo)})},`action-play-${se.name}`)),pe},showOnDirOnly:!1}];le.forEach(te=>{te.hasOwnProperty("sorter")||(te.sorter=(se,pe)=>J(se,pe,te.dataIndex))}),o&&(le=le.filter(te=>te.showOnDirOnly)),i&&(le=le.filter(te=>typeof te.key=="string"?i.includes(te.key):!1));const fe=j?"":f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE});return f.jsxs(f.Fragment,{children:[M?f.jsx(Xy,{open:_,tonieCardOrTAFRecord:{...M,audioUrl:D},onClose:()=>$(!1),overlay:n}):"",f.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:f.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[f.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:c("tonies.currentPath")}),H(w,U)]})}),f.jsxs("div",{className:"test",style:{position:"relative"},ref:B,children:[j?f.jsx(MX,{parentRef:B}):"",f.jsx(xa,{dataSource:v,columns:le,rowKey:te=>te.name,pagination:!1,onRow:te=>({onDoubleClick:()=>{if(te.isDir)Z(te.name);else{const se=T.includes(te.name)?T.filter(pe=>pe!==te.name):[...T,te.name];q(se)}},style:{cursor:te.isDir?"context-menu":"unset"}}),rowClassName:W,rowSelection:r>0?{selectedRowKeys:T,onChange:q}:{selectedRowKeys:T,onChange:q,getCheckboxProps:te=>({disabled:te.name===".."}),onSelectAll:(te,se)=>{const pe=te?se.filter(he=>he.name!=="..").map(he=>he.name):[];R(pe)}},components:{header:{wrapper:te=>f.jsx("thead",{...te}),row:te=>f.jsxs(f.Fragment,{children:[f.jsx("tr",{...te}),f.jsx("tr",{children:f.jsx("th",{style:{padding:"10px 8px"},colSpan:le.length+1,children:f.jsx(Jt,{placeholder:c("fileBrowser.filter"),value:k,onChange:K,onFocus:ee,onBlur:ae,ref:x,style:{width:"100%"},autoFocus:A,addonAfter:f.jsx(ga,{onClick:Y,disabled:k.length===0,style:{color:k.length===0?d.colorTextDisabled:d.colorText,cursor:k.length===0?"default":"pointer"}})})})})]}),cell:te=>f.jsx("th",{...te,style:{position:"sticky",top:0,zIndex:8}})}},locale:{emptyText:fe}})]})]})},s8e=e=>{const{t}=Nt(),{addNotification:n}=Qn(),[r,a]=l.useState([]),[o,i]=l.useState(),[s,c]=l.useState(!1),u="https://de1.api.radio-browser.info/json/";l.useEffect(()=>{(async()=>{try{(await fetch(u+"stats")).ok&&c(!0)}catch{console.log("Radio Browser API not available, disable radiostream search."),c(!1)}})()},[]);const d=(b,x)=>{let S;return(...v)=>{clearTimeout(S),S=setTimeout(()=>b.apply(void 0,v),x)}},p=async b=>{if(a([]),b==="")return;const x=encodeURIComponent(b),S=u+"stations/search?name="+x+"&is_https=true&hidebroken=true";try{const v=await fetch(S,{});if(!v.ok)throw new Error(v.status+" "+v.statusText);const y=await v.json(),w=Array.from(new Set(y.map(C=>C.url))).map(C=>{const E=y.find(I=>I.url===C);return{value:E.url,text:(E.country?"["+E.country+"] ":"")+E.name+(E.language?" ("+E.language+")":"")}});a(w)}catch(v){n(dt.Error,t("radioStreamSearch.failedToFetchSearchResults"),t("radioStreamSearch.failedToFetchSearchResultsDetails")+v,t("tonies.title"));return}},g=l.useCallback(d(p,300),[]),m=b=>{i(b),e.onChange(b)};return s?f.jsxs(f.Fragment,{children:[f.jsx(xn.Text,{style:{fontSize:"small",display:"inline-block",marginTop:"8px"},children:t("radioStreamSearch.searchLabel")}),f.jsx(cr,{showSearch:!0,style:{margin:"8px 0"},value:o,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:g,onChange:m,notFoundContent:null,options:(r||[]).map(b=>({value:b.value,label:b.text}))})]}):f.jsx(f.Fragment,{})},l8e=({countryCode:e,height:t})=>{switch(e){case"de-de":return f.jsxs("svg",{height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 60",children:[f.jsx("path",{d:"M0 0h100v20H0z"}),f.jsx("path",{fill:"#D00",d:"M0 20h100v20H0z"}),f.jsx("path",{fill:"#FFCE00",d:"M0 40h100v20H0z"})]});case"en-gb":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.666",height:t,children:[f.jsxs("g",{fill:"#FFF",children:[f.jsx("path",{d:"M0 0h100v66.53H0z"}),f.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zM39.045 21.696 0 0v6.141l28.012 15.556z"})]}),f.jsx("path",{d:"M76.764 44.834 100 57.642V44.834zm-16.004 0L100 66.53v-6.141L71.988 44.834zM89.396 66.53 60.741 50.604V66.53zM17.602 44.834 0 54.62v-9.786zm21.442 2.768V66.55H4.971zM23.041 21.696 0 8.889v12.807zm16.004 0L0 0v6.141l28.012 15.556zM10.409 0l28.655 15.926V0zm71.793 21.696L100 11.911v9.786zM60.76 18.928V0h34.093z",fill:"#0052B4"}),f.jsxs("g",{fill:"#D80027",children:[f.jsx("path",{d:"M56.141 0H43.665v27.037H0v12.476h43.664V66.55H56.14V39.513h43.664V27.037H56.14z"}),f.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zm-32.748 0L0 60.41v6.14l39.045-21.715zm11.033-23.139L0 0v6.141l28.012 15.556zm32.748 0L100 6.141V0L60.76 21.696z"})]})]});case"en-us":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),f.jsx("path",{d:"M0 0h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.273h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.129H0z",fill:"#D80027"}),f.jsx("path",{fill:"#2E52B2",d:"M0 0h50v35.887H0z"}),f.jsx("path",{d:"m9.318 27.076-.78-2.495-.858 2.495H5.107l2.086 1.501-.78 2.495 2.125-1.54 2.066 1.54-.799-2.495 2.125-1.501zm10.975 0-.799-2.495-.819 2.495h-2.574l2.086 1.501-.78 2.495 2.086-1.54 2.105 1.54-.78-2.495 2.086-1.501zm11.014 0-.838-2.495-.78 2.495h-2.632l2.144 1.501-.819 2.495 2.086-1.54 2.144 1.54-.819-2.495 2.086-1.501zm10.955 0-.78-2.495-.819 2.495H38.07l2.105 1.501-.78 2.495 2.086-1.54 2.105 1.54-.838-2.495 2.144-1.501zM19.493 14.678l-.819 2.495h-2.573l2.086 1.54-.78 2.456 2.086-1.52 2.105 1.52-.78-2.456 2.086-1.54h-2.612zm-10.955 0-.858 2.495H5.107l2.086 1.54-.78 2.456 2.125-1.52 2.066 1.52-.799-2.456 2.125-1.54H9.318zm21.93 0-.78 2.495h-2.632l2.144 1.54-.819 2.456 2.086-1.52 2.144 1.52-.819-2.456 2.086-1.54h-2.573zm11.014 0-.819 2.495H38.07l2.105 1.54-.78 2.456 2.086-1.52 2.105 1.52-.838-2.456 2.144-1.54H42.26zM8.539 4.814 7.681 7.27H5.107l2.086 1.54-.78 2.476 2.125-1.539 2.066 1.54-.799-2.476 2.125-1.54H9.318zm10.955 0-.819 2.456h-2.574l2.086 1.54-.78 2.476 2.086-1.539 2.105 1.54-.78-2.476 2.086-1.54h-2.612zm10.975 0-.78 2.456h-2.632l2.144 1.54-.819 2.476 2.086-1.54 2.144 1.54-.819-2.476 2.086-1.54h-2.573zm11.014 0-.819 2.456h-2.593l2.105 1.54-.78 2.476 2.086-1.54 2.105 1.54-.838-2.476 2.144-1.54h-2.632z",fill:"#FFF"})]});case"fr-fr":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),f.jsx("path",{fill:"#0052B4",d:"M0 0h33.333v66.667H0z"}),f.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-be":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#fdda25",d:"M0 0h100v66.667H0z"}),f.jsx("path",{d:"M0 0h33.333v66.667H0z"}),f.jsx("path",{fill:"#ef3340",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-nl":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M0 22.222h100v22.222H0z"}),f.jsx("path",{fill:"#cd1f2a",d:"M0 0h100v22.222H0z"}),f.jsx("path",{fill:"#1d4185",d:"M0 44.444h100v22.223H0z"})]});case"pt-pt":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[f.jsx("path",{y:"85.337",fill:"#D80027",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),f.jsx("path",{fill:"#6DA544",points:"196.641,85.337 196.641,261.565 196.641,426.663 0,426.663 0,85.337 ",d:"M38.406 16.667L38.406 51.087L38.406 83.333L0 83.333L0 16.667Z"}),f.jsx("path",{fill:"#FFDA44",cx:"196.641",cy:"256",r:"64",d:"M50.906 50A12.5 12.5 0 0 1 38.406 62.5A12.5 12.5 0 0 1 25.906 50A12.5 12.5 0 0 1 50.906 50z"}),f.jsx("path",{fill:"#D80027",d:"M31.375 43.75v7.813c0 3.883 3.148 7.031 7.031 7.031s7.031 -3.148 7.031 -7.031V43.75z"}),f.jsx("path",{fill:"#FFFFFF",d:"M38.406 53.906c-1.292 0 -2.344 -1.051 -2.344 -2.344v-3.125h4.688v3.125c0 1.292 -1.052 2.344 -2.344 2.344"})]});case"it-it":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFF",d:"M66.667 0H0v66.53h99.805V0Z"}),f.jsx("path",{fill:"#6DA544",d:"M0 0h33.333v66.667H0z"}),f.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"es-es":return f.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[f.jsx("path",{fill:"#FFFFFF",d:"M0 0h100v66.667H0z"}),f.jsx("path",{fill:"#D03433",d:"M0 0h100v17.778H0zm0 48.889h100v17.778H0z"}),f.jsx("path",{fill:"#FBCA46",d:"M0 17.778h100v31.111H0z"}),f.jsx("path",{fill:"#FFFFFF",d:"M34.667 31.111h4.444v2.222h-4.444z"}),f.jsx("path",{fill:"#A41517",d:"M32 37.778c0 1.333 1.333 2.222 2.667 2.222s2.667 -0.889 2.667 -2.222L37.778 31.111H31.556zM29.333 31.111c0 -1.333 0.889 -2.222 1.778 -2.222h6.667c1.333 0 2.222 0.889 2.222 1.778V31.111l-0.444 6.667c-0.444 2.667 -2.222 4.444 -4.889 4.444s-4.444 -1.778 -4.889 -4.444z"}),f.jsx("path",{fill:"#A41517",d:"M30.222 33.333h8.889V35.556h-2.222l-2.222 4.444 -2.222 -4.444h-2.222zM23.556 26.667h4.444v15.556h-4.444zm17.778 0h4.444v15.556h-4.444zm-11.111 -2.222c0 -1.333 0.889 -2.222 2.222 -2.222h4.444c1.333 0 2.222 0.889 2.222 2.222v0.889q0 1.333 -1.333 1.333H31.111c-0.444 0 -0.889 -0.444 -0.889 -0.889z"})]});case"pl-pl":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[f.jsxs("g",{children:[f.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),f.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"170.663",d:"M0 16.667H100V50H0V16.667z"})]}),f.jsx("path",{y:"256",fill:"#D80027",width:"512",height:"170.663",d:"M0 50H100V83.333H0V50z"})]});case"tr-tr":return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"0 -5000 15000 10000",children:[f.jsx("path",{fill:"#E30A17",d:"M0-5000h15000V5000H0z"}),f.jsx("path",{fill:"#FFFFFF",d:"m6958.333 0 2261.333-734.667-1397.667 1923.5v-2377.666l1397.667 1923.5zM7112.5 1336.833a2500 2500 0 1 1 0-2673.667 2000 2000 0 1 0 0 2673.667"})]});default:return null}},CI=["de-de","en-gb","en-us","es-es","fr-fr","it-it","nl-be","nl-nl","pl-pl","pt-pt","tr-tr","undefined"],Nu=new Dn(On()),{Meta:c8e}=nu,{Text:cB}=xn,{useToken:u8e}=kr,d8e=({tonieCard:e,lastRUIDs:t,overlay:n,readOnly:r,defaultLanguage:a="",showSourceInfo:o=!0,onHide:i,onUpdate:s})=>{const{t:c}=Nt(),{token:u}=u8e(),{addNotification:d,addLoadingNotification:p,closeLoadingNotification:g}=Qn(),[m,h]=l.useState(0),[b,x]=l.useState(0),[S,v]=l.useState(0),[y,w]=l.useState(0),[C,E]=l.useState(e),[I,T]=l.useState(C.nocloud),[R,_]=l.useState(C.live),[$,M]=l.useState(C.downloadTriggerUrl),{playAudio:P}=Mm(),[D,O]=l.useState(!1),[k,N]=l.useState(!1),[A,L]=l.useState(!1),[j,F]=l.useState(C.tonieInfo.model),[B,z]=l.useState(""),[U,H]=l.useState({validateStatus:"",help:""}),[K,Y]=l.useState(C.source),[ee,ae]=l.useState(C.source),[W,q]=l.useState(K),[Z,Q]=l.useState(W),[J,ie]=l.useState({validateStatus:"",help:""}),le=async()=>{try{const ne=await Nu.apiGetTagInfo(C.ruid,n);E(ne),s(ne)}catch(ne){d(dt.Error,c("tonies.messages.errorFetchingUpdatedCard"),c("tonies.messages.errorFetchingUpdatedCardDetails",{model:fe,ruid:C.ruid}).replace(' "" ',"")+ne,c("tonies.title"))}},fe=`${C.tonieInfo.series}`+(C.tonieInfo.episode?` - ${C.tonieInfo.episode}`:""),te="sourceInfo"in C?`${C.sourceInfo.series}`+(C.sourceInfo.episode?` - ${C.sourceInfo.episode}`:""):"",se=o&&"sourceInfo"in C&&(C.sourceInfo.picture!==C.tonieInfo.picture&&fe!==te||C.sourceInfo.picture===C.tonieInfo.picture&&fe!==te),pe=(ne,ve,_e)=>{if(ne&&ne.length===1){const Ue=(_e==="library"?"lib:/":"content:/")+ve+"/"+ne[0].name;Q(Ue)}else Q(K)},he=()=>{w(y+1),L(!0)},re=()=>{q(ee||K),L(!1)},ue=()=>{z(j),q(K),x(b+1),v(S+1),N(!0)},me=async()=>{try{K!==W&&await je(),j!==B&&await Le()}catch{le();return}N(!1),le()},xe=async()=>{try{await Nu.apiPostTeddyCloudContentJson(C.ruid,"live="+!R,n),_(!R),R?d(dt.Success,c("tonies.messages.liveDisabled"),c("tonies.messages.liveDisabledDetails",{model:fe,ruid:C.ruid}).replace(' "" '," "),c("tonies.title")):d(dt.Success,c("tonies.messages.liveEnabled"),c("tonies.messages.liveEnabledDetails",{model:fe,ruid:C.ruid}).replace(' "" '," "),c("tonies.title")),le()}catch(ne){d(dt.Error,c("tonies.messages.couldNotChangeLiveFlag"),c("tonies.messages.couldNotChangeLiveFlagDetails",{model:fe,ruid:C.ruid}).replace(' "" ',"")+ne,c("tonies.title"))}},Ee=async()=>{try{await Nu.apiPostTeddyCloudContentJson(C.ruid,"nocloud="+!I,n),E({...C,nocloud:!I}),T(!I),I?d(dt.Success,c("tonies.messages.cloudAccessEnabled"),c("tonies.messages.cloudAccessEnabledDetails",{model:fe,ruid:C.ruid}).replace(' "" '," "),c("tonies.title")):d(dt.Success,c("tonies.messages.cloudAccessBlocked"),c("tonies.messages.cloudAccessBlockedDetails",{model:fe,ruid:C.ruid}).replace(' "" '," "),c("tonies.title")),le()}catch(ne){d(dt.Error,c("tonies.messages.couldNotChangeCloudFlag"),c("tonies.messages.couldNotChangeCloudFlagDetails",{model:fe,ruid:C.ruid}).replace(' "" ',"")+ne,c("tonies.title"))}},ke=async ne=>{P(ne,se?C.sourceInfo:C.tonieInfo,C)},$e=async()=>{const ne=C.downloadTriggerUrl;M("");const ve="loading"+C.ruid;try{p(ve,c("tonies.messages.downloading"),c("tonies.messages.downloadingDetails",{model:fe,ruid:C.ruid}).replace(' "" '," "));const ze=await(await Nu.apiGetTeddyCloudApiRaw(ne)).blob();g(ve),d(dt.Success,c("tonies.messages.downloadedFile"),c("tonies.messages.downloadedFileDetails",{model:fe,ruid:C.ruid}).replace(' "" '," "),c("tonies.title")),le()}catch(_e){g(ve),d(dt.Error,c("tonies.messages.errorDuringDownload"),c("tonies.messages.errorDuringDownloadDetails",{model:fe,ruid:C.ruid}).replace(' "" ',"")+_e,c("tonies.title")),M(""+ne)}},Le=async()=>{try{await Nu.apiPostTeddyCloudContentJson(C.ruid,"tonie_model="+encodeURIComponent(B),n),F(B),d(dt.Success,c("tonies.messages.setTonieToModelSuccessful",{selectedModel:B||c("tonies.messages.setToEmptyValue")}),c("tonies.messages.setTonieToModelSuccessfulDetails",{ruid:C.ruid,selectedModel:B||c("tonies.messages.setToEmptyValue")}),c("tonies.title")),H({validateStatus:"",help:""})}catch(ne){throw d(dt.Error,c("tonies.messages.setTonieToModelFailed"),c("tonies.messages.setTonieToModelFailedDetails",{ruid:C.ruid})+ne,c("tonies.title")),H({validateStatus:"error",help:c("tonies.messages.setTonieToModelFailed")+ne}),ne}},je=async()=>{try{await Nu.apiPostTeddyCloudContentJson(C.ruid,"source="+encodeURIComponent(W),n),Y(W),d(dt.Success,c("tonies.messages.setTonieToSourceSuccessful"),c("tonies.messages.setTonieToSourceSuccessfulDetails",{ruid:C.ruid,selectedSource:W||c("tonies.messages.setToEmptyValue")}),c("tonies.title")),ie({validateStatus:"",help:""})}catch(ne){throw d(dt.Error,c("tonies.messages.setTonieToSourceFailed"),c("tonies.messages.setTonieToSourceFailedDetails",{ruid:C.ruid})+ne,c("tonies.title")),ie({validateStatus:"error",help:c("tonies.messages.setTonieToSourceFailed")+ne}),ne}I||Ee(),(W.startsWith("http")&&!R||!W.startsWith("http")&&R)&&xe()},He=ne=>{z(ne.target.value)},Be=ne=>{q(ne.target.value),Q(ne.target.value)},Pe=t.filter(([ne])=>ne===C.ruid).map(([,ne,ve])=>({ruidTime:ne,boxName:ve})),Se=ne=>{z(ne)},Ne=ne=>{q(ne),ae(ne)},Te=f.jsxs(f.Fragment,{children:[f.jsxs("h3",{style:{lineHeight:0},children:[c("tonies.editModal.title"),C.tonieInfo.model?" ("+C.tonieInfo.model+")":""]}),C.tonieInfo.series?f.jsx(cB,{type:"secondary",children:fe}):" "]}),we=f.jsx(f.Fragment,{children:f.jsxs(tt,{type:"primary",onClick:me,disabled:K===W&&j===B,children:[f.jsx(vK,{},"saveClick")," ",c("tonies.editModal.save")]})}),Me=f.jsxs(_n,{open:k,onCancel:()=>{N(!1),Q("")},title:Te,footer:we,width:700,children:[f.jsx(Wn,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.source")}),f.jsx("div",{children:f.jsxs(Gt.Item,{validateStatus:J.validateStatus,help:J.help,children:[f.jsx(Jt,{value:W,width:"auto",onChange:Be,addonBefore:[f.jsx(ga,{onClick:()=>{q(""),ie({validateStatus:"",help:""})}},"close-source"),f.jsx(Wn,{type:"vertical",style:{height:16}},"divider-source"),f.jsx(Qb,{onClick:()=>{q(K),Q(K),ie({validateStatus:"",help:""})},style:{color:K===W?u.colorTextDisabled:u.colorText,cursor:K===W?"default":"pointer"}},"rollback-source")],addonAfter:f.jsx(jN,{onClick:()=>he()})},"source"),f.jsx(s8e,{placeholder:c("tonies.editModal.placeholderSearchForARadioStream"),onChange:Ne},b)]})}),f.jsx(Wn,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.model")}),f.jsx("div",{children:f.jsxs(Gt.Item,{validateStatus:U.validateStatus,help:U.help,children:[f.jsx(Jt,{value:B,width:"auto",onChange:He,addonBefore:[f.jsx(ga,{onClick:()=>{z(""),H({validateStatus:"",help:""})}},"close-model"),f.jsx(Wn,{type:"vertical",style:{height:16}},"divider-model"),f.jsx(Qb,{onClick:()=>{z(j),H({validateStatus:"",help:""})},style:{color:j===B?u.colorTextDisabled:u.colorText,cursor:j===B?"default":"pointer"}},"rollback-model")]},"model"),f.jsx(n8e,{placeholder:c("tonies.editModal.placeholderSearchForAModel"),onChange:Se},S)]})})]}),Ge=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[f.jsx(tt,{onClick:re,children:c("tonies.selectFileModal.cancel")}),f.jsx(tt,{type:"primary",onClick:()=>{q(Z),ae(Z),L(!1)},children:c("tonies.selectFileModal.ok")})]}),st=f.jsx(_n,{className:"sticky-footer",title:c("tonies.selectFileModal.selectFile"),open:A,onCancel:re,width:"auto",footer:Ge,children:f.jsx(jk,{special:"library",maxSelectedRows:1,trackUrl:!1,filetypeFilter:[".taf",".tap"],onFileSelectChange:pe},y)}),ge=r?[f.jsx(Xo,{onClick:()=>{h(m+1),O(!0)}},"info"),C.valid||K.startsWith("http")?f.jsx(Eo,{onClick:()=>ke(C.valid?""+C.audioUrl:K)},"playpause"):f.jsx(Eo,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),f.jsx(Xb,{style:{cursor:"default",color:I?"red":u.colorTextDisabled}},"nocloud"),f.jsx(kP,{style:{cursor:"default",color:R?"red":u.colorTextDisabled}},"live")]:[f.jsx(Xo,{onClick:()=>{h(m+1),O(!0)}},"info"),f.jsx(Ml,{onClick:ue},"edit"),C.valid||K.startsWith("http")?f.jsx(Eo,{onClick:()=>ke(C.valid?""+C.audioUrl:K)},"playpause"):$&&$.length>0?f.jsx(LN,{onClick:$e},"download"):f.jsx(Eo,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),f.jsx(Xb,{style:{color:I?"red":u.colorTextDescription},onClick:Ee},"nocloud"),f.jsx(kP,{style:{color:R?"red":u.colorTextDescription},onClick:xe},"live")];return f.jsxs(f.Fragment,{children:[f.jsx(nu,{hoverable:!1,size:"small",style:Pe&&Pe.length>0?{background:u.colorBgContainerDisabled,borderTop:"3px #1677ff inset"}:{background:u.colorBgContainerDisabled,paddingTop:"2px"},title:f.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[f.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:C.tonieInfo.series?C.tonieInfo.series:c("tonies.unsetTonie")}),a!==C.tonieInfo.language?f.jsx(Ft,{placement:"top",zIndex:2,title:c("languageUtil."+C.tonieInfo.language),children:f.jsx(cB,{style:{height:20,width:"auto"},children:f.jsx(l8e,{countryCode:C.tonieInfo.language,height:20})})}):""]}),cover:f.jsxs("div",{style:{position:"relative"},children:[f.jsx("img",{alt:`${C.tonieInfo.series} - ${C.tonieInfo.episode}`,src:C.tonieInfo.picture?C.tonieInfo.picture:"/img_unknown.png",style:C.tonieInfo.picture.endsWith("img_unknown.png")?{padding:8,paddingTop:10,width:"100%"}:{padding:8,width:"100%"}}),se?f.jsx(Ft,{title:`${te}`?c("tonies.alternativeSource",{originalTonie:'"'+fe+'"',assignedContent:'"'+te+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+fe+'"'}).replace(' "" '," "),placement:"bottom",children:f.jsx("img",{src:C.sourceInfo.picture,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),actions:ge,children:f.jsx(c8e,{title:`${C.tonieInfo.episode}`,description:C.uid})},C.ruid),f.jsx(Xy,{open:D,onClose:()=>O(!1),tonieCardOrTAFRecord:C,showSourceInfo:o,readOnly:r,lastRUIDs:t,onHide:i,overlay:n},m),st,Me]})},Jh=new Dn(On()),EI="toniesListState",{Option:f8e}=cr,Fk=({tonieCards:e,showFilter:t,showPagination:n,overlay:r,readOnly:a,defaultLanguage:o="",onToniesCardUpdate:i})=>{const{t:s}=Nt(),c=ii(),[u,d]=l.useState(e),[p,g]=l.useState(""),[m,h]=l.useState(""),[b,x]=l.useState(""),[S,v]=l.useState([]),[y,w]=l.useState(!1),[C,E]=l.useState(!1),[I,T]=l.useState(!1),[R,_]=l.useState(!1),[$,M]=l.useState(!1),[P,D]=l.useState(!1),[O,k]=l.useState(!1),[N,A]=l.useState(!1),[L,j]=l.useState(!1),[F,B]=l.useState(!1),[z,U]=l.useState(!1),[H,K]=l.useState(!0),[Y,ee]=l.useState(!0),[ae,W]=l.useState([]),[q,Z]=l.useState(()=>{const ge=localStorage.getItem(EI);if(ge){const{pageSize:ne}=JSON.parse(ge);return ne}return 24}),[Q,J]=l.useState(1),[ie,le]=l.useState(!0),[fe,te]=l.useState(!1),[se,pe]=l.useState(!0),[he,re]=l.useState([]),[ue,me]=l.useState(0),[xe,Ee]=l.useState(!1);l.useEffect(()=>{const ge=localStorage.getItem(EI);if(ge)try{const{pageSize:ne,showAll:ve}=JSON.parse(ge);ve?Pe():(Z(ne),Ne(1,ne))}catch(ne){console.error("Error parsing stored state:",ne)}else console.log("No stored state found.")},[]),l.useEffect(()=>{(async()=>{const ve=async Ae=>await Jh.apiGetTonieboxLastRUID(Ae),_e=async Ae=>await Jh.apiGetTonieboxLastRUIDTime(Ae),ze=await Jh.apiGetTonieboxesIndex(),Ue=await Promise.all(ze.map(async Ae=>{const Oe=await ve(Ae.ID),Re=await _e(Ae.ID);return[Oe,Re,Ae.boxName]}));W(Ue)})(),(async()=>{const ve=await Jh.apiGetTeddyCloudSettingRaw("frontend.split_model_content");Ee(await ve.text()==="true")})()},[]);const ke=l.useMemo(()=>e.map(ge=>ge.ruid).join(","),[e]);l.useEffect(()=>{const ne=new URLSearchParams(c.search).get("tonieRUID");if(ne){g(ne),K(!1);const ve=e.filter(_e=>_e.ruid.toLowerCase()===ne);d(ve)}else d(e);me(ve=>ve+1),ee(!1)},[c.search,ke]),l.useEffect(()=>{J(1),me(ge=>ge+1)},[ke]),l.useEffect(()=>{const ge=JSON.stringify({pageSize:q,paginationEnabled:ie,showAll:fe});localStorage.setItem(EI,ge)},[se,q,ie,fe]);const $e=()=>{pe(!se)},Le=ge=>{i&&i(ge),d(ne=>ne.map(ve=>ve.ruid===ge.ruid?ge:ve))},je=()=>{let ge=e.filter(ne=>{var ve,_e;return(((ve=ne.sourceInfo)==null?void 0:ve.series)&&ne.sourceInfo.series.toLowerCase().includes(m.toLowerCase())||ne.tonieInfo.series.toLowerCase().includes(m.toLowerCase()))&&(((_e=ne.sourceInfo)==null?void 0:_e.episode)&&ne.sourceInfo.episode.toLowerCase().includes(b.toLowerCase())||ne.tonieInfo.episode.toLowerCase().includes(b.toLowerCase()))&&(S.length===0||S.includes(ne.tonieInfo.language!==void 0&&CI.includes(ne.tonieInfo.language)?ne.tonieInfo.language:"undefined")||S.includes(ne.sourceInfo&&ne.sourceInfo.language!==void 0&&CI.includes(ne.sourceInfo.language)?ne.sourceInfo.language:"undefined"))&&(!C||ne.valid)&&(!I||!ne.valid)&&(!R||ne.exists)&&(!$||!ne.exists)&&(!P||ne.live)&&(!O||!ne.live)&&(!N||ne.nocloud)&&(!L||!ne.nocloud)&&(!F||ne.hasCloudAuth)&&(!z||!ne.hasCloudAuth)});p&&(ge=ge.filter(ne=>{var ve,_e,ze;return ne.tonieInfo.series.toLowerCase().includes(p.toLowerCase())||((ve=ne.sourceInfo)==null?void 0:ve.series)&&ne.sourceInfo.series.toLowerCase().includes(p.toLowerCase())||ne.tonieInfo.episode.toLowerCase().includes(p.toLowerCase())||((_e=ne.sourceInfo)==null?void 0:_e.episode)&&ne.sourceInfo.episode.toLowerCase().includes(p.toLowerCase())||ne.tonieInfo.model.toLowerCase().includes(p.toLowerCase())||((ze=ne.sourceInfo)==null?void 0:ze.model)&&ne.sourceInfo.model.toLowerCase().includes(p.toLowerCase())||ne.ruid.toLowerCase().includes(p.toLowerCase())||ne.uid.toLowerCase().includes(p.toLowerCase())})),y&&(ge=ge.filter(ne=>ae.some(([ve])=>ve===ne.ruid))),he&&(ge=ge.filter(ne=>!he.includes(ne.ruid))),J(1),d(ge),me(ne=>ne+1)},He=ge=>{d(u.filter(ne=>ne.ruid!==ge)),re(ne=>[...ne,ge]),me(ne=>ne+1)},Be=()=>{g(""),h(""),x(""),E(!1),T(!1),_(!1),M(!1),D(!1),k(!1),A(!1),j(!1),B(!1),U(!1),w(!1),v([]);const ge=window.location.pathname;window.history.pushState({},"",ge),c.search="",he&&(e=e.filter(ne=>!he.includes(ne.ruid))),d(e),me(ne=>ne+1)},Pe=()=>{me(ge=>ge+1),te(!0),le(!1),$e()},Se=()=>{le(!0),te(!1),Ne(1,q)},Ne=(ge,ne)=>{Z(ne),me(ve=>ve+1),J(ge),$e(),window.scrollTo(0,0)},Te=()=>{if(fe)return u!==null?u:e;{const ge=(Q-1)*q,ne=ge+q;return u!==null?u.slice(ge,ne):e.slice(ge,ne)}},we=f.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:ie?f.jsx(e8e,{currentPage:Q,onChange:Ne,total:u!==null?u.length:e.length,pageSize:q,additionalButtonOnClick:Pe}):f.jsx(tt,{onClick:Se,children:s("tonies.tonies.showPagination")})}),Me=f.jsxs(f.Fragment,{children:[f.jsx("label",{htmlFor:"search-field",className:"filter-label",children:s("tonies.tonies.filterBar.searchLabel")}),f.jsx(Jt.Search,{id:"search-field",placeholder:s("tonies.tonies.filterBar.searchPlaceholder"),value:p,onChange:ge=>g(ge.target.value),onSearch:je,enterButton:!0,style:{margin:"8px 0 8px 0"}}),f.jsxs("div",{className:"filter-container",children:[f.jsx("label",{className:"filter-label",children:s("tonies.tonies.filterBar.filterLabel")}),f.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.seriesFilterPlaceholder"),value:m,onChange:ge=>h(ge.target.value)}),f.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.episodeFilterPlaceholder"),value:b,onChange:ge=>x(ge.target.value)}),f.jsx(cr,{mode:"multiple",placeholder:s("tonies.tonies.filterBar.languagePlaceholder"),value:S,onChange:ge=>v(ge),style:{width:"100%",margin:"8px 0"},children:CI.map(ge=>f.jsx(f8e,{value:ge,children:s(ge?"languageUtil."+ge:"languageUtil.other")},ge))}),f.jsxs("div",{children:[f.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:[f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:C,onChange:ge=>E(ge)}),s("tonies.tonies.filterBar.valid")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:I,onChange:ge=>T(ge)}),s("tonies.tonies.filterBar.invalid")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:R,onChange:ge=>_(ge)})," ",s("tonies.tonies.filterBar.exists")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:$,onChange:ge=>M(ge)}),s("tonies.tonies.filterBar.notExists")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:P,onChange:ge=>D(ge)})," ",s("tonies.tonies.filterBar.live")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:O,onChange:ge=>k(ge)})," ",s("tonies.tonies.filterBar.unsetLive")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:L,onChange:ge=>j(ge)}),s("tonies.tonies.filterBar.unsetNoCloud")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:N,onChange:ge=>A(ge)}),s("tonies.tonies.filterBar.noCloud")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:F,onChange:ge=>B(ge)}),s("tonies.tonies.filterBar.hasCloudAuth")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:z,onChange:ge=>U(ge)}),s("tonies.tonies.filterBar.unsetHasCloudAuth")]}),f.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[f.jsx(Xa,{checked:y,onChange:ge=>w(ge)}),s("tonies.tonies.filterBar.lastPlayed")]})]}),f.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"flex-end",marginTop:8},children:[f.jsx(tt,{onClick:Be,style:{marginLeft:16},children:s("tonies.tonies.filterBar.resetFilters")}),f.jsx(tt,{onClick:je,style:{marginLeft:16},children:s("tonies.tonies.filterBar.applyFilters")})]})]})]})]}),Ge=[{key:"search-filter",label:s(H?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:Me}],st=f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:f.jsxs("div",{children:[f.jsx("p",{children:s("tonies.noData")}),f.jsx("p",{children:s("tonies.noDataText")})]})});return Y?f.jsx(su,{}):f.jsxs("div",{className:"tonies-list-container",children:[t?f.jsx($s,{items:Ge,defaultActiveKey:H?[]:["search-filter"],onChange:()=>K(!H),bordered:!1}):"",f.jsx(Er,{header:n?we:"",footer:n?we:"",grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:4,xxl:6},dataSource:Te(),renderItem:ge=>f.jsx(Er.Item,{id:ge.ruid,children:f.jsx(d8e,{tonieCard:ge,lastRUIDs:ae,overlay:r,readOnly:a,defaultLanguage:o,showSourceInfo:xe,onHide:He,onUpdate:Le})}),locale:{emptyText:st}},ue)]})},ep=new Dn(On()),{Paragraph:tp}=xn,p8e=()=>{const{t:e}=Nt(),t=Zc(),{addNotification:n}=Qn(),[r,a]=l.useState([]),[o,i]=l.useState(!1),[s,c]=l.useState(!1),[u,d]=l.useState(""),[p,g]=l.useState([]),[m,h]=l.useState(!0);l.useEffect(()=>{(async()=>{const w=await ep.apiGetSecurityMITAlert();i(w)})(),(async()=>{try{const w=await ep.apiGetNewBoxesAllowed();c(w),w&&(async()=>{const E=await ep.apiGetTonieboxesIndex(),I=await Promise.all(E.map(async T=>{const R=await ep.apiGetTonieboxApiAccess(T.ID);return[T.boxName,R]}));g(I)})()}catch(w){n(dt.Error,e("settings.errorFetchingSetting"),e("settings.errorFetchingSettingDetails",{setting:"toniebox.api_access"})+w,e("home.navigationTitle"))}})(),(async()=>{h(!0);const w=(await ep.apiGetTagIndexMergedAllOverlays(!0)).filter(C=>!C.hide);a(w.sort((C,E)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random()))),h(!1)})()},[]),l.useEffect(()=>{const S={};r.forEach(w=>{const C=w.tonieInfo.language;S[C]?S[C]++:S[C]=1});let v=0,y="";for(const w in S)S.hasOwnProperty(w)&&S[w]>v&&(v=S[w],y=w);d(y)},[r]);const b=p.filter(S=>!S[1]),x=s?f.jsxs(f.Fragment,{children:[f.jsx(Sn,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}),b.length>0&&f.jsx(Sn,{message:e("tonieboxes.boxWithoutAPIAccess"),description:f.jsxs(f.Fragment,{children:[e("tonieboxes.boxWithoutAPIAccessText"),f.jsx("ul",{children:b.map(S=>f.jsx("li",{children:S[0]},S[0]))}),e("tonieboxes.boxWithoutAPIAccessGoToTonieboxes"),f.jsx(it,{to:"/tonieboxes",children:e("tonieboxes.navigationTitle")})]}),type:"info",showIcon:!0,style:{margin:"16px 0"}})]}):null;return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs(tp,{children:[f.jsx("h1",{children:e("home.title")}),o?f.jsx(Sn,{message:e("security.alert"),description:e("security.incident_detected"),type:"error",showIcon:!0,style:{margin:"16px 0"}}):"",e("home.intro"),x]}),f.jsxs(tp,{children:[e("home.forumIntroPart1"),f.jsx(it,{to:hd,target:"_blank",children:hd}),e("home.forumIntroPart2")]}),f.jsxs(tp,{children:[f.jsx("h2",{children:e("home.yourTonies")}),m?f.jsx(su,{}):f.jsx(Fk,{tonieCards:r.filter(S=>S.type==="tag"&&S.tonieInfo.series).slice(0,6),overlay:"",showFilter:!1,showPagination:!1,readOnly:!0,defaultLanguage:u}),f.jsx(tp,{children:f.jsxs(tt,{onClick:()=>t("/tonies"),children:[e("home.toAllYourTonies")," (",r.filter(S=>S.type==="tag").length,")"]})})]}),f.jsxs(tp,{children:[f.jsx("h2",{children:e("home.helpfulLinks")}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx(it,{to:"/community/faq",children:"FAQ"})}),f.jsx("li",{children:f.jsx(it,{to:FY,target:"_blank",children:"GitHub"})}),f.jsx("li",{children:f.jsx(it,{to:uk,target:"_blank",children:"Telegram Chat"})}),f.jsx("li",{children:f.jsx(it,{to:hd,target:"_blank",children:"Discourse Forum"})}),f.jsx("li",{children:f.jsx(it,{to:BY,target:"_blank",children:"TeddyCloud Wiki"})})]})]})]})]})]})},g8e=new Dn(On()),m8e=()=>{var a;const{t:e}=Nt(),[t,n]=l.useState(),r=async()=>{var i,s;const o=await g8e.apiStatsGet();(i=o==null?void 0:o.stats)!=null&&i.length&&((s=o==null?void 0:o.stats)==null?void 0:s.length)>0&&n(o)};return l.useEffect(()=>{r()},[]),l.useEffect(()=>{const o=setInterval(()=>{r()},1e4);return()=>clearInterval(o)},[]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("home.stats.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("home.stats.title")}),(a=t==null?void 0:t.stats)==null?void 0:a.map(o=>f.jsxs("div",{children:[f.jsx("h2",{children:e("home.stats."+o.iD)}),f.jsx("p",{children:o.value})]},o.iD))]})]})]})},{Paragraph:h8e}=xn,v8e=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("home.tonieMeeting.navigationTitle")}]}),f.jsx(Pn,{children:f.jsx(h8e,{children:f.jsx(Pk,{maxNoOfGuests:500,toniesSize:150,showQuestionMark:!1})})})]})]})},{Paragraph:uB,Text:b8e}=xn,y8e=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),r=l.useRef(null),[a,o]=l.useState(!1),i=p=>{let g="";for(let m=0;m=32&&b<=126?g+=String.fromCharCode(b):g+="."}return g},s=p=>{let g="";for(let b=0;b=h&&(m=m-2*h),m},c={"15-15452":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(m=>[...m,`UnknownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"15-16065":p=>{if(p.length===16){const g=p.slice(8)+p.slice(0,8);n(m=>[...m,`KnownTag | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15427":p=>{if(p.length===8){const g=s(p);n(m=>[...m,`UpsideState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)},"12-15426":p=>{if(p.length===8){const g=s(p);n(m=>[...m,`UprightState | ${g}`])}else console.log(`Incorrect payload length for '${p}'. Unable to rearrange.`)}};l.useEffect(()=>{if(a){const p=new EventSource("/api/sse");return p.onopen=()=>{console.log("Connection established.")},p.addEventListener("keep-alive",g=>{console.log("keep-alive event received:",g)}),p.addEventListener("pressed",g=>{const m=JSON.parse(g.data);n(h=>[...h,"Pressed: "+m.data])}),p.addEventListener("rtnl-raw-log2",g=>{const m=JSON.parse(g.data),h=`${"Raw2 | #"+m.data.sequence+" Uptime: "+m.data.uptime+" Func: "+m.data.function_group.toString().padStart(2," ")+"-"+m.data.function+" Payload: '"+m.data.field6+"' ASCII: '"+i(m.data.field6)+"'"}`;n(x=>[...x,h]);const b=`${m.data.function_group.toString().padStart(2," ")}-${m.data.function}`;c[b]&&c[b](m.data.field6)}),p.addEventListener("rtnl-raw-log3",g=>{const m=JSON.parse(g.data);n(h=>[...h,"Raw3 | Datetime: "+m.data.datetime+" Unknown: "+m.data.field2])}),p.onerror=g=>{console.error("EventSource failed:",g)},()=>{console.log("Connection closed."),p.close()}}else return},[a]),l.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[t]);const u=p=>{o(p)},d=()=>{n([])};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(jm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.rtnl.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.rtnl.title")}),f.jsxs(uB,{style:{margin:"8px 0"},children:[f.jsxs(uB,{children:[f.jsx(Xa,{checked:a,onChange:u,style:{marginRight:8}}),f.jsx(b8e,{children:e("settings.rtnl.enableRtnl")})]}),f.jsx(Wn,{children:e("settings.rtnl.title")}),f.jsx("div",{ref:r,style:{minHeight:"max(40vh, 333px)",maxHeight:"max(40vh, 333px)",overflow:"auto",padding:1,background:Cs()==="dark"?"hsl(220, 13%, 18%)":"hsl(230, 1%, 98%)"},children:f.jsx(Dk,{language:"log",style:Cs()==="dark"?RX:_X,customStyle:{borderRadius:0,margin:0,border:"none"},children:t.join(` +`)})}),f.jsx(tt,{onClick:d,style:{marginTop:8},children:e("settings.rtnl.clear")})]})]})]})]})};var x8e=function(t){return S8e(t)&&!w8e(t)};function S8e(e){return!!e&&typeof e=="object"}function w8e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||I8e(e)}var C8e=typeof Symbol=="function"&&Symbol.for,E8e=C8e?Symbol.for("react.element"):60103;function I8e(e){return e.$$typeof===E8e}function T8e(e){return Array.isArray(e)?[]:{}}function i0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Bg(T8e(e),e,t):e}function R8e(e,t,n){return e.concat(t).map(function(r){return i0(r,n)})}function _8e(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=i0(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=i0(t[a],n):r[a]=Bg(e[a],t[a],n)}),r}function Bg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||R8e,n.isMergeableObject=n.isMergeableObject||x8e;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):_8e(e,t,n):i0(t,n)}Bg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Bg(r,a,n)},{})};var V_=Bg,DX=typeof global=="object"&&global&&global.Object===Object&&global,$8e=typeof self=="object"&&self&&self.Object===Object&&self,os=DX||$8e||Function("return this")(),Pl=os.Symbol,PX=Object.prototype,O8e=PX.hasOwnProperty,N8e=PX.toString,np=Pl?Pl.toStringTag:void 0;function k8e(e){var t=O8e.call(e,np),n=e[np];try{e[np]=void 0;var r=!0}catch{}var a=N8e.call(e);return r&&(t?e[np]=n:delete e[np]),a}var A8e=Object.prototype,M8e=A8e.toString;function D8e(e){return M8e.call(e)}var P8e="[object Null]",L8e="[object Undefined]",dB=Pl?Pl.toStringTag:void 0;function lu(e){return e==null?e===void 0?L8e:P8e:dB&&dB in Object(e)?k8e(e):D8e(e)}function LX(e,t){return function(n){return e(t(n))}}var Bk=LX(Object.getPrototypeOf,Object);function cu(e){return e!=null&&typeof e=="object"}var j8e="[object Object]",F8e=Function.prototype,B8e=Object.prototype,jX=F8e.toString,z8e=B8e.hasOwnProperty,H8e=jX.call(Object);function fB(e){if(!cu(e)||lu(e)!=j8e)return!1;var t=Bk(e);if(t===null)return!0;var n=z8e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&jX.call(n)==H8e}function U8e(){this.__data__=[],this.size=0}function FX(e,t){return e===t||e!==e&&t!==t}function nx(e,t){for(var n=e.length;n--;)if(FX(e[n][0],t))return n;return-1}var V8e=Array.prototype,W8e=V8e.splice;function G8e(e){var t=this.__data__,n=nx(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():W8e.call(t,n,1),--this.size,!0}function q8e(e){var t=this.__data__,n=nx(t,e);return n<0?void 0:t[n][1]}function K8e(e){return nx(this.__data__,e)>-1}function Y8e(e,t){var n=this.__data__,r=nx(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Bs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Y5e}var X5e="[object Arguments]",Z5e="[object Array]",Q5e="[object Boolean]",J5e="[object Date]",eBe="[object Error]",tBe="[object Function]",nBe="[object Map]",rBe="[object Number]",aBe="[object Object]",oBe="[object RegExp]",iBe="[object Set]",sBe="[object String]",lBe="[object WeakMap]",cBe="[object ArrayBuffer]",uBe="[object DataView]",dBe="[object Float32Array]",fBe="[object Float64Array]",pBe="[object Int8Array]",gBe="[object Int16Array]",mBe="[object Int32Array]",hBe="[object Uint8Array]",vBe="[object Uint8ClampedArray]",bBe="[object Uint16Array]",yBe="[object Uint32Array]",hr={};hr[dBe]=hr[fBe]=hr[pBe]=hr[gBe]=hr[mBe]=hr[hBe]=hr[vBe]=hr[bBe]=hr[yBe]=!0;hr[X5e]=hr[Z5e]=hr[cBe]=hr[Q5e]=hr[uBe]=hr[J5e]=hr[eBe]=hr[tBe]=hr[nBe]=hr[rBe]=hr[aBe]=hr[oBe]=hr[iBe]=hr[sBe]=hr[lBe]=!1;function xBe(e){return cu(e)&&GX(e.length)&&!!hr[lu(e)]}function zk(e){return function(t){return e(t)}}var qX=typeof To=="object"&&To&&!To.nodeType&&To,Up=qX&&typeof Ro=="object"&&Ro&&!Ro.nodeType&&Ro,SBe=Up&&Up.exports===qX,TI=SBe&&DX.process,Kd=function(){try{var e=Up&&Up.require&&Up.require("util").types;return e||TI&&TI.binding&&TI.binding("util")}catch{}}(),bB=Kd&&Kd.isTypedArray,wBe=bB?zk(bB):xBe,CBe=Object.prototype,EBe=CBe.hasOwnProperty;function KX(e,t){var n=Hm(e),r=!n&&H5e(e),a=!n&&!r&&WX(e),o=!n&&!r&&!a&&wBe(e),i=n||r||a||o,s=i?j5e(e.length,String):[],c=s.length;for(var u in e)(t||EBe.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||K5e(u,c)))&&s.push(u);return s}var IBe=Object.prototype;function Hk(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||IBe;return e===n}var TBe=LX(Object.keys,Object),RBe=Object.prototype,_Be=RBe.hasOwnProperty;function $Be(e){if(!Hk(e))return TBe(e);var t=[];for(var n in Object(e))_Be.call(e,n)&&n!="constructor"&&t.push(n);return t}function YX(e){return e!=null&&GX(e.length)&&!BX(e)}function Uk(e){return YX(e)?KX(e):$Be(e)}function OBe(e,t){return e&&ax(t,Uk(t),e)}function NBe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var kBe=Object.prototype,ABe=kBe.hasOwnProperty;function MBe(e){if(!zm(e))return NBe(e);var t=Hk(e),n=[];for(var r in e)r=="constructor"&&(t||!ABe.call(e,r))||n.push(r);return n}function Vk(e){return YX(e)?KX(e,!0):MBe(e)}function DBe(e,t){return e&&ax(t,Vk(t),e)}var XX=typeof To=="object"&&To&&!To.nodeType&&To,yB=XX&&typeof Ro=="object"&&Ro&&!Ro.nodeType&&Ro,PBe=yB&&yB.exports===XX,xB=PBe?os.Buffer:void 0,SB=xB?xB.allocUnsafe:void 0;function LBe(e,t){if(t)return e.slice();var n=e.length,r=SB?SB(n):new e.constructor(n);return e.copy(r),r}function ZX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[a]=e[a]);return n}var px=l.createContext(void 0);px.displayName="FormikContext";var Nze=px.Provider;px.Consumer;function pZ(){var e=l.useContext(px);return e}var Ho=function(t){return typeof t=="function"},Hm=function(t){return t!==null&&typeof t=="object"},kze=function(t){return String(Math.floor(Number(t)))===t},II=function(t){return Object.prototype.toString.call(t)==="[object String]"},Aze=function(t){return l.Children.count(t)===0},TI=function(t){return Hm(t)&&Ho(t.then)};function mo(e,t,n,r){r===void 0&&(r=0);for(var a=sZ(t);e&&r=0?[]:{}}}return(o===0?e:a)[i[o]]===n?e:(n===void 0?delete a[i[o]]:a[i[o]]=n,o===0&&n===void 0&&delete r[i[o]],r)}function gZ(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,o=Object.keys(e);a0?ce.map(function(ye){return _(ye,mo(re,ye))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ge).then(function(ye){return ye.reduce(function(Ee,Ne,_e){return Ne==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ne&&(Ee=_c(Ee,ce[_e],Ne)),Ee},{})})},[_]),M=l.useCallback(function(re){return Promise.all([$(re),g.validationSchema?R(re):{},g.validate?T(re):{}]).then(function(ce){var ge=ce[0],ye=ce[1],Ee=ce[2],Ne=V_.all([ge,ye,Ee],{arrayMerge:jze});return Ne})},[g.validate,g.validationSchema,$,T,R]),P=zo(function(re){return re===void 0&&(re=E.values),I({type:"SET_ISVALIDATING",payload:!0}),M(re).then(function(ce){return S.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:ce})),ce})});l.useEffect(function(){i&&S.current===!0&&ic(m.current,g.initialValues)&&P(m.current)},[i,P]);var D=l.useCallback(function(re){var ce=re&&re.values?re.values:m.current,ge=re&&re.errors?re.errors:h.current?h.current:g.initialErrors||{},ye=re&&re.touched?re.touched:b.current?b.current:g.initialTouched||{},Ee=re&&re.status?re.status:x.current?x.current:g.initialStatus;m.current=ce,h.current=ge,b.current=ye,x.current=Ee;var Ne=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!re&&!!re.isSubmitting,errors:ge,touched:ye,status:Ee,values:ce,isValidating:!!re&&!!re.isValidating,submitCount:re&&re.submitCount&&typeof re.submitCount=="number"?re.submitCount:0}})};if(g.onReset){var _e=g.onReset(E.values,Q);TI(_e)?_e.then(Ne):Ne()}else Ne()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);l.useEffect(function(){S.current===!0&&!ic(m.current,g.initialValues)&&u&&(m.current=g.initialValues,D(),i&&P(m.current))},[u,g.initialValues,D,i,P]),l.useEffect(function(){u&&S.current===!0&&!ic(h.current,g.initialErrors)&&(h.current=g.initialErrors||nc,I({type:"SET_ERRORS",payload:g.initialErrors||nc}))},[u,g.initialErrors]),l.useEffect(function(){u&&S.current===!0&&!ic(b.current,g.initialTouched)&&(b.current=g.initialTouched||ev,I({type:"SET_TOUCHED",payload:g.initialTouched||ev}))},[u,g.initialTouched]),l.useEffect(function(){u&&S.current===!0&&!ic(x.current,g.initialStatus)&&(x.current=g.initialStatus,I({type:"SET_STATUS",payload:g.initialStatus}))},[u,g.initialStatus,g.initialTouched]);var O=zo(function(re){if(v.current[re]&&Ho(v.current[re].validate)){var ce=mo(E.values,re),ge=v.current[re].validate(ce);return TI(ge)?(I({type:"SET_ISVALIDATING",payload:!0}),ge.then(function(ye){return ye}).then(function(ye){I({type:"SET_FIELD_ERROR",payload:{field:re,value:ye}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:re,value:ge}}),Promise.resolve(ge))}else if(g.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),R(E.values,re).then(function(ye){return ye}).then(function(ye){I({type:"SET_FIELD_ERROR",payload:{field:re,value:mo(ye,re)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),k=l.useCallback(function(re,ce){var ge=ce.validate;v.current[re]={validate:ge}},[]),N=l.useCallback(function(re){delete v.current[re]},[]),A=zo(function(re,ce){I({type:"SET_TOUCHED",payload:re});var ge=ce===void 0?a:ce;return ge?P(E.values):Promise.resolve()}),L=l.useCallback(function(re){I({type:"SET_ERRORS",payload:re})},[]),j=zo(function(re,ce){var ge=Ho(re)?re(E.values):re;I({type:"SET_VALUES",payload:ge});var ye=ce===void 0?n:ce;return ye?P(ge):Promise.resolve()}),F=l.useCallback(function(re,ce){I({type:"SET_FIELD_ERROR",payload:{field:re,value:ce}})},[]),B=zo(function(re,ce,ge){I({type:"SET_FIELD_VALUE",payload:{field:re,value:ce}});var ye=ge===void 0?n:ge;return ye?P(_c(E.values,re,ce)):Promise.resolve()}),z=l.useCallback(function(re,ce){var ge=ce,ye=re,Ee;if(!II(re)){re.persist&&re.persist();var Ne=re.target?re.target:re.currentTarget,_e=Ne.type,Pe=Ne.name,Le=Ne.id,Ve=Ne.value,je=Ne.checked,De=Ne.outerHTML,Se=Ne.options,Oe=Ne.multiple;ge=ce||Pe||Le,ye=/number|range/.test(_e)?(Ee=parseFloat(Ve),isNaN(Ee)?"":Ee):/checkbox/.test(_e)?Bze(mo(E.values,ge),je,Ve):Se&&Oe?Fze(Se):Ve}ge&&B(ge,ye)},[B,E.values]),U=zo(function(re){if(II(re))return function(ce){return z(ce,re)};z(re)}),H=zo(function(re,ce,ge){ce===void 0&&(ce=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:re,value:ce}});var ye=ge===void 0?a:ge;return ye?P(E.values):Promise.resolve()}),Y=l.useCallback(function(re,ce){re.persist&&re.persist();var ge=re.target,ye=ge.name,Ee=ge.id,Ne=ge.outerHTML,_e=ce||ye||Ee;H(_e,!0)},[H]),K=zo(function(re){if(II(re))return function(ce){return Y(ce,re)};Y(re)}),J=l.useCallback(function(re){Ho(re)?I({type:"SET_FORMIK_STATE",payload:re}):I({type:"SET_FORMIK_STATE",payload:function(){return re}})},[]),ne=l.useCallback(function(re){I({type:"SET_STATUS",payload:re})},[]),W=l.useCallback(function(re){I({type:"SET_ISSUBMITTING",payload:re})},[]),q=zo(function(){return I({type:"SUBMIT_ATTEMPT"}),P().then(function(re){var ce=re instanceof Error,ge=!ce&&Object.keys(re).length===0;if(ge){var ye;try{if(ye=ee(),ye===void 0)return}catch(Ee){throw Ee}return Promise.resolve(ye).then(function(Ee){return S.current&&I({type:"SUBMIT_SUCCESS"}),Ee}).catch(function(Ee){if(S.current)throw I({type:"SUBMIT_FAILURE"}),Ee})}else if(S.current&&(I({type:"SUBMIT_FAILURE"}),ce))throw re})}),Z=zo(function(re){re&&re.preventDefault&&Ho(re.preventDefault)&&re.preventDefault(),re&&re.stopPropagation&&Ho(re.stopPropagation)&&re.stopPropagation(),q().catch(function(ce){console.warn("Warning: An unhandled error was caught from submitForm()",ce)})}),Q={resetForm:D,validateForm:P,validateField:O,setErrors:L,setFieldError:F,setFieldTouched:H,setFieldValue:B,setStatus:ne,setSubmitting:W,setTouched:A,setValues:j,setFormikState:J,submitForm:q},ee=zo(function(){return d(E.values,Q)}),oe=zo(function(re){re&&re.preventDefault&&Ho(re.preventDefault)&&re.preventDefault(),re&&re.stopPropagation&&Ho(re.stopPropagation)&&re.stopPropagation(),D()}),se=l.useCallback(function(re){return{value:mo(E.values,re),error:mo(E.errors,re),touched:!!mo(E.touched,re),initialValue:mo(m.current,re),initialTouched:!!mo(b.current,re),initialError:mo(h.current,re)}},[E.errors,E.touched,E.values]),fe=l.useCallback(function(re){return{setValue:function(ge,ye){return B(re,ge,ye)},setTouched:function(ge,ye){return H(re,ge,ye)},setError:function(ge){return F(re,ge)}}},[B,H,F]),te=l.useCallback(function(re){var ce=Hm(re),ge=ce?re.name:re,ye=mo(E.values,ge),Ee={name:ge,value:ye,onChange:U,onBlur:K};if(ce){var Ne=re.type,_e=re.value,Pe=re.as,Le=re.multiple;Ne==="checkbox"?_e===void 0?Ee.checked=!!ye:(Ee.checked=!!(Array.isArray(ye)&&~ye.indexOf(_e)),Ee.value=_e):Ne==="radio"?(Ee.checked=ye===_e,Ee.value=_e):Pe==="select"&&Le&&(Ee.value=Ee.value||[],Ee.multiple=!0)}return Ee},[K,U,E.values]),ie=l.useMemo(function(){return!ic(m.current,E.values)},[m.current,E.values]),pe=l.useMemo(function(){return typeof s<"u"?ie?E.errors&&Object.keys(E.errors).length===0:s!==!1&&Ho(s)?s(g):s:E.errors&&Object.keys(E.errors).length===0},[s,ie,E.errors,g]),me=oa({},E,{initialValues:m.current,initialErrors:h.current,initialTouched:b.current,initialStatus:x.current,handleBlur:K,handleChange:U,handleReset:oe,handleSubmit:Z,resetForm:D,setErrors:L,setFormikState:J,setFieldTouched:H,setFieldValue:B,setFieldError:F,setStatus:ne,setSubmitting:W,setTouched:A,setValues:j,submitForm:q,validateForm:P,validateField:O,isValid:pe,dirty:ie,unregisterField:N,registerField:k,getFieldProps:te,getFieldMeta:se,getFieldHelpers:fe,validateOnBlur:a,validateOnChange:n,validateOnMount:i});return me}function mZ(e){var t=Dze(e),n=e.component,r=e.children,a=e.render,o=e.innerRef;return l.useImperativeHandle(o,function(){return t}),l.createElement(Nze,{value:t},n?l.createElement(n,t):a?a(t):r?Ho(r)?r(t):Aze(r)?null:l.Children.only(r):null)}function Pze(e){var t={};if(e.inner){if(e.inner.length===0)return _c(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var o;if(n){if(r>=a.length)break;o=a[r++]}else{if(r=a.next(),r.done)break;o=r.value}var i=o;mo(t,i.path)||(t=_c(t,i.path,i.message))}}return t}function Lze(e,t,n,r){n===void 0&&(n=!1);var a=X_(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function X_(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||fB(a)?X_(a):a!==""?a:void 0}):fB(e[r])?t[r]=X_(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function jze(e,t,n){var r=e.slice();return t.forEach(function(o,i){if(typeof r[i]>"u"){var s=n.clone!==!1,c=s&&n.isMergeableObject(o);r[i]=c?V_(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[i]=V_(e[i],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function Fze(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Bze(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),a=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,o).concat(r.slice(o+1)):r}var zze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect;function zo(e){var t=l.useRef(e);return zze(function(){t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{r.initialValue=r.value,r.initialOverlayed=r.overlayed!==void 0?r.overlayed:void 0,r.overlayId=n}),this.settings=t}addListener(t){this.listeners.find(n=>n===t)||this.listeners.push(t)}removeListener(t){this.listeners.filter(n=>n!==t)}addIdListener(t,n){this.idListeners.find(r=>r.listener===t)||this.listeners.push(t)}removeIdListener(t){this.idListeners.filter(n=>n.listener!==t)}callAllListeners(){this.listeners.forEach(t=>t())}async saveAll(){const t=async()=>{await RI.apiTriggerWriteConfigGet()},n=this.settings.map(async r=>{if(r.initialValue!==r.value||r.initialOverlayed!==r.overlayed)return this.saveSingleSetting(r)});try{await Promise.all(n),await t(),this.settings.forEach(r=>{r.initialValue=r.value,r.initialOverlayed=r.overlayed!==void 0?r.overlayed:void 0}),this.unsavedChanges=!1,this.callAllListeners()}catch(r){this.addNotification(dt.Error,Tt("settings.errorWhileSavingConfig"),Tt("settings.errorWhileSavingConfigDetails")+r,Tt("settings.navigationTitle"))}}saveSingleSetting(t){try{const n=t.overlayId!==void 0&&t.overlayed===!1;return RI.apiPostTeddyCloudSetting(t.iD,t.value,t.overlayId,n).then(()=>{this.addNotification(dt.Success,Tt("settings.saved"),n?Tt("settings.resetToTCDetails",{setting:t.label,overlay:t.overlayId!==void 0?` [${t.overlayId}]`:""}):Tt("settings.saveDetails",{setting:t.label,overlay:t.overlayId!==void 0?` [${t.overlayId}]`:""}),t.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))}).then(()=>{t.iD==="cloud.enabled"&&this.setFetchCloudStatus&&this.setFetchCloudStatus(r=>!r)}).catch(r=>{this.addNotification(dt.Error,Tt("settings.errorWhileSavingConfig")+t.label,Tt("settings.errorWhileSavingConfigDetails")+r,t.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))})}catch(n){return this.addNotification(dt.Error,Tt("settings.errorWhileSavingConfig")+t.label,Tt("settings.errorWhileSavingConfigDetails")+n,t.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle")),Promise}}resetAll(){this.settings.forEach(t=>{t.value=t.initialValue??"",t.overlayed=t.initialOverlayed!==void 0?t.initialOverlayed:void 0}),this.unsavedChanges=!1,this.callAllListeners(),this.idListeners.forEach(t=>t.listener())}getSetting(t){return this.settings.find(n=>n.iD===t)}changeSetting(t,n,r){const a=this.settings.find(o=>o.iD===t);a?typeof a.initialValue==typeof n?(a.value=n,a.initialValue===a.value?(this.unsavedChanges=!1,this.settings.forEach(o=>{o.initialValue!==o.value&&(this.unsavedChanges=!0),o.initialOverlayed!==o.overlayed&&(this.unsavedChanges=!0)})):this.unsavedChanges=!0,this.idListeners.filter(o=>o.iD===t).forEach(o=>{o.listener()}),this.callAllListeners()):console.warn("The type of newValue and initialValue for '"+t+"' do not match! Omitting."):console.warn("Unknown setting '"+t+"' to be changed. Omitting.")}changeSettingOverlayed(t,n){const r=this.settings.find(a=>a.iD===t);r?(r.overlayed=n,n===!1&&(()=>{try{RI.apiGetTeddyCloudSettingRaw(t).then(o=>o.text()).then(o=>{let i;r.type==="bool"?i=o==="true":r.type==="uint"?(i=parseInt(o,10),isNaN(i)&&(console.warn(`Expected a number for setting type "uint", but got "${o}". Defaulting to 0.`),i=0)):i=o,this.changeSetting(t,i,n)}).catch(o=>{this.addNotification(dt.Error,Tt("settings.errorFetchingFieldValue"),Tt("settings.errorFetchingFieldValueDetails",{setting:r.label,overlay:r.overlayId!==void 0?` [${r.overlayId}]`:""})+o,r.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))})}catch(o){this.addNotification(dt.Error,Tt("settings.errorFetchingFieldValue"),Tt("setting.errorFetchingFieldValueDetails",{setting:r.label,overlay:r.overlayId!==void 0?` [${r.overlayId}]`:""})+o,r.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))}})(),r.initialOverlayed===r.overlayed?(this.unsavedChanges=!1,this.settings.forEach(a=>{a.initialValue!==a.value&&(this.unsavedChanges=!0),a.initialOverlayed!==a.overlayed&&(this.unsavedChanges=!0)})):this.unsavedChanges=!0,this.idListeners.filter(a=>a.iD===t).forEach(a=>{a.listener()}),this.callAllListeners()):console.warn("Unknown setting '"+t+"' to be changed. Omitting.")}};ja(Uo,"instance");let bn=Uo;const Uze=e=>{var v;const{t}=Nt(),{name:n,label:r,description:a,overlayed:o}=e,[i,s]=Qk(n),[c,u]=l.useState(o),[d,p]=l.useState((v=bn.getInstance().getSetting(n))==null?void 0:v.value),g=()=>{var y,C;p((y=bn.getInstance().getSetting(n))==null?void 0:y.value),u(c!==void 0?(C=bn.getInstance().getSetting(n))==null?void 0:C.overlayed:void 0)};bn.getInstance().addIdListener(g,n);const m=!!(s.touched&&s.error),h=s.touched&&s.error&&t(s.error),b=s.touched&&s.error?"error":void 0;let x=d==null?void 0:d.toString();const S=[c===void 0?null:f.jsx(Ns,{checked:c,onChange:y=>{var C;bn.getInstance().changeSettingOverlayed(n,y.target.checked),u((C=bn.getInstance().getSetting(n))==null?void 0:C.overlayed)},children:t("settings.overlayed")},"overlayCheckBox")];return f.jsx($m,{help:m?h:void 0,validateStatus:b,label:r,tooltip:a,children:f.jsx(Jt,{...i,value:x,onChange:y=>{var C;bn.getInstance().changeSetting(n,y.target.value,c),p((C=bn.getInstance().getSetting(n))==null?void 0:C.value)},...c!==void 0?{addonAfter:S}:null,disabled:!c&&c!==void 0})})},FB=e=>{var v;const{t}=Nt(),{name:n,label:r,description:a,overlayed:o}=e,[i,s]=Qk(n),[c,u]=l.useState(o),[d,p]=l.useState((v=bn.getInstance().getSetting(n))==null?void 0:v.value),g=()=>{var y,C;p((y=bn.getInstance().getSetting(n))==null?void 0:y.value),u(c!==void 0?(C=bn.getInstance().getSetting(n))==null?void 0:C.overlayed:void 0)};bn.getInstance().addIdListener(g,n);const m=!!(s.touched&&s.error),h=s.touched&&s.error&&t(s.error),b=s.touched&&s.error?"error":void 0;let x=d;const S=[c===void 0?null:f.jsx(Ns,{checked:c,onChange:y=>{var C;bn.getInstance().changeSettingOverlayed(n,y.target.checked),u((C=bn.getInstance().getSetting(n))==null?void 0:C.overlayed)},children:t("settings.overlayed")},"overlayCheckBox")];return f.jsx($m,{help:m?h:void 0,validateStatus:b,label:r,tooltip:a,children:f.jsx(gq,{...i,value:x,onChange:y=>{var C;bn.getInstance().changeSetting(n,y??0,c),p((C=bn.getInstance().getSetting(n))==null?void 0:C.value)},...c!==void 0?{addonAfter:S}:null,disabled:!c&&c!==void 0})})},Vze=e=>{var S;const{t}=Nt(),{name:n,label:r,description:a,overlayed:o}=e,[i,s]=Qk(n),[c,u]=l.useState(o),[d,p]=l.useState((S=bn.getInstance().getSetting(n))==null?void 0:S.value),g=!!(s.touched&&s.error),m=s.touched&&s.error&&t(s.error),h=s.touched&&s.error?"error":void 0,b=()=>{var v,y;p((v=bn.getInstance().getSetting(n))==null?void 0:v.value),u(c!==void 0?(y=bn.getInstance().getSetting(n))==null?void 0:y.overlayed:void 0)};bn.getInstance().addIdListener(b,n);let x=d;return f.jsxs($m,{help:g?m:void 0,validateStatus:h,label:r,tooltip:a,children:[f.jsx(Xa,{...i,checked:x,onChange:v=>{var y;bn.getInstance().changeSetting(n,v,c),p((y=bn.getInstance().getSetting(n))==null?void 0:y.value)},disabled:!c&&c!==void 0}),c===void 0?"":f.jsx(Ns,{checked:c,style:{marginLeft:"16px"},onChange:v=>{var y;bn.getInstance().changeSettingOverlayed(n,v.target.checked),u((y=bn.getInstance().getSetting(n))==null?void 0:y.overlayed)},children:t("settings.overlayed")},"overlayCheckBox")]})},hZ=e=>{const{iD:t}=e,n=bn.getInstance().getSetting(e.iD),r=e.noOverlay||n==null?void 0:n.overlayed;if(n!==void 0){const{type:a,label:o,description:i}=n;return f.jsxs("div",{children:[a==="bool"&&f.jsx(Vze,{name:t,label:o,description:i,overlayed:r,overlayId:e.overlayId}),a==="int"&&f.jsx(FB,{name:t,label:o,description:i,overlayed:r,overlayId:e.overlayId}),a==="uint"&&f.jsx(FB,{name:t,label:o,description:i,overlayed:r,overlayId:e.overlayId}),a==="string"&&f.jsx(Uze,{name:t,label:o,description:i,overlayed:e.noOverlay||n==null?void 0:n.overlayed,overlayId:e.overlayId})]},t)}else return console.warn("No option found for iD ",t),f.jsx(f.Fragment,{})},vZ=({onClose:e})=>{const[t,n]=l.useState(0);l.useEffect(()=>{const a=()=>{n(i=>i+1)},o=bn.getInstance();return o.addListener(a),()=>{o.resetAll(),o.removeListener(a)}},[]);const r=!bn.getInstance().hasUnchangedChanges();return f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[f.jsx(nt,{disabled:r,onClick:()=>bn.getInstance().resetAll(),children:Tt("settings.discard")}),f.jsx(nt,{disabled:r,type:"primary",onClick:()=>bn.getInstance().saveAll(),children:Tt("settings.save")}),e?f.jsx(nt,{onClick:()=>{bn.getInstance().resetAll(),e()},children:Tt("settings.close")}):""]})},tv=new Dn($n()),{useToken:Wze}=kr,Gze=()=>{var S;const{t:e}=Nt(),{token:t}=Wze(),{addNotification:n,setFetchCloudStatus:r}=Qn(),[a,o]=l.useState(),[i,s]=l.useState(51),[c,u]=l.useState(!0),[d,p]=l.useState(""),[g,m]=l.useState(!0);bn.initialize(n,e,r),l.useEffect(()=>{(async()=>{try{const y=await tv.apiGetTeddyCloudSettingRaw("core.settings_level");if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);const C=await y.json();p(C.toString())}catch(y){console.error("Error fetching settings level: ",y)}})()},[]),l.useEffect(()=>{if(!d)return;d&&(async()=>{var C,w;m(!0);const y=await tv.apiGetIndexGet("");(C=y==null?void 0:y.options)!=null&&C.length&&((w=y==null?void 0:y.options)==null?void 0:w.length)>0&&(o(y),bn.getInstance().initializeSettings(y.options,void 0)),m(!1)})()},[d]);const h=async()=>{try{await tv.apiTriggerWriteConfigGet()}catch(v){n(dt.Error,e("settings.errorWhileSavingConfig"),e("settings.errorWhileSavingConfigDetails")+v,e("tonieboxes.navigationTitle"))}},b=async v=>{try{await tv.apiPostTeddyCloudSetting("core.settings_level",v),h(),p(v)}catch(y){n(dt.Error,e("settings.errorWhileSavingConfig"),e("settings.errorWhileSavingConfigDetails")+y,e("tonieboxes.navigationTitle"))}};l.useEffect(()=>{const v=document.querySelector("footer"),y=()=>{v&&s(v.offsetHeight||0);const w=window.scrollY,E=window.innerHeight,I=document.documentElement.scrollHeight;w+E>=I-20?u(!1):u(!0)};let C=null;return v&&(s(v.offsetHeight||0),C=new ResizeObserver(w=>{for(let E of w){const I=E.target;I===v&&s(I.offsetHeight)}y()}),C.observe(v)),window.addEventListener("scroll",y),window.addEventListener("resize",y),y(),()=>{window.removeEventListener("scroll",y),window.removeEventListener("resize",y),C&&C.disconnect()}},[]);const x=f.jsx("div",{style:{position:"sticky",bottom:i-1,padding:"16px 0",marginBottom:-24,backgroundColor:t.colorBgContainer,zIndex:501},id:"save-panel",className:"sticky-save-panel",children:f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:[f.jsx("div",{style:{padding:8,fontSize:"smaller",color:t.colorTextDescription},children:c&&e("settings.keepScrolling")}),f.jsx(vZ,{})]})});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.title")}),f.jsx(Cn,{message:e("settings.information"),description:f.jsxs("div",{children:[e("settings.hint")," ",f.jsx(ot,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0}),f.jsx(Cn,{message:e("settings.warning"),description:f.jsx("div",{children:e("settings.warningHint")}),type:"info",showIcon:!0,style:{margin:"8px 0"}}),f.jsx(Vn,{children:e("settings.title")}),g?f.jsx(su,{}):f.jsx(mZ,{initialValues:{test:"test"},onSubmit:v=>{},children:f.jsx(Kt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(S=a==null?void 0:a.options)==null?void 0:S.map((v,y,C)=>{if(v.iD.includes("core.settings_level"))return null;const w=v.iD.split("."),E=C[y-1]?C[y-1].iD.split("."):[];return f.jsxs(de.Fragment,{children:[w.slice(0,-1).map((I,T)=>E[T]!==I?T===0?f.jsxs("h3",{style:{marginLeft:`${T*20}px`,marginBottom:"10px"},children:["Category ",I]},`category-${I}`):f.jsxs("h4",{style:{marginLeft:`${T*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",I]},`category-${I}`):null),f.jsx(hZ,{noOverlay:!0,iD:v.iD})]},y)})})}),f.jsx(Vn,{children:e("settings.levelLabel")}),f.jsxs(wo.Group,{value:d,onChange:v=>b(v.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:g||bn.getInstance().hasUnchangedChanges(),children:[f.jsx(wo.Button,{value:"1",children:"Basic"},"1"),f.jsx(wo.Button,{value:"2",children:"Detail"},"2"),f.jsx(wo.Button,{value:"3",children:"Expert"},"3")]}),x]})]})]})},BB=new Dn($n()),Jk=({overlay:e})=>{const{t}=Nt(),{addNotification:n,setFetchCloudStatus:r}=Qn(),a=async i=>{const s=new FormData;s.append("file",i);const c={filename:[s.get("file")]},u=async()=>{await BB.apiTriggerWriteConfigGet()};(async p=>{try{await BB.apiUploadCertPost(p,e);try{u()}catch(g){n(dt.Error,t("settings.errorWhileSavingConfig"),t("settings.errorWhileSavingConfigDetails")+g,t(e?"tonieboxes.navigationTitle":"settings.navigationTitle"))}n(dt.Success,t("settings.certificates.uploadSuccessful"),t("settings.certificates.uploadSuccessfulDetails",{filename:i.name}),t(e?"tonieboxes.navigationTitle":"settings.navigationTitle")),r(g=>!g)}catch(g){n(dt.Error,t("settings.certificates.uploadFailed"),t("settings.certificates.uploadFailedDetails",{filename:i.name})+": "+g,t(e?"tonieboxes.navigationTitle":"settings.navigationTitle"))}})(c)},o={name:"file",multiple:!0,beforeUpload:i=>i.type!=="application/x-x509-ca-cert"&&!i.name.endsWith(".der")?(n(dt.Error,t("settings.certificates.uploadFailed"),t("settings.certificates.uploadFailedDetails",{filename:i.name})+": "+t("settings.certificates.invalidFileType"),t(e?"tonieboxes.navigationTitle":"settings.navigationTitle")),Bd.LIST_IGNORE):!0,customRequest:async i=>{const{onSuccess:s,onError:c,file:u}=i;try{await a(u),s("Ok")}catch(d){c(d)}},onChange(i){const{status:s}=i.file;s!=="uploading"&&console.log(i.file,i.fileList)},onDrop(i){console.log("Dropped files",i.dataTransfer.files)}};return f.jsxs(Bd.Dragger,{...o,children:[f.jsx("p",{className:"ant-upload-drag-icon",children:f.jsx(FN,{})}),f.jsx("p",{className:"ant-upload-text",children:t("settings.certificates.uploadText")}),f.jsx("p",{className:"ant-upload-hint",children:t("settings.certificates.uploadHint")})]})},qze=()=>{const{t:e}=Nt(),{Paragraph:t}=xn;return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")},{title:e("settings.certificates.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.certificates.title")}),f.jsx(t,{children:f.jsx(Cn,{message:e("settings.certificates.information"),description:f.jsxs("div",{children:[e("settings.certificates.hint")," ",f.jsx(ot,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0})}),f.jsx(t,{children:f.jsx(Jk,{})})]})]})]})};var qo=(e=>(e.unknown="UNKNOWN",e.cc3200="CC3200",e.cc3235="CC3235",e.esp32="ESP32",e))(qo||{});const nv=new Dn($n()),{useToken:Kze}=kr,Yze=({overlay:e,onClose:t})=>{var v;const{t:n}=Nt(),{token:r}=Kze(),{addNotification:a}=Qn(),[o,i]=l.useState(),[s,c]=l.useState(""),[u,d]=l.useState(!0),[p,g]=l.useState(!0),[m,h]=l.useState(0);bn.initialize(a,n),l.useEffect(()=>{const y=()=>h(w=>w+1),C=bn.getInstance();return C.addListener(y),()=>{C.removeListener(y)}},[]),l.useEffect(()=>{(async()=>{try{const C=await nv.apiGetTeddyCloudSettingRaw("core.settings_level");if(!C.ok)throw new Error(`HTTP error! status: ${C.status}`);const w=await C.json();c(w.toString())}catch(C){console.error("Error fetching settings level: ",C)}})()},[]),l.useEffect(()=>{if(!s)return;s&&(async()=>{var w,E;d(!0);const C=await nv.apiGetIndexGet(e);(w=C==null?void 0:C.options)!=null&&w.length&&((E=C==null?void 0:C.options)==null?void 0:E.length)>0&&(i(C),bn.getInstance().initializeSettings(C.options,e)),d(!1)})()},[s]),l.useEffect(()=>{if(u)return;const y=document.querySelector(".ant-modal-wrap.overlay-"+e.toUpperCase());if(y){const C=()=>{g(y.scrollTop+y.clientHeight{y.removeEventListener("scroll",C),window.removeEventListener("resize",C)}}},[u]);const b=async()=>{try{await nv.apiTriggerWriteConfigGet()}catch(y){a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+y,n("tonieboxes.navigationTitle"))}},x=async y=>{try{await nv.apiPostTeddyCloudSetting("core.settings_level",y),b(),c(y)}catch(C){a(dt.Error,n("settings.errorSettingSettingsLevel"),n("settings.errorSettingSettingsLevelDetails")+C,n("tonieboxes.navigationTitle"))}},S=f.jsx("div",{style:{position:"sticky",bottom:0,padding:"16px 0",marginBottom:8,backgroundColor:r.colorBgElevated,zIndex:501},id:"save-panel",className:"sticky-save-panel",children:f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:[f.jsx("div",{style:{padding:8,fontSize:"smaller",color:r.colorTextDescription},children:p&&n("settings.keepScrolling")}),f.jsx(vZ,{onClose:t})]})});return f.jsxs(f.Fragment,{children:[f.jsx(Cn,{message:n("settings.warning"),description:f.jsx("div",{children:n("settings.warningHint")}),type:"info",showIcon:!0,style:{margin:"8px"}}),f.jsx(Vn,{children:n("settings.title")}),u?f.jsx(su,{}):f.jsxs(f.Fragment,{children:[f.jsx(mZ,{initialValues:{test:"test"},onSubmit:y=>{},children:f.jsx(Kt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(v=o==null?void 0:o.options)==null?void 0:v.map((y,C,w)=>{if(y.iD.includes("core.settings_level")||!y.iD.includes("core.certdir")&&!y.iD.includes("core.client_cert.")&&!y.iD.includes("core.flex_")&&!y.iD.includes("core.contentdir")&&!y.iD.includes("toniebox.")&&!y.iD.includes("cloud.enabled")&&!y.iD.includes("cloud.enableV1Claim")&&!y.iD.includes("cloud.enableV1CloudReset")&&!y.iD.includes("cloud.enableV1FreshnessCheck")&&!y.iD.includes("cloud.enableV1Log")&&!y.iD.includes("cloud.enableV1Time")&&!y.iD.includes("cloud.enableV1Ota")&&!y.iD.includes("cloud.enableV2Content")&&!y.iD.includes("cloud.cacheOta")&&!y.iD.includes("cloud.localOta")&&!y.iD.includes("cloud.cacheContent")&&!y.iD.includes("cloud.cacheToLibrary")&&!y.iD.includes("cloud.markCustomTagByPass")&&!y.iD.includes("cloud.prioCustomContent")&&!y.iD.includes("cloud.updateOnLowerAudioId")&&!y.iD.includes("cloud.dumpRuidAuthContentJson"))return null;const E=y.iD.split("."),I=w[C-1]?w[C-1].iD.split("."):[];return f.jsxs(de.Fragment,{children:[E.slice(0,-1).map((T,R)=>I[R]!==T?R===0?f.jsxs("h3",{style:{marginLeft:`${R*20}px`,marginBottom:"10px"},children:["Category ",T]},`category-${T}`):f.jsxs("h4",{style:{marginLeft:`${R*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",T]},`category-${T}`):null),f.jsx(hZ,{iD:y.iD,overlayId:e})]},C)})})}),f.jsx(Vn,{children:n("settings.levelLabel")}),f.jsxs(wo.Group,{value:s,onChange:y=>x(y.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:u||bn.getInstance().hasUnchangedChanges(),children:[f.jsx(wo.Button,{value:"1",children:"Basic"}),f.jsx(wo.Button,{value:"2",children:"Detail"}),f.jsx(wo.Button,{value:"3",children:"Expert"})]}),S]})]})},zB=new Dn($n());function bZ(){const[e,t]=l.useState([]),[n,r]=l.useState(!0);return l.useEffect(()=>{async function a(){var o=[];r(!0);try{const c=await(await zB.apiGetTeddyCloudApiRaw("/api/tonieboxesJson")).json();o=[...o,...c]}catch(s){console.error("Error fetching and transforming toniebox data:",s)}try{const c=await(await zB.apiGetTeddyCloudApiRaw("/api/tonieboxesCustomJson")).json();o=[...o,...c]}catch(s){console.error("Error fetching and transforming custom toniebox data:",s)}const i=o.map(s=>({id:s.id,name:s.name,img_src:s.img_src,crop:s.crop||null}));t(i),r(!1)}a()},[]),{boxModelImages:e,loading:n}}const HB="/web/assets/unknown_box-xU178mnG.png",_a=new Dn($n()),{Paragraph:_I,Text:Xze}=xn,{Meta:Zze}=nu,{useToken:Qze}=kr,Jze=({tonieboxCard:e,tonieboxImages:t})=>{var xe,$e,Fe,be;const{t:n}=Nt(),{token:r}=Qze(),{addNotification:a,addLoadingNotification:o,closeLoadingNotification:i}=Qn(),s=dr.language,[c,u]=l.useState(!1),[d,p]=l.useState(""),[g,m]=l.useState(""),[h,b]=l.useState(""),[x,S]=l.useState(!1),[v,y]=l.useState(null),[C,w]=l.useState(),[E,I]=l.useState(!1),[T,R]=l.useState(!1),[_,$]=l.useState(!1),[M,P]=l.useState(e.boxModel),[D,O]=l.useState(e.boxModel),[k,N]=l.useState(e.boxName),[A,L]=l.useState(e.boxName),[j,F]=l.useState(null),[B,z]=l.useState(!1),[U,H]=l.useState(!0),[Y,K]=l.useState(0);l.useEffect(()=>{(async()=>{const Ie=await _a.apiGetTonieboxApiAccess(e.ID);H(Ie)})()},[e.ID,E]),l.useEffect(()=>{(async()=>{const Be=await _a.apiGetTonieboxStatus(e.ID);u(Be)})(),(async()=>{const Be=await _a.apiGetTonieboxVersion(e.ID),ke={0:qo.unknown,1:qo.cc3200,2:qo.cc3235,3:qo.esp32};if(Be in ke){const Ae=ke[Be];p(Ae)}else p(qo.unknown)})(),(async()=>{const Be=await _a.apiGetTonieboxLastRUID(e.ID);if(Be!=="ffffffffffffffff"&&Be!==""){const ke=await _a.apiGetTonieboxLastRUIDTime(e.ID);(async()=>{const Ue=await _a.apiGetTagIndex(e.ID);q(Ue.filter(ct=>ct.ruid===Be),ke)})()}})(),c||(async()=>{const ke=await _a.apiGetLastOnline(e.ID);m(ke)})(),(async()=>{const ke=await(await _a.apiGetTeddyCloudSettingRaw("internal.ip",e.ID)).text();b(ke)})(),W(e.boxModel),O(e.boxModel)},[e.ID,e.boxModel,s]),l.useEffect(()=>{if(h&&d===qo.cc3200)try{fetch(`http://${h}/api/ajax?cmd=box-battery&sub=stats`).then(ue=>ue.text()).then(ue=>{console.log("Battery Stats fetched --> assume CFW active"),S(!0)}).catch(ue=>{console.log("No Battery Stats fetched --> assume CFW not active"),S(!1)})}catch{console.log("No Battery Stats fetched --> assume CFW not active"),S(!1)}},[h,d]);const J=bZ(),ne=[{label:n("tonieboxes.editModelModal.unsetBoxName"),value:"-1"}].concat(J.boxModelImages.map(ue=>({label:ue.name,value:ue.id}))),W=ue=>{const Ie=t.find(We=>We.id===ue);F(Ie?f.jsx("img",{src:Ie.img_src,alt:"",style:{...ge(ue),position:"absolute",top:"0",left:"0"}}):f.jsx(Wt,{title:f.jsxs(f.Fragment,{children:[n("tonieboxes.modelHint.text")," ",f.jsx(Ml,{onClick:()=>pe()},"edit")," ",n("tonieboxes.modelHint.action"),"!"]}),placement:"bottom",children:f.jsx("img",{src:HB,alt:"",style:{width:"100%",height:"auto",position:"absolute",top:"0",left:"0"}})}))},q=(ue,Ie)=>{y(f.jsx(f.Fragment,{children:f.jsx(ot,{to:"/tonies?tonieRUID="+ue[0].ruid+"&overlay="+e.ID,children:f.jsx(Wt,{placement:"top",zIndex:2,title:n("tonieboxes.lastPlayedTonie")+ue[0].tonieInfo.series+(ue[0].tonieInfo.episode?" - "+ue[0].tonieInfo.episode:"")+(Ie?" ("+Ie+")":""),children:f.jsx("img",{src:ue[0].tonieInfo.picture,alt:"Tonie",style:{position:"absolute",bottom:0,right:0,zIndex:1,padding:8,borderRadius:4,height:"60%"}})})})}))},Z=()=>{(async()=>{var We,He;const Ie=await _a.apiGetIndexGet(e.ID);(We=Ie==null?void 0:Ie.options)!=null&&We.length&&((He=Ie==null?void 0:Ie.options)==null?void 0:He.length)>0&&w(Ie)})(),Q()},Q=()=>{R(!0)},ee=async()=>{R(!1)},oe=()=>{R(!1)},se=()=>{I(!0)},fe=async()=>{I(!1)},te=()=>{I(!1)},ie=()=>{K(ue=>ue+1),se()},pe=()=>{O(D===void 0?M:D),$(!0)},me=()=>{O(M),L(A),N(A),$(!1)},re=async()=>{W(D),P(D);const ue=async()=>{await _a.apiTriggerWriteConfigGet()};try{_a.apiPostTeddyCloudSetting("boxModel",D,e.ID).then(()=>{ue()}).then(()=>{a(dt.Success,n("tonieboxes.editModelModal.successOnModelChange"),n("tonieboxes.editModelModal.successOnModelChangeDetails",{model:D,mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(Ie=>{a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+Ie,n("tonieboxes.navigationTitle"))})}catch(Ie){a(dt.Error,n("tonieboxes.editModelModal.errorOnModelChange"),n("tonieboxes.editModelModal.errorOnModelChangeDetails",{mac:e.ID,error:Ie}),n("tonieboxes.navigationTitle"))}},ce=async()=>{L(k);const ue=async()=>{await _a.apiTriggerWriteConfigGet()};try{_a.apiPostTeddyCloudSetting("boxName",k.toString(),e.ID).then(()=>{ue()}).then(()=>{a(dt.Success,n("tonieboxes.editModelModal.successOnNameChange"),n("tonieboxes.editModelModal.successOnNameChangeDetails",{name:k,mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(Ie=>{a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+Ie,n("tonieboxes.navigationTitle"))})}catch(Ie){a(dt.Error,n("tonieboxes.editModelModal.errorOnNameChange"),n("tonieboxes.editModelModal.errorOnNameChangeDetails",{mac:e.ID,error:Ie}),n("tonieboxes.navigationTitle"))}},ge=ue=>{const Ie=t.find(We=>We.id===ue);if(Ie&&Ie.crop){const[We,He,Be]=Ie.crop;return{width:"100%",height:"auto",transform:`scale(${Be}) translateX(${We}px) translateY(${He}px)`}}else return{width:"100%",height:"auto"}},ye=()=>e.ID.replace(/(.{2})(?=.)/g,"$1:"),Ee=async()=>{$(!1),k!==A&&await ce(),M!==D&&await re()},Ne=f.jsx(f.Fragment,{children:f.jsxs(nt,{type:"primary",onClick:Ee,disabled:k===A&&M===D,children:[f.jsx(vK,{},"saveClick")," ",n("tonies.editModal.save")]})}),_e=f.jsxs(Rn,{title:f.jsx(f.Fragment,{children:f.jsxs("h3",{children:[n("tonieboxes.editModelModal.editModel",{name:e.boxName}),f.jsx("br",{}),f.jsx(Xze,{type:"secondary",children:(d!=="UNKNOWN"?d:"MAC")+": "+ye()})]})}),open:_,footer:Ne,onCancel:me,children:[f.jsx(Vn,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.name")}),f.jsx(_I,{children:f.jsx(Jt,{name:"boxName",value:k,onChange:ue=>N(ue.target.value),addonBefore:f.jsx(v_,{onClick:()=>N(A),style:{color:k===A?r.colorTextDisabled:r.colorText,cursor:k===A?"default":"pointer"}})})}),f.jsx(Vn,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.model")}),f.jsx(_I,{children:f.jsx(cr,{options:ne,value:D,onChange:ue=>O(ue)})})]}),Pe=f.jsxs(Rn,{title:n("tonieboxes.uploadTonieboxCertificatesModal.uploadTonieboxCertificates",{name:e.boxName}),open:T,onOk:ee,onCancel:oe,children:[f.jsxs(_I,{children:[n("tonieboxes.uploadTonieboxCertificatesModal.uploadPath")," ",f.jsx("i",{children:($e=(xe=C==null?void 0:C.options)==null?void 0:xe.find(ue=>ue.iD==="core.certdir"))==null?void 0:$e.value})," ",f.jsx("small",{children:(be=(Fe=C==null?void 0:C.options)==null?void 0:Fe.find(ue=>ue.iD==="core.certdir"))!=null&&be.overlayed?n("tonieboxes.uploadTonieboxCertificatesModal.boxSpecific"):n("tonieboxes.uploadTonieboxCertificatesModal.AttentionGeneralPath")})]}),f.jsx(Jk,{overlay:e.ID})]}),Le=f.jsx(Rn,{title:n("tonieboxes.editTonieboxSettingsModal.editTonieboxSettings",{name:e.boxName}),width:"auto",open:E,onOk:fe,onCancel:te,footer:null,wrapClassName:"overlay-"+e.ID,children:f.jsx(Yze,{onClose:te,overlay:e.ID},Y)}),Ve=()=>{const ue="loading"+e.ID;try{o(ue,n("tonieboxes.messages.deleting"),n("tonieboxes.messages.deletingDetails",{mac:e.ID})),_a.apiPostTeddyCloudRaw("/api/settings/removeOverlay?overlay="+e.ID).then(Ie=>Ie.text()).then(Ie=>{i(ue),Ie==="OK"?(a(dt.Success,n("tonieboxes.messages.deleteSuccessful"),n("tonieboxes.messages.deleteSuccessfulDetails",{mac:e.ID}),n("tonieboxes.navigationTitle")),window.location.reload()):a(dt.Error,n("tonieboxes.messages.deleteFailed"),n("tonieboxes.messages.deleteFailedDetails",{mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(Ie=>{i(ue),a(dt.Error,n("tonieboxes.messages.deleteFailed"),n("tonieboxes.messages.deleteFailedDetails",{mac:e.ID})+": "+Ie,n("tonieboxes.navigationTitle"))})}catch(Ie){i(ue),a(dt.Error,n("tonieboxes.messages.deleteFailed"),n("tonieboxes.messages.deleteFailedDetails",{mac:e.ID})+": "+Ie,n("tonieboxes.navigationTitle"))}},je=()=>{z(!0)},De=()=>{Ve(),z(!1)},Se=()=>{z(!1)},Oe=f.jsx(Gd,{title:n("tonieboxes.confirmDeleteModal"),open:B,okText:n("tonieboxes.delete"),cancelText:n("tonieboxes.cancel"),content:n("tonieboxes.confirmDeleteDialog",{tonieboxToDelete:A}),handleOk:De,handleCancel:Se}),Re=async()=>{try{await _a.apiTriggerWriteConfigGet()}catch(ue){a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+ue,n("tonieboxes.navigationTitle"))}},Ce=async()=>{try{_a.apiPostTeddyCloudSetting("toniebox.api_access",!U,e.ID).then(()=>{Re(),H(!U),U?a(dt.Success,n("tonieboxes.messages.apiAccessDisabled"),n("tonieboxes.messages.apiAccessDisabledDetails",{mac:e.ID}),n("tonieboxes.navigationTitle")):a(dt.Success,n("tonieboxes.messages.apiAccessEnabled"),n("tonieboxes.messages.apiAccessEnabledDetails",{mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(ue=>{throw new Error(ue.status+" "+ue.statusText)})}catch(ue){a(dt.Error,n("tonieboxes.messages.apiAccessNotChangedError"),n("tonieboxes.messages.apiAccessNotChangedErrorDetails",{mac:e.ID})+ue,n("tonieboxes.navigationTitle"))}};return f.jsxs(f.Fragment,{children:[f.jsx(nu,{hoverable:!1,size:"default",style:{background:r.colorBgContainerDisabled,cursor:"default"},title:f.jsx("span",{children:A}),cover:f.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:[v,f.jsx("img",{src:HB,alt:"",style:{position:"relative",filter:"opacity(0)",width:"100%",height:"auto"}}),j]}),actions:[f.jsx(f.Fragment,{children:U?c?f.jsx(Wt,{title:n("tonieboxes.online"),children:f.jsx(b_,{style:{color:"green",cursor:"default"}})}):f.jsx(Wt,{title:n("tonieboxes.offline")+(g?" - "+n("tonieboxes.lastOnline")+": "+g:""),children:f.jsx(b_,{style:{color:r.colorTextDescription,cursor:"default"}})}):f.jsx(Wt,{title:n("tonieboxes.accessApiDisabled"),children:f.jsx(gK,{style:{color:"red",cursor:"pointer"},onClick:Ce})})}),f.jsx(Ml,{onClick:()=>pe()},"edit"),f.jsx(BN,{style:{marginRight:8},onClick:Z},"certificate"),f.jsx(zN,{style:{marginRight:8},onClick:ie},"edit"),f.jsx(Al,{style:{marginRight:8},onClick:je},"delete")],children:f.jsx(Zze,{description:[(d!=="UNKNOWN"&&d!==void 0&&d!==null?d:"MAC")+" ",x?f.jsx(Wt,{title:n("tonieboxes.linkToBoxCFW"),children:f.jsxs(ot,{to:"http://"+h,target:"_blank",children:[ye()," ",f.jsx(C2e,{})]})}):ye()]})}),Le,Pe,_e,Oe]})},e9e=({tonieboxCards:e})=>{const{t}=Nt(),{addNotification:n}=Qn(),r=bZ();if(l.useEffect(()=>{!r.loading&&r.boxModelImages.length===0&&n(dt.Error,t("settings.notifications.error"),t("tonieboxes.errorFetchingModels"),t("tonieboxes.navigationTitle"))},[r.loading,r.boxModelImages.length]),r.loading)return f.jsx(su,{});const a=()=>f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:f.jsxs("div",{children:[f.jsx("p",{children:t("tonieboxes.noData")}),f.jsx("p",{children:t("tonieboxes.noDataText")})]})});return f.jsx(Er,{grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:3,xxl:4},dataSource:e,renderItem:o=>f.jsx(Er.Item,{id:o.ID,children:f.jsx(Jze,{tonieboxCard:o,tonieboxImages:r.boxModelImages})}),locale:{emptyText:a()}})},UB=new Dn($n()),t9e=()=>{const{t:e}=Nt(),{addNotification:t}=Qn(),[n,r]=l.useState([]),[a,o]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const u=await UB.apiGetTonieboxesIndex();r(u)}catch(u){t(dt.Error,e("tonieboxes.errorFetchingTonieboxes"),e("tonieboxes.errorFetchingTonieboxes")+": "+u,e("tonieboxes.navigationTitle"))}})(),(async()=>{try{const u=await UB.apiGetNewBoxesAllowed();o(u)}catch(u){t(dt.Error,e("settings.errorFetchingSetting"),e("settings.errorFetchingSettingDetails",{setting:"core.allowNewBox"})+u,e("tonieboxes.navigationTitle"))}})()},[]);const i=a?f.jsx(Cn,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}):"";return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.title")}),i,f.jsx(e9e,{tonieboxCards:n})]})]})]})},n9e=new Dn($n()),{Paragraph:Gs}=xn,{useToken:r9e}=kr,a9e=()=>{const{t:e}=Nt(),{token:t}=r9e(),{addNotification:n}=Qn(),[r,a]=l.useState(!0),[o,i]=l.useState([]),s=[{id:"cc3200",url:"https://forum.revvox.de/t/teddycloud-cc3200-newbie-guide/925/1",title:"TeddyCloud CC3200 Newbie HowTo"},{id:"cc3235",url:"https://forum.revvox.de/t/teddycloud-cc3235-newbie-howto/899/1",title:"TeddyCloud CC3235 Newbie HowTo"},{id:"esp32",url:"https://forum.revvox.de/t/teddycloud-esp32-newbie-documentation-deprecated/112/1",title:"TeddyCloud ESP32 Newbie HowTo"}],c=async()=>{const d=await Promise.all(s.map(async({id:p,url:g,title:m})=>{try{if((await fetch(g,{method:"HEAD",mode:"no-cors"})).status===0)return{id:p,url:g,title:m}}catch{}return null}));i(d.filter(p=>p!==null))};l.useEffect(()=>{c()},[]),l.useEffect(()=>{(async()=>{try{const p=await n9e.apiGetNewBoxesAllowed();a(p)}catch(p){n(dt.Error,e("settings.errorFetchingSetting"),e("settings.errorFetchingSettingDetails",{setting:"core.allowNewBox"})+p,e("tonieboxes.navigationTitle"))}})()},[]);const u=[{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.setupTeddyCloud")}),f.jsx(Gs,{children:e("tonieboxes.boxSetup.setupTeddyCloudText")}),f.jsx("ul",{children:f.jsxs("li",{children:[f.jsxs(ot,{to:"#",onClick:()=>z_(!0),children:[e("tonieboxes.downloadC2DerFile")," (CC3200)"]})," ","|"," ",f.jsxs(ot,{to:"#",onClick:()=>z_(!1),children:[e("tonieboxes.downloadCADerFile")," (CC3235, ESP32)"]})]})})]}),dot:f.jsx(m_,{}),color:t.colorSuccess,style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.identifyTonieboxVersion")}),f.jsx(Gs,{children:e("tonieboxes.boxSetup.identifyTonieboxVersionText")}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx(ot,{to:"/tonieboxes/boxsetup/boxversioninfo",children:e("tonieboxes.boxSetup.boxVersion.title")})}),f.jsx("li",{children:f.jsx(ot,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.openBoxGuide.title")})}),f.jsx("li",{children:f.jsx(ot,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyTonieboxVersion")})})]})]}),dot:f.jsx(ym,{}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.flashBox")}),f.jsx(Gs,{children:e("tonieboxes.boxSetup.flashBoxText")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx(ot,{to:"/tonieboxes/boxsetup/esp32/flashing",children:"ESP32"}),f.jsx("ul",{style:{marginBottom:0},children:f.jsx("li",{children:f.jsx(ot,{to:"/tonieboxes/boxsetup/esp32/legacy",children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})})]}),f.jsx("li",{children:f.jsx(ot,{to:"/tonieboxes/boxsetup/cc3200/flashing",children:"CC3200"})}),f.jsx("li",{children:f.jsx(ot,{to:"/tonieboxes/boxsetup/cc3235/flashing",children:"CC3235"})})]}),o.length>0&&f.jsxs(Gs,{children:[f.jsx(Gs,{children:e("tonieboxes.boxSetup.newbieGuides")}),f.jsx("ul",{children:o.map(({id:d,url:p,title:g})=>f.jsx("li",{children:f.jsx("a",{href:p,target:"_blank",children:g})},d))})]})]}),dot:f.jsx(gp,{}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.useIt")}),f.jsx(Gs,{children:e("tonieboxes.boxSetup.useItText")})]}),dot:f.jsx(bK,{}),style:{paddingBottom:8}}];return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.title")}),!r&&f.jsx(Cn,{type:"warning",showIcon:!0,message:e("tonieboxes.noNewBoxesAllowed"),description:e("tonieboxes.noNewBoxesAllowedText"),style:{marginBottom:16}}),f.jsx(Cn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")}),f.jsxs(Gs,{style:{marginTop:16},children:[e("tonieboxes.boxSetup.boxSetupIntro1")," ",f.jsx(ot,{to:hd,target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroForum")})," ",e("tonieboxes.boxSetup.boxSetupIntro2")," ",f.jsx(ot,{to:uk,target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroTelegram")})," ",e("tonieboxes.boxSetup.boxSetupIntro3")]}),f.jsx(Gs,{style:{marginTop:16},children:f.jsx(ek,{items:u})})," "]})]})]})},{Paragraph:qs,Title:VB}=xn,o9e=()=>{const{t:e}=Nt(),t=[{name:"V1/V2 CC3200",pros:[e("tonieboxes.boxSetup.boxVersion.cc3200pro1"),e("tonieboxes.boxSetup.boxVersion.cc3200pro2"),e("tonieboxes.boxSetup.boxVersion.cc3200pro3"),e("tonieboxes.boxSetup.boxVersion.cc3200pro4"),e("tonieboxes.boxSetup.boxVersion.cc3200pro5")],cons:[e("tonieboxes.boxSetup.boxVersion.cc3200con1")]},{name:"V3 CC3235",pros:[],cons:[e("tonieboxes.boxSetup.boxVersion.cc3235con1"),e("tonieboxes.boxSetup.boxVersion.cc3235con2"),e("tonieboxes.boxSetup.boxVersion.cc3235con3")]},{name:"V4 ESP32",pros:[e("tonieboxes.boxSetup.boxVersion.esp32pro1"),e("tonieboxes.boxSetup.boxVersion.esp32pro2"),e("tonieboxes.boxSetup.boxVersion.esp32pro3")],cons:[e("tonieboxes.boxSetup.boxVersion.esp32con1"),e("tonieboxes.boxSetup.boxVersion.esp32con2")]}],n=({versions:r})=>f.jsx(Oa,{gutter:16,justify:"start",children:r.map((a,o)=>f.jsx(Nn,{xs:24,md:12,xl:8,children:f.jsxs(nu,{title:a.name,size:"small",bordered:!0,style:{marginBottom:8},children:[f.jsx(VB,{level:5,style:{marginTop:0},children:e("tonieboxes.boxSetup.boxVersion.pros")}),a.pros.length>0?f.jsx(Er,{dataSource:a.pros,renderItem:i=>f.jsxs(Er.Item,{style:{flexWrap:"nowrap",alignItems:"flex-start"},children:[f.jsx(df,{style:{color:"green",marginRight:8,marginTop:4}}),f.jsx(qs,{style:{marginBottom:0,textAlign:"right"},children:i})]})}):f.jsx(Er.Item,{children:f.jsx(qs,{style:{marginBottom:0,textAlign:"center"},children:e("tonieboxes.boxSetup.boxVersion.emptyPros")})}),f.jsx(VB,{level:5,style:{marginTop:0},children:e("tonieboxes.boxSetup.boxVersion.cons")}),a.cons.length>0?f.jsx(Er,{dataSource:a.cons,renderItem:i=>f.jsxs(Er.Item,{style:{flexWrap:"nowrap",alignItems:"flex-start"},children:[f.jsx(pa,{style:{color:"red",marginRight:8,marginTop:4}}),f.jsx(qs,{style:{marginBottom:0,textAlign:"right"},children:i})]})}):f.jsx(Er.Item,{children:f.jsx(qs,{style:{marginBottom:0,textAlign:"center"},children:e("tonieboxes.boxSetup.boxVersion.emptyCons")})})]})},o))});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.boxVersion.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.boxVersion.title")}),f.jsxs(qs,{children:[e("tonieboxes.boxSetup.boxVersion.intro"),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("b",{children:"V1/V2"}),": ",e("tonieboxes.boxSetup.boxVersion.uses")," TI CC3200"]}),f.jsxs("li",{children:[f.jsx("b",{children:"V3"}),": ",e("tonieboxes.boxSetup.boxVersion.uses")," TI CC3235"]}),f.jsxs("li",{children:[f.jsx("b",{children:"V4"}),": ",e("tonieboxes.boxSetup.boxVersion.uses")," ESP32"]})]})]}),f.jsx("h3",{children:e("tonieboxes.boxSetup.boxVersion.whatVersion")}),f.jsx(qs,{children:e("tonieboxes.boxSetup.boxVersion.whatVersionIntro")}),f.jsx(n,{versions:t}),f.jsx("h4",{children:e("tonieboxes.boxSetup.boxVersion.whatVersionConclusionHeader")}),f.jsx(qs,{children:e("tonieboxes.boxSetup.boxVersion.whatVersionConclusion")}),f.jsx("h3",{children:e("tonieboxes.boxSetup.boxVersion.howToIdentify")}),f.jsxs(qs,{children:[e("tonieboxes.boxSetup.boxVersion.howToIdentifyIntro"),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("b",{children:e("tonieboxes.boxSetup.boxVersion.countryOfManufacture")})," ",e("tonieboxes.boxSetup.boxVersion.countryOfManufactureText")]}),f.jsxs("li",{children:[f.jsx("b",{children:e("tonieboxes.boxSetup.boxVersion.macAddressCheck")})," ",e("tonieboxes.boxSetup.boxVersion.macAddressCheckText")]})]}),e("tonieboxes.boxSetup.boxVersion.howToIdentifyOutro")," ",f.jsx(ot,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyTonieboxVersion")})]})]})]})]})},i9e="/web/assets/3235_pcb-BE0vs2bl.png",s9e="/web/assets/3235_pcb_preview-DkVKgZS0.png",l9e="/web/assets/3200_pcb-Dxz0Vi-z.png",c9e="/web/assets/3200_pcb_preview-BvQM-e4R.png",u9e="/web/assets/cc3200-B-jSkbsy.jpg",d9e="/web/assets/cc3235-Cr21bWbC.jpg",f9e="/web/assets/esp32_pcb-CWEYHEzm.png",p9e="/web/assets/esp32_pcb_preview-Bh1UGQPK.png",g9e="/web/assets/esp32-B_b6hCjy.jpg",{Paragraph:aa}=xn,{useToken:m9e}=kr,h9e=()=>{const{t:e}=Nt(),{token:t}=m9e(),n=Zc(),[r,a]=l.useState(""),[o,i]=l.useState(""),[s,c]=l.useState(null),[u,d]=l.useState(null),p=w=>w.replace(/[^a-zA-Z0-9-:]/g,"").trim(),g=async()=>{c(null),d(null);try{const w=await fetch(`https://api.macvendors.com/${encodeURIComponent(r)}`);if(!w.ok)throw new Error("MAC address not found or invalid");const E=await w.text();c(E)}catch(w){d(w.message)}},[m,h]=l.useState(s!=null&&s.toLowerCase().includes("espressif")?"esp32":"cc3200");l.useEffect(()=>{s!=null&&s.toLowerCase().includes("espressif")?h("esp32"):h("cc3200")},[s]);const b=f.jsxs(f.Fragment,{children:[f.jsx(aa,{children:e("tonieboxes.boxSetup.identifyVersion.cc3200text")}),f.jsx(aa,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsx(aa,{style:{maxWidth:400},children:f.jsx(dn,{src:l9e,alt:"PCB CC3200",placeholder:f.jsx(dn,{preview:!1,src:c9e})})}),f.jsx(aa,{style:{maxWidth:"100%"},children:f.jsx(dn,{src:u9e,style:{height:300,width:"auto"},alt:"Chip CC3200"})})]})})]}),x=f.jsxs(f.Fragment,{children:[f.jsx(aa,{children:e("tonieboxes.boxSetup.identifyVersion.cc3235text")}),f.jsx(aa,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsx(aa,{style:{maxWidth:400},children:f.jsx(dn,{src:i9e,alt:"PCB CC3235",placeholder:f.jsx(dn,{preview:!1,src:s9e})})}),f.jsx(aa,{style:{maxWidth:"100%"},children:f.jsx(dn,{src:d9e,style:{height:300,width:"auto"},alt:"Chip CC3235"})})]})})]}),S=f.jsxs(f.Fragment,{children:[f.jsx(aa,{children:e("tonieboxes.boxSetup.identifyVersion.esp32text")}),f.jsx(aa,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsx(aa,{style:{maxWidth:400},children:f.jsx(dn,{src:f9e,alt:"PCB ESP32",placeholder:f.jsx(dn,{preview:!1,src:p9e})})}),f.jsx(aa,{style:{maxWidth:"100%"},children:f.jsx(dn,{src:g9e,style:{height:300,width:"auto"},alt:"Chip ESP32"})})]})})]}),v=[{key:"cc3200",label:"CC3200",children:b},{key:"cc3235",label:"CC3235",children:x},{key:"esp32",label:"ESP32",children:S}],y=f.jsxs(f.Fragment,{children:[f.jsx(Ld,{activeKey:m,onChange:w=>h(w),defaultActiveKey:s!=null&&s.toLowerCase().includes("espressif")?"esp32":"cc3200",items:v.filter(w=>((s==null?void 0:s.toLowerCase().includes("texas"))||!s)&&w.key==="cc3200"||((s==null?void 0:s.toLowerCase().includes("texas"))||!s)&&w.key==="cc3235"||((s==null?void 0:s.toLowerCase().includes("espressif"))||!s)&&w.key==="esp32"),indicator:{size:w=>w-20,align:"center"}}),f.jsxs(aa,{children:[e("tonieboxes.boxSetup.identifyVersion.proceedToFlash1")," "]}),f.jsx(aa,{style:{marginTop:16},children:f.jsx(nt,{type:"primary",onClick:()=>n(`../tonieboxes/boxsetup/${m}/flashing`),children:`${m.toUpperCase()} ${e("tonieboxes.boxSetup.identifyVersion.proceedToFlashLinkText")}`})})]}),C=()=>{a(""),c(null),i(""),d(null)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.identifyVersion.title")}),f.jsxs(Kt,{children:[f.jsxs(aa,{children:[e("tonieboxes.boxSetup.identifyVersion.identifyUsingMac")," "]}),f.jsxs(Kt.Item,{children:[f.jsxs(Oa,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Nn,{style:{flex:"0 0 250px",color:o?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.boxSetup.identifyVersion.mac")})}),f.jsx(Nn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",value:r,onChange:w=>{let E=p(w.target.value),I="";E.length>17?I=e("tonieboxes.boxSetup.identifyVersion.boxMacTooLong"):I="",a(E),i(I)},addonBefore:f.jsx(pa,{onClick:C,style:{color:r?t.colorText:t.colorTextDisabled,cursor:r?"pointer":"default"}})})})]}),o&&f.jsx("p",{style:{color:"#CC3010"},children:o})]}),f.jsx(nt,{icon:f.jsx(PN,{}),disabled:r.length>17||r.length===0,type:"primary",onClick:g,children:e("tonieboxes.boxSetup.identifyVersion.identify")}),f.jsxs(aa,{style:{fontSize:"small",marginTop:16},children:[e("tonieboxes.boxSetup.identifyVersion.macvendors")," ",f.jsx(ot,{to:"https://macvendors.com/",target:"_blank",children:e("tonieboxes.boxSetup.identifyVersion.macvendorsLink")})]})]}),s?f.jsxs(f.Fragment,{children:[f.jsx(Cn,{style:{marginTop:16},type:"success",description:f.jsxs(f.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.vendor"),": ",f.jsx("b",{children:s})," ",e("tonieboxes.boxSetup.identifyVersion.boxVersion"),s.includes("Espressif")?f.jsx("b",{children:" ESP32"}):f.jsxs(f.Fragment,{children:[f.jsx("b",{children:" CC3200"})," ",e("tonieboxes.boxSetup.identifyVersion.or"),f.jsx("b",{children:" CC3235"})]})," ",e("tonieboxes.boxSetup.identifyVersion.version"),"."]})}),s.toLowerCase().includes("texas")?f.jsx(aa,{style:{marginTop:16},children:e("tonieboxes.boxSetup.identifyVersion.tiInstruction")}):""]}):u?f.jsx(Cn,{style:{marginTop:16},type:"error",description:f.jsx(f.Fragment,{children:e("tonieboxes.boxSetup.identifyVersion.errorMac")})}):"",f.jsxs(aa,{style:{marginTop:16},children:[s?"":f.jsxs(f.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.generalInstruction1")," ",f.jsx(Wt,{title:e("tonieboxes.boxSetup.openBoxGuide.linkTooltip"),children:f.jsx(ot,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.identifyVersion.generalInstructionLinkText")})})," ",e("tonieboxes.boxSetup.identifyVersion.generalInstruction2")]}),y]})]})]})]})},v9e="/web/assets/openTB_step1_1-4vwQGflo.png",b9e="/web/assets/openTB_step1_2-DIZc5DI4.png",y9e="/web/assets/openTB_step2-DhjDRq3m.png",x9e="/web/assets/openTB_step3-Dn6Mo3hQ.png",S9e="/web/assets/openTB_step4-Bj5i-Kw_.png",C9e="/web/assets/openTB_step5-DTGOEBgD.png",{Paragraph:os}=xn;function w9e(){const{t:e}=Nt(),[t,n]=l.useState(!0),[r,a]=l.useState(500);l.useEffect(()=>{let i;return i=window.setInterval(()=>{n(s=>!s),a(s=>s===500?2e3:500)},r),()=>clearInterval(i)},[r]);const o=[{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step1")}),t?f.jsx(dn,{src:v9e,style:{maxWidth:350},alt:""}):f.jsx(dn,{src:b9e,style:{maxWidth:350},alt:""}),f.jsxs(os,{style:{marginTop:16},children:[f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step1Text1")}),f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step1Text2")})]}),f.jsxs(os,{children:[f.jsx(pl,{})," ",e("tonieboxes.boxSetup.openBoxGuide.step1Text3")]})]})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step2")}),f.jsx(dn,{style:{maxWidth:350},src:y9e,alt:""}),f.jsx(os,{style:{marginTop:16},children:f.jsx("ul",{children:f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step2Text")})})})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step3")}),f.jsx(dn,{style:{maxWidth:350},src:x9e,alt:""}),f.jsx(os,{style:{marginTop:16},children:f.jsx("ul",{children:f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step3Text")})})})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step4")}),f.jsx(dn,{style:{maxWidth:350},src:S9e,alt:""}),f.jsx(os,{style:{marginTop:16},children:f.jsx("ul",{children:f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step4Text")})})})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step5")}),f.jsx(dn,{style:{maxWidth:350},src:C9e,alt:""}),f.jsx(os,{style:{marginTop:16},children:f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step5Text1")}),f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step5Text2")})]})})]}),style:{paddingBottom:8}},{children:f.jsx(f.Fragment,{children:f.jsx(os,{children:e("tonieboxes.boxSetup.openBoxGuide.finally")})}),dot:f.jsx(bK,{}),style:{paddingBottom:8}}];return f.jsxs(f.Fragment,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.openBoxGuide.title")}),f.jsxs(os,{style:{fontSize:"small"},children:[e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart1")," ",f.jsx(ot,{to:e("tonieboxes.boxSetup.openBoxGuide.link1"),target:"_blank",children:"iFixit[1]"})," ",e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart2")," ",f.jsx(ot,{to:e("tonieboxes.boxSetup.openBoxGuide.link2"),target:"_blank",children:"iFixit[2]"}),". ",e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart3")," ",f.jsx(ot,{to:"https://www.ifixit.com/User/828031/Tobias+Isakeit",children:"Tobias Isakeit"})," ",e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart4")," ",f.jsxs(ot,{to:"https://creativecommons.org/licenses/by-nc-sa/3.0/",target:"_blank",children:[e("tonieboxes.boxSetup.openBoxGuide.guideSourceLicense"),"."]})]}),f.jsx(dn.PreviewGroup,{children:f.jsx(ek,{mode:"left",items:o})}),f.jsxs(os,{children:[e("tonieboxes.boxSetup.openBoxGuide.alternativeGuidelineVideo")," ",f.jsx(ot,{to:"https://www.youtube.com/watch?v=Cv9ID4-P6_A",target:"_blank",children:"https://www.youtube.com/watch?v=Cv9ID4-P6_A"})]})]})}const E9e=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}]}),f.jsx(Pn,{children:w9e()})]})]})},I9e="/web/assets/tb-esp32-uart-clamp-D_86EMpu.png",T9e="/web/assets/esp32_pcb_clamp-Cw2o3uco.png",R9e="/web/assets/tb-esp32-uart-BDPWj6EB.png",_9e="/web/assets/uart_3v3-5V_jumper_black-BW2kS97B.jpg",$9e="/web/assets/uart_3v3-5V_jumper_switch-Cl7yHFlu.jpg",O9e="/web/assets/uart_3v3-5V_jumper_yellow-d4JFD7jo.jpg",$I=new Dn($n());function yZ(){const{t:e}=Nt();return f.jsx(Cn,{type:"warning",showIcon:!0,message:e("tonieboxes.boxSetup.UARTHint.title"),description:f.jsxs(f.Fragment,{children:[e("tonieboxes.boxSetup.UARTHint.description"),f.jsxs("div",{style:{marginTop:"8px",display:"flex",gap:8},children:[f.jsx(dn,{src:_9e,preview:!1,alt:e("tonieboxes.boxSetup.UARTHint.imageAlt1"),style:{maxHeight:75}}),f.jsx(dn,{src:$9e,preview:!1,alt:e("tonieboxes.boxSetup.UARTHint.imageAlt2"),style:{maxHeight:75}}),f.jsx(dn,{src:O9e,preview:!1,alt:e("tonieboxes.boxSetup.UARTHint.imageAlt3"),style:{maxHeight:75}})]}),f.jsx("div",{style:{marginTop:"10px"},children:e("tonieboxes.boxSetup.UARTHint.warning")})]})})}const{Paragraph:rn}=xn;function xZ(){const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(rn,{children:yZ()}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.connectESP32Text1")}),f.jsx(rn,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:f.jsx(dn,{src:R9e,style:{height:200,width:"auto"},preview:!1,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103")})}),f.jsx("h5",{children:e("tonieboxes.connectESP32Modal.esp32UartJ103ClampTitle")}),f.jsx(rn,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsxs("div",{style:{maxWidth:200},children:[f.jsx(dn,{style:{height:200,width:"auto"},src:I9e,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")}),f.jsx(rn,{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")})]}),f.jsxs("div",{style:{maxWidth:200},children:[f.jsx(dn,{style:{height:200,width:"auto"},src:T9e,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")}),f.jsx(rn,{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")})]})]})}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp4PinHint")}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.connectESP32Text2")}),f.jsx(Cn,{type:"warning",message:e("tonieboxes.connectESP32Modal.beware"),description:e("tonieboxes.connectESP32Modal.warningText")}),f.jsx("h5",{children:e("tonieboxes.connectESP32Modal.normalMode")}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.normalModeText")}),f.jsx(gn,{language:"shell",code:`ESP-ROM:esp32s3-20210327 + */var ha=typeof Symbol=="function"&&Symbol.for,Yk=ha?Symbol.for("react.element"):60103,Xk=ha?Symbol.for("react.portal"):60106,ox=ha?Symbol.for("react.fragment"):60107,ix=ha?Symbol.for("react.strict_mode"):60108,sx=ha?Symbol.for("react.profiler"):60114,lx=ha?Symbol.for("react.provider"):60109,cx=ha?Symbol.for("react.context"):60110,Zk=ha?Symbol.for("react.async_mode"):60111,ux=ha?Symbol.for("react.concurrent_mode"):60111,dx=ha?Symbol.for("react.forward_ref"):60112,fx=ha?Symbol.for("react.suspense"):60113,Cze=ha?Symbol.for("react.suspense_list"):60120,px=ha?Symbol.for("react.memo"):60115,gx=ha?Symbol.for("react.lazy"):60116,Eze=ha?Symbol.for("react.block"):60121,Ize=ha?Symbol.for("react.fundamental"):60117,Tze=ha?Symbol.for("react.responder"):60118,Rze=ha?Symbol.for("react.scope"):60119;function Mo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yk:switch(e=e.type,e){case Zk:case ux:case ox:case sx:case ix:case fx:return e;default:switch(e=e&&e.$$typeof,e){case cx:case dx:case gx:case px:case lx:return e;default:return t}}case Xk:return t}}}function cZ(e){return Mo(e)===ux}Yn.AsyncMode=Zk;Yn.ConcurrentMode=ux;Yn.ContextConsumer=cx;Yn.ContextProvider=lx;Yn.Element=Yk;Yn.ForwardRef=dx;Yn.Fragment=ox;Yn.Lazy=gx;Yn.Memo=px;Yn.Portal=Xk;Yn.Profiler=sx;Yn.StrictMode=ix;Yn.Suspense=fx;Yn.isAsyncMode=function(e){return cZ(e)||Mo(e)===Zk};Yn.isConcurrentMode=cZ;Yn.isContextConsumer=function(e){return Mo(e)===cx};Yn.isContextProvider=function(e){return Mo(e)===lx};Yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yk};Yn.isForwardRef=function(e){return Mo(e)===dx};Yn.isFragment=function(e){return Mo(e)===ox};Yn.isLazy=function(e){return Mo(e)===gx};Yn.isMemo=function(e){return Mo(e)===px};Yn.isPortal=function(e){return Mo(e)===Xk};Yn.isProfiler=function(e){return Mo(e)===sx};Yn.isStrictMode=function(e){return Mo(e)===ix};Yn.isSuspense=function(e){return Mo(e)===fx};Yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ox||e===ux||e===sx||e===ix||e===fx||e===Cze||typeof e=="object"&&e!==null&&(e.$$typeof===gx||e.$$typeof===px||e.$$typeof===lx||e.$$typeof===cx||e.$$typeof===dx||e.$$typeof===Ize||e.$$typeof===Tze||e.$$typeof===Rze||e.$$typeof===Eze)};Yn.typeOf=Mo;lZ.exports=Yn;var _ze=lZ.exports,uZ=_ze,$ze={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Oze={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dZ={};dZ[uZ.ForwardRef]=$ze;dZ[uZ.Memo]=Oze;function oa(){return oa=Object.assign||function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}var mx=l.createContext(void 0);mx.displayName="FormikContext";var Nze=mx.Provider;mx.Consumer;function pZ(){var e=l.useContext(mx);return e}var Ho=function(t){return typeof t=="function"},Um=function(t){return t!==null&&typeof t=="object"},kze=function(t){return String(Math.floor(Number(t)))===t},RI=function(t){return Object.prototype.toString.call(t)==="[object String]"},Aze=function(t){return l.Children.count(t)===0},_I=function(t){return Um(t)&&Ho(t.then)};function mo(e,t,n,r){r===void 0&&(r=0);for(var a=sZ(t);e&&r=0?[]:{}}}return(o===0?e:a)[i[o]]===n?e:(n===void 0?delete a[i[o]]:a[i[o]]=n,o===0&&n===void 0&&delete r[i[o]],r)}function gZ(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,o=Object.keys(e);a0?ue.map(function(xe){return _(xe,mo(re,xe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(me).then(function(xe){return xe.reduce(function(Ee,ke,$e){return ke==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ke&&(Ee=_c(Ee,ue[$e],ke)),Ee},{})})},[_]),M=l.useCallback(function(re){return Promise.all([$(re),g.validationSchema?R(re):{},g.validate?T(re):{}]).then(function(ue){var me=ue[0],xe=ue[1],Ee=ue[2],ke=V_.all([me,xe,Ee],{arrayMerge:jze});return ke})},[g.validate,g.validationSchema,$,T,R]),P=zo(function(re){return re===void 0&&(re=E.values),I({type:"SET_ISVALIDATING",payload:!0}),M(re).then(function(ue){return S.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:ue})),ue})});l.useEffect(function(){i&&S.current===!0&&ic(m.current,g.initialValues)&&P(m.current)},[i,P]);var D=l.useCallback(function(re){var ue=re&&re.values?re.values:m.current,me=re&&re.errors?re.errors:h.current?h.current:g.initialErrors||{},xe=re&&re.touched?re.touched:b.current?b.current:g.initialTouched||{},Ee=re&&re.status?re.status:x.current?x.current:g.initialStatus;m.current=ue,h.current=me,b.current=xe,x.current=Ee;var ke=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!re&&!!re.isSubmitting,errors:me,touched:xe,status:Ee,values:ue,isValidating:!!re&&!!re.isValidating,submitCount:re&&re.submitCount&&typeof re.submitCount=="number"?re.submitCount:0}})};if(g.onReset){var $e=g.onReset(E.values,Q);_I($e)?$e.then(ke):ke()}else ke()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);l.useEffect(function(){S.current===!0&&!ic(m.current,g.initialValues)&&u&&(m.current=g.initialValues,D(),i&&P(m.current))},[u,g.initialValues,D,i,P]),l.useEffect(function(){u&&S.current===!0&&!ic(h.current,g.initialErrors)&&(h.current=g.initialErrors||nc,I({type:"SET_ERRORS",payload:g.initialErrors||nc}))},[u,g.initialErrors]),l.useEffect(function(){u&&S.current===!0&&!ic(b.current,g.initialTouched)&&(b.current=g.initialTouched||tv,I({type:"SET_TOUCHED",payload:g.initialTouched||tv}))},[u,g.initialTouched]),l.useEffect(function(){u&&S.current===!0&&!ic(x.current,g.initialStatus)&&(x.current=g.initialStatus,I({type:"SET_STATUS",payload:g.initialStatus}))},[u,g.initialStatus,g.initialTouched]);var O=zo(function(re){if(v.current[re]&&Ho(v.current[re].validate)){var ue=mo(E.values,re),me=v.current[re].validate(ue);return _I(me)?(I({type:"SET_ISVALIDATING",payload:!0}),me.then(function(xe){return xe}).then(function(xe){I({type:"SET_FIELD_ERROR",payload:{field:re,value:xe}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:re,value:me}}),Promise.resolve(me))}else if(g.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),R(E.values,re).then(function(xe){return xe}).then(function(xe){I({type:"SET_FIELD_ERROR",payload:{field:re,value:mo(xe,re)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),k=l.useCallback(function(re,ue){var me=ue.validate;v.current[re]={validate:me}},[]),N=l.useCallback(function(re){delete v.current[re]},[]),A=zo(function(re,ue){I({type:"SET_TOUCHED",payload:re});var me=ue===void 0?a:ue;return me?P(E.values):Promise.resolve()}),L=l.useCallback(function(re){I({type:"SET_ERRORS",payload:re})},[]),j=zo(function(re,ue){var me=Ho(re)?re(E.values):re;I({type:"SET_VALUES",payload:me});var xe=ue===void 0?n:ue;return xe?P(me):Promise.resolve()}),F=l.useCallback(function(re,ue){I({type:"SET_FIELD_ERROR",payload:{field:re,value:ue}})},[]),B=zo(function(re,ue,me){I({type:"SET_FIELD_VALUE",payload:{field:re,value:ue}});var xe=me===void 0?n:me;return xe?P(_c(E.values,re,ue)):Promise.resolve()}),z=l.useCallback(function(re,ue){var me=ue,xe=re,Ee;if(!RI(re)){re.persist&&re.persist();var ke=re.target?re.target:re.currentTarget,$e=ke.type,Le=ke.name,je=ke.id,He=ke.value,Be=ke.checked,Pe=ke.outerHTML,Se=ke.options,Ne=ke.multiple;me=ue||Le||je,xe=/number|range/.test($e)?(Ee=parseFloat(He),isNaN(Ee)?"":Ee):/checkbox/.test($e)?Bze(mo(E.values,me),Be,He):Se&&Ne?Fze(Se):He}me&&B(me,xe)},[B,E.values]),U=zo(function(re){if(RI(re))return function(ue){return z(ue,re)};z(re)}),H=zo(function(re,ue,me){ue===void 0&&(ue=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:re,value:ue}});var xe=me===void 0?a:me;return xe?P(E.values):Promise.resolve()}),K=l.useCallback(function(re,ue){re.persist&&re.persist();var me=re.target,xe=me.name,Ee=me.id,ke=me.outerHTML,$e=ue||xe||Ee;H($e,!0)},[H]),Y=zo(function(re){if(RI(re))return function(ue){return K(ue,re)};K(re)}),ee=l.useCallback(function(re){Ho(re)?I({type:"SET_FORMIK_STATE",payload:re}):I({type:"SET_FORMIK_STATE",payload:function(){return re}})},[]),ae=l.useCallback(function(re){I({type:"SET_STATUS",payload:re})},[]),W=l.useCallback(function(re){I({type:"SET_ISSUBMITTING",payload:re})},[]),q=zo(function(){return I({type:"SUBMIT_ATTEMPT"}),P().then(function(re){var ue=re instanceof Error,me=!ue&&Object.keys(re).length===0;if(me){var xe;try{if(xe=J(),xe===void 0)return}catch(Ee){throw Ee}return Promise.resolve(xe).then(function(Ee){return S.current&&I({type:"SUBMIT_SUCCESS"}),Ee}).catch(function(Ee){if(S.current)throw I({type:"SUBMIT_FAILURE"}),Ee})}else if(S.current&&(I({type:"SUBMIT_FAILURE"}),ue))throw re})}),Z=zo(function(re){re&&re.preventDefault&&Ho(re.preventDefault)&&re.preventDefault(),re&&re.stopPropagation&&Ho(re.stopPropagation)&&re.stopPropagation(),q().catch(function(ue){console.warn("Warning: An unhandled error was caught from submitForm()",ue)})}),Q={resetForm:D,validateForm:P,validateField:O,setErrors:L,setFieldError:F,setFieldTouched:H,setFieldValue:B,setStatus:ae,setSubmitting:W,setTouched:A,setValues:j,setFormikState:ee,submitForm:q},J=zo(function(){return d(E.values,Q)}),ie=zo(function(re){re&&re.preventDefault&&Ho(re.preventDefault)&&re.preventDefault(),re&&re.stopPropagation&&Ho(re.stopPropagation)&&re.stopPropagation(),D()}),le=l.useCallback(function(re){return{value:mo(E.values,re),error:mo(E.errors,re),touched:!!mo(E.touched,re),initialValue:mo(m.current,re),initialTouched:!!mo(b.current,re),initialError:mo(h.current,re)}},[E.errors,E.touched,E.values]),fe=l.useCallback(function(re){return{setValue:function(me,xe){return B(re,me,xe)},setTouched:function(me,xe){return H(re,me,xe)},setError:function(me){return F(re,me)}}},[B,H,F]),te=l.useCallback(function(re){var ue=Um(re),me=ue?re.name:re,xe=mo(E.values,me),Ee={name:me,value:xe,onChange:U,onBlur:Y};if(ue){var ke=re.type,$e=re.value,Le=re.as,je=re.multiple;ke==="checkbox"?$e===void 0?Ee.checked=!!xe:(Ee.checked=!!(Array.isArray(xe)&&~xe.indexOf($e)),Ee.value=$e):ke==="radio"?(Ee.checked=xe===$e,Ee.value=$e):Le==="select"&&je&&(Ee.value=Ee.value||[],Ee.multiple=!0)}return Ee},[Y,U,E.values]),se=l.useMemo(function(){return!ic(m.current,E.values)},[m.current,E.values]),pe=l.useMemo(function(){return typeof s<"u"?se?E.errors&&Object.keys(E.errors).length===0:s!==!1&&Ho(s)?s(g):s:E.errors&&Object.keys(E.errors).length===0},[s,se,E.errors,g]),he=oa({},E,{initialValues:m.current,initialErrors:h.current,initialTouched:b.current,initialStatus:x.current,handleBlur:Y,handleChange:U,handleReset:ie,handleSubmit:Z,resetForm:D,setErrors:L,setFormikState:ee,setFieldTouched:H,setFieldValue:B,setFieldError:F,setStatus:ae,setSubmitting:W,setTouched:A,setValues:j,submitForm:q,validateForm:P,validateField:O,isValid:pe,dirty:se,unregisterField:N,registerField:k,getFieldProps:te,getFieldMeta:le,getFieldHelpers:fe,validateOnBlur:a,validateOnChange:n,validateOnMount:i});return he}function mZ(e){var t=Dze(e),n=e.component,r=e.children,a=e.render,o=e.innerRef;return l.useImperativeHandle(o,function(){return t}),l.createElement(Nze,{value:t},n?l.createElement(n,t):a?a(t):r?Ho(r)?r(t):Aze(r)?null:l.Children.only(r):null)}function Pze(e){var t={};if(e.inner){if(e.inner.length===0)return _c(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var o;if(n){if(r>=a.length)break;o=a[r++]}else{if(r=a.next(),r.done)break;o=r.value}var i=o;mo(t,i.path)||(t=_c(t,i.path,i.message))}}return t}function Lze(e,t,n,r){n===void 0&&(n=!1);var a=X_(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function X_(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||fB(a)?X_(a):a!==""?a:void 0}):fB(e[r])?t[r]=X_(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function jze(e,t,n){var r=e.slice();return t.forEach(function(o,i){if(typeof r[i]>"u"){var s=n.clone!==!1,c=s&&n.isMergeableObject(o);r[i]=c?V_(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[i]=V_(e[i],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function Fze(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Bze(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),a=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,o).concat(r.slice(o+1)):r}var zze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect;function zo(e){var t=l.useRef(e);return zze(function(){t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{r.initialValue=r.value,r.initialOverlayed=r.overlayed!==void 0?r.overlayed:void 0,r.overlayId=n}),this.settings=t}addListener(t){this.listeners.find(n=>n===t)||this.listeners.push(t)}removeListener(t){this.listeners.filter(n=>n!==t)}addIdListener(t,n){this.idListeners.find(r=>r.listener===t)||this.listeners.push(t)}removeIdListener(t){this.idListeners.filter(n=>n.listener!==t)}callAllListeners(){this.listeners.forEach(t=>t())}async saveAll(){const t=async()=>{await $I.apiTriggerWriteConfigGet()},n=this.settings.map(async r=>{if(r.initialValue!==r.value||r.initialOverlayed!==r.overlayed)return this.saveSingleSetting(r)});try{await Promise.all(n),await t(),this.settings.forEach(r=>{r.initialValue=r.value,r.initialOverlayed=r.overlayed!==void 0?r.overlayed:void 0}),this.unsavedChanges=!1,this.callAllListeners()}catch(r){this.addNotification(dt.Error,Tt("settings.errorWhileSavingConfig"),Tt("settings.errorWhileSavingConfigDetails")+r,Tt("settings.navigationTitle"))}}saveSingleSetting(t){try{const n=t.overlayId!==void 0&&t.overlayed===!1;return $I.apiPostTeddyCloudSetting(t.iD,t.value,t.overlayId,n).then(()=>{this.addNotification(dt.Success,Tt("settings.saved"),n?Tt("settings.resetToTCDetails",{setting:t.label,overlay:t.overlayId!==void 0?` [${t.overlayId}]`:""}):Tt("settings.saveDetails",{setting:t.label,overlay:t.overlayId!==void 0?` [${t.overlayId}]`:""}),t.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))}).then(()=>{t.iD==="cloud.enabled"&&this.setFetchCloudStatus&&this.setFetchCloudStatus(r=>!r)}).catch(r=>{this.addNotification(dt.Error,Tt("settings.errorWhileSavingConfig")+t.label,Tt("settings.errorWhileSavingConfigDetails")+r,t.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))})}catch(n){return this.addNotification(dt.Error,Tt("settings.errorWhileSavingConfig")+t.label,Tt("settings.errorWhileSavingConfigDetails")+n,t.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle")),Promise}}resetAll(){this.settings.forEach(t=>{t.value=t.initialValue??"",t.overlayed=t.initialOverlayed!==void 0?t.initialOverlayed:void 0}),this.unsavedChanges=!1,this.callAllListeners(),this.idListeners.forEach(t=>t.listener())}getSetting(t){return this.settings.find(n=>n.iD===t)}changeSetting(t,n,r){const a=this.settings.find(o=>o.iD===t);a?typeof a.initialValue==typeof n?(a.value=n,a.initialValue===a.value?(this.unsavedChanges=!1,this.settings.forEach(o=>{o.initialValue!==o.value&&(this.unsavedChanges=!0),o.initialOverlayed!==o.overlayed&&(this.unsavedChanges=!0)})):this.unsavedChanges=!0,this.idListeners.filter(o=>o.iD===t).forEach(o=>{o.listener()}),this.callAllListeners()):console.warn("The type of newValue and initialValue for '"+t+"' do not match! Omitting."):console.warn("Unknown setting '"+t+"' to be changed. Omitting.")}changeSettingOverlayed(t,n){const r=this.settings.find(a=>a.iD===t);r?(r.overlayed=n,n===!1&&(()=>{try{$I.apiGetTeddyCloudSettingRaw(t).then(o=>o.text()).then(o=>{let i;r.type==="bool"?i=o==="true":r.type==="uint"?(i=parseInt(o,10),isNaN(i)&&(console.warn(`Expected a number for setting type "uint", but got "${o}". Defaulting to 0.`),i=0)):i=o,this.changeSetting(t,i,n)}).catch(o=>{this.addNotification(dt.Error,Tt("settings.errorFetchingFieldValue"),Tt("settings.errorFetchingFieldValueDetails",{setting:r.label,overlay:r.overlayId!==void 0?` [${r.overlayId}]`:""})+o,r.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))})}catch(o){this.addNotification(dt.Error,Tt("settings.errorFetchingFieldValue"),Tt("setting.errorFetchingFieldValueDetails",{setting:r.label,overlay:r.overlayId!==void 0?` [${r.overlayId}]`:""})+o,r.overlayId===void 0?Tt("settings.navigationTitle"):Tt("tonieboxes.navigationTitle"))}})(),r.initialOverlayed===r.overlayed?(this.unsavedChanges=!1,this.settings.forEach(a=>{a.initialValue!==a.value&&(this.unsavedChanges=!0),a.initialOverlayed!==a.overlayed&&(this.unsavedChanges=!0)})):this.unsavedChanges=!0,this.idListeners.filter(a=>a.iD===t).forEach(a=>{a.listener()}),this.callAllListeners()):console.warn("Unknown setting '"+t+"' to be changed. Omitting.")}};ja(Uo,"instance");let bn=Uo;const Uze=e=>{var v;const{t}=Nt(),{name:n,label:r,description:a,overlayed:o}=e,[i,s]=Qk(n),[c,u]=l.useState(o),[d,p]=l.useState((v=bn.getInstance().getSetting(n))==null?void 0:v.value),g=()=>{var y,w;p((y=bn.getInstance().getSetting(n))==null?void 0:y.value),u(c!==void 0?(w=bn.getInstance().getSetting(n))==null?void 0:w.overlayed:void 0)};bn.getInstance().addIdListener(g,n);const m=!!(s.touched&&s.error),h=s.touched&&s.error&&t(s.error),b=s.touched&&s.error?"error":void 0;let x=d==null?void 0:d.toString();const S=[c===void 0?null:f.jsx(ts,{checked:c,onChange:y=>{var w;bn.getInstance().changeSettingOverlayed(n,y.target.checked),u((w=bn.getInstance().getSetting(n))==null?void 0:w.overlayed)},children:t("settings.overlayed")},"overlayCheckBox")];return f.jsx(Om,{help:m?h:void 0,validateStatus:b,label:r,tooltip:a,children:f.jsx(Jt,{...i,value:x,onChange:y=>{var w;bn.getInstance().changeSetting(n,y.target.value,c),p((w=bn.getInstance().getSetting(n))==null?void 0:w.value)},...c!==void 0?{addonAfter:S}:null,disabled:!c&&c!==void 0})})},FB=e=>{var v;const{t}=Nt(),{name:n,label:r,description:a,overlayed:o}=e,[i,s]=Qk(n),[c,u]=l.useState(o),[d,p]=l.useState((v=bn.getInstance().getSetting(n))==null?void 0:v.value),g=()=>{var y,w;p((y=bn.getInstance().getSetting(n))==null?void 0:y.value),u(c!==void 0?(w=bn.getInstance().getSetting(n))==null?void 0:w.overlayed:void 0)};bn.getInstance().addIdListener(g,n);const m=!!(s.touched&&s.error),h=s.touched&&s.error&&t(s.error),b=s.touched&&s.error?"error":void 0;let x=d;const S=[c===void 0?null:f.jsx(ts,{checked:c,onChange:y=>{var w;bn.getInstance().changeSettingOverlayed(n,y.target.checked),u((w=bn.getInstance().getSetting(n))==null?void 0:w.overlayed)},children:t("settings.overlayed")},"overlayCheckBox")];return f.jsx(Om,{help:m?h:void 0,validateStatus:b,label:r,tooltip:a,children:f.jsx(gq,{...i,value:x,onChange:y=>{var w;bn.getInstance().changeSetting(n,y??0,c),p((w=bn.getInstance().getSetting(n))==null?void 0:w.value)},...c!==void 0?{addonAfter:S}:null,disabled:!c&&c!==void 0})})},Vze=e=>{var S;const{t}=Nt(),{name:n,label:r,description:a,overlayed:o}=e,[i,s]=Qk(n),[c,u]=l.useState(o),[d,p]=l.useState((S=bn.getInstance().getSetting(n))==null?void 0:S.value),g=!!(s.touched&&s.error),m=s.touched&&s.error&&t(s.error),h=s.touched&&s.error?"error":void 0,b=()=>{var v,y;p((v=bn.getInstance().getSetting(n))==null?void 0:v.value),u(c!==void 0?(y=bn.getInstance().getSetting(n))==null?void 0:y.overlayed:void 0)};bn.getInstance().addIdListener(b,n);let x=d;return f.jsxs(Om,{help:g?m:void 0,validateStatus:h,label:r,tooltip:a,children:[f.jsx(Xa,{...i,checked:x,onChange:v=>{var y;bn.getInstance().changeSetting(n,v,c),p((y=bn.getInstance().getSetting(n))==null?void 0:y.value)},disabled:!c&&c!==void 0}),c===void 0?"":f.jsx(ts,{checked:c,style:{marginLeft:"16px"},onChange:v=>{var y;bn.getInstance().changeSettingOverlayed(n,v.target.checked),u((y=bn.getInstance().getSetting(n))==null?void 0:y.overlayed)},children:t("settings.overlayed")},"overlayCheckBox")]})},hZ=e=>{const{iD:t}=e,n=bn.getInstance().getSetting(e.iD),r=e.noOverlay||n==null?void 0:n.overlayed;if(n!==void 0){const{type:a,label:o,description:i}=n;return f.jsxs("div",{children:[a==="bool"&&f.jsx(Vze,{name:t,label:o,description:i,overlayed:r,overlayId:e.overlayId}),a==="int"&&f.jsx(FB,{name:t,label:o,description:i,overlayed:r,overlayId:e.overlayId}),a==="uint"&&f.jsx(FB,{name:t,label:o,description:i,overlayed:r,overlayId:e.overlayId}),a==="string"&&f.jsx(Uze,{name:t,label:o,description:i,overlayed:e.noOverlay||n==null?void 0:n.overlayed,overlayId:e.overlayId})]},t)}else return console.warn("No option found for iD ",t),f.jsx(f.Fragment,{})},vZ=({onClose:e})=>{const[t,n]=l.useState(0);l.useEffect(()=>{const a=()=>{n(i=>i+1)},o=bn.getInstance();return o.addListener(a),()=>{o.resetAll(),o.removeListener(a)}},[]);const r=!bn.getInstance().hasUnchangedChanges();return f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[f.jsx(tt,{disabled:r,onClick:()=>bn.getInstance().resetAll(),children:Tt("settings.discard")}),f.jsx(tt,{disabled:r,type:"primary",onClick:()=>bn.getInstance().saveAll(),children:Tt("settings.save")}),e?f.jsx(tt,{onClick:()=>{bn.getInstance().resetAll(),e()},children:Tt("settings.close")}):""]})},nv=new Dn(On()),{useToken:Wze}=kr,Gze=()=>{var S;const{t:e}=Nt(),{token:t}=Wze(),{addNotification:n,setFetchCloudStatus:r}=Qn(),[a,o]=l.useState(),[i,s]=l.useState(51),[c,u]=l.useState(!0),[d,p]=l.useState(""),[g,m]=l.useState(!0);bn.initialize(n,e,r),l.useEffect(()=>{(async()=>{try{const y=await nv.apiGetTeddyCloudSettingRaw("core.settings_level");if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);const w=await y.json();p(w.toString())}catch(y){console.error("Error fetching settings level: ",y)}})()},[]),l.useEffect(()=>{if(!d)return;d&&(async()=>{var w,C;m(!0);const y=await nv.apiGetIndexGet("");(w=y==null?void 0:y.options)!=null&&w.length&&((C=y==null?void 0:y.options)==null?void 0:C.length)>0&&(o(y),bn.getInstance().initializeSettings(y.options,void 0)),m(!1)})()},[d]);const h=async()=>{try{await nv.apiTriggerWriteConfigGet()}catch(v){n(dt.Error,e("settings.errorWhileSavingConfig"),e("settings.errorWhileSavingConfigDetails")+v,e("tonieboxes.navigationTitle"))}},b=async v=>{try{await nv.apiPostTeddyCloudSetting("core.settings_level",v),h(),p(v)}catch(y){n(dt.Error,e("settings.errorWhileSavingConfig"),e("settings.errorWhileSavingConfigDetails")+y,e("tonieboxes.navigationTitle"))}};l.useEffect(()=>{const v=document.querySelector("footer"),y=()=>{v&&s(v.offsetHeight||0);const C=window.scrollY,E=window.innerHeight,I=document.documentElement.scrollHeight;C+E>=I-20?u(!1):u(!0)};let w=null;return v&&(s(v.offsetHeight||0),w=new ResizeObserver(C=>{for(let E of C){const I=E.target;I===v&&s(I.offsetHeight)}y()}),w.observe(v)),window.addEventListener("scroll",y),window.addEventListener("resize",y),y(),()=>{window.removeEventListener("scroll",y),window.removeEventListener("resize",y),w&&w.disconnect()}},[]);const x=f.jsx("div",{style:{position:"sticky",bottom:i-1,padding:"16px 0",marginBottom:-24,backgroundColor:t.colorBgContainer,zIndex:501},id:"save-panel",className:"sticky-save-panel",children:f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:[f.jsx("div",{style:{padding:8,fontSize:"smaller",color:t.colorTextDescription},children:c&&e("settings.keepScrolling")}),f.jsx(vZ,{})]})});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(jm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.title")}),f.jsx(Sn,{message:e("settings.information"),description:f.jsxs("div",{children:[e("settings.hint")," ",f.jsx(it,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0}),f.jsx(Sn,{message:e("settings.warning"),description:f.jsx("div",{children:e("settings.warningHint")}),type:"info",showIcon:!0,style:{margin:"8px 0"}}),f.jsx(Wn,{children:e("settings.title")}),g?f.jsx(su,{}):f.jsx(mZ,{initialValues:{test:"test"},onSubmit:v=>{},children:f.jsx(Gt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(S=a==null?void 0:a.options)==null?void 0:S.map((v,y,w)=>{if(v.iD.includes("core.settings_level"))return null;const C=v.iD.split("."),E=w[y-1]?w[y-1].iD.split("."):[];return f.jsxs(de.Fragment,{children:[C.slice(0,-1).map((I,T)=>E[T]!==I?T===0?f.jsxs("h3",{style:{marginLeft:`${T*20}px`,marginBottom:"10px"},children:["Category ",I]},`category-${I}`):f.jsxs("h4",{style:{marginLeft:`${T*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",I]},`category-${I}`):null),f.jsx(hZ,{noOverlay:!0,iD:v.iD})]},y)})})}),f.jsx(Wn,{children:e("settings.levelLabel")}),f.jsxs(Co.Group,{value:d,onChange:v=>b(v.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:g||bn.getInstance().hasUnchangedChanges(),children:[f.jsx(Co.Button,{value:"1",children:"Basic"},"1"),f.jsx(Co.Button,{value:"2",children:"Detail"},"2"),f.jsx(Co.Button,{value:"3",children:"Expert"},"3")]}),x]})]})]})},BB=new Dn(On()),Jk=({overlay:e})=>{const{t}=Nt(),{addNotification:n,setFetchCloudStatus:r}=Qn(),a=async i=>{const s=new FormData;s.append("file",i);const c={filename:[s.get("file")]},u=async()=>{await BB.apiTriggerWriteConfigGet()};(async p=>{try{await BB.apiUploadCertPost(p,e);try{u()}catch(g){n(dt.Error,t("settings.errorWhileSavingConfig"),t("settings.errorWhileSavingConfigDetails")+g,t(e?"tonieboxes.navigationTitle":"settings.navigationTitle"))}n(dt.Success,t("settings.certificates.uploadSuccessful"),t("settings.certificates.uploadSuccessfulDetails",{filename:i.name}),t(e?"tonieboxes.navigationTitle":"settings.navigationTitle")),r(g=>!g)}catch(g){n(dt.Error,t("settings.certificates.uploadFailed"),t("settings.certificates.uploadFailedDetails",{filename:i.name})+": "+g,t(e?"tonieboxes.navigationTitle":"settings.navigationTitle"))}})(c)},o={name:"file",multiple:!0,beforeUpload:i=>i.type!=="application/x-x509-ca-cert"&&!i.name.endsWith(".der")?(n(dt.Error,t("settings.certificates.uploadFailed"),t("settings.certificates.uploadFailedDetails",{filename:i.name})+": "+t("settings.certificates.invalidFileType"),t(e?"tonieboxes.navigationTitle":"settings.navigationTitle")),Bd.LIST_IGNORE):!0,customRequest:async i=>{const{onSuccess:s,onError:c,file:u}=i;try{await a(u),s("Ok")}catch(d){c(d)}},onChange(i){const{status:s}=i.file;s!=="uploading"&&console.log(i.file,i.fileList)},onDrop(i){console.log("Dropped files",i.dataTransfer.files)}};return f.jsxs(Bd.Dragger,{...o,children:[f.jsx("p",{className:"ant-upload-drag-icon",children:f.jsx(FN,{})}),f.jsx("p",{className:"ant-upload-text",children:t("settings.certificates.uploadText")}),f.jsx("p",{className:"ant-upload-hint",children:t("settings.certificates.uploadHint")})]})},qze=()=>{const{t:e}=Nt(),{Paragraph:t}=xn;return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(jm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")},{title:e("settings.certificates.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.certificates.title")}),f.jsx(t,{children:f.jsx(Sn,{message:e("settings.certificates.information"),description:f.jsxs("div",{children:[e("settings.certificates.hint")," ",f.jsx(it,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0})}),f.jsx(t,{children:f.jsx(Jk,{})})]})]})]})};var qo=(e=>(e.unknown="UNKNOWN",e.cc3200="CC3200",e.cc3235="CC3235",e.esp32="ESP32",e))(qo||{});const rv=new Dn(On()),{useToken:Kze}=kr,Yze=({overlay:e,onClose:t})=>{var v;const{t:n}=Nt(),{token:r}=Kze(),{addNotification:a}=Qn(),[o,i]=l.useState(),[s,c]=l.useState(""),[u,d]=l.useState(!0),[p,g]=l.useState(!0),[m,h]=l.useState(0);bn.initialize(a,n),l.useEffect(()=>{const y=()=>h(C=>C+1),w=bn.getInstance();return w.addListener(y),()=>{w.removeListener(y)}},[]),l.useEffect(()=>{(async()=>{try{const w=await rv.apiGetTeddyCloudSettingRaw("core.settings_level");if(!w.ok)throw new Error(`HTTP error! status: ${w.status}`);const C=await w.json();c(C.toString())}catch(w){console.error("Error fetching settings level: ",w)}})()},[]),l.useEffect(()=>{if(!s)return;s&&(async()=>{var C,E;d(!0);const w=await rv.apiGetIndexGet(e);(C=w==null?void 0:w.options)!=null&&C.length&&((E=w==null?void 0:w.options)==null?void 0:E.length)>0&&(i(w),bn.getInstance().initializeSettings(w.options,e)),d(!1)})()},[s]),l.useEffect(()=>{if(u)return;const y=document.querySelector(".ant-modal-wrap.overlay-"+e.toUpperCase());if(y){const w=()=>{g(y.scrollTop+y.clientHeight{y.removeEventListener("scroll",w),window.removeEventListener("resize",w)}}},[u]);const b=async()=>{try{await rv.apiTriggerWriteConfigGet()}catch(y){a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+y,n("tonieboxes.navigationTitle"))}},x=async y=>{try{await rv.apiPostTeddyCloudSetting("core.settings_level",y),b(),c(y)}catch(w){a(dt.Error,n("settings.errorSettingSettingsLevel"),n("settings.errorSettingSettingsLevelDetails")+w,n("tonieboxes.navigationTitle"))}},S=f.jsx("div",{style:{position:"sticky",bottom:0,padding:"16px 0",marginBottom:8,backgroundColor:r.colorBgElevated,zIndex:501},id:"save-panel",className:"sticky-save-panel",children:f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:[f.jsx("div",{style:{padding:8,fontSize:"smaller",color:r.colorTextDescription},children:p&&n("settings.keepScrolling")}),f.jsx(vZ,{onClose:t})]})});return f.jsxs(f.Fragment,{children:[f.jsx(Sn,{message:n("settings.warning"),description:f.jsx("div",{children:n("settings.warningHint")}),type:"info",showIcon:!0,style:{margin:"8px"}}),f.jsx(Wn,{children:n("settings.title")}),u?f.jsx(su,{}):f.jsxs(f.Fragment,{children:[f.jsx(mZ,{initialValues:{test:"test"},onSubmit:y=>{},children:f.jsx(Gt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(v=o==null?void 0:o.options)==null?void 0:v.map((y,w,C)=>{if(y.iD.includes("core.settings_level")||!y.iD.includes("core.certdir")&&!y.iD.includes("core.client_cert.")&&!y.iD.includes("core.flex_")&&!y.iD.includes("core.contentdir")&&!y.iD.includes("toniebox.")&&!y.iD.includes("cloud.enabled")&&!y.iD.includes("cloud.enableV1Claim")&&!y.iD.includes("cloud.enableV1CloudReset")&&!y.iD.includes("cloud.enableV1FreshnessCheck")&&!y.iD.includes("cloud.enableV1Log")&&!y.iD.includes("cloud.enableV1Time")&&!y.iD.includes("cloud.enableV1Ota")&&!y.iD.includes("cloud.enableV2Content")&&!y.iD.includes("cloud.cacheOta")&&!y.iD.includes("cloud.localOta")&&!y.iD.includes("cloud.cacheContent")&&!y.iD.includes("cloud.cacheToLibrary")&&!y.iD.includes("cloud.markCustomTagByPass")&&!y.iD.includes("cloud.prioCustomContent")&&!y.iD.includes("cloud.updateOnLowerAudioId")&&!y.iD.includes("cloud.dumpRuidAuthContentJson"))return null;const E=y.iD.split("."),I=C[w-1]?C[w-1].iD.split("."):[];return f.jsxs(de.Fragment,{children:[E.slice(0,-1).map((T,R)=>I[R]!==T?R===0?f.jsxs("h3",{style:{marginLeft:`${R*20}px`,marginBottom:"10px"},children:["Category ",T]},`category-${T}`):f.jsxs("h4",{style:{marginLeft:`${R*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",T]},`category-${T}`):null),f.jsx(hZ,{iD:y.iD,overlayId:e})]},w)})})}),f.jsx(Wn,{children:n("settings.levelLabel")}),f.jsxs(Co.Group,{value:s,onChange:y=>x(y.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:u||bn.getInstance().hasUnchangedChanges(),children:[f.jsx(Co.Button,{value:"1",children:"Basic"}),f.jsx(Co.Button,{value:"2",children:"Detail"}),f.jsx(Co.Button,{value:"3",children:"Expert"})]}),S]})]})},zB=new Dn(On());function bZ(){const[e,t]=l.useState([]),[n,r]=l.useState(!0);return l.useEffect(()=>{async function a(){var o=[];r(!0);try{const c=await(await zB.apiGetTeddyCloudApiRaw("/api/tonieboxesJson")).json();o=[...o,...c]}catch(s){console.error("Error fetching and transforming toniebox data:",s)}try{const c=await(await zB.apiGetTeddyCloudApiRaw("/api/tonieboxesCustomJson")).json();o=[...o,...c]}catch(s){console.error("Error fetching and transforming custom toniebox data:",s)}const i=o.map(s=>({id:s.id,name:s.name,img_src:s.img_src,crop:s.crop||null}));t(i),r(!1)}a()},[]),{boxModelImages:e,loading:n}}const HB="/web/assets/unknown_box-xU178mnG.png",$a=new Dn(On()),{Paragraph:OI,Text:Xze}=xn,{Meta:Zze}=nu,{useToken:Qze}=kr,Jze=({tonieboxCard:e,tonieboxImages:t})=>{var Me,Ge,st,ge;const{t:n}=Nt(),{token:r}=Qze(),{addNotification:a,addLoadingNotification:o,closeLoadingNotification:i}=Qn(),s=dr.language,[c,u]=l.useState(!1),[d,p]=l.useState(""),[g,m]=l.useState(""),[h,b]=l.useState(""),[x,S]=l.useState(!1),[v,y]=l.useState(null),[w,C]=l.useState(),[E,I]=l.useState(!1),[T,R]=l.useState(!1),[_,$]=l.useState(!1),[M,P]=l.useState(e.boxModel),[D,O]=l.useState(e.boxModel),[k,N]=l.useState(e.boxName),[A,L]=l.useState(e.boxName),[j,F]=l.useState(null),[B,z]=l.useState(!1),[U,H]=l.useState(!0),[K,Y]=l.useState(0);l.useEffect(()=>{(async()=>{const ve=await $a.apiGetTonieboxApiAccess(e.ID);H(ve)})()},[e.ID,E]),l.useEffect(()=>{(async()=>{const Ue=await $a.apiGetTonieboxStatus(e.ID);u(Ue)})(),(async()=>{const Ue=await $a.apiGetTonieboxVersion(e.ID),Ae={0:qo.unknown,1:qo.cc3200,2:qo.cc3235,3:qo.esp32};if(Ue in Ae){const Oe=Ae[Ue];p(Oe)}else p(qo.unknown)})(),(async()=>{const Ue=await $a.apiGetTonieboxLastRUID(e.ID);if(Ue!=="ffffffffffffffff"&&Ue!==""){const Ae=await $a.apiGetTonieboxLastRUIDTime(e.ID);(async()=>{const Re=await $a.apiGetTagIndex(e.ID);q(Re.filter(at=>at.ruid===Ue),Ae)})()}})(),c||(async()=>{const Ae=await $a.apiGetLastOnline(e.ID);m(Ae)})(),(async()=>{const Ae=await(await $a.apiGetTeddyCloudSettingRaw("internal.ip",e.ID)).text();b(Ae)})(),W(e.boxModel),O(e.boxModel)},[e.ID,e.boxModel,s]),l.useEffect(()=>{if(h&&d===qo.cc3200)try{fetch(`http://${h}/api/ajax?cmd=box-battery&sub=stats`).then(ne=>ne.text()).then(ne=>{console.log("Battery Stats fetched --> assume CFW active"),S(!0)}).catch(ne=>{console.log("No Battery Stats fetched --> assume CFW not active"),S(!1)})}catch{console.log("No Battery Stats fetched --> assume CFW not active"),S(!1)}},[h,d]);const ee=bZ(),ae=[{label:n("tonieboxes.editModelModal.unsetBoxName"),value:"-1"}].concat(ee.boxModelImages.map(ne=>({label:ne.name,value:ne.id}))),W=ne=>{const ve=t.find(_e=>_e.id===ne);F(ve?f.jsx("img",{src:ve.img_src,alt:"",style:{...me(ne),position:"absolute",top:"0",left:"0"}}):f.jsx(Ft,{title:f.jsxs(f.Fragment,{children:[n("tonieboxes.modelHint.text")," ",f.jsx(Ml,{onClick:()=>pe()},"edit")," ",n("tonieboxes.modelHint.action"),"!"]}),placement:"bottom",children:f.jsx("img",{src:HB,alt:"",style:{width:"100%",height:"auto",position:"absolute",top:"0",left:"0"}})}))},q=(ne,ve)=>{y(f.jsx(f.Fragment,{children:f.jsx(it,{to:"/tonies?tonieRUID="+ne[0].ruid+"&overlay="+e.ID,children:f.jsx(Ft,{placement:"top",zIndex:2,title:n("tonieboxes.lastPlayedTonie")+ne[0].tonieInfo.series+(ne[0].tonieInfo.episode?" - "+ne[0].tonieInfo.episode:"")+(ve?" ("+ve+")":""),children:f.jsx("img",{src:ne[0].tonieInfo.picture,alt:"Tonie",style:{position:"absolute",bottom:0,right:0,zIndex:1,padding:8,borderRadius:4,height:"60%"}})})})}))},Z=()=>{(async()=>{var _e,ze;const ve=await $a.apiGetIndexGet(e.ID);(_e=ve==null?void 0:ve.options)!=null&&_e.length&&((ze=ve==null?void 0:ve.options)==null?void 0:ze.length)>0&&C(ve)})(),Q()},Q=()=>{R(!0)},J=async()=>{R(!1)},ie=()=>{R(!1)},le=()=>{I(!0)},fe=async()=>{I(!1)},te=()=>{I(!1)},se=()=>{Y(ne=>ne+1),le()},pe=()=>{O(D===void 0?M:D),$(!0)},he=()=>{O(M),L(A),N(A),$(!1)},re=async()=>{W(D),P(D);const ne=async()=>{await $a.apiTriggerWriteConfigGet()};try{$a.apiPostTeddyCloudSetting("boxModel",D,e.ID).then(()=>{ne()}).then(()=>{a(dt.Success,n("tonieboxes.editModelModal.successOnModelChange"),n("tonieboxes.editModelModal.successOnModelChangeDetails",{model:D,mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(ve=>{a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+ve,n("tonieboxes.navigationTitle"))})}catch(ve){a(dt.Error,n("tonieboxes.editModelModal.errorOnModelChange"),n("tonieboxes.editModelModal.errorOnModelChangeDetails",{mac:e.ID,error:ve}),n("tonieboxes.navigationTitle"))}},ue=async()=>{L(k);const ne=async()=>{await $a.apiTriggerWriteConfigGet()};try{$a.apiPostTeddyCloudSetting("boxName",k.toString(),e.ID).then(()=>{ne()}).then(()=>{a(dt.Success,n("tonieboxes.editModelModal.successOnNameChange"),n("tonieboxes.editModelModal.successOnNameChangeDetails",{name:k,mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(ve=>{a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+ve,n("tonieboxes.navigationTitle"))})}catch(ve){a(dt.Error,n("tonieboxes.editModelModal.errorOnNameChange"),n("tonieboxes.editModelModal.errorOnNameChangeDetails",{mac:e.ID,error:ve}),n("tonieboxes.navigationTitle"))}},me=ne=>{const ve=t.find(_e=>_e.id===ne);if(ve&&ve.crop){const[_e,ze,Ue]=ve.crop;return{width:"100%",height:"auto",transform:`scale(${Ue}) translateX(${_e}px) translateY(${ze}px)`}}else return{width:"100%",height:"auto"}},xe=()=>e.ID.replace(/(.{2})(?=.)/g,"$1:"),Ee=async()=>{$(!1),k!==A&&await ue(),M!==D&&await re()},ke=f.jsx(f.Fragment,{children:f.jsxs(tt,{type:"primary",onClick:Ee,disabled:k===A&&M===D,children:[f.jsx(vK,{},"saveClick")," ",n("tonies.editModal.save")]})}),$e=f.jsxs(_n,{title:f.jsx(f.Fragment,{children:f.jsxs("h3",{children:[n("tonieboxes.editModelModal.editModel",{name:e.boxName}),f.jsx("br",{}),f.jsx(Xze,{type:"secondary",children:(d!=="UNKNOWN"?d:"MAC")+": "+xe()})]})}),open:_,footer:ke,onCancel:he,children:[f.jsx(Wn,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.name")}),f.jsx(OI,{children:f.jsx(Jt,{name:"boxName",value:k,onChange:ne=>N(ne.target.value),addonBefore:f.jsx(Qb,{onClick:()=>N(A),style:{color:k===A?r.colorTextDisabled:r.colorText,cursor:k===A?"default":"pointer"}})})}),f.jsx(Wn,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.model")}),f.jsx(OI,{children:f.jsx(cr,{options:ae,value:D,onChange:ne=>O(ne)})})]}),Le=f.jsxs(_n,{title:n("tonieboxes.uploadTonieboxCertificatesModal.uploadTonieboxCertificates",{name:e.boxName}),open:T,onOk:J,onCancel:ie,children:[f.jsxs(OI,{children:[n("tonieboxes.uploadTonieboxCertificatesModal.uploadPath")," ",f.jsx("i",{children:(Ge=(Me=w==null?void 0:w.options)==null?void 0:Me.find(ne=>ne.iD==="core.certdir"))==null?void 0:Ge.value})," ",f.jsx("small",{children:(ge=(st=w==null?void 0:w.options)==null?void 0:st.find(ne=>ne.iD==="core.certdir"))!=null&&ge.overlayed?n("tonieboxes.uploadTonieboxCertificatesModal.boxSpecific"):n("tonieboxes.uploadTonieboxCertificatesModal.AttentionGeneralPath")})]}),f.jsx(Jk,{overlay:e.ID})]}),je=f.jsx(_n,{title:n("tonieboxes.editTonieboxSettingsModal.editTonieboxSettings",{name:e.boxName}),width:"auto",open:E,onOk:fe,onCancel:te,footer:null,wrapClassName:"overlay-"+e.ID,children:f.jsx(Yze,{onClose:te,overlay:e.ID},K)}),He=()=>{const ne="loading"+e.ID;try{o(ne,n("tonieboxes.messages.deleting"),n("tonieboxes.messages.deletingDetails",{mac:e.ID})),$a.apiPostTeddyCloudRaw("/api/settings/removeOverlay?overlay="+e.ID).then(ve=>ve.text()).then(ve=>{i(ne),ve==="OK"?(a(dt.Success,n("tonieboxes.messages.deleteSuccessful"),n("tonieboxes.messages.deleteSuccessfulDetails",{mac:e.ID}),n("tonieboxes.navigationTitle")),window.location.reload()):a(dt.Error,n("tonieboxes.messages.deleteFailed"),n("tonieboxes.messages.deleteFailedDetails",{mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(ve=>{i(ne),a(dt.Error,n("tonieboxes.messages.deleteFailed"),n("tonieboxes.messages.deleteFailedDetails",{mac:e.ID})+": "+ve,n("tonieboxes.navigationTitle"))})}catch(ve){i(ne),a(dt.Error,n("tonieboxes.messages.deleteFailed"),n("tonieboxes.messages.deleteFailedDetails",{mac:e.ID})+": "+ve,n("tonieboxes.navigationTitle"))}},Be=()=>{z(!0)},Pe=()=>{He(),z(!1)},Se=()=>{z(!1)},Ne=f.jsx(Gd,{title:n("tonieboxes.confirmDeleteModal"),open:B,okText:n("tonieboxes.delete"),cancelText:n("tonieboxes.cancel"),content:n("tonieboxes.confirmDeleteDialog",{tonieboxToDelete:A}),handleOk:Pe,handleCancel:Se}),Te=async()=>{try{await $a.apiTriggerWriteConfigGet()}catch(ne){a(dt.Error,n("settings.errorWhileSavingConfig"),n("settings.errorWhileSavingConfigDetails")+ne,n("tonieboxes.navigationTitle"))}},we=async()=>{try{$a.apiPostTeddyCloudSetting("toniebox.api_access",!U,e.ID).then(()=>{Te(),H(!U),U?a(dt.Success,n("tonieboxes.messages.apiAccessDisabled"),n("tonieboxes.messages.apiAccessDisabledDetails",{mac:e.ID}),n("tonieboxes.navigationTitle")):a(dt.Success,n("tonieboxes.messages.apiAccessEnabled"),n("tonieboxes.messages.apiAccessEnabledDetails",{mac:e.ID}),n("tonieboxes.navigationTitle"))}).catch(ne=>{throw new Error(ne.status+" "+ne.statusText)})}catch(ne){a(dt.Error,n("tonieboxes.messages.apiAccessNotChangedError"),n("tonieboxes.messages.apiAccessNotChangedErrorDetails",{mac:e.ID})+ne,n("tonieboxes.navigationTitle"))}};return f.jsxs(f.Fragment,{children:[f.jsx(nu,{hoverable:!1,size:"default",style:{background:r.colorBgContainerDisabled,cursor:"default"},title:f.jsx("span",{children:A}),cover:f.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:[v,f.jsx("img",{src:HB,alt:"",style:{position:"relative",filter:"opacity(0)",width:"100%",height:"auto"}}),j]}),actions:[f.jsx(f.Fragment,{children:U?c?f.jsx(Ft,{title:n("tonieboxes.online"),children:f.jsx(b_,{style:{color:"green",cursor:"default"}})}):f.jsx(Ft,{title:n("tonieboxes.offline")+(g?" - "+n("tonieboxes.lastOnline")+": "+g:""),children:f.jsx(b_,{style:{color:r.colorTextDescription,cursor:"default"}})}):f.jsx(Ft,{title:n("tonieboxes.accessApiDisabled"),children:f.jsx(gK,{style:{color:"red",cursor:"pointer"},onClick:we})})}),f.jsx(Ml,{onClick:()=>pe()},"edit"),f.jsx(BN,{style:{marginRight:8},onClick:Z},"certificate"),f.jsx(zN,{style:{marginRight:8},onClick:se},"edit"),f.jsx(Al,{style:{marginRight:8},onClick:Be},"delete")],children:f.jsx(Zze,{description:[(d!=="UNKNOWN"&&d!==void 0&&d!==null?d:"MAC")+" ",x?f.jsx(Ft,{title:n("tonieboxes.linkToBoxCFW"),children:f.jsxs(it,{to:"http://"+h,target:"_blank",children:[xe()," ",f.jsx(w2e,{})]})}):xe()]})}),je,Le,$e,Ne]})},e9e=({tonieboxCards:e})=>{const{t}=Nt(),{addNotification:n}=Qn(),r=bZ();if(l.useEffect(()=>{!r.loading&&r.boxModelImages.length===0&&n(dt.Error,t("settings.notifications.error"),t("tonieboxes.errorFetchingModels"),t("tonieboxes.navigationTitle"))},[r.loading,r.boxModelImages.length]),r.loading)return f.jsx(su,{});const a=()=>f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:f.jsxs("div",{children:[f.jsx("p",{children:t("tonieboxes.noData")}),f.jsx("p",{children:t("tonieboxes.noDataText")})]})});return f.jsx(Er,{grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:3,xxl:4},dataSource:e,renderItem:o=>f.jsx(Er.Item,{id:o.ID,children:f.jsx(Jze,{tonieboxCard:o,tonieboxImages:r.boxModelImages})}),locale:{emptyText:a()}})},UB=new Dn(On()),t9e=()=>{const{t:e}=Nt(),{addNotification:t}=Qn(),[n,r]=l.useState([]),[a,o]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const u=await UB.apiGetTonieboxesIndex();r(u)}catch(u){t(dt.Error,e("tonieboxes.errorFetchingTonieboxes"),e("tonieboxes.errorFetchingTonieboxes")+": "+u,e("tonieboxes.navigationTitle"))}})(),(async()=>{try{const u=await UB.apiGetNewBoxesAllowed();o(u)}catch(u){t(dt.Error,e("settings.errorFetchingSetting"),e("settings.errorFetchingSettingDetails",{setting:"core.allowNewBox"})+u,e("tonieboxes.navigationTitle"))}})()},[]);const i=a?f.jsx(Sn,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}):"";return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.title")}),i,f.jsx(e9e,{tonieboxCards:n})]})]})]})},n9e=new Dn(On()),{Paragraph:qs}=xn,{useToken:r9e}=kr,a9e=()=>{const{t:e}=Nt(),{token:t}=r9e(),{addNotification:n}=Qn(),[r,a]=l.useState(!0),[o,i]=l.useState([]),s=[{id:"cc3200",url:"https://forum.revvox.de/t/teddycloud-cc3200-newbie-guide/925/1",title:"TeddyCloud CC3200 Newbie HowTo"},{id:"cc3235",url:"https://forum.revvox.de/t/teddycloud-cc3235-newbie-howto/899/1",title:"TeddyCloud CC3235 Newbie HowTo"},{id:"esp32",url:"https://forum.revvox.de/t/teddycloud-esp32-newbie-documentation-deprecated/112/1",title:"TeddyCloud ESP32 Newbie HowTo"}],c=async()=>{const d=await Promise.all(s.map(async({id:p,url:g,title:m})=>{try{if((await fetch(g,{method:"HEAD",mode:"no-cors"})).status===0)return{id:p,url:g,title:m}}catch{}return null}));i(d.filter(p=>p!==null))};l.useEffect(()=>{c()},[]),l.useEffect(()=>{(async()=>{try{const p=await n9e.apiGetNewBoxesAllowed();a(p)}catch(p){n(dt.Error,e("settings.errorFetchingSetting"),e("settings.errorFetchingSettingDetails",{setting:"core.allowNewBox"})+p,e("tonieboxes.navigationTitle"))}})()},[]);const u=[{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.setupTeddyCloud")}),f.jsx(qs,{children:e("tonieboxes.boxSetup.setupTeddyCloudText")}),f.jsx("ul",{children:f.jsxs("li",{children:[f.jsxs(it,{to:"#",onClick:()=>z_(!0),children:[e("tonieboxes.downloadC2DerFile")," (CC3200)"]})," ","|"," ",f.jsxs(it,{to:"#",onClick:()=>z_(!1),children:[e("tonieboxes.downloadCADerFile")," (CC3235, ESP32)"]})]})})]}),dot:f.jsx(h_,{}),color:t.colorSuccess,style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.identifyTonieboxVersion")}),f.jsx(qs,{children:e("tonieboxes.boxSetup.identifyTonieboxVersionText")}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx(it,{to:"/tonieboxes/boxsetup/boxversioninfo",children:e("tonieboxes.boxSetup.boxVersion.title")})}),f.jsx("li",{children:f.jsx(it,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.openBoxGuide.title")})}),f.jsx("li",{children:f.jsx(it,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyTonieboxVersion")})})]})]}),dot:f.jsx(xm,{}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.flashBox")}),f.jsx(qs,{children:e("tonieboxes.boxSetup.flashBoxText")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx(it,{to:"/tonieboxes/boxsetup/esp32/flashing",children:"ESP32"}),f.jsx("ul",{style:{marginBottom:0},children:f.jsx("li",{children:f.jsx(it,{to:"/tonieboxes/boxsetup/esp32/legacy",children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})})]}),f.jsx("li",{children:f.jsx(it,{to:"/tonieboxes/boxsetup/cc3200/flashing",children:"CC3200"})}),f.jsx("li",{children:f.jsx(it,{to:"/tonieboxes/boxsetup/cc3235/flashing",children:"CC3235"})})]}),o.length>0&&f.jsxs(qs,{children:[f.jsx(qs,{children:e("tonieboxes.boxSetup.newbieGuides")}),f.jsx("ul",{children:o.map(({id:d,url:p,title:g})=>f.jsx("li",{children:f.jsx("a",{href:p,target:"_blank",children:g})},d))})]})]}),dot:f.jsx(gp,{}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.useIt")}),f.jsx(qs,{children:e("tonieboxes.boxSetup.useItText")})]}),dot:f.jsx(bK,{}),style:{paddingBottom:8}}];return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.title")}),!r&&f.jsx(Sn,{type:"warning",showIcon:!0,message:e("tonieboxes.noNewBoxesAllowed"),description:e("tonieboxes.noNewBoxesAllowedText"),style:{marginBottom:16}}),f.jsx(Sn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")}),f.jsxs(qs,{style:{marginTop:16},children:[e("tonieboxes.boxSetup.boxSetupIntro1")," ",f.jsx(it,{to:hd,target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroForum")})," ",e("tonieboxes.boxSetup.boxSetupIntro2")," ",f.jsx(it,{to:uk,target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroTelegram")})," ",e("tonieboxes.boxSetup.boxSetupIntro3")]}),f.jsx(qs,{style:{marginTop:16},children:f.jsx(ek,{items:u})})," "]})]})]})},{Paragraph:Ks,Title:VB}=xn,o9e=()=>{const{t:e}=Nt(),t=[{name:"V1/V2 CC3200",pros:[e("tonieboxes.boxSetup.boxVersion.cc3200pro1"),e("tonieboxes.boxSetup.boxVersion.cc3200pro2"),e("tonieboxes.boxSetup.boxVersion.cc3200pro3"),e("tonieboxes.boxSetup.boxVersion.cc3200pro4"),e("tonieboxes.boxSetup.boxVersion.cc3200pro5")],cons:[e("tonieboxes.boxSetup.boxVersion.cc3200con1")]},{name:"V3 CC3235",pros:[],cons:[e("tonieboxes.boxSetup.boxVersion.cc3235con1"),e("tonieboxes.boxSetup.boxVersion.cc3235con2"),e("tonieboxes.boxSetup.boxVersion.cc3235con3")]},{name:"V4 ESP32",pros:[e("tonieboxes.boxSetup.boxVersion.esp32pro1"),e("tonieboxes.boxSetup.boxVersion.esp32pro2"),e("tonieboxes.boxSetup.boxVersion.esp32pro3")],cons:[e("tonieboxes.boxSetup.boxVersion.esp32con1"),e("tonieboxes.boxSetup.boxVersion.esp32con2")]}],n=({versions:r})=>f.jsx(la,{gutter:16,justify:"start",children:r.map((a,o)=>f.jsx(Cn,{xs:24,md:12,xl:8,children:f.jsxs(nu,{title:a.name,size:"small",bordered:!0,style:{marginBottom:8},children:[f.jsx(VB,{level:5,style:{marginTop:0},children:e("tonieboxes.boxSetup.boxVersion.pros")}),a.pros.length>0?f.jsx(Er,{dataSource:a.pros,renderItem:i=>f.jsxs(Er.Item,{style:{flexWrap:"nowrap",alignItems:"flex-start"},children:[f.jsx(df,{style:{color:"green",marginRight:8,marginTop:4}}),f.jsx(Ks,{style:{marginBottom:0,textAlign:"right"},children:i})]})}):f.jsx(Er.Item,{children:f.jsx(Ks,{style:{marginBottom:0,textAlign:"center"},children:e("tonieboxes.boxSetup.boxVersion.emptyPros")})}),f.jsx(VB,{level:5,style:{marginTop:0},children:e("tonieboxes.boxSetup.boxVersion.cons")}),a.cons.length>0?f.jsx(Er,{dataSource:a.cons,renderItem:i=>f.jsxs(Er.Item,{style:{flexWrap:"nowrap",alignItems:"flex-start"},children:[f.jsx(ga,{style:{color:"red",marginRight:8,marginTop:4}}),f.jsx(Ks,{style:{marginBottom:0,textAlign:"right"},children:i})]})}):f.jsx(Er.Item,{children:f.jsx(Ks,{style:{marginBottom:0,textAlign:"center"},children:e("tonieboxes.boxSetup.boxVersion.emptyCons")})})]})},o))});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.boxVersion.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.boxVersion.title")}),f.jsxs(Ks,{children:[e("tonieboxes.boxSetup.boxVersion.intro"),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("b",{children:"V1/V2"}),": ",e("tonieboxes.boxSetup.boxVersion.uses")," TI CC3200"]}),f.jsxs("li",{children:[f.jsx("b",{children:"V3"}),": ",e("tonieboxes.boxSetup.boxVersion.uses")," TI CC3235"]}),f.jsxs("li",{children:[f.jsx("b",{children:"V4"}),": ",e("tonieboxes.boxSetup.boxVersion.uses")," ESP32"]})]})]}),f.jsx("h3",{children:e("tonieboxes.boxSetup.boxVersion.whatVersion")}),f.jsx(Ks,{children:e("tonieboxes.boxSetup.boxVersion.whatVersionIntro")}),f.jsx(n,{versions:t}),f.jsx("h4",{children:e("tonieboxes.boxSetup.boxVersion.whatVersionConclusionHeader")}),f.jsx(Ks,{children:e("tonieboxes.boxSetup.boxVersion.whatVersionConclusion")}),f.jsx("h3",{children:e("tonieboxes.boxSetup.boxVersion.howToIdentify")}),f.jsxs(Ks,{children:[e("tonieboxes.boxSetup.boxVersion.howToIdentifyIntro"),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("b",{children:e("tonieboxes.boxSetup.boxVersion.countryOfManufacture")})," ",e("tonieboxes.boxSetup.boxVersion.countryOfManufactureText")]}),f.jsxs("li",{children:[f.jsx("b",{children:e("tonieboxes.boxSetup.boxVersion.macAddressCheck")})," ",e("tonieboxes.boxSetup.boxVersion.macAddressCheckText")]})]}),e("tonieboxes.boxSetup.boxVersion.howToIdentifyOutro")," ",f.jsx(it,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyTonieboxVersion")})]})]})]})]})},i9e="/web/assets/3235_pcb-BE0vs2bl.png",s9e="/web/assets/3235_pcb_preview-DkVKgZS0.png",l9e="/web/assets/3200_pcb-Dxz0Vi-z.png",c9e="/web/assets/3200_pcb_preview-BvQM-e4R.png",u9e="/web/assets/cc3200-B-jSkbsy.jpg",d9e="/web/assets/cc3235-Cr21bWbC.jpg",f9e="/web/assets/esp32_pcb-CWEYHEzm.png",p9e="/web/assets/esp32_pcb_preview-Bh1UGQPK.png",g9e="/web/assets/esp32-B_b6hCjy.jpg",{Paragraph:aa}=xn,{useToken:m9e}=kr,h9e=()=>{const{t:e}=Nt(),{token:t}=m9e(),n=Zc(),[r,a]=l.useState(""),[o,i]=l.useState(""),[s,c]=l.useState(null),[u,d]=l.useState(null),p=C=>C.replace(/[^a-zA-Z0-9-:]/g,"").trim(),g=async()=>{c(null),d(null);try{const C=await fetch(`https://api.macvendors.com/${encodeURIComponent(r)}`);if(!C.ok)throw new Error("MAC address not found or invalid");const E=await C.text();c(E)}catch(C){d(C.message)}},[m,h]=l.useState(s!=null&&s.toLowerCase().includes("espressif")?"esp32":"cc3200");l.useEffect(()=>{s!=null&&s.toLowerCase().includes("espressif")?h("esp32"):h("cc3200")},[s]);const b=f.jsxs(f.Fragment,{children:[f.jsx(aa,{children:e("tonieboxes.boxSetup.identifyVersion.cc3200text")}),f.jsx(aa,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsx(aa,{style:{maxWidth:400},children:f.jsx(dn,{src:l9e,alt:"PCB CC3200",placeholder:f.jsx(dn,{preview:!1,src:c9e})})}),f.jsx(aa,{style:{maxWidth:"100%"},children:f.jsx(dn,{src:u9e,style:{height:300,width:"auto"},alt:"Chip CC3200"})})]})})]}),x=f.jsxs(f.Fragment,{children:[f.jsx(aa,{children:e("tonieboxes.boxSetup.identifyVersion.cc3235text")}),f.jsx(aa,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsx(aa,{style:{maxWidth:400},children:f.jsx(dn,{src:i9e,alt:"PCB CC3235",placeholder:f.jsx(dn,{preview:!1,src:s9e})})}),f.jsx(aa,{style:{maxWidth:"100%"},children:f.jsx(dn,{src:d9e,style:{height:300,width:"auto"},alt:"Chip CC3235"})})]})})]}),S=f.jsxs(f.Fragment,{children:[f.jsx(aa,{children:e("tonieboxes.boxSetup.identifyVersion.esp32text")}),f.jsx(aa,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsx(aa,{style:{maxWidth:400},children:f.jsx(dn,{src:f9e,alt:"PCB ESP32",placeholder:f.jsx(dn,{preview:!1,src:p9e})})}),f.jsx(aa,{style:{maxWidth:"100%"},children:f.jsx(dn,{src:g9e,style:{height:300,width:"auto"},alt:"Chip ESP32"})})]})})]}),v=[{key:"cc3200",label:"CC3200",children:b},{key:"cc3235",label:"CC3235",children:x},{key:"esp32",label:"ESP32",children:S}],y=f.jsxs(f.Fragment,{children:[f.jsx(Ld,{activeKey:m,onChange:C=>h(C),defaultActiveKey:s!=null&&s.toLowerCase().includes("espressif")?"esp32":"cc3200",items:v.filter(C=>((s==null?void 0:s.toLowerCase().includes("texas"))||!s)&&C.key==="cc3200"||((s==null?void 0:s.toLowerCase().includes("texas"))||!s)&&C.key==="cc3235"||((s==null?void 0:s.toLowerCase().includes("espressif"))||!s)&&C.key==="esp32"),indicator:{size:C=>C-20,align:"center"}}),f.jsxs(aa,{children:[e("tonieboxes.boxSetup.identifyVersion.proceedToFlash1")," "]}),f.jsx(aa,{style:{marginTop:16},children:f.jsx(tt,{type:"primary",onClick:()=>n(`../tonieboxes/boxsetup/${m}/flashing`),children:`${m.toUpperCase()} ${e("tonieboxes.boxSetup.identifyVersion.proceedToFlashLinkText")}`})})]}),w=()=>{a(""),c(null),i(""),d(null)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.identifyVersion.title")}),f.jsxs(Gt,{children:[f.jsxs(aa,{children:[e("tonieboxes.boxSetup.identifyVersion.identifyUsingMac")," "]}),f.jsxs(Gt.Item,{children:[f.jsxs(la,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Cn,{style:{flex:"0 0 250px",color:o?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.boxSetup.identifyVersion.mac")})}),f.jsx(Cn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",value:r,onChange:C=>{let E=p(C.target.value),I="";E.length>17?I=e("tonieboxes.boxSetup.identifyVersion.boxMacTooLong"):I="",a(E),i(I)},addonBefore:f.jsx(ga,{onClick:w,style:{color:r?t.colorText:t.colorTextDisabled,cursor:r?"pointer":"default"}})})})]}),o&&f.jsx("p",{style:{color:"#CC3010"},children:o})]}),f.jsx(tt,{icon:f.jsx(PN,{}),disabled:r.length>17||r.length===0,type:"primary",onClick:g,children:e("tonieboxes.boxSetup.identifyVersion.identify")}),f.jsxs(aa,{style:{fontSize:"small",marginTop:16},children:[e("tonieboxes.boxSetup.identifyVersion.macvendors")," ",f.jsx(it,{to:"https://macvendors.com/",target:"_blank",children:e("tonieboxes.boxSetup.identifyVersion.macvendorsLink")})]})]}),s?f.jsxs(f.Fragment,{children:[f.jsx(Sn,{style:{marginTop:16},type:"success",description:f.jsxs(f.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.vendor"),": ",f.jsx("b",{children:s})," ",e("tonieboxes.boxSetup.identifyVersion.boxVersion"),s.includes("Espressif")?f.jsx("b",{children:" ESP32"}):f.jsxs(f.Fragment,{children:[f.jsx("b",{children:" CC3200"})," ",e("tonieboxes.boxSetup.identifyVersion.or"),f.jsx("b",{children:" CC3235"})]})," ",e("tonieboxes.boxSetup.identifyVersion.version"),"."]})}),s.toLowerCase().includes("texas")?f.jsx(aa,{style:{marginTop:16},children:e("tonieboxes.boxSetup.identifyVersion.tiInstruction")}):""]}):u?f.jsx(Sn,{style:{marginTop:16},type:"error",description:f.jsx(f.Fragment,{children:e("tonieboxes.boxSetup.identifyVersion.errorMac")})}):"",f.jsxs(aa,{style:{marginTop:16},children:[s?"":f.jsxs(f.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.generalInstruction1")," ",f.jsx(Ft,{title:e("tonieboxes.boxSetup.openBoxGuide.linkTooltip"),children:f.jsx(it,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.identifyVersion.generalInstructionLinkText")})})," ",e("tonieboxes.boxSetup.identifyVersion.generalInstruction2")]}),y]})]})]})]})},v9e="/web/assets/openTB_step1_1-4vwQGflo.png",b9e="/web/assets/openTB_step1_2-DIZc5DI4.png",y9e="/web/assets/openTB_step2-DhjDRq3m.png",x9e="/web/assets/openTB_step3-Dn6Mo3hQ.png",S9e="/web/assets/openTB_step4-Bj5i-Kw_.png",w9e="/web/assets/openTB_step5-DTGOEBgD.png",{Paragraph:ss}=xn;function C9e(){const{t:e}=Nt(),[t,n]=l.useState(!0),[r,a]=l.useState(500);l.useEffect(()=>{let i;return i=window.setInterval(()=>{n(s=>!s),a(s=>s===500?2e3:500)},r),()=>clearInterval(i)},[r]);const o=[{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step1")}),t?f.jsx(dn,{src:v9e,style:{maxWidth:350},alt:""}):f.jsx(dn,{src:b9e,style:{maxWidth:350},alt:""}),f.jsxs(ss,{style:{marginTop:16},children:[f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step1Text1")}),f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step1Text2")})]}),f.jsxs(ss,{children:[f.jsx(Xo,{})," ",e("tonieboxes.boxSetup.openBoxGuide.step1Text3")]})]})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step2")}),f.jsx(dn,{style:{maxWidth:350},src:y9e,alt:""}),f.jsx(ss,{style:{marginTop:16},children:f.jsx("ul",{children:f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step2Text")})})})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step3")}),f.jsx(dn,{style:{maxWidth:350},src:x9e,alt:""}),f.jsx(ss,{style:{marginTop:16},children:f.jsx("ul",{children:f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step3Text")})})})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step4")}),f.jsx(dn,{style:{maxWidth:350},src:S9e,alt:""}),f.jsx(ss,{style:{marginTop:16},children:f.jsx("ul",{children:f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step4Text")})})})]}),style:{paddingBottom:8}},{children:f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxSetup.openBoxGuide.step5")}),f.jsx(dn,{style:{maxWidth:350},src:w9e,alt:""}),f.jsx(ss,{style:{marginTop:16},children:f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step5Text1")}),f.jsx("li",{children:e("tonieboxes.boxSetup.openBoxGuide.step5Text2")})]})})]}),style:{paddingBottom:8}},{children:f.jsx(f.Fragment,{children:f.jsx(ss,{children:e("tonieboxes.boxSetup.openBoxGuide.finally")})}),dot:f.jsx(bK,{}),style:{paddingBottom:8}}];return f.jsxs(f.Fragment,{children:[f.jsx("h1",{children:e("tonieboxes.boxSetup.openBoxGuide.title")}),f.jsxs(ss,{style:{fontSize:"small"},children:[e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart1")," ",f.jsx(it,{to:e("tonieboxes.boxSetup.openBoxGuide.link1"),target:"_blank",children:"iFixit[1]"})," ",e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart2")," ",f.jsx(it,{to:e("tonieboxes.boxSetup.openBoxGuide.link2"),target:"_blank",children:"iFixit[2]"}),". ",e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart3")," ",f.jsx(it,{to:"https://www.ifixit.com/User/828031/Tobias+Isakeit",children:"Tobias Isakeit"})," ",e("tonieboxes.boxSetup.openBoxGuide.guideSourcePart4")," ",f.jsxs(it,{to:"https://creativecommons.org/licenses/by-nc-sa/3.0/",target:"_blank",children:[e("tonieboxes.boxSetup.openBoxGuide.guideSourceLicense"),"."]})]}),f.jsx(dn.PreviewGroup,{children:f.jsx(ek,{mode:"left",items:o})}),f.jsxs(ss,{children:[e("tonieboxes.boxSetup.openBoxGuide.alternativeGuidelineVideo")," ",f.jsx(it,{to:"https://www.youtube.com/watch?v=Cv9ID4-P6_A",target:"_blank",children:"https://www.youtube.com/watch?v=Cv9ID4-P6_A"})]})]})}const E9e=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}]}),f.jsx(Pn,{children:C9e()})]})]})},I9e="/web/assets/tb-esp32-uart-clamp-D_86EMpu.png",T9e="/web/assets/esp32_pcb_clamp-Cw2o3uco.png",R9e="/web/assets/tb-esp32-uart-BDPWj6EB.png",_9e="/web/assets/uart_3v3-5V_jumper_black-BW2kS97B.jpg",$9e="/web/assets/uart_3v3-5V_jumper_switch-Cl7yHFlu.jpg",O9e="/web/assets/uart_3v3-5V_jumper_yellow-d4JFD7jo.jpg",NI=new Dn(On());function yZ(){const{t:e}=Nt();return f.jsx(Sn,{type:"warning",showIcon:!0,message:e("tonieboxes.boxSetup.UARTHint.title"),description:f.jsxs(f.Fragment,{children:[e("tonieboxes.boxSetup.UARTHint.description"),f.jsxs("div",{style:{marginTop:"8px",display:"flex",gap:8},children:[f.jsx(dn,{src:_9e,preview:!1,alt:e("tonieboxes.boxSetup.UARTHint.imageAlt1"),style:{maxHeight:75}}),f.jsx(dn,{src:$9e,preview:!1,alt:e("tonieboxes.boxSetup.UARTHint.imageAlt2"),style:{maxHeight:75}}),f.jsx(dn,{src:O9e,preview:!1,alt:e("tonieboxes.boxSetup.UARTHint.imageAlt3"),style:{maxHeight:75}})]}),f.jsx("div",{style:{marginTop:"10px"},children:e("tonieboxes.boxSetup.UARTHint.warning")})]})})}const{Paragraph:rn}=xn;function xZ(){const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(rn,{children:yZ()}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.connectESP32Text1")}),f.jsx(rn,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:f.jsx(dn,{src:R9e,style:{height:200,width:"auto"},preview:!1,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103")})}),f.jsx("h5",{children:e("tonieboxes.connectESP32Modal.esp32UartJ103ClampTitle")}),f.jsx(rn,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsxs("div",{style:{maxWidth:200},children:[f.jsx(dn,{style:{height:200,width:"auto"},src:I9e,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")}),f.jsx(rn,{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")})]}),f.jsxs("div",{style:{maxWidth:200},children:[f.jsx(dn,{style:{height:200,width:"auto"},src:T9e,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")}),f.jsx(rn,{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")})]})]})}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp4PinHint")}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.connectESP32Text2")}),f.jsx(Sn,{type:"warning",message:e("tonieboxes.connectESP32Modal.beware"),description:e("tonieboxes.connectESP32Modal.warningText")}),f.jsx("h5",{children:e("tonieboxes.connectESP32Modal.normalMode")}),f.jsx(rn,{children:e("tonieboxes.connectESP32Modal.normalModeText")}),f.jsx(gn,{language:"shell",code:`ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee @@ -616,7 +616,7 @@ entry 0x403b61c4 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x0 (DOWNLOAD(USB/UART0)) waiting for download -J103 Pinout`})]})}function e3(e){const{t}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(rn,{children:t("tonieboxes.boxFlashingCommon.certificatesIntro")}),f.jsx(rn,{children:f.jsx(nt,{onClick:()=>z_(e),children:t(e?"tonieboxes.downloadC2DerFile":"tonieboxes.downloadCADerFile")})}),f.jsx("h4",{children:t("tonieboxes.boxFlashingCommon.dumpCertificates")}),f.jsx(rn,{children:t("tonieboxes.boxFlashingCommon.dumpCertificatesIntro1")}),f.jsx(rn,{children:t("tonieboxes.boxFlashingCommon.dumpCertificatesIntro2")})]})}function SZ(){const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.intro")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.installCC3200Tool.pythonText1"),f.jsx(ot,{to:"https://www.python.org/downloads/",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.pythonTextLink")}),e("tonieboxes.boxFlashingCommon.installCC3200Tool.pythonText2")]}),f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.installCC3200Tool.gitText1"),f.jsx(ot,{to:"https://git-scm.com/book/en/v2/Getting-Started-Installing-Git",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.gitTextLink")}),e("tonieboxes.boxFlashingCommon.installCC3200Tool.gitText2")]}),f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.installCC3200Tool.pipText1"),f.jsx(ot,{to:"https://pip.pypa.io/en/stable/installation/",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.pipTextLink")}),e("tonieboxes.boxFlashingCommon.installCC3200Tool.pipText2")]})]}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.text")}),f.jsx(rn,{children:f.jsx(gn,{language:"shell",code:"pip install git+git://github.com/toniebox-reverse-engineering/cc3200tool.git"})}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.textAlternatively")}),f.jsx(rn,{children:f.jsx(gn,{language:"shell",code:"pip install git+https://github.com/toniebox-reverse-engineering/cc3200tool.git"})}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.moreInformation")}),f.jsx(ot,{to:"https://github.com/toniebox-reverse-engineering/cc3200tool",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.link")})]})}function CZ(){const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.dnsHint")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.dnsText1")}),f.jsx(Cn,{type:"warning",showIcon:!0,message:e("tonieboxes.boxFlashingCommon.dnsBeware"),description:e("tonieboxes.boxFlashingCommon.dnsBewareText"),style:{marginBottom:16}}),f.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.alternativeDNSSolutions")}),f.jsx("h5",{children:e("tonieboxes.boxFlashingCommon.openWrt.usingOpenWrt")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.openWrt.dnsText2")}),f.jsx(rn,{children:f.jsx(gn,{language:"shell",code:`uci set dhcp.teddycloud="tag" +J103 Pinout`})]})}function e3(e){const{t}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(rn,{children:t("tonieboxes.boxFlashingCommon.certificatesIntro")}),f.jsx(rn,{children:f.jsx(tt,{onClick:()=>z_(e),children:t(e?"tonieboxes.downloadC2DerFile":"tonieboxes.downloadCADerFile")})}),f.jsx("h4",{children:t("tonieboxes.boxFlashingCommon.dumpCertificates")}),f.jsx(rn,{children:t("tonieboxes.boxFlashingCommon.dumpCertificatesIntro1")}),f.jsx(rn,{children:t("tonieboxes.boxFlashingCommon.dumpCertificatesIntro2")})]})}function SZ(){const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.intro")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.installCC3200Tool.pythonText1"),f.jsx(it,{to:"https://www.python.org/downloads/",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.pythonTextLink")}),e("tonieboxes.boxFlashingCommon.installCC3200Tool.pythonText2")]}),f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.installCC3200Tool.gitText1"),f.jsx(it,{to:"https://git-scm.com/book/en/v2/Getting-Started-Installing-Git",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.gitTextLink")}),e("tonieboxes.boxFlashingCommon.installCC3200Tool.gitText2")]}),f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.installCC3200Tool.pipText1"),f.jsx(it,{to:"https://pip.pypa.io/en/stable/installation/",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.pipTextLink")}),e("tonieboxes.boxFlashingCommon.installCC3200Tool.pipText2")]})]}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.text")}),f.jsx(rn,{children:f.jsx(gn,{language:"shell",code:"pip install git+git://github.com/toniebox-reverse-engineering/cc3200tool.git"})}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.textAlternatively")}),f.jsx(rn,{children:f.jsx(gn,{language:"shell",code:"pip install git+https://github.com/toniebox-reverse-engineering/cc3200tool.git"})}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.moreInformation")}),f.jsx(it,{to:"https://github.com/toniebox-reverse-engineering/cc3200tool",target:"_blank",children:e("tonieboxes.boxFlashingCommon.installCC3200Tool.link")})]})}function wZ(){const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.dnsHint")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.dnsText1")}),f.jsx(Sn,{type:"warning",showIcon:!0,message:e("tonieboxes.boxFlashingCommon.dnsBeware"),description:e("tonieboxes.boxFlashingCommon.dnsBewareText"),style:{marginBottom:16}}),f.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.alternativeDNSSolutions")}),f.jsx("h5",{children:e("tonieboxes.boxFlashingCommon.openWrt.usingOpenWrt")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.openWrt.dnsText2")}),f.jsx(rn,{children:f.jsx(gn,{language:"shell",code:`uci set dhcp.teddycloud="tag" uci set dhcp.teddycloud.dhcp_option="3,1.2.3.4" # 1.2.3.4=teddycloud ip uci add dhcp host @@ -625,11 +625,11 @@ uci set dhcp.@host[-1].mac="00:11:22:33:44:55" # toniebox mac uci set dhcp.@host[-1].ip="1.2.3.101" # toniebox_1 ip uci set dhcp.@host[-1].tag="teddycloud" uci commit dhcp -/etc/init.d/dnsmasq restart`})}),f.jsx("h5",{children:e("tonieboxes.boxFlashingCommon.adguard.usingAdGuard")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.setupInstructionsTitle")}),f.jsx("strong",{children:e("tonieboxes.boxFlashingCommon.adguard.prerequisitesTitle")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.adguard.adGuardRequirement"),f.jsx("ul",{style:{marginBottom:0},children:f.jsxs("li",{children:[" ",e("tonieboxes.boxFlashingCommon.adguard.moreInformation")," ",f.jsx(ot,{to:"https://adguard.com/",target:"_blank",children:"https://adguard.com/"})]})})]}),f.jsx("li",{children:e("tonieboxes.boxFlashingCommon.adguard.teddyCloudIp")}),f.jsx("li",{children:e("tonieboxes.boxFlashingCommon.adguard.tonieboxIp")})]}),f.jsx(rn,{children:f.jsx("strong",{children:e("tonieboxes.boxFlashingCommon.adguard.stepsTitle")})}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step1Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step1Instructions")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step2Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step2Instructions")}),f.jsx(gn,{language:"shell",code:`||prod.de.tbs.toys^$dnsrewrite=NOERROR;A;XXX.XXX.XXX.XXX,client=YYY.YYY.YYY.YYY -||rtnl.bxcl.de^$dnsrewrite=NOERROR;A;XXX.XXX.XXX.XXX,client=YYY.YYY.YYY.YYY`}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.explanationTitle")}),f.jsxs(rn,{children:[f.jsx("strong",{children:"||prod.de.tbs.toys^"}),": ",e("tonieboxes.boxFlashingCommon.adguard.prodDomainExplanation")]}),f.jsxs(rn,{children:[f.jsx("strong",{children:"$dnsrewrite=NOERROR;A;XXX.XXX.XXX.XXX"}),":"," ",e("tonieboxes.boxFlashingCommon.adguard.dnsRewriteExplanation")]}),f.jsxs(rn,{children:[f.jsx("strong",{children:"client=YYY.YYY.YYY.YYY"}),": ",e("tonieboxes.boxFlashingCommon.adguard.clientExplanation")]}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step3Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step3Instructions")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step4Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.ipReservationInstructions")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.loggingMonitoringInstructions")})]})}const gx=({boxVersion:e,isOpen:t,onClose:n})=>{const{t:r}=Nt(),[a,o]=l.useState([]),[i,s]=l.useState(!1),[c,u]=l.useState(!1);l.useEffect(()=>{t&&d()},[t,i]);const d=async()=>{u(!0);try{const h=await $I.apiGetTonieboxesIndex(),b=await Promise.all(h.map(async x=>{const v=await $I.apiGetTonieboxStatus(x.ID)?"Online":"Offline",y=await $I.apiGetTonieboxVersion(x.ID);let w={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"}[y]||"UNKNOWN";return{...x,status:v,version:w}}));o(b)}catch(h){console.error("Error fetching tonieboxes:",h)}finally{u(!1)}},p=[{title:r("tonieboxes.availableBoxModal.commonName"),dataIndex:"commonName",key:"commonName"},{title:r("tonieboxes.availableBoxModal.boxVersion"),dataIndex:"version",key:"version"},{title:r("tonieboxes.availableBoxModal.status"),dataIndex:"status",key:"status"}],g=f.jsxs(rn,{style:{display:"flex",gap:8,justifyContent:"flex-end",flexWrap:"wrap"},children:[f.jsx(nt,{onClick:async()=>{u(!0),s(h=>!h),await d()},children:r("tonieboxes.availableBoxModal.recheck")}),f.jsx(nt,{type:"primary",onClick:n,children:r("tonieboxes.availableBoxModal.ok")})]}),m=()=>f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:f.jsxs("div",{children:[f.jsx(rn,{children:r("tonieboxes.noData")}),f.jsx(rn,{children:r("tonieboxes.noDataText")})]})});return f.jsxs(Rn,{title:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e}),open:t,onOk:n,onCancel:n,footer:g,children:[f.jsxs(rn,{children:[f.jsx(rn,{children:r("tonieboxes.availableBoxModal.newBoxAvailable",{cc3200Hint:e===qo.cc3200?r("tonieboxes.availableBoxModal.cc3200Hint"):""})}),f.jsx(ot,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/test-troubleshooting/",target:"_blank",children:r("tonieboxes.availableBoxModal.troubleShooting")})]}),f.jsx("h4",{children:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e})}),c?f.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"20px"},children:f.jsx(vf,{size:"default"})}):f.jsx(ya,{dataSource:a.filter(h=>h.version===e),columns:p,rowKey:"ID",pagination:!1,locale:{emptyText:m()}}),a.filter(h=>h.version===e).length>0?f.jsxs(rn,{style:{marginTop:16},children:[r("tonieboxes.boxSetup.uploadCertificatesToBox"),f.jsx(ot,{to:"/tonieboxes",children:r("tonieboxes.navigationTitle")})]}):""]})},Z_=({})=>{const{t:e}=Nt(),[t,n]=l.useState(!1),r=()=>{n(!0)},a=()=>{n(!1)},o=f.jsx(Rn,{title:e("tonieboxes.boxSetup.uploadCertificates"),open:t,onCancel:a,footer:f.jsx(nt,{type:"primary",onClick:a,children:e("settings.close")}),cancelText:"Close",children:f.jsx(Jk,{})});return f.jsxs(f.Fragment,{children:[f.jsx(rn,{children:e("tonieboxes.boxSetup.uploadCertificateIntro")}),f.jsxs(rn,{children:[f.jsx(nt,{onClick:r,children:e("tonieboxes.boxSetup.uploadCertificateButton")}),o]})]})},N9e="/web/assets/cc3200_debugPort-CUfuhKbo.jpg",k9e="/web/assets/cc3200_tagConnector-C5CJTEin.png",A9e="/web/assets/cc3200_wiresAsTagConnector-BuyL-dME.png",M9e="/web/assets/cc3200_installCfwFlashUpload-D3jB7q0q.png",{Paragraph:Vt}=xn,{Step:D9e}=Ls,P9e=()=>{const{t:e}=Nt(),t=dr.language,[n,r]=l.useState(0),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState(!1),d=W=>W.replace(/[^a-zA-Z0-9-.]/g,"").trim(),p=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.cc3200BoxFlashing.bootloader")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.cc3200BoxFlashing.patches")},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}],g=[{key:"1",toniebox1:"GND",toniebox2:"",uart:"GND"},{key:"2",toniebox1:"TX",toniebox2:"",uart:"RX"},{key:"3",toniebox1:"RX",toniebox2:"",uart:"TX"},{key:"4",toniebox1:"RST",toniebox2:"",uart:"DTR"},{key:"5",toniebox1:"VCC",toniebox2:"SOP2*",uart:""},{key:"6",toniebox1:"SOP2",toniebox2:"VCC*",uart:""}],m=[{title:"Toniebox",dataIndex:"toniebox1",key:"toniebox1"},{title:"Toniebox",dataIndex:"toniebox2",key:"toniebox2"},{title:"UART",dataIndex:"uart",key:"uart"}],h=()=>f.jsx(ya,{dataSource:g,columns:m,pagination:!1,bordered:!0,size:"small",style:{width:300}}),b=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),f.jsx(Cn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),f.jsxs(Vt,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",f.jsx(ot,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),SZ(),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.connectToToniebox")}),f.jsx(Vt,{}),f.jsxs(Vt,{children:[e("tonieboxes.cc3200BoxFlashing.connectToTonieboxIntro"),f.jsx(Vt,{children:f.jsx(dn,{src:N9e,style:{maxHeight:200,width:"auto",marginTop:8},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")})}),f.jsx(Vt,{children:yZ()}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxConnectTableIntro")}),h()]}),f.jsxs(Vt,{children:[e("tonieboxes.cc3200BoxFlashing.connectToTonieboxConnectDebugPortText1"),f.jsx(ot,{to:"https://www.tag-connect.com/product/tc2050-idc-nl-10-pin-no-legs-cable-with-ribbon-connector",target:"_blank",children:"TC2050-IDC-NL TagConnector"}),e("tonieboxes.cc3200BoxFlashing.connectToTonieboxConnectDebugPortText2")]}),f.jsx(Vt,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsxs("div",{style:{maxHeight:200,justifyItems:"center"},children:[f.jsx(dn,{src:k9e,style:{maxWidth:200,height:"auto"},alt:e("tonieboxes.cc3200BoxFlashing.tagConnector")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3200BoxFlashing.tagConnector")})]}),f.jsxs("div",{style:{maxHeight:200,justifyItems:"center"},children:[f.jsx(dn,{src:A9e,style:{maxWidth:200,height:"auto"},alt:e("tonieboxes.cc3200BoxFlashing.usingThinWiresAsTagConnector")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3200BoxFlashing.usingThinWiresAsTagConnector")})]})]})}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxText")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxProceed")})]}),x=[{key:"/cert/ca.der",file:"/cert/ca.der",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.caDer")},{key:"/cert/private.der",file:"/cert/private.der",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.privateDer")},{key:"/cert/client.der",file:"/cert/client.der",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.clientDer")},{key:"/sys/mcuimg.bin",file:"/sys/mcuimg.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.originalBootloader")},{key:"/sys/mcuimg1.bin",file:"/sys/mcuimg1.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.firstSlot")},{key:"/sys/mcuimg2.bin",file:"/sys/mcuimg2.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.secondSlot")},{key:"/sys/mcuimg3.bin",file:"/sys/mcuimg3.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.thirdSlot")},{key:"/sys/mcubootinfo.bin",file:"/sys/mcubootinfo.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.mcuBootInfo")}],S=[{title:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.file"),dataIndex:"file",key:"file"},{title:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.description"),dataIndex:"description",key:"description"}],v=()=>f.jsx(ya,{dataSource:x,columns:S,pagination:!1}),y=f.jsxs(f.Fragment,{children:[f.jsx("b",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.moveOriginal")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.moveOriginalText1")}),f.jsxs(Vt,{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.moveOriginalText2"),f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 write_file ExtractedFromBox/sys/mcuimg.bin /sys/pre-img.bin"})]}),f.jsxs("b",{children:[" ",e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.installPreloader")]}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.installPreloaderText1")}),f.jsx(gn,{language:"shell",code:"c3200tool -p COM3 write_file flash/sys/mcuimg.bin /sys/mcuimg.bin"}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.installPreloaderText2")})]}),C=f.jsxs(f.Fragment,{children:[f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.intro")}),f.jsx("b",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.backup")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.backupText")}),f.jsx(gn,{language:"url",code:"http://*.*.*.*/api/ajax?cmd=get-flash-file&filepath=/sys/pre-img.bin"}),f.jsx("b",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloader")}),f.jsx(Vt,{children:f.jsx("div",{style:{maxHeight:400,justifyItems:"center"},children:f.jsx(dn,{src:M9e,style:{maxHeight:400,width:"auto",maxWidth:"100%"},alt:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.updatingCFWUsingOldCFWWebGui")})})}),f.jsx(Vt,{children:f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep1")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep2")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep3")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep4")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep5")})]})}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.outro")}),f.jsx(gn,{language:"url",code:"http://*.*.*.*/api/ajax?cmd=get-flash-file&filepath=/sys/mcuimg.bin"})]}),w=[{key:"firstTime",label:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.title"),children:y},{key:"updateExisting",label:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.title"),children:C}],E=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.bootloader")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.intro")}),f.jsx(Vt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_all_files ExtractedFromBox/ read_flash backup.bin"})}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.resetCommand")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.inCaseText")}),f.jsx(Vt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_all_files ExtractedFromBox/ "})}),f.jsx(Vt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_flash backup.bin"})}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.verifyBackup")}),f.jsx(Vt,{children:v()}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.installBootloader")}),f.jsxs(Vt,{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.downloadText1"),f.jsx(ot,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/releases",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.downloadLink")}),e("tonieboxes.cc3200BoxFlashing.installingBootloader.downloadText2")]}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.preface.title")}),f.jsxs(Vt,{children:[f.jsxs(Vt,{children:[" ",e("tonieboxes.cc3200BoxFlashing.installingBootloader.preface.intro")]}),f.jsx(Vt,{children:f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage1"),f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.title")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.title")})]})]}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage2")})]})})]}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage1")}),f.jsx(Ld,{items:w,indicator:{size:W=>W-20,align:"center"}}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage2")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.intro")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.text1")}),f.jsxs(Vt,{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.text2"),f.jsx(ot,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/bootloader/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.here")}),"."]})]}),I=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),f.jsx(Vt,{children:e3(!0)}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.certificates.alreadyAvailable")}),f.jsx(Vt,{children:f.jsx(gn,{language:"shell",code:"/currentDir/ExtractedFromBox/cert/."})}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.certificates.extractAgain")}),f.jsx(Vt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_file /cert/ca.der ExtractedFromBox/cert/ca.der read_file /cert/private.der ExtractedFromBox/cert/private.der read_file /cert/client.der ExtractedFromBox/cert/client.der"})}),f.jsx(Vt,{children:f.jsx(Z_,{})}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacement")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementIntro")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementText")}),f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 write_file server/ca.der /cert/c2.der"}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementOutro")})]}),T=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.patches")}),f.jsx(ot,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.patchesMoreInformationLink")}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.customUrlPatch")}),f.jsx(Cn,{description:e("tonieboxes.cc3200BoxFlashing.customUrlPatchHint"),type:"warning",style:{marginBottom:8}}),f.jsxs(Kt,{children:[f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.hintPatchHost")}),f.jsxs(Kt.Item,{children:[f.jsxs(Oa,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Nn,{style:{flex:"0 0 200px",color:i?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.cc3200BoxFlashing.hostname")})}),f.jsx(Nn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",value:a,onChange:W=>{let q=d(W.target.value),Z="";q.length>12?Z=e("tonieboxes.cc3200BoxFlashing.hostnameTooLong"):Z="",o(q),s(Z)}})})]}),i&&f.jsx("p",{style:{color:"#CC3010"},children:i})]})]})]}),R=[{key:"1",keyName:"activeImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.activeImgDesc"),values:"ofw1, ofw2, ofw3, cfw1, cfw2, cfw3, add1, add2, add3",defaultValue:"ofw1"},{key:"2",keyName:"waitForPress",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForPressDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"waitForBoot",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForBootDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"waitTimeoutInS",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitTimeoutInSDesc"),values:"1-255",defaultValue:"60"},{key:"5",keyName:"minBatteryLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.minBatteryLevelDesc"),values:"",defaultValue:"8869"},{key:"6",keyName:"ofwFixValue",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixValueDesc"),values:"hex array with 4 bytes",defaultValue:'["4C", "01", "10", "00"]'},{key:"7",keyName:"ofwFixFlash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixFlashDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"serialLog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.serialLogDesc"),values:"true, false",defaultValue:"true"},{key:"9",keyName:"logLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logLevelDesc"),values:"0-5",defaultValue:"DEBUG_LOG_LEVEL"},{key:"10",keyName:"logColor",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logColorDesc"),values:"true, false",defaultValue:"false"}],_=[{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.key"),dataIndex:"keyName",key:"keyName",width:120},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.description"),dataIndex:"description",key:"description"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.values"),dataIndex:"values",key:"values"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.default"),dataIndex:"defaultValue",key:"defaultValue"}],$=[{key:"1",keyName:"checkHash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.checkHashDesc"),values:"true, false",defaultValue:"true"},{key:"2",keyName:"hashFile",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.hashFileDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"watchdog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.watchdogDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"ofwFix",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixDesc"),values:"true, false",defaultValue:"false"},{key:"5",keyName:"ofwSimBL",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwSimBLDesc"),values:"true, false",defaultValue:"false"},{key:"6",keyName:"bootFlashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.bootFlashImgDesc"),values:"true, false",defaultValue:"false"},{key:"7",keyName:"flashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.flashImgDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"patches",description:f.jsxs(f.Fragment,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchesDesc")," ",f.jsx(ot,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/tree/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/patch",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchDirectory")}),", ",f.jsx(ot,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchWiki")})]}),values:'["noCerts.305", "noPass3.305"]',defaultValue:"[]"}],M={general:{activeImg:"ofw2",_descWaitForPress:"Waits for an earpress on startup",waitForPress:!1,_descWaitForBoot:"Waits for an earpress before firmware boot",waitForBoot:!1,waitTimeoutInS:60,_descMinBatteryLevel:"Divide through 2785 to get voltage",minBatteryLevel:8869,ofwFixFlash:"/sys/pre-img.bin",_descSerialLog:"Logging only works with the debug build!",serialLog:!1,_descLogLevel:"0:Trace - 5:Fatal",logLevel:0,_descLogColor:"Use colors in log output",logColor:!1},ofw1:{checkHash:!1,hashFile:!1,watchdog:!0,bootFlashImg:!0,flashImg:"/sys/pre-img.bin"},ofw2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!0,patches:["altCa.305","altUrl.custom.305"]},ofw3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,patches:["altCa.305","altUrl.tc.fritz.box"]},cfw1:{checkHash:!1,hashFile:!1,watchdog:!0},cfw2:{checkHash:!1,hashFile:!1,watchdog:!0},cfw3:{checkHash:!1,hashFile:!1,watchdog:!0},add1:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["blockCheck.310","noCerts.305","noPass3.310","noPrivacy.305","uidCheck.307"]},add2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]},add3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]}},P=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesWithNgCfgJson")}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.introduction")}),f.jsx(Rs,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.collapseTitle"),children:f.jsxs(Vt,{children:[f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.title")}),f.jsxs(Vt,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part1")," ",f.jsx(ot,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/blob/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/ngCfg.json",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_link")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part2")]}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part3")}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.generalSection")}),f.jsx(ya,{dataSource:R,columns:_,pagination:!1,size:"small"}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSection")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSectionIntro"),f.jsx(ya,{dataSource:$,columns:_,pagination:!1,size:"small"})]})}],style:{marginBottom:16}}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part1")}),f.jsx(gn,{language:"json",code:`{ +/etc/init.d/dnsmasq restart`})}),f.jsx("h5",{children:e("tonieboxes.boxFlashingCommon.adguard.usingAdGuard")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.setupInstructionsTitle")}),f.jsx("strong",{children:e("tonieboxes.boxFlashingCommon.adguard.prerequisitesTitle")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.boxFlashingCommon.adguard.adGuardRequirement"),f.jsx("ul",{style:{marginBottom:0},children:f.jsxs("li",{children:[" ",e("tonieboxes.boxFlashingCommon.adguard.moreInformation")," ",f.jsx(it,{to:"https://adguard.com/",target:"_blank",children:"https://adguard.com/"})]})})]}),f.jsx("li",{children:e("tonieboxes.boxFlashingCommon.adguard.teddyCloudIp")}),f.jsx("li",{children:e("tonieboxes.boxFlashingCommon.adguard.tonieboxIp")})]}),f.jsx(rn,{children:f.jsx("strong",{children:e("tonieboxes.boxFlashingCommon.adguard.stepsTitle")})}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step1Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step1Instructions")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step2Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step2Instructions")}),f.jsx(gn,{language:"shell",code:`||prod.de.tbs.toys^$dnsrewrite=NOERROR;A;XXX.XXX.XXX.XXX,client=YYY.YYY.YYY.YYY +||rtnl.bxcl.de^$dnsrewrite=NOERROR;A;XXX.XXX.XXX.XXX,client=YYY.YYY.YYY.YYY`}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.explanationTitle")}),f.jsxs(rn,{children:[f.jsx("strong",{children:"||prod.de.tbs.toys^"}),": ",e("tonieboxes.boxFlashingCommon.adguard.prodDomainExplanation")]}),f.jsxs(rn,{children:[f.jsx("strong",{children:"$dnsrewrite=NOERROR;A;XXX.XXX.XXX.XXX"}),":"," ",e("tonieboxes.boxFlashingCommon.adguard.dnsRewriteExplanation")]}),f.jsxs(rn,{children:[f.jsx("strong",{children:"client=YYY.YYY.YYY.YYY"}),": ",e("tonieboxes.boxFlashingCommon.adguard.clientExplanation")]}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step3Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step3Instructions")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.step4Title")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.ipReservationInstructions")}),f.jsx(rn,{children:e("tonieboxes.boxFlashingCommon.adguard.loggingMonitoringInstructions")})]})}const hx=({boxVersion:e,isOpen:t,onClose:n})=>{const{t:r}=Nt(),[a,o]=l.useState([]),[i,s]=l.useState(!1),[c,u]=l.useState(!1);l.useEffect(()=>{t&&d()},[t,i]);const d=async()=>{u(!0);try{const h=await NI.apiGetTonieboxesIndex(),b=await Promise.all(h.map(async x=>{const v=await NI.apiGetTonieboxStatus(x.ID)?"Online":"Offline",y=await NI.apiGetTonieboxVersion(x.ID);let C={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"}[y]||"UNKNOWN";return{...x,status:v,version:C}}));o(b)}catch(h){console.error("Error fetching tonieboxes:",h)}finally{u(!1)}},p=[{title:r("tonieboxes.availableBoxModal.commonName"),dataIndex:"commonName",key:"commonName"},{title:r("tonieboxes.availableBoxModal.boxVersion"),dataIndex:"version",key:"version"},{title:r("tonieboxes.availableBoxModal.status"),dataIndex:"status",key:"status"}],g=f.jsxs(rn,{style:{display:"flex",gap:8,justifyContent:"flex-end",flexWrap:"wrap"},children:[f.jsx(tt,{onClick:async()=>{u(!0),s(h=>!h),await d()},children:r("tonieboxes.availableBoxModal.recheck")}),f.jsx(tt,{type:"primary",onClick:n,children:r("tonieboxes.availableBoxModal.ok")})]}),m=()=>f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE,description:f.jsxs("div",{children:[f.jsx(rn,{children:r("tonieboxes.noData")}),f.jsx(rn,{children:r("tonieboxes.noDataText")})]})});return f.jsxs(_n,{title:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e}),open:t,onOk:n,onCancel:n,footer:g,children:[f.jsxs(rn,{children:[f.jsx(rn,{children:r("tonieboxes.availableBoxModal.newBoxAvailable",{cc3200Hint:e===qo.cc3200?r("tonieboxes.availableBoxModal.cc3200Hint"):""})}),f.jsx(it,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/test-troubleshooting/",target:"_blank",children:r("tonieboxes.availableBoxModal.troubleShooting")})]}),f.jsx("h4",{children:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e})}),c?f.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"20px"},children:f.jsx(vf,{size:"default"})}):f.jsx(xa,{dataSource:a.filter(h=>h.version===e),columns:p,rowKey:"ID",pagination:!1,locale:{emptyText:m()}}),a.filter(h=>h.version===e).length>0?f.jsxs(rn,{style:{marginTop:16},children:[r("tonieboxes.boxSetup.uploadCertificatesToBox"),f.jsx(it,{to:"/tonieboxes",children:r("tonieboxes.navigationTitle")})]}):""]})},Z_=({})=>{const{t:e}=Nt(),[t,n]=l.useState(!1),r=()=>{n(!0)},a=()=>{n(!1)},o=f.jsx(_n,{title:e("tonieboxes.boxSetup.uploadCertificates"),open:t,onCancel:a,footer:f.jsx(tt,{type:"primary",onClick:a,children:e("settings.close")}),cancelText:"Close",children:f.jsx(Jk,{})});return f.jsxs(f.Fragment,{children:[f.jsx(rn,{children:e("tonieboxes.boxSetup.uploadCertificateIntro")}),f.jsxs(rn,{children:[f.jsx(tt,{onClick:r,children:e("tonieboxes.boxSetup.uploadCertificateButton")}),o]})]})},N9e="/web/assets/cc3200_debugPort-CUfuhKbo.jpg",k9e="/web/assets/cc3200_tagConnector-C5CJTEin.png",A9e="/web/assets/cc3200_wiresAsTagConnector-BuyL-dME.png",M9e="/web/assets/cc3200_installCfwFlashUpload-D3jB7q0q.png",{Paragraph:Wt}=xn,{Step:D9e}=js,P9e=()=>{const{t:e}=Nt(),t=dr.language,[n,r]=l.useState(0),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState(!1),d=W=>W.replace(/[^a-zA-Z0-9-.]/g,"").trim(),p=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.cc3200BoxFlashing.bootloader")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.cc3200BoxFlashing.patches")},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}],g=[{key:"1",toniebox1:"GND",toniebox2:"",uart:"GND"},{key:"2",toniebox1:"TX",toniebox2:"",uart:"RX"},{key:"3",toniebox1:"RX",toniebox2:"",uart:"TX"},{key:"4",toniebox1:"RST",toniebox2:"",uart:"DTR"},{key:"5",toniebox1:"VCC",toniebox2:"SOP2*",uart:""},{key:"6",toniebox1:"SOP2",toniebox2:"VCC*",uart:""}],m=[{title:"Toniebox",dataIndex:"toniebox1",key:"toniebox1"},{title:"Toniebox",dataIndex:"toniebox2",key:"toniebox2"},{title:"UART",dataIndex:"uart",key:"uart"}],h=()=>f.jsx(xa,{dataSource:g,columns:m,pagination:!1,bordered:!0,size:"small",style:{width:300}}),b=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),f.jsx(Sn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),f.jsxs(Wt,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",f.jsx(it,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),SZ(),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.connectToToniebox")}),f.jsx(Wt,{}),f.jsxs(Wt,{children:[e("tonieboxes.cc3200BoxFlashing.connectToTonieboxIntro"),f.jsx(Wt,{children:f.jsx(dn,{src:N9e,style:{maxHeight:200,width:"auto",marginTop:8},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")})}),f.jsx(Wt,{children:yZ()}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxConnectTableIntro")}),h()]}),f.jsxs(Wt,{children:[e("tonieboxes.cc3200BoxFlashing.connectToTonieboxConnectDebugPortText1"),f.jsx(it,{to:"https://www.tag-connect.com/product/tc2050-idc-nl-10-pin-no-legs-cable-with-ribbon-connector",target:"_blank",children:"TC2050-IDC-NL TagConnector"}),e("tonieboxes.cc3200BoxFlashing.connectToTonieboxConnectDebugPortText2")]}),f.jsx(Wt,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsxs("div",{style:{maxHeight:200,justifyItems:"center"},children:[f.jsx(dn,{src:k9e,style:{maxWidth:200,height:"auto"},alt:e("tonieboxes.cc3200BoxFlashing.tagConnector")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3200BoxFlashing.tagConnector")})]}),f.jsxs("div",{style:{maxHeight:200,justifyItems:"center"},children:[f.jsx(dn,{src:A9e,style:{maxWidth:200,height:"auto"},alt:e("tonieboxes.cc3200BoxFlashing.usingThinWiresAsTagConnector")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3200BoxFlashing.usingThinWiresAsTagConnector")})]})]})}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxText")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxProceed")})]}),x=[{key:"/cert/ca.der",file:"/cert/ca.der",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.caDer")},{key:"/cert/private.der",file:"/cert/private.der",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.privateDer")},{key:"/cert/client.der",file:"/cert/client.der",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.clientDer")},{key:"/sys/mcuimg.bin",file:"/sys/mcuimg.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.originalBootloader")},{key:"/sys/mcuimg1.bin",file:"/sys/mcuimg1.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.firstSlot")},{key:"/sys/mcuimg2.bin",file:"/sys/mcuimg2.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.secondSlot")},{key:"/sys/mcuimg3.bin",file:"/sys/mcuimg3.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.thirdSlot")},{key:"/sys/mcubootinfo.bin",file:"/sys/mcubootinfo.bin",description:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.mcuBootInfo")}],S=[{title:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.file"),dataIndex:"file",key:"file"},{title:e("tonieboxes.cc3200BoxFlashing.installingBootloader.importantTBFiles.description"),dataIndex:"description",key:"description"}],v=()=>f.jsx(xa,{dataSource:x,columns:S,pagination:!1}),y=f.jsxs(f.Fragment,{children:[f.jsx("b",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.moveOriginal")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.moveOriginalText1")}),f.jsxs(Wt,{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.moveOriginalText2"),f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 write_file ExtractedFromBox/sys/mcuimg.bin /sys/pre-img.bin"})]}),f.jsxs("b",{children:[" ",e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.installPreloader")]}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.installPreloaderText1")}),f.jsx(gn,{language:"shell",code:"c3200tool -p COM3 write_file flash/sys/mcuimg.bin /sys/mcuimg.bin"}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.installPreloaderText2")})]}),w=f.jsxs(f.Fragment,{children:[f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.intro")}),f.jsx("b",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.backup")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.backupText")}),f.jsx(gn,{language:"url",code:"http://*.*.*.*/api/ajax?cmd=get-flash-file&filepath=/sys/pre-img.bin"}),f.jsx("b",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloader")}),f.jsx(Wt,{children:f.jsx("div",{style:{maxHeight:400,justifyItems:"center"},children:f.jsx(dn,{src:M9e,style:{maxHeight:400,width:"auto",maxWidth:"100%"},alt:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.updatingCFWUsingOldCFWWebGui")})})}),f.jsx(Wt,{children:f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep1")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep2")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep3")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep4")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.copyOverPreloaderStep5")})]})}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.outro")}),f.jsx(gn,{language:"url",code:"http://*.*.*.*/api/ajax?cmd=get-flash-file&filepath=/sys/mcuimg.bin"})]}),C=[{key:"firstTime",label:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.title"),children:y},{key:"updateExisting",label:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.title"),children:w}],E=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.bootloader")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.intro")}),f.jsx(Wt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_all_files ExtractedFromBox/ read_flash backup.bin"})}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.resetCommand")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.inCaseText")}),f.jsx(Wt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_all_files ExtractedFromBox/ "})}),f.jsx(Wt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_flash backup.bin"})}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.verifyBackup")}),f.jsx(Wt,{children:v()}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.installBootloader")}),f.jsxs(Wt,{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.downloadText1"),f.jsx(it,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/releases",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.downloadLink")}),e("tonieboxes.cc3200BoxFlashing.installingBootloader.downloadText2")]}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.preface.title")}),f.jsxs(Wt,{children:[f.jsxs(Wt,{children:[" ",e("tonieboxes.cc3200BoxFlashing.installingBootloader.preface.intro")]}),f.jsx(Wt,{children:f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage1"),f.jsxs("ul",{children:[f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.firstInstallation.title")}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.existingInstallation.title")})]})]}),f.jsx("li",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage2")})]})})]}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage1")}),f.jsx(Ld,{items:C,indicator:{size:W=>W-20,align:"center"}}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.stage2")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.intro")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.text1")}),f.jsxs(Wt,{children:[e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.text2"),f.jsx(it,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/bootloader/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installingBootloader.installingBootloaderStage2.here")}),"."]})]}),I=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),f.jsx(Wt,{children:e3(!0)}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.certificates.alreadyAvailable")}),f.jsx(Wt,{children:f.jsx(gn,{language:"shell",code:"/currentDir/ExtractedFromBox/cert/."})}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.certificates.extractAgain")}),f.jsx(Wt,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 read_file /cert/ca.der ExtractedFromBox/cert/ca.der read_file /cert/private.der ExtractedFromBox/cert/private.der read_file /cert/client.der ExtractedFromBox/cert/client.der"})}),f.jsx(Wt,{children:f.jsx(Z_,{})}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacement")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementIntro")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementText")}),f.jsx(gn,{language:"shell",code:"cc3200tool -p COM3 write_file server/ca.der /cert/c2.der"}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementOutro")})]}),T=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.patches")}),f.jsx(it,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.patchesMoreInformationLink")}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.customUrlPatch")}),f.jsx(Sn,{description:e("tonieboxes.cc3200BoxFlashing.customUrlPatchHint"),type:"warning",style:{marginBottom:8}}),f.jsxs(Gt,{children:[f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.hintPatchHost")}),f.jsxs(Gt.Item,{children:[f.jsxs(la,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Cn,{style:{flex:"0 0 200px",color:i?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.cc3200BoxFlashing.hostname")})}),f.jsx(Cn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",value:a,onChange:W=>{let q=d(W.target.value),Z="";q.length>12?Z=e("tonieboxes.cc3200BoxFlashing.hostnameTooLong"):Z="",o(q),s(Z)}})})]}),i&&f.jsx("p",{style:{color:"#CC3010"},children:i})]})]})]}),R=[{key:"1",keyName:"activeImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.activeImgDesc"),values:"ofw1, ofw2, ofw3, cfw1, cfw2, cfw3, add1, add2, add3",defaultValue:"ofw1"},{key:"2",keyName:"waitForPress",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForPressDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"waitForBoot",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForBootDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"waitTimeoutInS",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitTimeoutInSDesc"),values:"1-255",defaultValue:"60"},{key:"5",keyName:"minBatteryLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.minBatteryLevelDesc"),values:"",defaultValue:"8869"},{key:"6",keyName:"ofwFixValue",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixValueDesc"),values:"hex array with 4 bytes",defaultValue:'["4C", "01", "10", "00"]'},{key:"7",keyName:"ofwFixFlash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixFlashDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"serialLog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.serialLogDesc"),values:"true, false",defaultValue:"true"},{key:"9",keyName:"logLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logLevelDesc"),values:"0-5",defaultValue:"DEBUG_LOG_LEVEL"},{key:"10",keyName:"logColor",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logColorDesc"),values:"true, false",defaultValue:"false"}],_=[{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.key"),dataIndex:"keyName",key:"keyName",width:120},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.description"),dataIndex:"description",key:"description"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.values"),dataIndex:"values",key:"values"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.default"),dataIndex:"defaultValue",key:"defaultValue"}],$=[{key:"1",keyName:"checkHash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.checkHashDesc"),values:"true, false",defaultValue:"true"},{key:"2",keyName:"hashFile",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.hashFileDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"watchdog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.watchdogDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"ofwFix",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixDesc"),values:"true, false",defaultValue:"false"},{key:"5",keyName:"ofwSimBL",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwSimBLDesc"),values:"true, false",defaultValue:"false"},{key:"6",keyName:"bootFlashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.bootFlashImgDesc"),values:"true, false",defaultValue:"false"},{key:"7",keyName:"flashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.flashImgDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"patches",description:f.jsxs(f.Fragment,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchesDesc")," ",f.jsx(it,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/tree/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/patch",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchDirectory")}),", ",f.jsx(it,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchWiki")})]}),values:'["noCerts.305", "noPass3.305"]',defaultValue:"[]"}],M={general:{activeImg:"ofw2",_descWaitForPress:"Waits for an earpress on startup",waitForPress:!1,_descWaitForBoot:"Waits for an earpress before firmware boot",waitForBoot:!1,waitTimeoutInS:60,_descMinBatteryLevel:"Divide through 2785 to get voltage",minBatteryLevel:8869,ofwFixFlash:"/sys/pre-img.bin",_descSerialLog:"Logging only works with the debug build!",serialLog:!1,_descLogLevel:"0:Trace - 5:Fatal",logLevel:0,_descLogColor:"Use colors in log output",logColor:!1},ofw1:{checkHash:!1,hashFile:!1,watchdog:!0,bootFlashImg:!0,flashImg:"/sys/pre-img.bin"},ofw2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!0,patches:["altCa.305","altUrl.custom.305"]},ofw3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,patches:["altCa.305","altUrl.tc.fritz.box"]},cfw1:{checkHash:!1,hashFile:!1,watchdog:!0},cfw2:{checkHash:!1,hashFile:!1,watchdog:!0},cfw3:{checkHash:!1,hashFile:!1,watchdog:!0},add1:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["blockCheck.310","noCerts.305","noPass3.310","noPrivacy.305","uidCheck.307"]},add2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]},add3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]}},P=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}),f.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesWithNgCfgJson")}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.introduction")}),f.jsx($s,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.collapseTitle"),children:f.jsxs(Wt,{children:[f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.title")}),f.jsxs(Wt,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part1")," ",f.jsx(it,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/blob/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/ngCfg.json",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_link")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part2")]}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part3")}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.generalSection")}),f.jsx(xa,{dataSource:R,columns:_,pagination:!1,size:"small"}),f.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSection")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSectionIntro"),f.jsx(xa,{dataSource:$,columns:_,pagination:!1,size:"small"})]})}],style:{marginBottom:16}}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part1")}),f.jsx(gn,{language:"json",code:`{ "general": { "activeImg": "ofw2", - ...`}),f.jsx(Vt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part2")}),f.jsx(gn,{language:"json",code:`... + ...`}),f.jsx(Wt,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part2")}),f.jsx(gn,{language:"json",code:`... "ofw2": { "checkHash": true, "hashFile": false, @@ -638,7 +638,7 @@ uci commit dhcp "ofwSimBL": true, "patches": ["altCa.305", "altUrl.custom.305"] }, -...`}),f.jsx(Rs,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.examplengCFGJsonCollapse.collapseTitle"),children:f.jsx(Vt,{children:f.jsx(gn,{language:"shell",code:JSON.stringify(M,null,2)})})}],style:{marginBottom:16}}),f.jsx(Vt,{style:{marginTop:16},children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.finish")})]}),[D,O]=l.useState([b,E,I,T,P]),k=(W,q)=>{O(Z=>{const Q=[...Z];return Q[W]=q,Q})};l.useEffect(()=>{k(n,(()=>{switch(n){case 0:return b;case 1:return E;case 2:return I;case 3:return T;case 4:return P;default:return f.jsx("div",{})}})())},[n,a,t,Ss()]);const N=()=>{r(n-1)},A=()=>{r(n+1)},L=f.jsx(nt,{icon:f.jsx(Os,{}),onClick:()=>N(),children:e("tonieboxes.cc3200BoxFlashing.previous")}),j=W=>{r(W)},F=()=>{B()},B=()=>{u(!0)},z=()=>{u(!1)},U=f.jsx(gx,{boxVersion:qo.cc3200,isOpen:c,onClose:z}),H={general:{_desc:"Changes Boxine URLs to custom ones.",_memPos:"",_fwVer:"3.0.5+"},searchAndReplace:[{_desc:"prod.de.tbs.toys to ",search:["70","72","6f","64","2e","64","65","2e","74","62","73","2e","74","6f","79","73","00"],replace:["70","72","6f","64","2e","72","65","76","76","6f","78","00","??","??","??","??","??"]},{_desc:"rtnl.bxcl.de to ",search:["72","74","6e","6c","2e","62","78","63","6c","2e","64","65","00"],replace:["72","74","6e","6c","2e","72","65","76","76","6f","78","00","??"]}]},Y=(W,q)=>{const Z=W.split("").map(fe=>fe.charCodeAt(0).toString(16).padStart(2,"0"));Z.push("00");const Q=Z.length,oe=q-Q;return oe>0?Z.concat(Array.from({length:oe},()=>"??")):Z},K=W=>({...H,searchAndReplace:(Z=>Z.map(Q=>{const ee=Y(W,Q.replace.length);return{...Q,_desc:`${Q._desc}${W}`,replace:ee}}))(H.searchAndReplace)}),J=W=>`{ +...`}),f.jsx($s,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.examplengCFGJsonCollapse.collapseTitle"),children:f.jsx(Wt,{children:f.jsx(gn,{language:"shell",code:JSON.stringify(M,null,2)})})}],style:{marginBottom:16}}),f.jsx(Wt,{style:{marginTop:16},children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.finish")})]}),[D,O]=l.useState([b,E,I,T,P]),k=(W,q)=>{O(Z=>{const Q=[...Z];return Q[W]=q,Q})};l.useEffect(()=>{k(n,(()=>{switch(n){case 0:return b;case 1:return E;case 2:return I;case 3:return T;case 4:return P;default:return f.jsx("div",{})}})())},[n,a,t,Cs()]);const N=()=>{r(n-1)},A=()=>{r(n+1)},L=f.jsx(tt,{icon:f.jsx(ks,{}),onClick:()=>N(),children:e("tonieboxes.cc3200BoxFlashing.previous")}),j=W=>{r(W)},F=()=>{B()},B=()=>{u(!0)},z=()=>{u(!1)},U=f.jsx(hx,{boxVersion:qo.cc3200,isOpen:c,onClose:z}),H={general:{_desc:"Changes Boxine URLs to custom ones.",_memPos:"",_fwVer:"3.0.5+"},searchAndReplace:[{_desc:"prod.de.tbs.toys to ",search:["70","72","6f","64","2e","64","65","2e","74","62","73","2e","74","6f","79","73","00"],replace:["70","72","6f","64","2e","72","65","76","76","6f","78","00","??","??","??","??","??"]},{_desc:"rtnl.bxcl.de to ",search:["72","74","6e","6c","2e","62","78","63","6c","2e","64","65","00"],replace:["72","74","6e","6c","2e","72","65","76","76","6f","78","00","??"]}]},K=(W,q)=>{const Z=W.split("").map(fe=>fe.charCodeAt(0).toString(16).padStart(2,"0"));Z.push("00");const Q=Z.length,ie=q-Q;return ie>0?Z.concat(Array.from({length:ie},()=>"??")):Z},Y=W=>({...H,searchAndReplace:(Z=>Z.map(Q=>{const J=K(W,Q.replace.length);return{...Q,_desc:`${Q._desc}${W}`,replace:J}}))(H.searchAndReplace)}),ee=W=>`{ "general": { "_desc": "${W.general._desc}", "_memPos": "${W.general._memPos}", @@ -649,26 +649,26 @@ uci commit dhcp "search": ["${q.search.join('", "')}"], "replace": ["${q.replace.join('", "')}"] }`).join(", ")}] -}`,ne=()=>{(q=>{const Z=K(q),Q=J(Z),ee=new Blob([Q],{type:"application/json"}),oe=URL.createObjectURL(ee),se=document.createElement("a");se.href=oe,se.download="altUrl.custom.305.json",document.body.appendChild(se),se.click(),document.body.removeChild(se)})(a)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.cc3200BoxFlashing.title")}),f.jsx(Vn,{children:e("tonieboxes.cc3200BoxFlashing.title")}),f.jsxs(Vt,{children:[f.jsx(Ls,{current:n,onChange:j,children:p.map((W,q)=>f.jsx(D9e,{title:W.title,status:q===n&&q===p.length?"finish":q===n?"process":q12||a.length===0,type:"primary",onClick:ne,children:e("tonieboxes.cc3200BoxFlashing.createPatch")})}),f.jsx("div",{children:f.jsx(nt,{icon:f.jsx(io,{}),iconPosition:"end",onClick:()=>A(),children:e("tonieboxes.cc3200BoxFlashing.next")})})]}),n===4&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[L,f.jsx("div",{children:f.jsx(nt,{icon:f.jsx(kl,{}),type:"primary",onClick:F,children:e("tonieboxes.cc3200BoxFlashing.checkBoxes")})}),f.jsx("div",{})]})]})]}),U]})]})]})},L9e="/web/assets/cc3235_flash-D2YMWv70.jpg",j9e="/web/assets/cc3235_smd_grippers-MdbEjaZo.jpg",F9e="/web/assets/01_CH341A_programmer_1-BWh6CFRm.png",B9e="/web/assets/01_CH341A_programmer_2-DLQkFrYM.png",z9e="/web/assets/02_CH341A_sop8_1-B7nvMxlQ.jpg",H9e="/web/assets/02_CH341A_sop8_2-CW3KfcCM.jpg",U9e="/web/assets/02_CH341A_sop8_3-B20tcrp3.jpg",V9e="/web/assets/02_CH341A_sop8_remove-D-uCy9Q0.jpg",{Paragraph:In}=xn,{Step:W9e}=Ls,G9e=()=>{const{t:e}=Nt(),t=dr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),[i,s]=l.useState("picoHW"),[c,u]=l.useState("pico");l.useEffect(()=>{u(i.slice(0,-2))},[i]);const d=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],p=f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installSerprogFirmware")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.pico.preparation")}),f.jsx(In,{children:f.jsx(ot,{to:"https://github.com/stacksmashing/pico-serprog",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.serprogFirmwareLink")})})]}),g=f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341AProgrammer")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.preparation")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep1"),f.jsx("div",{style:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:16,margin:8},children:f.jsx(dn,{src:F9e,style:{maxHeight:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341AProgrammer")})})]}),f.jsxs("li",{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep2"),f.jsx("div",{style:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:16,margin:8},children:f.jsx(dn,{src:V9e,style:{maxHeight:100,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341Sop8remove")})})]}),f.jsx("li",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep3")}),f.jsxs("li",{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep4"),f.jsx(gn,{language:"shell",code:`lsusb +}`,ae=()=>{(q=>{const Z=Y(q),Q=ee(Z),J=new Blob([Q],{type:"application/json"}),ie=URL.createObjectURL(J),le=document.createElement("a");le.href=ie,le.download="altUrl.custom.305.json",document.body.appendChild(le),le.click(),document.body.removeChild(le)})(a)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.cc3200BoxFlashing.title")}),f.jsx(Wn,{children:e("tonieboxes.cc3200BoxFlashing.title")}),f.jsxs(Wt,{children:[f.jsx(js,{current:n,onChange:j,children:p.map((W,q)=>f.jsx(D9e,{title:W.title,status:q===n&&q===p.length?"finish":q===n?"process":q12||a.length===0,type:"primary",onClick:ae,children:e("tonieboxes.cc3200BoxFlashing.createPatch")})}),f.jsx("div",{children:f.jsx(tt,{icon:f.jsx(io,{}),iconPosition:"end",onClick:()=>A(),children:e("tonieboxes.cc3200BoxFlashing.next")})})]}),n===4&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[L,f.jsx("div",{children:f.jsx(tt,{icon:f.jsx(kl,{}),type:"primary",onClick:F,children:e("tonieboxes.cc3200BoxFlashing.checkBoxes")})}),f.jsx("div",{})]})]})]}),U]})]})]})},L9e="/web/assets/cc3235_flash-D2YMWv70.jpg",j9e="/web/assets/cc3235_smd_grippers-MdbEjaZo.jpg",F9e="/web/assets/01_CH341A_programmer_1-BWh6CFRm.png",B9e="/web/assets/01_CH341A_programmer_2-DLQkFrYM.png",z9e="/web/assets/02_CH341A_sop8_1-B7nvMxlQ.jpg",H9e="/web/assets/02_CH341A_sop8_2-CW3KfcCM.jpg",U9e="/web/assets/02_CH341A_sop8_3-B20tcrp3.jpg",V9e="/web/assets/02_CH341A_sop8_remove-D-uCy9Q0.jpg",{Paragraph:Tn}=xn,{Step:W9e}=js,G9e=()=>{const{t:e}=Nt(),t=dr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),[i,s]=l.useState("picoHW"),[c,u]=l.useState("pico");l.useEffect(()=>{u(i.slice(0,-2))},[i]);const d=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],p=f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installSerprogFirmware")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.pico.preparation")}),f.jsx(Tn,{children:f.jsx(it,{to:"https://github.com/stacksmashing/pico-serprog",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.serprogFirmwareLink")})})]}),g=f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341AProgrammer")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.preparation")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep1"),f.jsx("div",{style:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:16,margin:8},children:f.jsx(dn,{src:F9e,style:{maxHeight:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341AProgrammer")})})]}),f.jsxs("li",{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep2"),f.jsx("div",{style:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:16,margin:8},children:f.jsx(dn,{src:V9e,style:{maxHeight:100,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341Sop8remove")})})]}),f.jsx("li",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep3")}),f.jsxs("li",{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prep4"),f.jsx(gn,{language:"shell",code:`lsusb ~$ lsusb Bus 004 Device 012: ID 1a86:5512 QinHeng Electronics CH341 in EPP/MEM/I2C mode, EPP/I2C adapter Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub -Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub`})]})]}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prepConclusions1")}),f.jsxs(In,{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prepConclusions2")," ",f.jsx("div",{style:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:16,margin:8},children:f.jsx(dn,{src:B9e,style:{maxHeight:100,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341AProgrammerClampConnection")})})]}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prepConclusions3")})]}),m=[{key:"picoHW",label:"Raspberry Pi Pico",children:p},{key:"ch341aHW",label:"CH341A Programmer",children:g}],h=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),f.jsx(Cn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),f.jsxs(In,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",f.jsx(ot,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.locateFlashMemory")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.locateFlashMemoryText")}),f.jsx(Rs,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.cc3235BoxFlashing.flashCollapse.collapseTitle"),children:f.jsx(f.Fragment,{children:f.jsx(In,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:L9e,style:{maxHeight:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:j9e,style:{maxHeight:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:z9e,style:{maxHeight:200,width:"auto",maxWidth:200},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:U9e,style:{maxHeight:200,width:"auto",maxWidth:200},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:H9e,style:{maxHeight:200,width:"auto",maxWidth:200},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")})]})]})})})}]}),f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installflashromtool")}),e("tonieboxes.cc3235BoxFlashing.installflashromtoolText"),f.jsx(gn,{language:"shell",code:"sudo apt-get install flashrom"}),f.jsx(ot,{to:"https://www.flashrom.org/",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.installflashromtoolLink")}),SZ(),f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.hwToolSpecific")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.hwToolSpecificText")}),f.jsx(Ld,{onChange:N=>s(N),activeKey:c+"HW",items:m,indicator:{size:N=>N-20,align:"center"}})]}),b=f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacement")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText1")}),f.jsx(Cn,{type:"warning",showIcon:!0,message:e("tonieboxes.cc3235BoxFlashing.flashCAReplacementTitle"),description:f.jsxs(f.Fragment,{children:[e("tonieboxes.cc3235BoxFlashing.flashCAReplacementDescription1")," ",f.jsxs(ot,{to:"https://raw.githubusercontent.com/toniebox-reverse-engineering/teddycloud/master/contrib/gencerts.sh",target:"_blank",children:[e("tonieboxes.cc3235BoxFlashing.gencertLinkText")," "]})," ",e("tonieboxes.cc3235BoxFlashing.flashCAReplacementDescription2")," ",e("tonieboxes.cc3235BoxFlashing.flashCAReplacementDescription3")]}),style:{marginBottom:16}}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText3")})]}),x=f.jsxs(f.Fragment,{children:[f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.pico.readingFlash")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.pico.readingFlashText1")}),f.jsx(In,{children:f.jsx(gn,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.bin --progress"})}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.pico.readingFlashText2")}),f.jsx(In,{children:f.jsx(gn,{language:"shell",code:`flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.2.bin --progress -diff cc32xx-flash.bin cc32xx-flash.2.bin #no output = equal`})}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.extractCertificates")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.useCC3200ToolToExtract")}),f.jsx(In,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if cc32xx-flash.bin -d cc32xx read_all_files extract/"})}),f.jsx(Z_,{}),b,f.jsx(In,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if cc32xx-flash.bin -of cc32xx-flash.customca.bin -d cc32xx write_file ca.der /cert/ca.der"})}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.pico.writingFlash")}),f.jsx(In,{children:f.jsx(gn,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -w cc32xx-flash.customca.bin --progress"})})]}),S=f.jsxs(f.Fragment,{children:[f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.readingFlash")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText1")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText2")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText3")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText4")}),f.jsx(gn,{language:"shell",code:"flashrom -p ch341a_spi -r backupCC3235-1.bin"}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText5")}),f.jsx(gn,{language:"shell",code:"flashrom -p ch341a_spi -r backupCC3235-2.bin"}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText6")}),f.jsx(gn,{language:"shell",code:"diff backupCC3235-1.bin backupCC3235-2.bin #no output = equal"}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText7")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText8")}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.extractCertificates")}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.useCC3200ToolToExtract")}),f.jsx(In,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if backupCC3235-1.bin -d cc32xx read_all_files extract/"})}),f.jsx(Z_,{}),b,f.jsx(In,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if backupCC3235-1.bin -of cc32xx-flash.customca.bin -d cc32xx write_file ca.der /cert/ca.der"})}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.writingFlash")}),f.jsx(In,{children:f.jsx(gn,{language:"shell",code:"flashrom -p ch341a_spi -w cc32xx-flash.customca.bin --progress"})})]}),v=[{key:"picoCE",label:"Raspberry Pi Pico",children:x},{key:"ch341aCE",label:"CH341A Programmer",children:S}],y=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),e3(!1),f.jsx("h4",{children:"CC3235"}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.dumpCertificatesCC3235")}),f.jsx(Ld,{onChange:N=>s(N),activeKey:c+"CE",items:v,indicator:{size:N=>N-20,align:"center"}}),f.jsx(In,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText2")})]}),C=CZ(),w=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),C]}),[E,I]=l.useState([h,y,w]),T=(N,A)=>{I(L=>{const j=[...L];return j[N]=A,j})};l.useEffect(()=>{T(n,(()=>{switch(n){case 0:return h;case 1:return y;case 2:return w;default:return f.jsx("div",{})}})())},[n,t,Ss(),c]);const R=()=>{r(n-1)},_=()=>{r(n+1)},$=f.jsx(nt,{icon:f.jsx(Os,{}),onClick:()=>R(),children:e("tonieboxes.cc3235BoxFlashing.previous")}),M=N=>{r(N)},P=()=>{D()},D=()=>{o(!0)},O=()=>{o(!1)},k=f.jsx(gx,{boxVersion:qo.cc3235,isOpen:a,onClose:O});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.cc3235BoxFlashing.title")}),f.jsx(Vn,{children:e("tonieboxes.cc3235BoxFlashing.title")}),f.jsxs(In,{style:{marginTop:16},children:[f.jsx(Ls,{current:n,onChange:M,children:d.map((N,A)=>f.jsx(W9e,{title:N.title,status:A===n&&A===d.length?"finish":A===n?"process":A=0;)e[t]=0}const Y9e=0,wZ=1,X9e=2,Z9e=3,Q9e=258,t3=29,Um=256,Hg=Um+1+t3,vd=30,n3=19,EZ=2*Hg+1,hc=15,OI=16,J9e=7,r3=256,IZ=16,TZ=17,RZ=18,Q_=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Gv=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),eHe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tHe=512,ps=new Array((Hg+2)*2);If(ps);const Vp=new Array(vd*2);If(Vp);const Ug=new Array(tHe);If(Ug);const Vg=new Array(Q9e-Z9e+1);If(Vg);const a3=new Array(t3);If(a3);const o0=new Array(vd);If(o0);function NI(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let $Z,OZ,NZ;function kI(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const kZ=e=>e<256?Ug[e]:Ug[256+(e>>>7)],Wg=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},no=(e,t,n)=>{e.bi_valid>OI-n?(e.bi_buf|=t<>OI-e.bi_valid,e.bi_valid+=n-OI):(e.bi_buf|=t<{no(e,n[t*2],n[t*2+1])},AZ=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},nHe=e=>{e.bi_valid===16?(Wg(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},rHe=(e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,i=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,d,p,g,m,h,b=0;for(g=0;g<=hc;g++)e.bl_count[g]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(g=c,b++),n[d*2+1]=g,!(d>r)&&(e.bl_count[g]++,m=0,d>=s&&(m=i[d-s]),h=n[d*2],e.opt_len+=h*(g+m),o&&(e.static_len+=h*(a[d*2+1]+m)));if(b!==0){do{for(g=c-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[c]--,b-=2}while(b>0);for(g=c;g!==0;g--)for(d=e.bl_count[g];d!==0;)p=e.heap[--u],!(p>r)&&(n[p*2+1]!==g&&(e.opt_len+=(g-n[p*2+1])*n[p*2],n[p*2+1]=g),d--)}},MZ=(e,t,n)=>{const r=new Array(hc+1);let a=0,o,i;for(o=1;o<=hc;o++)a=a+n[o-1]<<1,r[o]=a;for(i=0;i<=t;i++){let s=e[i*2+1];s!==0&&(e[i*2]=AZ(r[s]++,s))}},aHe=()=>{let e,t,n,r,a;const o=new Array(hc+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Wg(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},qB=(e,t,n,r)=>{const a=t*2,o=n*2;return e[a]{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a{let r,a,o=0,i,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,a=e.pending_buf[e.sym_buf+o++],r===0?Vi(e,a,t):(i=Vg[a],Vi(e,i+Um+1,t),s=Q_[i],s!==0&&(a-=a3[i],no(e,a,s)),r--,i=kZ(r),Vi(e,i,n),s=Gv[i],s!==0&&(r-=o0[i],no(e,r,s)));while(o{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems;let i,s,c=-1,u;for(e.heap_len=0,e.heap_max=EZ,i=0;i>1;i>=1;i--)AI(e,n,i);u=o;do i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],AI(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=s,n[u*2]=n[i*2]+n[s*2],e.depth[u]=(e.depth[i]>=e.depth[s]?e.depth[i]:e.depth[s])+1,n[i*2+1]=n[s*2+1]=u,e.heap[1]=u++,AI(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],rHe(e,t),MZ(n,c,e.bl_count)},YB=(e,t,n)=>{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=i,i=t[(r+1)*2+1],!(++s{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),r=0;r<=n;r++)if(o=i,i=t[(r+1)*2+1],!(++s{let t;for(YB(e,e.dyn_ltree,e.l_desc.max_code),YB(e,e.dyn_dtree,e.d_desc.max_code),J_(e,e.bl_desc),t=n3-1;t>=3&&e.bl_tree[_Z[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},iHe=(e,t,n,r)=>{let a;for(no(e,t-257,5),no(e,n-1,5),no(e,r-4,4),a=0;a{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return WB;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return GB;for(n=32;n{ZB||(aHe(),ZB=!0),e.l_desc=new kI(e.dyn_ltree,$Z),e.d_desc=new kI(e.dyn_dtree,OZ),e.bl_desc=new kI(e.bl_tree,NZ),e.bi_buf=0,e.bi_valid=0,DZ(e)},LZ=(e,t,n,r)=>{no(e,(Y9e<<1)+(r?1:0),3),PZ(e),Wg(e,n),Wg(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},cHe=e=>{no(e,wZ<<1,3),Vi(e,r3,ps),nHe(e)},uHe=(e,t,n,r)=>{let a,o,i=0;e.level>0?(e.strm.data_type===K9e&&(e.strm.data_type=sHe(e)),J_(e,e.l_desc),J_(e,e.d_desc),i=oHe(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=n+5,n+4<=a&&t!==-1?LZ(e,t,n,r):e.strategy===q9e||o===a?(no(e,(wZ<<1)+(r?1:0),3),KB(e,ps,Vp)):(no(e,(X9e<<1)+(r?1:0),3),iHe(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),KB(e,e.dyn_ltree,e.dyn_dtree)),DZ(e),r&&PZ(e)},dHe=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Vg[n]+Um+1)*2]++,e.dyn_dtree[kZ(t)*2]++),e.sym_next===e.sym_end);var fHe=lHe,pHe=LZ,gHe=uHe,mHe=dHe,hHe=cHe,vHe={_tr_init:fHe,_tr_stored_block:pHe,_tr_flush_block:gHe,_tr_tally:mHe,_tr_align:hHe};const bHe=(e,t,n,r)=>{let a=e&65535|0,o=e>>>16&65535|0,i=0;for(;n!==0;){i=n>2e3?2e3:n,n-=i;do a=a+t[r++]|0,o=o+a|0;while(--i);a%=65521,o%=65521}return a|o<<16|0};var Gg=bHe;const yHe=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},xHe=new Uint32Array(yHe()),SHe=(e,t,n,r)=>{const a=xHe,o=r+n;e^=-1;for(let i=r;i>>8^a[(e^t[i])&255];return e^-1};var ia=SHe,Vc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Tf={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:CHe,_tr_stored_block:e$,_tr_flush_block:wHe,_tr_tally:Rl,_tr_align:EHe}=vHe,{Z_NO_FLUSH:_l,Z_PARTIAL_FLUSH:IHe,Z_FULL_FLUSH:THe,Z_FINISH:Ko,Z_BLOCK:QB,Z_OK:ba,Z_STREAM_END:JB,Z_STREAM_ERROR:Yi,Z_DATA_ERROR:RHe,Z_BUF_ERROR:MI,Z_DEFAULT_COMPRESSION:_He,Z_FILTERED:$He,Z_HUFFMAN_ONLY:rv,Z_RLE:OHe,Z_FIXED:NHe,Z_DEFAULT_STRATEGY:kHe,Z_UNKNOWN:AHe,Z_DEFLATED:mx}=Tf,MHe=9,DHe=15,PHe=8,LHe=29,jHe=256,t$=jHe+1+LHe,FHe=30,BHe=19,zHe=2*t$+1,HHe=15,Tn=3,ml=258,Xi=ml+Tn+1,UHe=32,Yd=42,o3=57,n$=69,r$=73,a$=91,o$=103,vc=113,yp=666,Ua=1,Rf=2,Wc=3,_f=4,VHe=3,bc=(e,t)=>(e.msg=Vc[t],t),e7=e=>e*2-(e>4?9:0),ol=e=>{let t=e.length;for(;--t>=0;)e[t]=0},WHe=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=a?n-a:0;while(--t);t=a,r=t;do n=e.prev[--r],e.prev[r]=n>=a?n-a:0;while(--t)};let GHe=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Io=(e,t)=>{wHe(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,vo(e.strm)},Ln=(e,t)=>{e.pending_buf[e.pending++]=t},rp=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},i$=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),a===0?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),e.state.wrap===1?e.adler=Gg(e.adler,t,a,n):e.state.wrap===2&&(e.adler=ia(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},jZ=(e,t)=>{let n=e.max_chain_length,r=e.strstart,a,o,i=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-Xi?e.strstart-(e.w_size-Xi):0,u=e.window,d=e.w_mask,p=e.prev,g=e.strstart+ml;let m=u[r+i-1],h=u[r+i];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(u[a+i]!==h||u[a+i-1]!==m||u[a]!==u[r]||u[++a]!==u[r+1])){r+=2,a++;do;while(u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&ri){if(e.match_start=t,i=o,o>=s)break;m=u[r+i-1],h=u[r+i]}}while((t=p[t&d])>c&&--n!==0);return i<=e.lookahead?i:e.lookahead},Xd=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Xi)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),WHe(e),r+=t),e.strm.avail_in===0)break;if(n=i$(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=Tn)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=$l(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=$l(e,e.ins_h,e.window[a+Tn-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,a,o,i=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outa+e.strm.avail_in&&(r=a+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,vo(e.strm),a&&(a>r&&(a=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+a),e.strm.next_out),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a,e.block_start+=a,r-=a),r&&(i$(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(i===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(i$(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,a=e.strstart-e.block_start,(a>=n||(a||t===Ko)&&t!==_l&&e.strm.avail_in===0&&a<=o)&&(r=a>o?o:a,i=t===Ko&&e.strm.avail_in===0&&r===a?1:0,e$(e,e.block_start,r,i),e.block_start+=r,vo(e.strm)),i?Wc:Ua)},DI=(e,t)=>{let n,r;for(;;){if(e.lookahead=Tn&&(e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Tn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Xi&&(e.match_length=jZ(e,n)),e.match_length>=Tn)if(r=Rl(e,e.strstart-e.match_start,e.match_length-Tn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Tn){e.match_length--;do e.strstart++,e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Tn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=$l(e,e.ins_h,e.window[e.strstart+1]);else r=Rl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Io(e,!1),e.strm.avail_out===0))return Ua}return e.insert=e.strstart{let n,r,a;for(;;){if(e.lookahead=Tn&&(e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Tn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Tn-1,n!==0&&e.prev_length4096)&&(e.match_length=Tn-1)),e.prev_length>=Tn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-Tn,r=Rl(e,e.strstart-1-e.prev_match,e.prev_length-Tn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Tn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Tn-1,e.strstart++,r&&(Io(e,!1),e.strm.avail_out===0))return Ua}else if(e.match_available){if(r=Rl(e,0,e.window[e.strstart-1]),r&&Io(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ua}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Rl(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,a,o;const i=e.window;for(;;){if(e.lookahead<=ml){if(Xd(e),e.lookahead<=ml&&t===_l)return Ua;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Tn&&e.strstart>0&&(a=e.strstart-1,r=i[a],r===i[++a]&&r===i[++a]&&r===i[++a])){o=e.strstart+ml;do;while(r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Tn?(n=Rl(e,1,e.match_length-Tn),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Rl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Io(e,!1),e.strm.avail_out===0))return Ua}return e.insert=0,t===Ko?(Io(e,!0),e.strm.avail_out===0?Wc:_f):e.sym_next&&(Io(e,!1),e.strm.avail_out===0)?Ua:Rf},KHe=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Xd(e),e.lookahead===0)){if(t===_l)return Ua;break}if(e.match_length=0,n=Rl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Io(e,!1),e.strm.avail_out===0))return Ua}return e.insert=0,t===Ko?(Io(e,!0),e.strm.avail_out===0?Wc:_f):e.sym_next&&(Io(e,!1),e.strm.avail_out===0)?Ua:Rf};function Pi(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const xp=[new Pi(0,0,0,0,FZ),new Pi(4,4,8,4,DI),new Pi(4,5,16,8,DI),new Pi(4,6,32,32,DI),new Pi(4,4,16,16,ku),new Pi(8,16,32,32,ku),new Pi(8,16,128,128,ku),new Pi(8,32,128,256,ku),new Pi(32,128,258,1024,ku),new Pi(32,258,258,4096,ku)],YHe=e=>{e.window_size=2*e.w_size,ol(e.head),e.max_lazy_match=xp[e.level].max_lazy,e.good_match=xp[e.level].good_length,e.nice_match=xp[e.level].nice_length,e.max_chain_length=xp[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Tn-1,e.match_available=0,e.ins_h=0};function XHe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mx,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(zHe*2),this.dyn_dtree=new Uint16Array((2*FHe+1)*2),this.bl_tree=new Uint16Array((2*BHe+1)*2),ol(this.dyn_ltree),ol(this.dyn_dtree),ol(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(HHe+1),this.heap=new Uint16Array(2*t$+1),ol(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*t$+1),ol(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Vm=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Yd&&t.status!==o3&&t.status!==n$&&t.status!==r$&&t.status!==a$&&t.status!==o$&&t.status!==vc&&t.status!==yp?1:0},BZ=e=>{if(Vm(e))return bc(e,Yi);e.total_in=e.total_out=0,e.data_type=AHe;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?o3:t.wrap?Yd:vc,e.adler=t.wrap===2?0:1,t.last_flush=-2,CHe(t),ba},zZ=e=>{const t=BZ(e);return t===ba&&YHe(e.state),t},ZHe=(e,t)=>Vm(e)||e.state.wrap!==2?Yi:(e.state.gzhead=t,ba),HZ=(e,t,n,r,a,o)=>{if(!e)return Yi;let i=1;if(t===_He&&(t=6),r<0?(i=0,r=-r):r>15&&(i=2,r-=16),a<1||a>MHe||n!==mx||r<8||r>15||t<0||t>9||o<0||o>NHe||r===8&&i!==1)return bc(e,Yi);r===8&&(r=9);const s=new XHe;return e.state=s,s.strm=e,s.status=Yd,s.wrap=i,s.gzhead=null,s.w_bits=r,s.w_size=1<HZ(e,t,mx,DHe,PHe,kHe),JHe=(e,t)=>{if(Vm(e)||t>QB||t<0)return e?bc(e,Yi):Yi;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===yp&&t!==Ko)return bc(e,e.avail_out===0?MI:Yi);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(vo(e),e.avail_out===0)return n.last_flush=-1,ba}else if(e.avail_in===0&&e7(t)<=e7(r)&&t!==Ko)return bc(e,MI);if(n.status===yp&&e.avail_in!==0)return bc(e,MI);if(n.status===Yd&&n.wrap===0&&(n.status=vc),n.status===Yd){let a=mx+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=rv||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,a|=o<<6,n.strstart!==0&&(a|=UHe),a+=31-a%31,rp(n,a),n.strstart!==0&&(rp(n,e.adler>>>16),rp(n,e.adler&65535)),e.adler=1,n.status=vc,vo(e),n.pending!==0)return n.last_flush=-1,ba}if(n.status===o3){if(e.adler=0,Ln(n,31),Ln(n,139),Ln(n,8),n.gzhead)Ln(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ln(n,n.gzhead.time&255),Ln(n,n.gzhead.time>>8&255),Ln(n,n.gzhead.time>>16&255),Ln(n,n.gzhead.time>>24&255),Ln(n,n.level===9?2:n.strategy>=rv||n.level<2?4:0),Ln(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Ln(n,n.gzhead.extra.length&255),Ln(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ia(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=n$;else if(Ln(n,0),Ln(n,0),Ln(n,0),Ln(n,0),Ln(n,0),Ln(n,n.level===9?2:n.strategy>=rv||n.level<2?4:0),Ln(n,VHe),n.status=vc,vo(e),n.pending!==0)return n.last_flush=-1,ba}if(n.status===n$){if(n.gzhead.extra){let a=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex+=s,vo(e),n.pending!==0)return n.last_flush=-1,ba;a=0,o-=s}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=r$}if(n.status===r$){if(n.gzhead.name){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),vo(e),n.pending!==0)return n.last_flush=-1,ba;a=0}n.gzindexa&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=a$}if(n.status===a$){if(n.gzhead.comment){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),vo(e),n.pending!==0)return n.last_flush=-1,ba;a=0}n.gzindexa&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a))}n.status=o$}if(n.status===o$){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(vo(e),n.pending!==0))return n.last_flush=-1,ba;Ln(n,e.adler&255),Ln(n,e.adler>>8&255),e.adler=0}if(n.status=vc,vo(e),n.pending!==0)return n.last_flush=-1,ba}if(e.avail_in!==0||n.lookahead!==0||t!==_l&&n.status!==yp){let a=n.level===0?FZ(n,t):n.strategy===rv?KHe(n,t):n.strategy===OHe?qHe(n,t):xp[n.level].func(n,t);if((a===Wc||a===_f)&&(n.status=yp),a===Ua||a===Wc)return e.avail_out===0&&(n.last_flush=-1),ba;if(a===Rf&&(t===IHe?EHe(n):t!==QB&&(e$(n,0,0,!1),t===THe&&(ol(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),vo(e),e.avail_out===0))return n.last_flush=-1,ba}return t!==Ko?ba:n.wrap<=0?JB:(n.wrap===2?(Ln(n,e.adler&255),Ln(n,e.adler>>8&255),Ln(n,e.adler>>16&255),Ln(n,e.adler>>24&255),Ln(n,e.total_in&255),Ln(n,e.total_in>>8&255),Ln(n,e.total_in>>16&255),Ln(n,e.total_in>>24&255)):(rp(n,e.adler>>>16),rp(n,e.adler&65535)),vo(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?ba:JB)},eUe=e=>{if(Vm(e))return Yi;const t=e.state.status;return e.state=null,t===vc?bc(e,RHe):ba},tUe=(e,t)=>{let n=t.length;if(Vm(e))return Yi;const r=e.state,a=r.wrap;if(a===2||a===1&&r.status!==Yd||r.lookahead)return Yi;if(a===1&&(e.adler=Gg(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){a===0&&(ol(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}const o=e.avail_in,i=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Xd(r);r.lookahead>=Tn;){let c=r.strstart,u=r.lookahead-(Tn-1);do r.ins_h=$l(r,r.ins_h,r.window[c+Tn-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=Tn-1,Xd(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Tn-1,r.match_available=0,e.next_in=i,e.input=s,e.avail_in=o,r.wrap=a,ba};var nUe=QHe,rUe=HZ,aUe=zZ,oUe=BZ,iUe=ZHe,sUe=JHe,lUe=eUe,cUe=tUe,uUe="pako deflate (from Nodeca project)",Wp={deflateInit:nUe,deflateInit2:rUe,deflateReset:aUe,deflateResetKeep:oUe,deflateSetHeader:iUe,deflate:sUe,deflateEnd:lUe,deflateSetDictionary:cUe,deflateInfo:uUe};const dUe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var fUe=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)dUe(n,r)&&(e[r]=n[r])}}return e},pUe=e=>{let t=0;for(let r=0,a=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;qg[254]=qg[254]=1;var gUe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,o,i=e.length,s=0;for(a=0;a>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const mUe=(e,t)=>{if(t<65534&&e.subarray&&UZ)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const o=new Array(n*2);for(a=0,r=0;r4){o[a++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r1){o[a++]=65533;continue}i<65536?o[a++]=i:(i-=65536,o[a++]=55296|i>>10&1023,o[a++]=56320|i&1023)}return mUe(o,a)},vUe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+qg[e[n]]>t?n:t},Kg={string2buf:gUe,buf2string:hUe,utf8border:vUe};function bUe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var VZ=bUe;const WZ=Object.prototype.toString,{Z_NO_FLUSH:yUe,Z_SYNC_FLUSH:xUe,Z_FULL_FLUSH:SUe,Z_FINISH:CUe,Z_OK:i0,Z_STREAM_END:wUe,Z_DEFAULT_COMPRESSION:EUe,Z_DEFAULT_STRATEGY:IUe,Z_DEFLATED:TUe}=Tf;function Wm(e){this.options=hx.assign({level:EUe,method:TUe,chunkSize:16384,windowBits:15,memLevel:8,strategy:IUe},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new VZ,this.strm.avail_out=0;let n=Wp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==i0)throw new Error(Vc[n]);if(t.header&&Wp.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Kg.string2buf(t.dictionary):WZ.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Wp.deflateSetDictionary(this.strm,r),n!==i0)throw new Error(Vc[n]);this._dict_set=!0}}Wm.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?CUe:yUe,typeof e=="string"?n.input=Kg.string2buf(e):WZ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===xUe||o===SUe)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(a=Wp.deflate(n,o),a===wUe)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=Wp.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===i0;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Wm.prototype.onData=function(e){this.chunks.push(e)};Wm.prototype.onEnd=function(e){e===i0&&(this.result=hx.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function i3(e,t){const n=new Wm(t);if(n.push(e,!0),n.err)throw n.msg||Vc[n.err];return n.result}function RUe(e,t){return t=t||{},t.raw=!0,i3(e,t)}function _Ue(e,t){return t=t||{},t.gzip=!0,i3(e,t)}var $Ue=Wm,OUe=i3,NUe=RUe,kUe=_Ue,AUe=Tf,MUe={Deflate:$Ue,deflate:OUe,deflateRaw:NUe,gzip:kUe,constants:AUe};const av=16209,DUe=16191;var PUe=function(t,n){let r,a,o,i,s,c,u,d,p,g,m,h,b,x,S,v,y,C,w,E,I,T,R,_;const $=t.state;r=t.next_in,R=t.input,a=r+(t.avail_in-5),o=t.next_out,_=t.output,i=o-(n-t.avail_out),s=o+(t.avail_out-257),c=$.dmax,u=$.wsize,d=$.whave,p=$.wnext,g=$.window,m=$.hold,h=$.bits,b=$.lencode,x=$.distcode,S=(1<<$.lenbits)-1,v=(1<<$.distbits)-1;e:do{h<15&&(m+=R[r++]<>>24,m>>>=C,h-=C,C=y>>>16&255,C===0)_[o++]=y&65535;else if(C&16){w=y&65535,C&=15,C&&(h>>=C,h-=C),h<15&&(m+=R[r++]<>>24,m>>>=C,h-=C,C=y>>>16&255,C&16){if(E=y&65535,C&=15,hc){t.msg="invalid distance too far back",$.mode=av;break e}if(m>>>=C,h-=C,C=o-i,E>C){if(C=E-C,C>d&&$.sane){t.msg="invalid distance too far back",$.mode=av;break e}if(I=0,T=g,p===0){if(I+=u-C,C2;)_[o++]=T[I++],_[o++]=T[I++],_[o++]=T[I++],w-=3;w&&(_[o++]=T[I++],w>1&&(_[o++]=T[I++]))}else{I=o-E;do _[o++]=_[I++],_[o++]=_[I++],_[o++]=_[I++],w-=3;while(w>2);w&&(_[o++]=_[I++],w>1&&(_[o++]=_[I++]))}}else if(C&64){t.msg="invalid distance code",$.mode=av;break e}else{y=x[(y&65535)+(m&(1<>3,r-=w,h-=w<<3,m&=(1<{const c=s.bits;let u=0,d=0,p=0,g=0,m=0,h=0,b=0,x=0,S=0,v=0,y,C,w,E,I,T=null,R;const _=new Uint16Array(Au+1),$=new Uint16Array(Au+1);let M=null,P,D,O;for(u=0;u<=Au;u++)_[u]=0;for(d=0;d=1&&_[g]===0;g--);if(m>g&&(m=g),g===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,s.bits=1,0;for(p=1;p0&&(e===r7||g!==1))return-1;for($[1]=0,u=1;ut7||e===a7&&S>n7)return 1;for(;;){P=u-b,i[d]+1=R?(D=M[i[d]-R],O=T[i[d]-R]):(D=96,O=0),y=1<>b)+C]=P<<24|D<<16|O|0;while(C!==0);for(y=1<>=1;if(y!==0?(v&=y-1,v+=y):v=0,d++,--_[u]===0){if(u===g)break;u=t[n+i[d]]}if(u>m&&(v&E)!==w){for(b===0&&(b=m),I+=p,h=u-b,x=1<t7||e===a7&&S>n7)return 1;w=v&E,a[w]=m<<24|h<<16|I-o|0}}return v!==0&&(a[I+v]=u-b<<24|64<<16|0),s.bits=m,0};var Gp=zUe;const HUe=0,GZ=1,qZ=2,{Z_FINISH:o7,Z_BLOCK:UUe,Z_TREES:ov,Z_OK:Gc,Z_STREAM_END:VUe,Z_NEED_DICT:WUe,Z_STREAM_ERROR:ai,Z_DATA_ERROR:KZ,Z_MEM_ERROR:YZ,Z_BUF_ERROR:GUe,Z_DEFLATED:i7}=Tf,vx=16180,s7=16181,l7=16182,c7=16183,u7=16184,d7=16185,f7=16186,p7=16187,g7=16188,m7=16189,s0=16190,is=16191,LI=16192,h7=16193,jI=16194,v7=16195,b7=16196,y7=16197,x7=16198,iv=16199,sv=16200,S7=16201,C7=16202,w7=16203,E7=16204,I7=16205,FI=16206,T7=16207,R7=16208,yr=16209,XZ=16210,ZZ=16211,qUe=852,KUe=592,YUe=15,XUe=YUe,_7=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ZUe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const fu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeZZ?1:0},QZ=e=>{if(fu(e))return ai;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=vx,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(qUe),t.distcode=t.distdyn=new Int32Array(KUe),t.sane=1,t.back=-1,Gc},JZ=e=>{if(fu(e))return ai;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,QZ(e)},eQ=(e,t)=>{let n;if(fu(e))return ai;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?ai:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,JZ(e))},tQ=(e,t)=>{if(!e)return ai;const n=new ZUe;e.state=n,n.strm=e,n.window=null,n.mode=vx;const r=eQ(e,t);return r!==Gc&&(e.state=null),r},QUe=e=>tQ(e,XUe);let $7=!0,BI,zI;const JUe=e=>{if($7){BI=new Int32Array(512),zI=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Gp(GZ,e.lens,0,288,BI,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Gp(qZ,e.lens,0,32,zI,0,e.work,{bits:5}),$7=!1}e.lencode=BI,e.lenbits=9,e.distcode=zI,e.distbits=5},nQ=(e,t,n,r)=>{let a;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(t.subarray(n-r,n-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,a,o,i,s,c,u,d,p,g,m,h,b,x=0,S,v,y,C,w,E,I,T;const R=new Uint8Array(4);let _,$;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(fu(e)||!e.output||!e.input&&e.avail_in!==0)return ai;n=e.state,n.mode===is&&(n.mode=LI),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,p=s,g=c,T=Gc;e:for(;;)switch(n.mode){case vx:if(n.wrap===0){n.mode=LI;break}for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=ia(n.check,R,2,0),u=0,d=0,n.mode=s7;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=yr;break}if((u&15)!==i7){e.msg="unknown compression method",n.mode=yr;break}if(u>>>=4,d-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=yr;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=ia(n.check,R,2,0)),u=0,d=0,n.mode=l7;case l7:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>8&255,R[2]=u>>>16&255,R[3]=u>>>24&255,n.check=ia(n.check,R,4,0)),u=0,d=0,n.mode=c7;case c7:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=ia(n.check,R,2,0)),u=0,d=0,n.mode=u7;case u7:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=ia(n.check,R,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=d7;case d7:if(n.flags&1024&&(m=n.length,m>s&&(m=s),m&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+m),I)),n.flags&512&&n.wrap&4&&(n.check=ia(n.check,r,m,o)),s-=m,o+=m,n.length-=m),n.length))break e;n.length=0,n.mode=f7;case f7:if(n.flags&2048){if(s===0)break e;m=0;do I=r[o+m++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&m>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=is;break;case m7:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>=d&7,d-=d&7,n.mode=FI;break}for(;d<3;){if(s===0)break e;s--,u+=r[o++]<>>=1,d-=1,u&3){case 0:n.mode=h7;break;case 1:if(JUe(n),n.mode=iv,t===ov){u>>>=2,d-=2;break e}break;case 2:n.mode=b7;break;case 3:e.msg="invalid block type",n.mode=yr}u>>>=2,d-=2;break;case h7:for(u>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=yr;break}if(n.length=u&65535,u=0,d=0,n.mode=jI,t===ov)break e;case jI:n.mode=v7;case v7:if(m=n.length,m){if(m>s&&(m=s),m>c&&(m=c),m===0)break e;a.set(r.subarray(o,o+m),i),s-=m,o+=m,c-=m,i+=m,n.length-=m;break}n.mode=is;break;case b7:for(;d<14;){if(s===0)break e;s--,u+=r[o++]<>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=yr;break}n.have=0,n.mode=y7;case y7:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},T=Gp(HUe,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid code lengths set",n.mode=yr;break}n.have=0,n.mode=x7;case x7:for(;n.have>>24,v=x>>>16&255,y=x&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.lens[n.have++]=y;else{if(y===16){for($=S+2;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.have===0){e.msg="invalid bit length repeat",n.mode=yr;break}I=n.lens[n.have-1],m=3+(u&3),u>>>=2,d-=2}else if(y===17){for($=S+3;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,m=3+(u&7),u>>>=3,d-=3}else{for($=S+7;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,m=11+(u&127),u>>>=7,d-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=yr;break}for(;m--;)n.lens[n.have++]=I}}if(n.mode===yr)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=yr;break}if(n.lenbits=9,_={bits:n.lenbits},T=Gp(GZ,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid literal/lengths set",n.mode=yr;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},T=Gp(qZ,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,T){e.msg="invalid distances set",n.mode=yr;break}if(n.mode=iv,t===ov)break e;case iv:n.mode=sv;case sv:if(s>=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,PUe(e,g),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===is&&(n.back=-1);break}for(n.back=0;x=n.lencode[u&(1<>>24,v=x>>>16&255,y=x&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],S=x>>>24,v=x>>>16&255,y=x&65535,!(C+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=S,d-=S,n.back+=S,n.length=y,v===0){n.mode=I7;break}if(v&32){n.back=-1,n.mode=is;break}if(v&64){e.msg="invalid literal/length code",n.mode=yr;break}n.extra=v&15,n.mode=S7;case S7:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=C7;case C7:for(;x=n.distcode[u&(1<>>24,v=x>>>16&255,y=x&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],S=x>>>24,v=x>>>16&255,y=x&65535,!(C+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=S,d-=S,n.back+=S,v&64){e.msg="invalid distance code",n.mode=yr;break}n.offset=y,n.extra=v&15,n.mode=w7;case w7:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=yr;break}n.mode=E7;case E7:if(c===0)break e;if(m=g-c,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=yr;break}m>n.wnext?(m-=n.wnext,h=n.wsize-m):h=n.wnext-m,m>n.length&&(m=n.length),b=n.window}else b=a,h=i-n.offset,m=n.length;m>c&&(m=c),c-=m,n.length-=m;do a[i++]=b[h++];while(--m);n.length===0&&(n.mode=sv);break;case I7:if(c===0)break e;a[i++]=n.length,c--,n.mode=sv;break;case FI:if(n.wrap){for(;d<32;){if(s===0)break e;s--,u|=r[o++]<{if(fu(e))return ai;let t=e.state;return t.window&&(t.window=null),e.state=null,Gc},nVe=(e,t)=>{if(fu(e))return ai;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Gc):ai},rVe=(e,t)=>{const n=t.length;let r,a,o;return fu(e)||(r=e.state,r.wrap!==0&&r.mode!==s0)?ai:r.mode===s0&&(a=1,a=Gg(a,t,n,0),a!==r.check)?KZ:(o=nQ(e,t,n,n),o?(r.mode=XZ,YZ):(r.havedict=1,Gc))};var aVe=JZ,oVe=eQ,iVe=QZ,sVe=QUe,lVe=tQ,cVe=eVe,uVe=tVe,dVe=nVe,fVe=rVe,pVe="pako inflate (from Nodeca project)",gs={inflateReset:aVe,inflateReset2:oVe,inflateResetKeep:iVe,inflateInit:sVe,inflateInit2:lVe,inflate:cVe,inflateEnd:uVe,inflateGetHeader:dVe,inflateSetDictionary:fVe,inflateInfo:pVe};function gVe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var mVe=gVe;const rQ=Object.prototype.toString,{Z_NO_FLUSH:hVe,Z_FINISH:vVe,Z_OK:Yg,Z_STREAM_END:HI,Z_NEED_DICT:UI,Z_STREAM_ERROR:bVe,Z_DATA_ERROR:O7,Z_MEM_ERROR:yVe}=Tf;function Gm(e){this.options=hx.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new VZ,this.strm.avail_out=0;let n=gs.inflateInit2(this.strm,t.windowBits);if(n!==Yg)throw new Error(Vc[n]);if(this.header=new mVe,gs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Kg.string2buf(t.dictionary):rQ.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=gs.inflateSetDictionary(this.strm,t.dictionary),n!==Yg)))throw new Error(Vc[n])}Gm.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,i,s;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?vVe:hVe,rQ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=gs.inflate(n,i),o===UI&&a&&(o=gs.inflateSetDictionary(n,a),o===Yg?o=gs.inflate(n,i):o===O7&&(o=UI));n.avail_in>0&&o===HI&&n.state.wrap>0&&e[n.next_in]!==0;)gs.inflateReset(n),o=gs.inflate(n,i);switch(o){case bVe:case O7:case UI:case yVe:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===HI))if(this.options.to==="string"){let c=Kg.utf8border(n.output,n.next_out),u=n.next_out-c,d=Kg.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Yg&&s===0)){if(o===HI)return o=gs.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Gm.prototype.onData=function(e){this.chunks.push(e)};Gm.prototype.onEnd=function(e){e===Yg&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=hx.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function s3(e,t){const n=new Gm(t);if(n.push(e),n.err)throw n.msg||Vc[n.err];return n.result}function xVe(e,t){return t=t||{},t.raw=!0,s3(e,t)}var SVe=Gm,CVe=s3,wVe=xVe,EVe=s3,IVe=Tf,TVe={Inflate:SVe,inflate:CVe,inflateRaw:wVe,ungzip:EVe,constants:IVe};const{Deflate:tqe,deflate:RVe,deflateRaw:nqe,gzip:rqe}=MUe,{Inflate:_Ve,inflate:aqe,inflateRaw:oqe,ungzip:iqe}=TVe;var $Ve=RVe,OVe=_Ve;class qv{constructor(t,n=!1,r=!0){this.device=t,this.tracing=n,this.slipReaderEnabled=!1,this.leftOver=new Uint8Array(0),this.baudrate=0,this.traceLog="",this.lastTraceTime=Date.now(),this._DTR_state=!1,this.slipReaderEnabled=r}getInfo(){const t=this.device.getInfo();return t.usbVendorId&&t.usbProductId?`WebSerial VendorID 0x${t.usbVendorId.toString(16)} ProductID 0x${t.usbProductId.toString(16)}`:""}getPid(){return this.device.getInfo().usbProductId}trace(t){const a=`${`TRACE ${(Date.now()-this.lastTraceTime).toFixed(3)}`} ${t}`;console.log(a),this.traceLog+=a+` +Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub`})]})]}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prepConclusions1")}),f.jsxs(Tn,{children:[e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prepConclusions2")," ",f.jsx("div",{style:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",gap:16,margin:8},children:f.jsx(dn,{src:B9e,style:{maxHeight:100,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.CH341AProgrammerClampConnection")})})]}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.prepConclusions3")})]}),m=[{key:"picoHW",label:"Raspberry Pi Pico",children:p},{key:"ch341aHW",label:"CH341A Programmer",children:g}],h=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),f.jsx(Sn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),f.jsxs(Tn,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",f.jsx(it,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.locateFlashMemory")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.locateFlashMemoryText")}),f.jsx($s,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.cc3235BoxFlashing.flashCollapse.collapseTitle"),children:f.jsx(f.Fragment,{children:f.jsx(Tn,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:f.jsxs(dn.PreviewGroup,{children:[f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:L9e,style:{maxHeight:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:j9e,style:{maxHeight:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:z9e,style:{maxHeight:200,width:"auto",maxWidth:200},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:U9e,style:{maxHeight:200,width:"auto",maxWidth:200},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")})]}),f.jsxs("div",{style:{maxWidth:200,justifyItems:"center"},children:[f.jsx(dn,{src:H9e,style:{maxHeight:200,width:"auto",maxWidth:200},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")}),f.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.sop8Clamp")})]})]})})})}]}),f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installflashromtool")}),e("tonieboxes.cc3235BoxFlashing.installflashromtoolText"),f.jsx(gn,{language:"shell",code:"sudo apt-get install flashrom"}),f.jsx(it,{to:"https://www.flashrom.org/",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.installflashromtoolLink")}),SZ(),f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.hwToolSpecific")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.hwToolSpecificText")}),f.jsx(Ld,{onChange:N=>s(N),activeKey:c+"HW",items:m,indicator:{size:N=>N-20,align:"center"}})]}),b=f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacement")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText1")}),f.jsx(Sn,{type:"warning",showIcon:!0,message:e("tonieboxes.cc3235BoxFlashing.flashCAReplacementTitle"),description:f.jsxs(f.Fragment,{children:[e("tonieboxes.cc3235BoxFlashing.flashCAReplacementDescription1")," ",f.jsxs(it,{to:"https://raw.githubusercontent.com/toniebox-reverse-engineering/teddycloud/master/contrib/gencerts.sh",target:"_blank",children:[e("tonieboxes.cc3235BoxFlashing.gencertLinkText")," "]})," ",e("tonieboxes.cc3235BoxFlashing.flashCAReplacementDescription2")," ",e("tonieboxes.cc3235BoxFlashing.flashCAReplacementDescription3")]}),style:{marginBottom:16}}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText3")})]}),x=f.jsxs(f.Fragment,{children:[f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.pico.readingFlash")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.pico.readingFlashText1")}),f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.bin --progress"})}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.pico.readingFlashText2")}),f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:`flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.2.bin --progress +diff cc32xx-flash.bin cc32xx-flash.2.bin #no output = equal`})}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.extractCertificates")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.useCC3200ToolToExtract")}),f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if cc32xx-flash.bin -d cc32xx read_all_files extract/"})}),f.jsx(Z_,{}),b,f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if cc32xx-flash.bin -of cc32xx-flash.customca.bin -d cc32xx write_file ca.der /cert/ca.der"})}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.pico.writingFlash")}),f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -w cc32xx-flash.customca.bin --progress"})})]}),S=f.jsxs(f.Fragment,{children:[f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.readingFlash")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText1")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText2")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText3")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText4")}),f.jsx(gn,{language:"shell",code:"flashrom -p ch341a_spi -r backupCC3235-1.bin"}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText5")}),f.jsx(gn,{language:"shell",code:"flashrom -p ch341a_spi -r backupCC3235-2.bin"}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText6")}),f.jsx(gn,{language:"shell",code:"diff backupCC3235-1.bin backupCC3235-2.bin #no output = equal"}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText7")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.flashMemoryDumpText8")}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.extractCertificates")}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.useCC3200ToolToExtract")}),f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if backupCC3235-1.bin -d cc32xx read_all_files extract/"})}),f.jsx(Z_,{}),b,f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:"cc3200tool -if backupCC3235-1.bin -of cc32xx-flash.customca.bin -d cc32xx write_file ca.der /cert/ca.der"})}),f.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.CH341AProgrammer.writingFlash")}),f.jsx(Tn,{children:f.jsx(gn,{language:"shell",code:"flashrom -p ch341a_spi -w cc32xx-flash.customca.bin --progress"})})]}),v=[{key:"picoCE",label:"Raspberry Pi Pico",children:x},{key:"ch341aCE",label:"CH341A Programmer",children:S}],y=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),e3(!1),f.jsx("h4",{children:"CC3235"}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.dumpCertificatesCC3235")}),f.jsx(Ld,{onChange:N=>s(N),activeKey:c+"CE",items:v,indicator:{size:N=>N-20,align:"center"}}),f.jsx(Tn,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText2")})]}),w=wZ(),C=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),w]}),[E,I]=l.useState([h,y,C]),T=(N,A)=>{I(L=>{const j=[...L];return j[N]=A,j})};l.useEffect(()=>{T(n,(()=>{switch(n){case 0:return h;case 1:return y;case 2:return C;default:return f.jsx("div",{})}})())},[n,t,Cs(),c]);const R=()=>{r(n-1)},_=()=>{r(n+1)},$=f.jsx(tt,{icon:f.jsx(ks,{}),onClick:()=>R(),children:e("tonieboxes.cc3235BoxFlashing.previous")}),M=N=>{r(N)},P=()=>{D()},D=()=>{o(!0)},O=()=>{o(!1)},k=f.jsx(hx,{boxVersion:qo.cc3235,isOpen:a,onClose:O});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.cc3235BoxFlashing.title")}),f.jsx(Wn,{children:e("tonieboxes.cc3235BoxFlashing.title")}),f.jsxs(Tn,{style:{marginTop:16},children:[f.jsx(js,{current:n,onChange:M,children:d.map((N,A)=>f.jsx(W9e,{title:N.title,status:A===n&&A===d.length?"finish":A===n?"process":A=0;)e[t]=0}const Y9e=0,CZ=1,X9e=2,Z9e=3,Q9e=258,t3=29,Vm=256,Ug=Vm+1+t3,vd=30,n3=19,EZ=2*Ug+1,hc=15,kI=16,J9e=7,r3=256,IZ=16,TZ=17,RZ=18,Q_=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Kv=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),eHe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tHe=512,ms=new Array((Ug+2)*2);If(ms);const Wp=new Array(vd*2);If(Wp);const Vg=new Array(tHe);If(Vg);const Wg=new Array(Q9e-Z9e+1);If(Wg);const a3=new Array(t3);If(a3);const s0=new Array(vd);If(s0);function AI(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let $Z,OZ,NZ;function MI(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const kZ=e=>e<256?Vg[e]:Vg[256+(e>>>7)],Gg=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},no=(e,t,n)=>{e.bi_valid>kI-n?(e.bi_buf|=t<>kI-e.bi_valid,e.bi_valid+=n-kI):(e.bi_buf|=t<{no(e,n[t*2],n[t*2+1])},AZ=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},nHe=e=>{e.bi_valid===16?(Gg(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},rHe=(e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,i=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,d,p,g,m,h,b=0;for(g=0;g<=hc;g++)e.bl_count[g]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(g=c,b++),n[d*2+1]=g,!(d>r)&&(e.bl_count[g]++,m=0,d>=s&&(m=i[d-s]),h=n[d*2],e.opt_len+=h*(g+m),o&&(e.static_len+=h*(a[d*2+1]+m)));if(b!==0){do{for(g=c-1;e.bl_count[g]===0;)g--;e.bl_count[g]--,e.bl_count[g+1]+=2,e.bl_count[c]--,b-=2}while(b>0);for(g=c;g!==0;g--)for(d=e.bl_count[g];d!==0;)p=e.heap[--u],!(p>r)&&(n[p*2+1]!==g&&(e.opt_len+=(g-n[p*2+1])*n[p*2],n[p*2+1]=g),d--)}},MZ=(e,t,n)=>{const r=new Array(hc+1);let a=0,o,i;for(o=1;o<=hc;o++)a=a+n[o-1]<<1,r[o]=a;for(i=0;i<=t;i++){let s=e[i*2+1];s!==0&&(e[i*2]=AZ(r[s]++,s))}},aHe=()=>{let e,t,n,r,a;const o=new Array(hc+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Gg(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},qB=(e,t,n,r)=>{const a=t*2,o=n*2;return e[a]{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a{let r,a,o=0,i,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,a=e.pending_buf[e.sym_buf+o++],r===0?Wi(e,a,t):(i=Wg[a],Wi(e,i+Vm+1,t),s=Q_[i],s!==0&&(a-=a3[i],no(e,a,s)),r--,i=kZ(r),Wi(e,i,n),s=Kv[i],s!==0&&(r-=s0[i],no(e,r,s)));while(o{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems;let i,s,c=-1,u;for(e.heap_len=0,e.heap_max=EZ,i=0;i>1;i>=1;i--)DI(e,n,i);u=o;do i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],DI(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=s,n[u*2]=n[i*2]+n[s*2],e.depth[u]=(e.depth[i]>=e.depth[s]?e.depth[i]:e.depth[s])+1,n[i*2+1]=n[s*2+1]=u,e.heap[1]=u++,DI(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],rHe(e,t),MZ(n,c,e.bl_count)},YB=(e,t,n)=>{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=i,i=t[(r+1)*2+1],!(++s{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),r=0;r<=n;r++)if(o=i,i=t[(r+1)*2+1],!(++s{let t;for(YB(e,e.dyn_ltree,e.l_desc.max_code),YB(e,e.dyn_dtree,e.d_desc.max_code),J_(e,e.bl_desc),t=n3-1;t>=3&&e.bl_tree[_Z[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},iHe=(e,t,n,r)=>{let a;for(no(e,t-257,5),no(e,n-1,5),no(e,r-4,4),a=0;a{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return WB;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return GB;for(n=32;n{ZB||(aHe(),ZB=!0),e.l_desc=new MI(e.dyn_ltree,$Z),e.d_desc=new MI(e.dyn_dtree,OZ),e.bl_desc=new MI(e.bl_tree,NZ),e.bi_buf=0,e.bi_valid=0,DZ(e)},LZ=(e,t,n,r)=>{no(e,(Y9e<<1)+(r?1:0),3),PZ(e),Gg(e,n),Gg(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},cHe=e=>{no(e,CZ<<1,3),Wi(e,r3,ms),nHe(e)},uHe=(e,t,n,r)=>{let a,o,i=0;e.level>0?(e.strm.data_type===K9e&&(e.strm.data_type=sHe(e)),J_(e,e.l_desc),J_(e,e.d_desc),i=oHe(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=n+5,n+4<=a&&t!==-1?LZ(e,t,n,r):e.strategy===q9e||o===a?(no(e,(CZ<<1)+(r?1:0),3),KB(e,ms,Wp)):(no(e,(X9e<<1)+(r?1:0),3),iHe(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),KB(e,e.dyn_ltree,e.dyn_dtree)),DZ(e),r&&PZ(e)},dHe=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Wg[n]+Vm+1)*2]++,e.dyn_dtree[kZ(t)*2]++),e.sym_next===e.sym_end);var fHe=lHe,pHe=LZ,gHe=uHe,mHe=dHe,hHe=cHe,vHe={_tr_init:fHe,_tr_stored_block:pHe,_tr_flush_block:gHe,_tr_tally:mHe,_tr_align:hHe};const bHe=(e,t,n,r)=>{let a=e&65535|0,o=e>>>16&65535|0,i=0;for(;n!==0;){i=n>2e3?2e3:n,n-=i;do a=a+t[r++]|0,o=o+a|0;while(--i);a%=65521,o%=65521}return a|o<<16|0};var qg=bHe;const yHe=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},xHe=new Uint32Array(yHe()),SHe=(e,t,n,r)=>{const a=xHe,o=r+n;e^=-1;for(let i=r;i>>8^a[(e^t[i])&255];return e^-1};var ia=SHe,Vc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Tf={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:wHe,_tr_stored_block:e$,_tr_flush_block:CHe,_tr_tally:Rl,_tr_align:EHe}=vHe,{Z_NO_FLUSH:_l,Z_PARTIAL_FLUSH:IHe,Z_FULL_FLUSH:THe,Z_FINISH:Ko,Z_BLOCK:QB,Z_OK:ya,Z_STREAM_END:JB,Z_STREAM_ERROR:Xi,Z_DATA_ERROR:RHe,Z_BUF_ERROR:PI,Z_DEFAULT_COMPRESSION:_He,Z_FILTERED:$He,Z_HUFFMAN_ONLY:av,Z_RLE:OHe,Z_FIXED:NHe,Z_DEFAULT_STRATEGY:kHe,Z_UNKNOWN:AHe,Z_DEFLATED:vx}=Tf,MHe=9,DHe=15,PHe=8,LHe=29,jHe=256,t$=jHe+1+LHe,FHe=30,BHe=19,zHe=2*t$+1,HHe=15,Rn=3,ml=258,Zi=ml+Rn+1,UHe=32,Yd=42,o3=57,n$=69,r$=73,a$=91,o$=103,vc=113,yp=666,Ua=1,Rf=2,Wc=3,_f=4,VHe=3,bc=(e,t)=>(e.msg=Vc[t],t),e7=e=>e*2-(e>4?9:0),il=e=>{let t=e.length;for(;--t>=0;)e[t]=0},WHe=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=a?n-a:0;while(--t);t=a,r=t;do n=e.prev[--r],e.prev[r]=n>=a?n-a:0;while(--t)};let GHe=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Io=(e,t)=>{CHe(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,vo(e.strm)},Ln=(e,t)=>{e.pending_buf[e.pending++]=t},rp=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},i$=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),a===0?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),e.state.wrap===1?e.adler=qg(e.adler,t,a,n):e.state.wrap===2&&(e.adler=ia(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},jZ=(e,t)=>{let n=e.max_chain_length,r=e.strstart,a,o,i=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-Zi?e.strstart-(e.w_size-Zi):0,u=e.window,d=e.w_mask,p=e.prev,g=e.strstart+ml;let m=u[r+i-1],h=u[r+i];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(u[a+i]!==h||u[a+i-1]!==m||u[a]!==u[r]||u[++a]!==u[r+1])){r+=2,a++;do;while(u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&ri){if(e.match_start=t,i=o,o>=s)break;m=u[r+i-1],h=u[r+i]}}while((t=p[t&d])>c&&--n!==0);return i<=e.lookahead?i:e.lookahead},Xd=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Zi)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),WHe(e),r+=t),e.strm.avail_in===0)break;if(n=i$(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=Rn)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=$l(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=$l(e,e.ins_h,e.window[a+Rn-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,a,o,i=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outa+e.strm.avail_in&&(r=a+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,vo(e.strm),a&&(a>r&&(a=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+a),e.strm.next_out),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a,e.block_start+=a,r-=a),r&&(i$(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(i===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(i$(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,a=e.strstart-e.block_start,(a>=n||(a||t===Ko)&&t!==_l&&e.strm.avail_in===0&&a<=o)&&(r=a>o?o:a,i=t===Ko&&e.strm.avail_in===0&&r===a?1:0,e$(e,e.block_start,r,i),e.block_start+=r,vo(e.strm)),i?Wc:Ua)},LI=(e,t)=>{let n,r;for(;;){if(e.lookahead=Rn&&(e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Rn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Zi&&(e.match_length=jZ(e,n)),e.match_length>=Rn)if(r=Rl(e,e.strstart-e.match_start,e.match_length-Rn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Rn){e.match_length--;do e.strstart++,e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Rn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=$l(e,e.ins_h,e.window[e.strstart+1]);else r=Rl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Io(e,!1),e.strm.avail_out===0))return Ua}return e.insert=e.strstart{let n,r,a;for(;;){if(e.lookahead=Rn&&(e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Rn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Rn-1,n!==0&&e.prev_length4096)&&(e.match_length=Rn-1)),e.prev_length>=Rn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-Rn,r=Rl(e,e.strstart-1-e.prev_match,e.prev_length-Rn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=$l(e,e.ins_h,e.window[e.strstart+Rn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Rn-1,e.strstart++,r&&(Io(e,!1),e.strm.avail_out===0))return Ua}else if(e.match_available){if(r=Rl(e,0,e.window[e.strstart-1]),r&&Io(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ua}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Rl(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,a,o;const i=e.window;for(;;){if(e.lookahead<=ml){if(Xd(e),e.lookahead<=ml&&t===_l)return Ua;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Rn&&e.strstart>0&&(a=e.strstart-1,r=i[a],r===i[++a]&&r===i[++a]&&r===i[++a])){o=e.strstart+ml;do;while(r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Rn?(n=Rl(e,1,e.match_length-Rn),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Rl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Io(e,!1),e.strm.avail_out===0))return Ua}return e.insert=0,t===Ko?(Io(e,!0),e.strm.avail_out===0?Wc:_f):e.sym_next&&(Io(e,!1),e.strm.avail_out===0)?Ua:Rf},KHe=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Xd(e),e.lookahead===0)){if(t===_l)return Ua;break}if(e.match_length=0,n=Rl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Io(e,!1),e.strm.avail_out===0))return Ua}return e.insert=0,t===Ko?(Io(e,!0),e.strm.avail_out===0?Wc:_f):e.sym_next&&(Io(e,!1),e.strm.avail_out===0)?Ua:Rf};function Li(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const xp=[new Li(0,0,0,0,FZ),new Li(4,4,8,4,LI),new Li(4,5,16,8,LI),new Li(4,6,32,32,LI),new Li(4,4,16,16,ku),new Li(8,16,32,32,ku),new Li(8,16,128,128,ku),new Li(8,32,128,256,ku),new Li(32,128,258,1024,ku),new Li(32,258,258,4096,ku)],YHe=e=>{e.window_size=2*e.w_size,il(e.head),e.max_lazy_match=xp[e.level].max_lazy,e.good_match=xp[e.level].good_length,e.nice_match=xp[e.level].nice_length,e.max_chain_length=xp[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Rn-1,e.match_available=0,e.ins_h=0};function XHe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vx,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(zHe*2),this.dyn_dtree=new Uint16Array((2*FHe+1)*2),this.bl_tree=new Uint16Array((2*BHe+1)*2),il(this.dyn_ltree),il(this.dyn_dtree),il(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(HHe+1),this.heap=new Uint16Array(2*t$+1),il(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*t$+1),il(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Wm=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Yd&&t.status!==o3&&t.status!==n$&&t.status!==r$&&t.status!==a$&&t.status!==o$&&t.status!==vc&&t.status!==yp?1:0},BZ=e=>{if(Wm(e))return bc(e,Xi);e.total_in=e.total_out=0,e.data_type=AHe;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?o3:t.wrap?Yd:vc,e.adler=t.wrap===2?0:1,t.last_flush=-2,wHe(t),ya},zZ=e=>{const t=BZ(e);return t===ya&&YHe(e.state),t},ZHe=(e,t)=>Wm(e)||e.state.wrap!==2?Xi:(e.state.gzhead=t,ya),HZ=(e,t,n,r,a,o)=>{if(!e)return Xi;let i=1;if(t===_He&&(t=6),r<0?(i=0,r=-r):r>15&&(i=2,r-=16),a<1||a>MHe||n!==vx||r<8||r>15||t<0||t>9||o<0||o>NHe||r===8&&i!==1)return bc(e,Xi);r===8&&(r=9);const s=new XHe;return e.state=s,s.strm=e,s.status=Yd,s.wrap=i,s.gzhead=null,s.w_bits=r,s.w_size=1<HZ(e,t,vx,DHe,PHe,kHe),JHe=(e,t)=>{if(Wm(e)||t>QB||t<0)return e?bc(e,Xi):Xi;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===yp&&t!==Ko)return bc(e,e.avail_out===0?PI:Xi);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(vo(e),e.avail_out===0)return n.last_flush=-1,ya}else if(e.avail_in===0&&e7(t)<=e7(r)&&t!==Ko)return bc(e,PI);if(n.status===yp&&e.avail_in!==0)return bc(e,PI);if(n.status===Yd&&n.wrap===0&&(n.status=vc),n.status===Yd){let a=vx+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=av||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,a|=o<<6,n.strstart!==0&&(a|=UHe),a+=31-a%31,rp(n,a),n.strstart!==0&&(rp(n,e.adler>>>16),rp(n,e.adler&65535)),e.adler=1,n.status=vc,vo(e),n.pending!==0)return n.last_flush=-1,ya}if(n.status===o3){if(e.adler=0,Ln(n,31),Ln(n,139),Ln(n,8),n.gzhead)Ln(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ln(n,n.gzhead.time&255),Ln(n,n.gzhead.time>>8&255),Ln(n,n.gzhead.time>>16&255),Ln(n,n.gzhead.time>>24&255),Ln(n,n.level===9?2:n.strategy>=av||n.level<2?4:0),Ln(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Ln(n,n.gzhead.extra.length&255),Ln(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ia(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=n$;else if(Ln(n,0),Ln(n,0),Ln(n,0),Ln(n,0),Ln(n,0),Ln(n,n.level===9?2:n.strategy>=av||n.level<2?4:0),Ln(n,VHe),n.status=vc,vo(e),n.pending!==0)return n.last_flush=-1,ya}if(n.status===n$){if(n.gzhead.extra){let a=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex+=s,vo(e),n.pending!==0)return n.last_flush=-1,ya;a=0,o-=s}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=r$}if(n.status===r$){if(n.gzhead.name){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),vo(e),n.pending!==0)return n.last_flush=-1,ya;a=0}n.gzindexa&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=a$}if(n.status===a$){if(n.gzhead.comment){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a)),vo(e),n.pending!==0)return n.last_flush=-1,ya;a=0}n.gzindexa&&(e.adler=ia(e.adler,n.pending_buf,n.pending-a,a))}n.status=o$}if(n.status===o$){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(vo(e),n.pending!==0))return n.last_flush=-1,ya;Ln(n,e.adler&255),Ln(n,e.adler>>8&255),e.adler=0}if(n.status=vc,vo(e),n.pending!==0)return n.last_flush=-1,ya}if(e.avail_in!==0||n.lookahead!==0||t!==_l&&n.status!==yp){let a=n.level===0?FZ(n,t):n.strategy===av?KHe(n,t):n.strategy===OHe?qHe(n,t):xp[n.level].func(n,t);if((a===Wc||a===_f)&&(n.status=yp),a===Ua||a===Wc)return e.avail_out===0&&(n.last_flush=-1),ya;if(a===Rf&&(t===IHe?EHe(n):t!==QB&&(e$(n,0,0,!1),t===THe&&(il(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),vo(e),e.avail_out===0))return n.last_flush=-1,ya}return t!==Ko?ya:n.wrap<=0?JB:(n.wrap===2?(Ln(n,e.adler&255),Ln(n,e.adler>>8&255),Ln(n,e.adler>>16&255),Ln(n,e.adler>>24&255),Ln(n,e.total_in&255),Ln(n,e.total_in>>8&255),Ln(n,e.total_in>>16&255),Ln(n,e.total_in>>24&255)):(rp(n,e.adler>>>16),rp(n,e.adler&65535)),vo(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?ya:JB)},eUe=e=>{if(Wm(e))return Xi;const t=e.state.status;return e.state=null,t===vc?bc(e,RHe):ya},tUe=(e,t)=>{let n=t.length;if(Wm(e))return Xi;const r=e.state,a=r.wrap;if(a===2||a===1&&r.status!==Yd||r.lookahead)return Xi;if(a===1&&(e.adler=qg(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){a===0&&(il(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}const o=e.avail_in,i=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Xd(r);r.lookahead>=Rn;){let c=r.strstart,u=r.lookahead-(Rn-1);do r.ins_h=$l(r,r.ins_h,r.window[c+Rn-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=Rn-1,Xd(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Rn-1,r.match_available=0,e.next_in=i,e.input=s,e.avail_in=o,r.wrap=a,ya};var nUe=QHe,rUe=HZ,aUe=zZ,oUe=BZ,iUe=ZHe,sUe=JHe,lUe=eUe,cUe=tUe,uUe="pako deflate (from Nodeca project)",Gp={deflateInit:nUe,deflateInit2:rUe,deflateReset:aUe,deflateResetKeep:oUe,deflateSetHeader:iUe,deflate:sUe,deflateEnd:lUe,deflateSetDictionary:cUe,deflateInfo:uUe};const dUe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var fUe=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)dUe(n,r)&&(e[r]=n[r])}}return e},pUe=e=>{let t=0;for(let r=0,a=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Kg[254]=Kg[254]=1;var gUe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,o,i=e.length,s=0;for(a=0;a>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const mUe=(e,t)=>{if(t<65534&&e.subarray&&UZ)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const o=new Array(n*2);for(a=0,r=0;r4){o[a++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r1){o[a++]=65533;continue}i<65536?o[a++]=i:(i-=65536,o[a++]=55296|i>>10&1023,o[a++]=56320|i&1023)}return mUe(o,a)},vUe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Kg[e[n]]>t?n:t},Yg={string2buf:gUe,buf2string:hUe,utf8border:vUe};function bUe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var VZ=bUe;const WZ=Object.prototype.toString,{Z_NO_FLUSH:yUe,Z_SYNC_FLUSH:xUe,Z_FULL_FLUSH:SUe,Z_FINISH:wUe,Z_OK:l0,Z_STREAM_END:CUe,Z_DEFAULT_COMPRESSION:EUe,Z_DEFAULT_STRATEGY:IUe,Z_DEFLATED:TUe}=Tf;function Gm(e){this.options=bx.assign({level:EUe,method:TUe,chunkSize:16384,windowBits:15,memLevel:8,strategy:IUe},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new VZ,this.strm.avail_out=0;let n=Gp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l0)throw new Error(Vc[n]);if(t.header&&Gp.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Yg.string2buf(t.dictionary):WZ.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Gp.deflateSetDictionary(this.strm,r),n!==l0)throw new Error(Vc[n]);this._dict_set=!0}}Gm.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?wUe:yUe,typeof e=="string"?n.input=Yg.string2buf(e):WZ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===xUe||o===SUe)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(a=Gp.deflate(n,o),a===CUe)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=Gp.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===l0;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Gm.prototype.onData=function(e){this.chunks.push(e)};Gm.prototype.onEnd=function(e){e===l0&&(this.result=bx.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function i3(e,t){const n=new Gm(t);if(n.push(e,!0),n.err)throw n.msg||Vc[n.err];return n.result}function RUe(e,t){return t=t||{},t.raw=!0,i3(e,t)}function _Ue(e,t){return t=t||{},t.gzip=!0,i3(e,t)}var $Ue=Gm,OUe=i3,NUe=RUe,kUe=_Ue,AUe=Tf,MUe={Deflate:$Ue,deflate:OUe,deflateRaw:NUe,gzip:kUe,constants:AUe};const ov=16209,DUe=16191;var PUe=function(t,n){let r,a,o,i,s,c,u,d,p,g,m,h,b,x,S,v,y,w,C,E,I,T,R,_;const $=t.state;r=t.next_in,R=t.input,a=r+(t.avail_in-5),o=t.next_out,_=t.output,i=o-(n-t.avail_out),s=o+(t.avail_out-257),c=$.dmax,u=$.wsize,d=$.whave,p=$.wnext,g=$.window,m=$.hold,h=$.bits,b=$.lencode,x=$.distcode,S=(1<<$.lenbits)-1,v=(1<<$.distbits)-1;e:do{h<15&&(m+=R[r++]<>>24,m>>>=w,h-=w,w=y>>>16&255,w===0)_[o++]=y&65535;else if(w&16){C=y&65535,w&=15,w&&(h>>=w,h-=w),h<15&&(m+=R[r++]<>>24,m>>>=w,h-=w,w=y>>>16&255,w&16){if(E=y&65535,w&=15,hc){t.msg="invalid distance too far back",$.mode=ov;break e}if(m>>>=w,h-=w,w=o-i,E>w){if(w=E-w,w>d&&$.sane){t.msg="invalid distance too far back",$.mode=ov;break e}if(I=0,T=g,p===0){if(I+=u-w,w2;)_[o++]=T[I++],_[o++]=T[I++],_[o++]=T[I++],C-=3;C&&(_[o++]=T[I++],C>1&&(_[o++]=T[I++]))}else{I=o-E;do _[o++]=_[I++],_[o++]=_[I++],_[o++]=_[I++],C-=3;while(C>2);C&&(_[o++]=_[I++],C>1&&(_[o++]=_[I++]))}}else if(w&64){t.msg="invalid distance code",$.mode=ov;break e}else{y=x[(y&65535)+(m&(1<>3,r-=C,h-=C<<3,m&=(1<{const c=s.bits;let u=0,d=0,p=0,g=0,m=0,h=0,b=0,x=0,S=0,v=0,y,w,C,E,I,T=null,R;const _=new Uint16Array(Au+1),$=new Uint16Array(Au+1);let M=null,P,D,O;for(u=0;u<=Au;u++)_[u]=0;for(d=0;d=1&&_[g]===0;g--);if(m>g&&(m=g),g===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,s.bits=1,0;for(p=1;p0&&(e===r7||g!==1))return-1;for($[1]=0,u=1;ut7||e===a7&&S>n7)return 1;for(;;){P=u-b,i[d]+1=R?(D=M[i[d]-R],O=T[i[d]-R]):(D=96,O=0),y=1<>b)+w]=P<<24|D<<16|O|0;while(w!==0);for(y=1<>=1;if(y!==0?(v&=y-1,v+=y):v=0,d++,--_[u]===0){if(u===g)break;u=t[n+i[d]]}if(u>m&&(v&E)!==C){for(b===0&&(b=m),I+=p,h=u-b,x=1<t7||e===a7&&S>n7)return 1;C=v&E,a[C]=m<<24|h<<16|I-o|0}}return v!==0&&(a[I+v]=u-b<<24|64<<16|0),s.bits=m,0};var qp=zUe;const HUe=0,GZ=1,qZ=2,{Z_FINISH:o7,Z_BLOCK:UUe,Z_TREES:iv,Z_OK:Gc,Z_STREAM_END:VUe,Z_NEED_DICT:WUe,Z_STREAM_ERROR:oi,Z_DATA_ERROR:KZ,Z_MEM_ERROR:YZ,Z_BUF_ERROR:GUe,Z_DEFLATED:i7}=Tf,yx=16180,s7=16181,l7=16182,c7=16183,u7=16184,d7=16185,f7=16186,p7=16187,g7=16188,m7=16189,c0=16190,ls=16191,FI=16192,h7=16193,BI=16194,v7=16195,b7=16196,y7=16197,x7=16198,sv=16199,lv=16200,S7=16201,w7=16202,C7=16203,E7=16204,I7=16205,zI=16206,T7=16207,R7=16208,yr=16209,XZ=16210,ZZ=16211,qUe=852,KUe=592,YUe=15,XUe=YUe,_7=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ZUe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const fu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modeZZ?1:0},QZ=e=>{if(fu(e))return oi;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=yx,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(qUe),t.distcode=t.distdyn=new Int32Array(KUe),t.sane=1,t.back=-1,Gc},JZ=e=>{if(fu(e))return oi;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,QZ(e)},eQ=(e,t)=>{let n;if(fu(e))return oi;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?oi:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,JZ(e))},tQ=(e,t)=>{if(!e)return oi;const n=new ZUe;e.state=n,n.strm=e,n.window=null,n.mode=yx;const r=eQ(e,t);return r!==Gc&&(e.state=null),r},QUe=e=>tQ(e,XUe);let $7=!0,HI,UI;const JUe=e=>{if($7){HI=new Int32Array(512),UI=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(qp(GZ,e.lens,0,288,HI,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;qp(qZ,e.lens,0,32,UI,0,e.work,{bits:5}),$7=!1}e.lencode=HI,e.lenbits=9,e.distcode=UI,e.distbits=5},nQ=(e,t,n,r)=>{let a;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(t.subarray(n-r,n-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,a,o,i,s,c,u,d,p,g,m,h,b,x=0,S,v,y,w,C,E,I,T;const R=new Uint8Array(4);let _,$;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(fu(e)||!e.output||!e.input&&e.avail_in!==0)return oi;n=e.state,n.mode===ls&&(n.mode=FI),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,p=s,g=c,T=Gc;e:for(;;)switch(n.mode){case yx:if(n.wrap===0){n.mode=FI;break}for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=ia(n.check,R,2,0),u=0,d=0,n.mode=s7;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=yr;break}if((u&15)!==i7){e.msg="unknown compression method",n.mode=yr;break}if(u>>>=4,d-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=yr;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=ia(n.check,R,2,0)),u=0,d=0,n.mode=l7;case l7:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>8&255,R[2]=u>>>16&255,R[3]=u>>>24&255,n.check=ia(n.check,R,4,0)),u=0,d=0,n.mode=c7;case c7:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=ia(n.check,R,2,0)),u=0,d=0,n.mode=u7;case u7:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=ia(n.check,R,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=d7;case d7:if(n.flags&1024&&(m=n.length,m>s&&(m=s),m&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+m),I)),n.flags&512&&n.wrap&4&&(n.check=ia(n.check,r,m,o)),s-=m,o+=m,n.length-=m),n.length))break e;n.length=0,n.mode=f7;case f7:if(n.flags&2048){if(s===0)break e;m=0;do I=r[o+m++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&m>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ls;break;case m7:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>=d&7,d-=d&7,n.mode=zI;break}for(;d<3;){if(s===0)break e;s--,u+=r[o++]<>>=1,d-=1,u&3){case 0:n.mode=h7;break;case 1:if(JUe(n),n.mode=sv,t===iv){u>>>=2,d-=2;break e}break;case 2:n.mode=b7;break;case 3:e.msg="invalid block type",n.mode=yr}u>>>=2,d-=2;break;case h7:for(u>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=yr;break}if(n.length=u&65535,u=0,d=0,n.mode=BI,t===iv)break e;case BI:n.mode=v7;case v7:if(m=n.length,m){if(m>s&&(m=s),m>c&&(m=c),m===0)break e;a.set(r.subarray(o,o+m),i),s-=m,o+=m,c-=m,i+=m,n.length-=m;break}n.mode=ls;break;case b7:for(;d<14;){if(s===0)break e;s--,u+=r[o++]<>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=yr;break}n.have=0,n.mode=y7;case y7:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},T=qp(HUe,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid code lengths set",n.mode=yr;break}n.have=0,n.mode=x7;case x7:for(;n.have>>24,v=x>>>16&255,y=x&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.lens[n.have++]=y;else{if(y===16){for($=S+2;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.have===0){e.msg="invalid bit length repeat",n.mode=yr;break}I=n.lens[n.have-1],m=3+(u&3),u>>>=2,d-=2}else if(y===17){for($=S+3;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,m=3+(u&7),u>>>=3,d-=3}else{for($=S+7;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,m=11+(u&127),u>>>=7,d-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=yr;break}for(;m--;)n.lens[n.have++]=I}}if(n.mode===yr)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=yr;break}if(n.lenbits=9,_={bits:n.lenbits},T=qp(GZ,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid literal/lengths set",n.mode=yr;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},T=qp(qZ,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,T){e.msg="invalid distances set",n.mode=yr;break}if(n.mode=sv,t===iv)break e;case sv:n.mode=lv;case lv:if(s>=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,PUe(e,g),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===ls&&(n.back=-1);break}for(n.back=0;x=n.lencode[u&(1<>>24,v=x>>>16&255,y=x&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>w)],S=x>>>24,v=x>>>16&255,y=x&65535,!(w+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=w,d-=w,n.back+=w}if(u>>>=S,d-=S,n.back+=S,n.length=y,v===0){n.mode=I7;break}if(v&32){n.back=-1,n.mode=ls;break}if(v&64){e.msg="invalid literal/length code",n.mode=yr;break}n.extra=v&15,n.mode=S7;case S7:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=w7;case w7:for(;x=n.distcode[u&(1<>>24,v=x>>>16&255,y=x&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>w)],S=x>>>24,v=x>>>16&255,y=x&65535,!(w+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=w,d-=w,n.back+=w}if(u>>>=S,d-=S,n.back+=S,v&64){e.msg="invalid distance code",n.mode=yr;break}n.offset=y,n.extra=v&15,n.mode=C7;case C7:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=yr;break}n.mode=E7;case E7:if(c===0)break e;if(m=g-c,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=yr;break}m>n.wnext?(m-=n.wnext,h=n.wsize-m):h=n.wnext-m,m>n.length&&(m=n.length),b=n.window}else b=a,h=i-n.offset,m=n.length;m>c&&(m=c),c-=m,n.length-=m;do a[i++]=b[h++];while(--m);n.length===0&&(n.mode=lv);break;case I7:if(c===0)break e;a[i++]=n.length,c--,n.mode=lv;break;case zI:if(n.wrap){for(;d<32;){if(s===0)break e;s--,u|=r[o++]<{if(fu(e))return oi;let t=e.state;return t.window&&(t.window=null),e.state=null,Gc},nVe=(e,t)=>{if(fu(e))return oi;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,Gc):oi},rVe=(e,t)=>{const n=t.length;let r,a,o;return fu(e)||(r=e.state,r.wrap!==0&&r.mode!==c0)?oi:r.mode===c0&&(a=1,a=qg(a,t,n,0),a!==r.check)?KZ:(o=nQ(e,t,n,n),o?(r.mode=XZ,YZ):(r.havedict=1,Gc))};var aVe=JZ,oVe=eQ,iVe=QZ,sVe=QUe,lVe=tQ,cVe=eVe,uVe=tVe,dVe=nVe,fVe=rVe,pVe="pako inflate (from Nodeca project)",hs={inflateReset:aVe,inflateReset2:oVe,inflateResetKeep:iVe,inflateInit:sVe,inflateInit2:lVe,inflate:cVe,inflateEnd:uVe,inflateGetHeader:dVe,inflateSetDictionary:fVe,inflateInfo:pVe};function gVe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var mVe=gVe;const rQ=Object.prototype.toString,{Z_NO_FLUSH:hVe,Z_FINISH:vVe,Z_OK:Xg,Z_STREAM_END:VI,Z_NEED_DICT:WI,Z_STREAM_ERROR:bVe,Z_DATA_ERROR:O7,Z_MEM_ERROR:yVe}=Tf;function qm(e){this.options=bx.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new VZ,this.strm.avail_out=0;let n=hs.inflateInit2(this.strm,t.windowBits);if(n!==Xg)throw new Error(Vc[n]);if(this.header=new mVe,hs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Yg.string2buf(t.dictionary):rQ.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=hs.inflateSetDictionary(this.strm,t.dictionary),n!==Xg)))throw new Error(Vc[n])}qm.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,i,s;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?vVe:hVe,rQ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=hs.inflate(n,i),o===WI&&a&&(o=hs.inflateSetDictionary(n,a),o===Xg?o=hs.inflate(n,i):o===O7&&(o=WI));n.avail_in>0&&o===VI&&n.state.wrap>0&&e[n.next_in]!==0;)hs.inflateReset(n),o=hs.inflate(n,i);switch(o){case bVe:case O7:case WI:case yVe:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===VI))if(this.options.to==="string"){let c=Yg.utf8border(n.output,n.next_out),u=n.next_out-c,d=Yg.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Xg&&s===0)){if(o===VI)return o=hs.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};qm.prototype.onData=function(e){this.chunks.push(e)};qm.prototype.onEnd=function(e){e===Xg&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=bx.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function s3(e,t){const n=new qm(t);if(n.push(e),n.err)throw n.msg||Vc[n.err];return n.result}function xVe(e,t){return t=t||{},t.raw=!0,s3(e,t)}var SVe=qm,wVe=s3,CVe=xVe,EVe=s3,IVe=Tf,TVe={Inflate:SVe,inflate:wVe,inflateRaw:CVe,ungzip:EVe,constants:IVe};const{Deflate:tqe,deflate:RVe,deflateRaw:nqe,gzip:rqe}=MUe,{Inflate:_Ve,inflate:aqe,inflateRaw:oqe,ungzip:iqe}=TVe;var $Ve=RVe,OVe=_Ve;class Sp{constructor(t,n=!1,r=!0){this.device=t,this.tracing=n,this.slipReaderEnabled=!1,this.leftOver=new Uint8Array(0),this.baudrate=0,this.traceLog="",this.lastTraceTime=Date.now(),this._DTR_state=!1,this.slipReaderEnabled=r}getInfo(){const t=this.device.getInfo();return t.usbVendorId&&t.usbProductId?`WebSerial VendorID 0x${t.usbVendorId.toString(16)} ProductID 0x${t.usbProductId.toString(16)}`:""}getPid(){return this.device.getInfo().usbProductId}trace(t){const a=`${`TRACE ${(Date.now()-this.lastTraceTime).toFixed(3)}`} ${t}`;console.log(a),this.traceLog+=a+` `}async returnTrace(){try{await navigator.clipboard.writeText(this.traceLog),console.log("Text copied to clipboard!")}catch(t){console.error("Failed to copy text:",t)}}hexify(t){return Array.from(t).map(n=>n.toString(16).padStart(2,"0")).join("").padEnd(16," ")}hexConvert(t,n=!0){if(n&&t.length>16){let r="",a=t;for(;a.length>0;){const o=a.slice(0,16),i=String.fromCharCode(...o).split("").map(s=>s===" "||s>=" "&&s<="~"&&s!==" "?s:".").join("");a=a.slice(16),r+=` - ${this.hexify(o.slice(0,8))} ${this.hexify(o.slice(8))} | ${i}`}return r}else return this.hexify(t)}slipWriter(t){const n=[];n.push(192);for(let r=0;r0)return o;a=this.leftOver,this.leftOver=new Uint8Array(0)}if(this.device.readable==null)return this.leftOver;this.reader=this.device.readable.getReader();try{t>0&&(r=setTimeout(()=>{this.reader&&this.reader.cancel()},t));do{const{value:o,done:i}=await this.reader.read();if(i)throw this.leftOver=a,new Error("Timeout");a=new Uint8Array(this._appendBuffer(a.buffer,o.buffer))}while(a.length0&&clearTimeout(r),this.reader.releaseLock()}if(this.tracing&&(console.log("Read bytes"),this.trace(`Read ${a.length} bytes: ${this.hexConvert(a)}`)),this.slipReaderEnabled){const o=this.slipReader(a);return this.tracing&&(console.log("Slip reader results"),this.trace(`Read ${o.length} bytes: ${this.hexConvert(o)}`)),o}return a}async rawRead(t=0){if(this.leftOver.length!=0){const r=this.leftOver;return this.leftOver=new Uint8Array(0),r}if(!this.device.readable)return this.leftOver;this.reader=this.device.readable.getReader();let n;try{t>0&&(n=setTimeout(()=>{this.reader&&this.reader.cancel()},t));const{value:r,done:a}=await this.reader.read();return a||this.tracing&&(console.log("Raw Read bytes"),this.trace(`Read ${r.length} bytes: ${this.hexConvert(r)}`)),r}finally{t>0&&clearTimeout(n),this.reader.releaseLock()}}async setRTS(t){await this.device.setSignals({requestToSend:t}),await this.setDTR(this._DTR_state)}async setDTR(t){this._DTR_state=t,await this.device.setSignals({dataTerminalReady:t})}async connect(t=115200,n={}){await this.device.open({baudRate:t,dataBits:n==null?void 0:n.dataBits,stopBits:n==null?void 0:n.stopBits,bufferSize:n==null?void 0:n.bufferSize,parity:n==null?void 0:n.parity,flowControl:n==null?void 0:n.flowControl}),this.baudrate=t,this.leftOver=new Uint8Array(0)}async sleep(t){return new Promise(n=>setTimeout(n,t))}async waitForUnlock(t){for(;this.device.readable&&this.device.readable.locked||this.device.writable&&this.device.writable.locked;)await this.sleep(t)}async disconnect(){var t,n;!((t=this.device.readable)===null||t===void 0)&&t.locked&&await((n=this.reader)===null||n===void 0?void 0:n.cancel()),await this.waitForUnlock(400),this.reader=void 0,await this.device.close()}}function Kv(e){return new Promise(t=>setTimeout(t,e))}async function NVe(e){await e.setRTS(!1),await e.setDTR(!1),await Kv(100),await e.setDTR(!0),await e.setRTS(!1),await Kv(100),await e.setRTS(!0),await e.setDTR(!1),await e.setRTS(!0),await Kv(100),await e.setRTS(!1),await e.setDTR(!1)}function kVe(e){const t=["D","R","W"],n=e.split("|");for(const r of n){const a=r[0],o=r.slice(1);if(!t.includes(a))return!1;if(a==="D"||a==="R"){if(o!=="0"&&o!=="1")return!1}else if(a==="W"){const i=parseInt(o);if(isNaN(i)||i<=0)return!1}}return!0}async function AVe(e,t){const n={D:async r=>await e.setDTR(r),R:async r=>await e.setRTS(r),W:async r=>await Kv(r)};try{if(!kVe(t))return;const a=t.split("|");for(const o of a){const i=o[0],s=o.slice(1);i==="W"?await n.W(Number(s)):(i==="D"||i==="R")&&await n[i](s==="1")}}catch{throw new Error("Invalid custom reset sequence")}}var MVe=function(t){return atob(t)};const N7=Wa(MVe);async function DVe(e){switch(e){case 15736195:{const{ESP32ROM:t}=await ci(async()=>{const{ESP32ROM:n}=await import("./esp32-BPYaDt9v.js");return{ESP32ROM:n}},__vite__mapDeps([0,1]));return new t}case 1867591791:case 2084675695:{const{ESP32C2ROM:t}=await ci(async()=>{const{ESP32C2ROM:n}=await import("./esp32c2-CVPL8n1g.js");return{ESP32C2ROM:n}},__vite__mapDeps([2,3,1]));return new t}case 1763790959:case 456216687:case 1216438383:case 1130455151:{const{ESP32C3ROM:t}=await ci(async()=>{const{ESP32C3ROM:n}=await import("./esp32c3-I3vXmsVg.js");return{ESP32C3ROM:n}},__vite__mapDeps([3,1]));return new t}case 752910447:{const{ESP32C6ROM:t}=await ci(async()=>{const{ESP32C6ROM:n}=await import("./esp32c6-C93uIFil.js");return{ESP32C6ROM:n}},__vite__mapDeps([4,1]));return new t}case 871374959:case 606167151:{const{ESP32C61ROM:t}=await ci(async()=>{const{ESP32C61ROM:n}=await import("./esp32c61-Qo5S0GG2.js");return{ESP32C61ROM:n}},__vite__mapDeps([5,4,1]));return new t}case 285294703:case 1675706479:{const{ESP32C5ROM:t}=await ci(async()=>{const{ESP32C5ROM:n}=await import("./esp32c5-CAGCiNY4.js");return{ESP32C5ROM:n}},__vite__mapDeps([6,4,1]));return new t}case 3619110528:{const{ESP32H2ROM:t}=await ci(async()=>{const{ESP32H2ROM:n}=await import("./esp32h2-Cf8JbGZQ.js");return{ESP32H2ROM:n}},__vite__mapDeps([7,1]));return new t}case 9:{const{ESP32S3ROM:t}=await ci(async()=>{const{ESP32S3ROM:n}=await import("./esp32s3-mu2zzjDN.js");return{ESP32S3ROM:n}},__vite__mapDeps([8,1]));return new t}case 1990:{const{ESP32S2ROM:t}=await ci(async()=>{const{ESP32S2ROM:n}=await import("./esp32s2-3nCAg6Ct.js");return{ESP32S2ROM:n}},__vite__mapDeps([9,1]));return new t}case 4293968129:{const{ESP8266ROM:t}=await ci(async()=>{const{ESP8266ROM:n}=await import("./esp8266-8VKmCx7J.js");return{ESP8266ROM:n}},__vite__mapDeps([10,1]));return new t}case 0:case 182303440:case 117676761:{const{ESP32P4ROM:t}=await ci(async()=>{const{ESP32P4ROM:n}=await import("./esp32p4-DfBdIAkh.js");return{ESP32P4ROM:n}},__vite__mapDeps([11,0,1]));return new t}default:return null}}class VI{constructor(t){this.ESP_RAM_BLOCK=6144,this.ESP_FLASH_BEGIN=2,this.ESP_FLASH_DATA=3,this.ESP_FLASH_END=4,this.ESP_MEM_BEGIN=5,this.ESP_MEM_END=6,this.ESP_MEM_DATA=7,this.ESP_WRITE_REG=9,this.ESP_READ_REG=10,this.ESP_SPI_ATTACH=13,this.ESP_CHANGE_BAUDRATE=15,this.ESP_FLASH_DEFL_BEGIN=16,this.ESP_FLASH_DEFL_DATA=17,this.ESP_FLASH_DEFL_END=18,this.ESP_SPI_FLASH_MD5=19,this.ESP_ERASE_FLASH=208,this.ESP_ERASE_REGION=209,this.ESP_READ_FLASH=210,this.ESP_RUN_USER_CODE=211,this.ESP_IMAGE_MAGIC=233,this.ESP_CHECKSUM_MAGIC=239,this.ROM_INVALID_RECV_MSG=5,this.ERASE_REGION_TIMEOUT_PER_MB=3e4,this.ERASE_WRITE_TIMEOUT_PER_MB=4e4,this.MD5_TIMEOUT_PER_MB=8e3,this.CHIP_ERASE_TIMEOUT=12e4,this.FLASH_READ_TIMEOUT=1e5,this.MAX_TIMEOUT=this.CHIP_ERASE_TIMEOUT*2,this.CHIP_DETECT_MAGIC_REG_ADDR=1073745920,this.DETECTED_FLASH_SIZES={18:"256KB",19:"512KB",20:"1MB",21:"2MB",22:"4MB",23:"8MB",24:"16MB"},this.DETECTED_FLASH_SIZES_NUM={18:256,19:512,20:1024,21:2048,22:4096,23:8192,24:16384},this.USB_JTAG_SERIAL_PID=4097,this.romBaudrate=115200,this.debugLogging=!1,this.syncStubDetected=!1,this.checksum=function(n){let r,a=239;for(r=0;rsetTimeout(n,t))}write(t,n=!0){this.terminal?n?this.terminal.writeLine(t):this.terminal.write(t):console.log(t)}error(t,n=!0){this.write(`Error: ${t}`,n)}info(t,n=!0){this.write(t,n)}debug(t,n=!0){this.debugLogging&&this.write(`Debug: ${t}`,n)}_shortToBytearray(t){return new Uint8Array([t&255,t>>8&255])}_intToByteArray(t){return new Uint8Array([t&255,t>>8&255,t>>16&255,t>>24&255])}_byteArrayToShort(t,n){return t|n>>8}_byteArrayToInt(t,n,r,a){return t|n<<8|r<<16|a<<24}_appendBuffer(t,n){const r=new Uint8Array(t.byteLength+n.byteLength);return r.set(new Uint8Array(t),0),r.set(new Uint8Array(n),t.byteLength),r.buffer}_appendArray(t,n){const r=new Uint8Array(t.length+n.length);return r.set(t,0),r.set(n,t.length),r}ui8ToBstr(t){let n="";for(let r=0;r0&&(i=this._appendArray(i,this._intToByteArray(this.chip.UART_DATE_REG_ADDR)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(o))),await this.checkCommand("write target memory",this.ESP_WRITE_REG,i)}async sync(){this.debug("Sync");const t=new Uint8Array(36);let n;for(t[0]=7,t[1]=7,t[2]=18,t[3]=32,n=0;n<32;n++)t[4+n]=85;try{const r=await this.command(8,t,void 0,void 0,100);return this.syncStubDetected=this.syncStubDetected&&r[0]===0,r}catch(r){throw this.debug("Sync err "+r),r}}async _connectAttempt(t="default_reset",n=!1){if(this.debug("_connect_attempt "+t+" "+n),t!=="no_reset")if(this.transport.getPid()===this.USB_JTAG_SERIAL_PID)await NVe(this.transport);else{const o=n?"D0|R1|W100|W2000|D1|R0|W50|D0":"D0|R1|W100|D1|R0|W50|D0";await AVe(this.transport,o)}let r=0,a=!0;for(;a;){try{const o=await this.transport.read(1e3);r+=o.length}catch(o){if(this.debug(o.message),o instanceof Error){a=!1;break}}await this._sleep(50)}for(this.transport.slipReaderEnabled=!0,this.syncStubDetected=!0,r=7;r--;){try{const o=await this.sync();return this.debug(o[0].toString()),"success"}catch(o){o instanceof Error&&(n?this.info("_",!1):this.info(".",!1))}await this._sleep(50)}return"error"}async connect(t="default_reset",n=7,r=!1){let a,o;for(this.info("Connecting...",!1),await this.transport.connect(this.romBaudrate,this.serialOptions),a=0;a>>0;this.debug("Chip Magic "+i.toString(16));const s=await DVe(i);if(this.chip===null)throw new Ba(`Unexpected CHIP magic value ${i}. Failed to autodetect chip type.`);this.chip=s}}async detectChip(t="default_reset"){await this.connect(t),this.info("Detecting chip type... ",!1),this.chip!=null?this.info(this.chip.CHIP_NAME):this.info("unknown!")}async checkCommand(t="",n=null,r=new Uint8Array(0),a=0,o=3e3){this.debug("check_command "+t);const i=await this.command(n,r,a,void 0,o);return i[1].length>4?i[1]:i[0]}async memBegin(t,n,r,a){this.debug("mem_begin "+t+" "+n+" "+r+" "+a.toString(16));let o=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));o=this._appendArray(o,this._intToByteArray(r)),o=this._appendArray(o,this._intToByteArray(a)),await this.checkCommand("enter RAM download mode",this.ESP_MEM_BEGIN,o)}async memBlock(t,n){let r=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,t);const a=this.checksum(t);await this.checkCommand("write to target RAM",this.ESP_MEM_DATA,r,a)}async memFinish(t){const n=t===0?1:0,r=this._appendArray(this._intToByteArray(n),this._intToByteArray(t));await this.checkCommand("leave RAM download mode",this.ESP_MEM_END,r,void 0,50)}async flashSpiAttach(t){const n=this._intToByteArray(t);await this.checkCommand("configure SPI flash pins",this.ESP_SPI_ATTACH,n)}async flashBegin(t,n){const r=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),a=this.chip.getEraseSize(n,t),o=new Date,i=o.getTime();let s=3e3;this.IS_STUB==!1&&(s=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,t)),this.debug("flash begin "+a+" "+r+" "+this.FLASH_WRITE_SIZE+" "+n+" "+t);let c=this._appendArray(this._intToByteArray(a),this._intToByteArray(r));c=this._appendArray(c,this._intToByteArray(this.FLASH_WRITE_SIZE)),c=this._appendArray(c,this._intToByteArray(n)),this.IS_STUB==!1&&(c=this._appendArray(c,this._intToByteArray(0))),await this.checkCommand("enter Flash download mode",this.ESP_FLASH_BEGIN,c,void 0,s);const u=o.getTime();return t!=0&&this.IS_STUB==!1&&this.info("Took "+(u-i)/1e3+"."+(u-i)%1e3+"s to erase flash block"),r}async flashDeflBegin(t,n,r){const a=Math.floor((n+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),o=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),i=new Date,s=i.getTime();let c,u;this.IS_STUB?(c=t,u=3e3):(c=o*this.FLASH_WRITE_SIZE,u=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,c)),this.info("Compressed "+t+" bytes to "+n+"...");let d=this._appendArray(this._intToByteArray(c),this._intToByteArray(a));d=this._appendArray(d,this._intToByteArray(this.FLASH_WRITE_SIZE)),d=this._appendArray(d,this._intToByteArray(r)),(this.chip.CHIP_NAME==="ESP32-S2"||this.chip.CHIP_NAME==="ESP32-S3"||this.chip.CHIP_NAME==="ESP32-C3"||this.chip.CHIP_NAME==="ESP32-C2")&&this.IS_STUB===!1&&(d=this._appendArray(d,this._intToByteArray(0))),await this.checkCommand("enter compressed flash mode",this.ESP_FLASH_DEFL_BEGIN,d,void 0,u);const p=i.getTime();return t!=0&&this.IS_STUB===!1&&this.info("Took "+(p-s)/1e3+"."+(p-s)%1e3+"s to erase flash block"),a}async flashBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);await this.checkCommand("write to target Flash after seq "+n,this.ESP_FLASH_DATA,a,o,r)}async flashDeflBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);this.debug("flash_defl_block "+t[0].toString(16)+" "+t[1].toString(16)),await this.checkCommand("write compressed data to flash after seq "+n,this.ESP_FLASH_DEFL_DATA,a,o,r)}async flashFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave Flash mode",this.ESP_FLASH_END,r)}async flashDeflFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave compressed flash mode",this.ESP_FLASH_DEFL_END,r)}async runSpiflashCommand(t,n,r){const s=this.chip.SPI_REG_BASE,c=s+0,u=s+this.chip.SPI_USR_OFFS,d=s+this.chip.SPI_USR1_OFFS,p=s+this.chip.SPI_USR2_OFFS,g=s+this.chip.SPI_W0_OFFS;let m;this.chip.SPI_MOSI_DLEN_OFFS!=null?m=async(I,T)=>{const R=s+this.chip.SPI_MOSI_DLEN_OFFS,_=s+this.chip.SPI_MISO_DLEN_OFFS;I>0&&await this.writeReg(R,I-1),T>0&&await this.writeReg(_,T-1)}:m=async(I,T)=>{const R=d,_=17,$=8,M=I===0?0:I-1,D=(T===0?0:T-1)<<$|M<<_;await this.writeReg(R,D)};const h=1<<18,b=28;if(r>32)throw new Ba("Reading more than 32 bits back from a SPI flash operation is unsupported");if(n.length>64)throw new Ba("Writing more than 64 bytes of data with one SPI command is unsupported");const x=n.length*8,S=await this.readReg(u),v=await this.readReg(p);let y=-2147483648,C;r>0&&(y|=268435456),x>0&&(y|=134217728),await m(x,r),await this.writeReg(u,y);let w=7<("00"+n.toString(16)).slice(-2)).join("")}async flashMd5sum(t,n){const r=this.timeoutPerMb(this.MD5_TIMEOUT_PER_MB,n);let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0));let o=await this.checkCommand("calculate md5sum",this.ESP_SPI_FLASH_MD5,a,void 0,r);return o instanceof Uint8Array&&o.length>16&&(o=o.slice(0,16)),this.toHex(o)}async readFlash(t,n,r=null){let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(4096)),a=this._appendArray(a,this._intToByteArray(1024));const o=await this.checkCommand("read flash",this.ESP_READ_FLASH,a);if(o!=0)throw new Ba("Failed to read memory: "+o);let i=new Uint8Array(0);for(;i.length0&&(i=this._appendArray(i,s),await this.transport.write(this._intToByteArray(i.length)),r&&r(s,i.length,n));else throw new Ba("Failed to read memory: "+s)}return i}async runStub(){if(this.syncStubDetected)return this.info("Stub is already running. No upload is necessary."),this.chip;this.info("Uploading stub...");let t=N7(this.chip.ROM_TEXT),n=t.split("").map(function(s){return s.charCodeAt(0)});const r=new Uint8Array(n);t=N7(this.chip.ROM_DATA),n=t.split("").map(function(s){return s.charCodeAt(0)});const a=new Uint8Array(n);let o=Math.floor((r.length+this.ESP_RAM_BLOCK-1)/this.ESP_RAM_BLOCK),i;for(await this.memBegin(r.length,o,this.ESP_RAM_BLOCK,this.chip.TEXT_START),i=0;i"u")throw new Ba("Flash size "+t+" is not supported by this chip type. Supported sizes: "+this.chip.FLASH_SIZES);return this.chip.FLASH_SIZES[t]}_updateImageFlashParams(t,n,r,a,o){if(this.debug("_update_image_flash_params "+r+" "+a+" "+o),t.length<8||n!=this.chip.BOOTLOADER_FLASH_OFFSET)return t;if(r==="keep"&&a==="keep"&&o==="keep")return this.info("Not changing the image"),t;const i=parseInt(t[0]);let s=parseInt(t[2]);const c=parseInt(t[3]);if(i!==this.ESP_IMAGE_MAGIC)return this.info("Warning: Image file at 0x"+n.toString(16)+" doesn't look like an image file, so not changing any flash settings."),t;a!=="keep"&&(s={qio:0,qout:1,dio:2,dout:3}[a]);let u=c&15;o!=="keep"&&(u={"40m":0,"26m":1,"20m":2,"80m":15}[o]);let d=c&240;r!=="keep"&&(d=this.parseFlashSizeArg(r));const p=s<<8|u+d;return this.info("Flash params set to "+p.toString(16)),parseInt(t[2])!==s<<8&&(t=t.substring(0,2)+(s<<8).toString()+t.substring(3)),parseInt(t[3])!==u+d&&(t=t.substring(0,3)+(u+d).toString()+t.substring(4)),t}async writeFlash(t){if(this.debug("EspLoader program"),t.flashSize!=="keep"){const a=this.flashSizeBytes(t.flashSize);for(let o=0;oa)throw new Ba(`File ${o+1} doesn't fit in the available flash`)}this.IS_STUB===!0&&t.eraseAll===!0&&await this.eraseFlash();let n,r;for(let a=0;a0&&(n+="ÿÿÿÿ".substring(4-o)),r=t.fileArray[a].address,this.debug("Image Length "+n.length),n.length===0){this.debug("Warning: File is empty");continue}n=this._updateImageFlashParams(n,r,t.flashSize,t.flashMode,t.flashFreq);let i=null;t.calculateMD5Hash&&(i=t.calculateMD5Hash(n),this.debug("Image MD5 "+i));const s=n.length;let c;if(t.compress){const v=this.bstrToUi8(n);n=this.ui8ToBstr($Ve(v,{level:9})),c=await this.flashDeflBegin(s,n.length,r)}else c=await this.flashBegin(s,r);let u=0,d=0;const p=n.length;t.reportProgress&&t.reportProgress(a,0,p);let g=new Date;const m=g.getTime();let h=5e3;const b=new OVe({chunkSize:1});let x=0;for(b.onData=function(v){x+=v.byteLength};n.length>0;){this.debug("Write loop "+r+" "+u+" "+c),this.info("Writing at 0x"+(r+x).toString(16)+"... ("+Math.floor(100*(u+1)/c)+"%)");const v=this.bstrToUi8(n.slice(0,this.FLASH_WRITE_SIZE));if(t.compress){const y=x;b.push(v,!1);const C=x-y;let w=3e3;this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)>3e3&&(w=this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)),this.IS_STUB===!1&&(h=w),await this.flashDeflBlock(v,u,h),this.IS_STUB&&(h=w)}else throw new Ba("Yet to handle Non Compressed writes");d+=v.length,n=n.slice(this.FLASH_WRITE_SIZE,n.length),u++,t.reportProgress&&t.reportProgress(a,d,p)}this.IS_STUB&&await this.readReg(this.CHIP_DETECT_MAGIC_REG_ADDR,h),g=new Date;const S=g.getTime()-m;if(t.compress&&this.info("Wrote "+s+" bytes ("+d+" compressed) at 0x"+r.toString(16)+" in "+S/1e3+" seconds."),i){const v=await this.flashMd5sum(r,s);if(new String(v).valueOf()!=new String(i).valueOf())throw this.info("File md5: "+i),this.info("Flash md5: "+v),new Ba("MD5 of file does not match data in flash!");this.info("Hash of data verified.")}}this.info("Leaving..."),this.IS_STUB&&(await this.flashBegin(0,0),t.compress?await this.flashDeflFinish():await this.flashFinish())}async flashId(){this.debug("flash_id");const t=await this.readFlashId();this.info("Manufacturer: "+(t&255).toString(16));const n=t>>16&255;this.info("Device: "+(t>>8&255).toString(16)+n.toString(16)),this.info("Detected flash size: "+this.DETECTED_FLASH_SIZES[n])}async getFlashSize(){this.debug("flash_id");const n=await this.readFlashId()>>16&255;return this.DETECTED_FLASH_SIZES_NUM[n]}async hardReset(){await this.transport.setRTS(!0),await this._sleep(100),await this.transport.setRTS(!1)}async softReset(){if(!this.IS_STUB)await this.flashBegin(0,0),await this.flashFinish(!1);else{if(this.chip.CHIP_NAME!="ESP8266")throw new Ba("Soft resetting is currently only supported on ESP8266");await this.command(this.ESP_RUN_USER_CODE,void 0,void 0,!1)}}}const PVe=()=>{const[e,t]=l.useState(0),n=["",".","..","...","....","....."];return l.useEffect(()=>{const r=setInterval(()=>{t(a=>(a+1)%n.length)},666);return()=>clearInterval(r)},[]),f.jsx(f.Fragment,{children:n[e]})},LVe=()=>"serial"in navigator,Mu=new Dn($n()),{Paragraph:Gn,Text:jVe}=xn,{Step:FVe}=Ls,{Option:BVe}=cr,zVe=()=>{const{t:e}=Nt(),{setFetchCloudStatus:t,addNotification:n,addLoadingNotification:r,closeLoadingNotification:a}=Qn(),o=Zc(),i=dr.language,s=l.useRef(null),[c,u]=l.useState(!1),[d,p]=l.useState(""),[g,m]=l.useState(!1),[h,b]=l.useState(!1),[x,S]=l.useState(!1),[v,y]=l.useState("certs/client"),[C,w]=l.useState(""),[E,I]=l.useState(0),[T,R]=l.useState(!1),[_,$]=l.useState({progress:0,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",state:"",filename:"",flashName:"",port:null,originalFlash:null,patchedFlash:null,showStatus:!1,showProgress:!1,showDownload:!1,showFlash:!1,connected:!1,hostname:window.location.hostname,wifi_ssid:"",wifi_pass:"",proceed:!1,actionInProgress:!1,warningTextHostname:"",warningTextWifi:"",downloadLink:"",downloadLinkPatched:"",error:!1}),[M,P]=l.useState(!1),[D,O]=l.useState(921600),k=[300,1200,2400,4800,9600,14400,19200,38400,57600,115200,230400,460800,921600],N=115200,A=xe=>{O(xe)};function L(xe){const $e=new Uint8Array(xe);let Fe="";for(let be=0;be<$e.length;be++)Fe+=String.fromCharCode($e[be]);return Fe}l.useEffect(()=>{(async()=>{const Fe=await(await Mu.apiGetTeddyCloudSettingRaw("core.certdir")).text();y(Fe)})()},[]),l.useEffect(()=>{P(LVe())},[]),l.useEffect(()=>{if(window.location.protocol!=="https:"){u(!1);const xe=async()=>{try{return await(await Mu.apiGetTeddyCloudSettingRaw("core.server.https_web_port")).text()}catch(be){console.error("Error fetching https port: ",be)}},$e=async()=>{try{return await(await Mu.apiGetTeddyCloudSettingRaw("core.server.http_port")).text()}catch(be){console.error("Error fetching http port: ",be)}};(async()=>{const be=await xe()||"",ue=await $e()||"",Ie=new URL(window.location.href);Ie.protocol="https:",Ie.port?Ie.port=Ie.port===ue?be:Ie.port:Ie.port=be,p(Ie.toString())})()}else u(!0)},[]),l.useEffect(()=>{re(E,(()=>{switch(E){case 0:return oe;case 1:return se;case 2:return fe;case 3:return ie;default:return f.jsx("div",{})}})())},[_,i]),l.useEffect(()=>{_.proceed&&_e()},[_.proceed]),l.useEffect(()=>{m(_.actionInProgress)},[_.actionInProgress]);const j=()=>{d&&(window.location.href=d)},F=async xe=>{if(_.port)return console.log(_.port.getInfo),_.port;$(Fe=>({...Fe,showStatus:!0,showProgress:!1,progress:0,state:xe||"Open serial port"}));let $e=null;try{$e=await navigator.serial.requestPort(),await $e.open({baudRate:115200}),await $e.close()}catch(Fe){return Fe==="NetworkError"?($(be=>({...be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"),error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"))):Fe==="NotFoundError"?$(be=>({...be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.noPortAvailable"),error:!0})):($(be=>({...be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+Fe,error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+` ${Fe}`)),null}return $e?(console.log("port done"),$(Fe=>({...Fe,port:$e})),$e):($(Fe=>({...Fe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.invalidSerialPort"),error:!0})),null)},B=async xe=>{if(console.log("loadFlashFile"),!xe.target.files)return;const $e=xe.target.files[0];if(!$e)return;$(be=>({...be,state:"",chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",error:!1,actionInProgress:!0})),console.log("Read file '"+$e+"'");const Fe=new FileReader;Fe.onload=async be=>{var We;console.log("Connecting to ESP32");const ue=await F(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadMac"));if(ue===null||_.connected){$(He=>({...He,actionInProgress:!1}));return}$(He=>({...He,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${_.port}`,showFlash:!1,connected:!0}));let Ie=null;try{const He=new qv(ue);Ie=new VI({transport:He,baudrate:D,romBaudrate:N})}catch(He){$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${He}`,connected:!1,actionInProgress:!1,error:!0})),alert(He),await ue.close();return}try{$(rt=>({...rt,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.retrievingMac"),actionInProgress:!0})),await Ie.main();let He=await Ie.chip.readMac(Ie);$(rt=>({...rt,chipMac:He})),console.log("Chip MAC: "+He),await ue.close();const Be=(We=be.target)==null?void 0:We.result,ke=new Uint8Array(Be),Ae=`ESP32_${He.replace(/:/g,"")}`,Ue=new Blob([ke],{type:"application/octet-stream"}),ct=URL.createObjectURL(Ue);await U(ke,Ae),be.target&&$(rt=>{var qe;return{...rt,patchedFlash:(qe=be.target)==null?void 0:qe.result,showFlash:!0,connected:!1,flashName:"from file",downloadLink:ct}}),console.log("Done")}catch(He){$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${He}`,connected:!1,actionInProgress:!1,error:!0})),console.error(He),alert(He),await ue.close();return}},Fe.readAsArrayBuffer($e),$(be=>({...be,actionInProgress:!1})),xe.target.value=""},z=async()=>{let xe=null,$e=null,Fe="";$e=new Uint8Array(1024);const be=await F(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadFlash"));if(be===null||_.connected)return;$(He=>({...He,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${be.getInfo()}`,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",showFlash:!1,connected:!0,actionInProgress:!0,error:!1}));try{const He=new qv(be);xe=new VI({transport:He,baudrate:D,romBaudrate:N})}catch(He){$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${He}`,connected:!1,actionInProgress:!1,error:!0})),alert(He),await be.close();return}try{$(Ae=>({...Ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await xe.main(),$(Ae=>({...Ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected")})),Fe=await xe.chip.readMac(xe),$(Ae=>({...Ae,chipMac:Fe})),console.log("Chip MAC: "+Fe);const He=await xe.chip.getChipDescription(xe);$(Ae=>({...Ae,chipType:He}));let Be=await xe.readFlashId();$(Ae=>({...Ae,flashId:""+Be,flashManuf:""+(Be&255),flashDevice:""+(Be>>8&255)}));let ke=await xe.getFlashSize();if($(Ae=>({...Ae,flashSize:""+ke})),ke<0||ke>16384){$(Ae=>({...Ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await be.close();return}$(Ae=>({...Ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFlash"),showProgress:!0,progress:0})),$e=await xe.readFlash(0,ke*1024,(Ae,Ue,ct)=>{const rt=100*Ue/ct;$(qe=>({...qe,progress:rt}))}),await be.close(),$(Ae=>({...Ae,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFinished"),progress:100,originalFlash:$e,connected:!1}))}catch(He){$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${He}`,connected:!1,actionInProgress:!1,error:!0})),console.error(He),alert(He),await be.close();return}const ue=`ESP32_${Fe.replace(/:/g,"")}`,Ie=new Blob([$e],{type:"application/octet-stream"}),We=URL.createObjectURL(Ie);$(He=>({...He,downloadLink:We,showProgress:!1})),await U($e,ue),console.log("Done")},U=async(xe,$e)=>{try{$(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploading"),error:!1}));const Fe=new FormData;Fe.append($e,new Blob([xe.buffer]),$e);const be=await Mu.apiPostTeddyCloudFormDataRaw("/api/esp32/uploadFirmware",Fe);if(be.ok&&be.status===200){const ue=await be.text();$(Ie=>({...Ie,showDownload:!0,filename:ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadSuccessful")+` ${ue}`+e("tonieboxes.esp32BoxFlashing.esp32flasher.readyToProceed"),proceed:!0,actionInProgress:!1}))}else $(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}catch(Fe){console.error("There was an error when uploading!",Fe),$(be=>({...be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}},H=async()=>{if(_.wifi_ssid&&!_.wifi_pass||!_.wifi_ssid&&_.wifi_pass){$($e=>({...$e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),showStatus:!0,warningTextWifi:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),error:!0}));return}$($e=>({...$e,actionInProgress:!0})),$($e=>({...$e,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage"),error:!1}));const xe=await Mu.apiGetTeddyCloudApiRaw(`/api/esp32/patchFirmware?filename=${_.filename}&hostname=${encodeURIComponent(_.hostname)}`+(_.wifi_ssid&&_.wifi_pass?`&wifi_ssid=${encodeURIComponent(_.wifi_ssid)}&wifi_pass=${encodeURIComponent(_.wifi_pass)}`:""));if($($e=>({...$e,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage")})),xe.ok&&xe.status===200){const $e=await xe.arrayBuffer();$(ue=>({...ue,patchedFlash:$e,showFlash:!0,flashName:"patched"}));const Fe=new Blob([$e],{type:"application/octet-stream"}),be=URL.createObjectURL(Fe);$(ue=>({...ue,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingSuccessful",{size:($e.byteLength/1024/1024).toFixed(0)}),downloadLinkPatched:be})),_e()}else $($e=>({...$e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFailed"),error:!0}));$($e=>({...$e,actionInProgress:!1}))},Y=async()=>{const xe=await F(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingWriteFlash"));if(xe===null||_.connected)return;$(Fe=>({...Fe,actionInProgress:!0,error:!1})),$(Fe=>({...Fe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${xe.getInfo()}`,connected:!0}));let $e=null;try{const Fe=new qv(xe);$e=new VI({transport:Fe,baudrate:D,romBaudrate:N})}catch(Fe){$(be=>({...be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${Fe}`,connected:!1,actionInProgress:!1,error:!0})),alert(Fe),await xe.close();return}try{$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await $e.main(),$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected"),progress:0,showProgress:!0}));let Fe=await $e.chip.readMac($e);$(Be=>({...Be,chipMac:Fe})),console.log("Chip MAC: "+Fe);const be=await $e.chip.getChipDescription($e);$(Be=>({...Be,chipType:be}));let ue=await $e.readFlashId();$(Be=>({...Be,flashId:""+ue,flashManuf:""+(ue&255),flashDevice:""+(ue>>8&255)}));let Ie=await $e.getFlashSize();if($(Be=>({...Be,flashSize:""+Ie})),Ie<0||Ie>16384){$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await xe.close();return}$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.preparingFlash",{size:(_.patchedFlash.byteLength/1024/1024).toFixed(0)})}));let We=[];We.push({data:L(_.patchedFlash),address:0});let He={fileArray:We,flashSize:"keep",flashMode:"keep",flashFreq:"keep",eraseAll:!1,compress:!0,reportProgress:(Be,ke,Ae)=>{const Ue=100*ke/Ae;$(ct=>({...ct,progress:Ue}))}};$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFlash",{size:(_.patchedFlash.byteLength/1024/1024).toFixed(0)})})),await $e.writeFlash(He),await xe.close(),$(Be=>({...Be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFinished"),connected:!1,actionInProgress:!1,proceed:!0}))}catch(Fe){$(be=>({...be,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${Fe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(Fe),alert(Fe),await xe.close();return}},K=async xe=>{const $e="extractStoreCerts";r($e,e("tonieboxes.esp32BoxFlashing.processing"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates")),xe&&S(!1);try{const Fe=await Mu.apiPostTeddyCloudRaw(`/api/esp32/extractCerts?filename=${_.filename}`+(xe?"&overwrite=true":""));if(a($e),Fe.ok&&Fe.status===200)n(dt.Success,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesSuccessful"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesSuccessfulDetails",{file:_.filename}),e("tonieboxes.esp32BoxFlashing.title")),t(be=>!be);else if(!Fe.ok&&Fe.status===409){const be=await Fe.text();n(dt.Error,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailedDetails",{file:_.filename})+": "+be,e("tonieboxes.esp32BoxFlashing.title")),w(be),S(!0)}else n(dt.Error,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailedDetails",{file:_.filename})+": "+await Fe.text(),e("tonieboxes.esp32BoxFlashing.title"))}catch(Fe){n(dt.Error,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailedDetails",{file:_.filename})+": "+Fe,e("tonieboxes.esp32BoxFlashing.title"))}},J=[{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}],ne=f.jsx(f.Fragment,{children:_.showProgress&&f.jsx("div",{children:f.jsx("div",{children:f.jsx(My,{percent:_.progress||0,format:xe=>`${(xe??0).toFixed(2)}%`})})})}),W=f.jsx(f.Fragment,{children:(_.chipType||_.chipMac)&&f.jsxs("div",{children:[f.jsx(Vn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.infoTable")}),f.jsx("table",{className:"info-table",children:f.jsxs("tbody",{children:[_.chipType&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipType")}),f.jsx("td",{children:_.chipType})]}),_.chipMac&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipMAC")}),f.jsx("td",{children:_.chipMac})]}),_.flashId&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashId")}),f.jsxs("td",{children:["0x",_.flashId.toString()]})]}),_.flashManuf&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashManuf")}),f.jsxs("td",{children:["0x",_.flashManuf.toString()]})]}),_.flashDevice&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashDevice")}),f.jsxs("td",{children:["0x",_.flashDevice.toString()]})]}),_.flashSize&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSize")}),f.jsxs("td",{children:[_.flashSize," KiB"]})]})]})})]})}),q=xe=>xe.replace(/[^a-zA-Z0-9-.]/g,"").trim(),Z=xe=>{if(xe.endsWith("...")){const $e=xe.slice(0,-3);return f.jsxs("div",{style:{display:"flex"},children:[$e,f.jsx(PVe,{})]})}return xe},Q=_.showStatus&&f.jsx("div",{className:"status",style:{marginBottom:16,color:_.error?"#CC3010":"unset"},children:f.jsx("i",{children:Z(_.state)})}),ee=xZ(),oe=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")}),!_.actionInProgress&&f.jsxs(f.Fragment,{children:[f.jsx(Gn,{children:f.jsx(Cn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")})}),f.jsx(Gn,{children:f.jsx(Cn,{type:"info",closeIcon:!0,showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.adaptBaudrateOnProblems"),description:e("tonieboxes.esp32BoxFlashing.adaptBaudrateOnProblemsText")})}),f.jsx(Gn,{style:{marginTop:16},children:f.jsx(Cn,{type:"info",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintReadESP32ImportFlash")})}),f.jsx(Rs,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectESPCollapseTitle"),children:ee}]})]}),Q,f.jsx("input",{type:"file",style:{display:"none"},ref:s,onChange:B}),ne]}),se=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")}),f.jsxs("div",{children:[!_.actionInProgress&&f.jsx(Gn,{children:f.jsx(Cn,{type:"info",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchFlash")})}),Q,!_.actionInProgress&&_.downloadLink?f.jsxs("div",{style:{marginBottom:16},children:[" ",f.jsx("a",{href:_.downloadLink,download:_.filename,title:_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})]}):"",f.jsxs(Kt,{children:[f.jsx(Vn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameSettings")}),f.jsx(Gn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchHost")}),f.jsxs(Kt.Item,{children:[f.jsxs(Oa,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Nn,{style:{flex:"0 0 200px",color:_.warningTextHostname?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostname")})}),f.jsx(Nn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",value:_.hostname,onChange:xe=>{let $e=q(xe.target.value),Fe="";$e.length>12?Fe=e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong"):Fe="",$(be=>({...be,hostname:$e,warningTextHostname:Fe}))}})})]}),_.warningTextHostname&&f.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong")})]}),f.jsx(Vn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSettings")}),f.jsx(Gn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchWifi")}),f.jsx(Kt.Item,{children:f.jsxs(Oa,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Nn,{style:{flex:"0 0 200px",color:_.warningTextWifi?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSSID")})}),f.jsx(Nn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",defaultValue:_.wifi_ssid,onChange:xe=>{let $e=xe.target.value;$(Fe=>({...Fe,wifi_ssid:$e,warningTextWifi:xe.target.value&&_.wifi_pass||!xe.target.value&&!_.wifi_pass?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]})}),f.jsxs(Kt.Item,{children:[f.jsxs(Oa,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Nn,{style:{flex:"0 0 200px",color:_.warningTextWifi?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiPassword")})}),f.jsx(Nn,{style:{flex:"1 1 auto"},children:f.jsx(Jt.Password,{defaultValue:_.wifi_pass,onChange:xe=>{let $e=xe.target.value;$(Fe=>({...Fe,wifi_pass:$e,warningTextWifi:xe.target.value&&_.wifi_ssid||!xe.target.value&&!_.wifi_ssid?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]}),_.warningTextWifi&&f.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")})]})]})]}),ne]}),fe=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")}),!_.actionInProgress&&f.jsxs(Gn,{children:[" ",f.jsx(Cn,{type:"info",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintFlashESP32")})]}),Q,!_.actionInProgress&&_.downloadLinkPatched?f.jsxs("div",{style:{marginBottom:16},children:[" ",f.jsx("a",{href:_.downloadLinkPatched,download:"patched_"+_.filename,title:"patched_"+_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})]}):"",ne]}),te=`${v}/${_.chipMac?_.chipMac.replaceAll(":","").toLowerCase():""}`,ie=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}),f.jsx(Gn,{children:f.jsx(Cn,{type:"success",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintESP32FirmwareFlashed")})}),Q,ne,(_.downloadLink||_.downloadLinkPatched)&&f.jsxs(f.Fragment,{children:[f.jsx(Cn,{type:"info",style:{marginTop:16},showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates"),description:f.jsxs("div",{children:[f.jsxs(xn,{children:[f.jsx(Vn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.automatically")}),f.jsx(Gn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint")}),f.jsx(nt,{icon:f.jsx(BN,{}),disabled:g,type:"primary",onClick:()=>Ne(),style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates")}),f.jsx(Gn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint2",{certDir:v,mac:_.chipMac.replaceAll(":","").toLocaleLowerCase()})})]}),f.jsx(Vn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.manually")}),f.jsx(xn,{style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHint")}),f.jsx(xn,{children:f.jsx(Rs,{size:"small",items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManually"),children:f.jsxs(xn,{children:[f.jsxs(Gn,{children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP1")," ",f.jsx(jVe,{code:!0,children:"docker exec -it bash"}),"."]}),f.jsx(Gn,{children:f.jsx("pre",{style:{fontSize:12},children:`# Please check the filename of your backup + ${this.hexify(o.slice(0,8))} ${this.hexify(o.slice(8))} | ${i}`}return r}else return this.hexify(t)}slipWriter(t){const n=[];n.push(192);for(let r=0;r0)return o;a=this.leftOver,this.leftOver=new Uint8Array(0)}if(this.device.readable==null)return this.leftOver;this.reader=this.device.readable.getReader();try{t>0&&(r=setTimeout(()=>{this.reader&&this.reader.cancel()},t));do{const{value:o,done:i}=await this.reader.read();if(i)throw this.leftOver=a,new Error("Timeout");a=new Uint8Array(this._appendBuffer(a.buffer,o.buffer))}while(a.length0&&clearTimeout(r),this.reader.releaseLock()}if(this.tracing&&(console.log("Read bytes"),this.trace(`Read ${a.length} bytes: ${this.hexConvert(a)}`)),this.slipReaderEnabled){const o=this.slipReader(a);return this.tracing&&(console.log("Slip reader results"),this.trace(`Read ${o.length} bytes: ${this.hexConvert(o)}`)),o}return a}async rawRead(t=0){if(this.leftOver.length!=0){const r=this.leftOver;return this.leftOver=new Uint8Array(0),r}if(!this.device.readable)return this.leftOver;this.reader=this.device.readable.getReader();let n;try{t>0&&(n=setTimeout(()=>{this.reader&&this.reader.cancel()},t));const{value:r,done:a}=await this.reader.read();return a||this.tracing&&(console.log("Raw Read bytes"),this.trace(`Read ${r.length} bytes: ${this.hexConvert(r)}`)),r}finally{t>0&&clearTimeout(n),this.reader.releaseLock()}}async setRTS(t){await this.device.setSignals({requestToSend:t}),await this.setDTR(this._DTR_state)}async setDTR(t){this._DTR_state=t,await this.device.setSignals({dataTerminalReady:t})}async connect(t=115200,n={}){await this.device.open({baudRate:t,dataBits:n==null?void 0:n.dataBits,stopBits:n==null?void 0:n.stopBits,bufferSize:n==null?void 0:n.bufferSize,parity:n==null?void 0:n.parity,flowControl:n==null?void 0:n.flowControl}),this.baudrate=t,this.leftOver=new Uint8Array(0)}async sleep(t){return new Promise(n=>setTimeout(n,t))}async waitForUnlock(t){for(;this.device.readable&&this.device.readable.locked||this.device.writable&&this.device.writable.locked;)await this.sleep(t)}async disconnect(){var t,n;!((t=this.device.readable)===null||t===void 0)&&t.locked&&await((n=this.reader)===null||n===void 0?void 0:n.cancel()),await this.waitForUnlock(400),this.reader=void 0,await this.device.close()}}function Yv(e){return new Promise(t=>setTimeout(t,e))}async function NVe(e){await e.setRTS(!1),await e.setDTR(!1),await Yv(100),await e.setDTR(!0),await e.setRTS(!1),await Yv(100),await e.setRTS(!0),await e.setDTR(!1),await e.setRTS(!0),await Yv(100),await e.setRTS(!1),await e.setDTR(!1)}function kVe(e){const t=["D","R","W"],n=e.split("|");for(const r of n){const a=r[0],o=r.slice(1);if(!t.includes(a))return!1;if(a==="D"||a==="R"){if(o!=="0"&&o!=="1")return!1}else if(a==="W"){const i=parseInt(o);if(isNaN(i)||i<=0)return!1}}return!0}async function AVe(e,t){const n={D:async r=>await e.setDTR(r),R:async r=>await e.setRTS(r),W:async r=>await Yv(r)};try{if(!kVe(t))return;const a=t.split("|");for(const o of a){const i=o[0],s=o.slice(1);i==="W"?await n.W(Number(s)):(i==="D"||i==="R")&&await n[i](s==="1")}}catch{throw new Error("Invalid custom reset sequence")}}var MVe=function(t){return atob(t)};const N7=Wa(MVe);async function DVe(e){switch(e){case 15736195:{const{ESP32ROM:t}=await ui(async()=>{const{ESP32ROM:n}=await import("./esp32-BPYaDt9v.js");return{ESP32ROM:n}},__vite__mapDeps([0,1]));return new t}case 1867591791:case 2084675695:{const{ESP32C2ROM:t}=await ui(async()=>{const{ESP32C2ROM:n}=await import("./esp32c2-CVPL8n1g.js");return{ESP32C2ROM:n}},__vite__mapDeps([2,3,1]));return new t}case 1763790959:case 456216687:case 1216438383:case 1130455151:{const{ESP32C3ROM:t}=await ui(async()=>{const{ESP32C3ROM:n}=await import("./esp32c3-I3vXmsVg.js");return{ESP32C3ROM:n}},__vite__mapDeps([3,1]));return new t}case 752910447:{const{ESP32C6ROM:t}=await ui(async()=>{const{ESP32C6ROM:n}=await import("./esp32c6-C93uIFil.js");return{ESP32C6ROM:n}},__vite__mapDeps([4,1]));return new t}case 871374959:case 606167151:{const{ESP32C61ROM:t}=await ui(async()=>{const{ESP32C61ROM:n}=await import("./esp32c61-Qo5S0GG2.js");return{ESP32C61ROM:n}},__vite__mapDeps([5,4,1]));return new t}case 285294703:case 1675706479:{const{ESP32C5ROM:t}=await ui(async()=>{const{ESP32C5ROM:n}=await import("./esp32c5-CAGCiNY4.js");return{ESP32C5ROM:n}},__vite__mapDeps([6,4,1]));return new t}case 3619110528:{const{ESP32H2ROM:t}=await ui(async()=>{const{ESP32H2ROM:n}=await import("./esp32h2-Cf8JbGZQ.js");return{ESP32H2ROM:n}},__vite__mapDeps([7,1]));return new t}case 9:{const{ESP32S3ROM:t}=await ui(async()=>{const{ESP32S3ROM:n}=await import("./esp32s3-mu2zzjDN.js");return{ESP32S3ROM:n}},__vite__mapDeps([8,1]));return new t}case 1990:{const{ESP32S2ROM:t}=await ui(async()=>{const{ESP32S2ROM:n}=await import("./esp32s2-3nCAg6Ct.js");return{ESP32S2ROM:n}},__vite__mapDeps([9,1]));return new t}case 4293968129:{const{ESP8266ROM:t}=await ui(async()=>{const{ESP8266ROM:n}=await import("./esp8266-8VKmCx7J.js");return{ESP8266ROM:n}},__vite__mapDeps([10,1]));return new t}case 0:case 182303440:case 117676761:{const{ESP32P4ROM:t}=await ui(async()=>{const{ESP32P4ROM:n}=await import("./esp32p4-DfBdIAkh.js");return{ESP32P4ROM:n}},__vite__mapDeps([11,0,1]));return new t}default:return null}}class cv{constructor(t){this.ESP_RAM_BLOCK=6144,this.ESP_FLASH_BEGIN=2,this.ESP_FLASH_DATA=3,this.ESP_FLASH_END=4,this.ESP_MEM_BEGIN=5,this.ESP_MEM_END=6,this.ESP_MEM_DATA=7,this.ESP_WRITE_REG=9,this.ESP_READ_REG=10,this.ESP_SPI_ATTACH=13,this.ESP_CHANGE_BAUDRATE=15,this.ESP_FLASH_DEFL_BEGIN=16,this.ESP_FLASH_DEFL_DATA=17,this.ESP_FLASH_DEFL_END=18,this.ESP_SPI_FLASH_MD5=19,this.ESP_ERASE_FLASH=208,this.ESP_ERASE_REGION=209,this.ESP_READ_FLASH=210,this.ESP_RUN_USER_CODE=211,this.ESP_IMAGE_MAGIC=233,this.ESP_CHECKSUM_MAGIC=239,this.ROM_INVALID_RECV_MSG=5,this.ERASE_REGION_TIMEOUT_PER_MB=3e4,this.ERASE_WRITE_TIMEOUT_PER_MB=4e4,this.MD5_TIMEOUT_PER_MB=8e3,this.CHIP_ERASE_TIMEOUT=12e4,this.FLASH_READ_TIMEOUT=1e5,this.MAX_TIMEOUT=this.CHIP_ERASE_TIMEOUT*2,this.CHIP_DETECT_MAGIC_REG_ADDR=1073745920,this.DETECTED_FLASH_SIZES={18:"256KB",19:"512KB",20:"1MB",21:"2MB",22:"4MB",23:"8MB",24:"16MB"},this.DETECTED_FLASH_SIZES_NUM={18:256,19:512,20:1024,21:2048,22:4096,23:8192,24:16384},this.USB_JTAG_SERIAL_PID=4097,this.romBaudrate=115200,this.debugLogging=!1,this.syncStubDetected=!1,this.checksum=function(n){let r,a=239;for(r=0;rsetTimeout(n,t))}write(t,n=!0){this.terminal?n?this.terminal.writeLine(t):this.terminal.write(t):console.log(t)}error(t,n=!0){this.write(`Error: ${t}`,n)}info(t,n=!0){this.write(t,n)}debug(t,n=!0){this.debugLogging&&this.write(`Debug: ${t}`,n)}_shortToBytearray(t){return new Uint8Array([t&255,t>>8&255])}_intToByteArray(t){return new Uint8Array([t&255,t>>8&255,t>>16&255,t>>24&255])}_byteArrayToShort(t,n){return t|n>>8}_byteArrayToInt(t,n,r,a){return t|n<<8|r<<16|a<<24}_appendBuffer(t,n){const r=new Uint8Array(t.byteLength+n.byteLength);return r.set(new Uint8Array(t),0),r.set(new Uint8Array(n),t.byteLength),r.buffer}_appendArray(t,n){const r=new Uint8Array(t.length+n.length);return r.set(t,0),r.set(n,t.length),r}ui8ToBstr(t){let n="";for(let r=0;r0&&(i=this._appendArray(i,this._intToByteArray(this.chip.UART_DATE_REG_ADDR)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(o))),await this.checkCommand("write target memory",this.ESP_WRITE_REG,i)}async sync(){this.debug("Sync");const t=new Uint8Array(36);let n;for(t[0]=7,t[1]=7,t[2]=18,t[3]=32,n=0;n<32;n++)t[4+n]=85;try{const r=await this.command(8,t,void 0,void 0,100);return this.syncStubDetected=this.syncStubDetected&&r[0]===0,r}catch(r){throw this.debug("Sync err "+r),r}}async _connectAttempt(t="default_reset",n=!1){if(this.debug("_connect_attempt "+t+" "+n),t!=="no_reset")if(this.transport.getPid()===this.USB_JTAG_SERIAL_PID)await NVe(this.transport);else{const o=n?"D0|R1|W100|W2000|D1|R0|W50|D0":"D0|R1|W100|D1|R0|W50|D0";await AVe(this.transport,o)}let r=0,a=!0;for(;a;){try{const o=await this.transport.read(1e3);r+=o.length}catch(o){if(this.debug(o.message),o instanceof Error){a=!1;break}}await this._sleep(50)}for(this.transport.slipReaderEnabled=!0,this.syncStubDetected=!0,r=7;r--;){try{const o=await this.sync();return this.debug(o[0].toString()),"success"}catch(o){o instanceof Error&&(n?this.info("_",!1):this.info(".",!1))}await this._sleep(50)}return"error"}async connect(t="default_reset",n=7,r=!1){let a,o;for(this.info("Connecting...",!1),await this.transport.connect(this.romBaudrate,this.serialOptions),a=0;a>>0;this.debug("Chip Magic "+i.toString(16));const s=await DVe(i);if(this.chip===null)throw new Ba(`Unexpected CHIP magic value ${i}. Failed to autodetect chip type.`);this.chip=s}}async detectChip(t="default_reset"){await this.connect(t),this.info("Detecting chip type... ",!1),this.chip!=null?this.info(this.chip.CHIP_NAME):this.info("unknown!")}async checkCommand(t="",n=null,r=new Uint8Array(0),a=0,o=3e3){this.debug("check_command "+t);const i=await this.command(n,r,a,void 0,o);return i[1].length>4?i[1]:i[0]}async memBegin(t,n,r,a){this.debug("mem_begin "+t+" "+n+" "+r+" "+a.toString(16));let o=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));o=this._appendArray(o,this._intToByteArray(r)),o=this._appendArray(o,this._intToByteArray(a)),await this.checkCommand("enter RAM download mode",this.ESP_MEM_BEGIN,o)}async memBlock(t,n){let r=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,t);const a=this.checksum(t);await this.checkCommand("write to target RAM",this.ESP_MEM_DATA,r,a)}async memFinish(t){const n=t===0?1:0,r=this._appendArray(this._intToByteArray(n),this._intToByteArray(t));await this.checkCommand("leave RAM download mode",this.ESP_MEM_END,r,void 0,50)}async flashSpiAttach(t){const n=this._intToByteArray(t);await this.checkCommand("configure SPI flash pins",this.ESP_SPI_ATTACH,n)}async flashBegin(t,n){const r=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),a=this.chip.getEraseSize(n,t),o=new Date,i=o.getTime();let s=3e3;this.IS_STUB==!1&&(s=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,t)),this.debug("flash begin "+a+" "+r+" "+this.FLASH_WRITE_SIZE+" "+n+" "+t);let c=this._appendArray(this._intToByteArray(a),this._intToByteArray(r));c=this._appendArray(c,this._intToByteArray(this.FLASH_WRITE_SIZE)),c=this._appendArray(c,this._intToByteArray(n)),this.IS_STUB==!1&&(c=this._appendArray(c,this._intToByteArray(0))),await this.checkCommand("enter Flash download mode",this.ESP_FLASH_BEGIN,c,void 0,s);const u=o.getTime();return t!=0&&this.IS_STUB==!1&&this.info("Took "+(u-i)/1e3+"."+(u-i)%1e3+"s to erase flash block"),r}async flashDeflBegin(t,n,r){const a=Math.floor((n+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),o=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),i=new Date,s=i.getTime();let c,u;this.IS_STUB?(c=t,u=3e3):(c=o*this.FLASH_WRITE_SIZE,u=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,c)),this.info("Compressed "+t+" bytes to "+n+"...");let d=this._appendArray(this._intToByteArray(c),this._intToByteArray(a));d=this._appendArray(d,this._intToByteArray(this.FLASH_WRITE_SIZE)),d=this._appendArray(d,this._intToByteArray(r)),(this.chip.CHIP_NAME==="ESP32-S2"||this.chip.CHIP_NAME==="ESP32-S3"||this.chip.CHIP_NAME==="ESP32-C3"||this.chip.CHIP_NAME==="ESP32-C2")&&this.IS_STUB===!1&&(d=this._appendArray(d,this._intToByteArray(0))),await this.checkCommand("enter compressed flash mode",this.ESP_FLASH_DEFL_BEGIN,d,void 0,u);const p=i.getTime();return t!=0&&this.IS_STUB===!1&&this.info("Took "+(p-s)/1e3+"."+(p-s)%1e3+"s to erase flash block"),a}async flashBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);await this.checkCommand("write to target Flash after seq "+n,this.ESP_FLASH_DATA,a,o,r)}async flashDeflBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);this.debug("flash_defl_block "+t[0].toString(16)+" "+t[1].toString(16)),await this.checkCommand("write compressed data to flash after seq "+n,this.ESP_FLASH_DEFL_DATA,a,o,r)}async flashFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave Flash mode",this.ESP_FLASH_END,r)}async flashDeflFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave compressed flash mode",this.ESP_FLASH_DEFL_END,r)}async runSpiflashCommand(t,n,r){const s=this.chip.SPI_REG_BASE,c=s+0,u=s+this.chip.SPI_USR_OFFS,d=s+this.chip.SPI_USR1_OFFS,p=s+this.chip.SPI_USR2_OFFS,g=s+this.chip.SPI_W0_OFFS;let m;this.chip.SPI_MOSI_DLEN_OFFS!=null?m=async(I,T)=>{const R=s+this.chip.SPI_MOSI_DLEN_OFFS,_=s+this.chip.SPI_MISO_DLEN_OFFS;I>0&&await this.writeReg(R,I-1),T>0&&await this.writeReg(_,T-1)}:m=async(I,T)=>{const R=d,_=17,$=8,M=I===0?0:I-1,D=(T===0?0:T-1)<<$|M<<_;await this.writeReg(R,D)};const h=1<<18,b=28;if(r>32)throw new Ba("Reading more than 32 bits back from a SPI flash operation is unsupported");if(n.length>64)throw new Ba("Writing more than 64 bytes of data with one SPI command is unsupported");const x=n.length*8,S=await this.readReg(u),v=await this.readReg(p);let y=-2147483648,w;r>0&&(y|=268435456),x>0&&(y|=134217728),await m(x,r),await this.writeReg(u,y);let C=7<("00"+n.toString(16)).slice(-2)).join("")}async flashMd5sum(t,n){const r=this.timeoutPerMb(this.MD5_TIMEOUT_PER_MB,n);let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0));let o=await this.checkCommand("calculate md5sum",this.ESP_SPI_FLASH_MD5,a,void 0,r);return o instanceof Uint8Array&&o.length>16&&(o=o.slice(0,16)),this.toHex(o)}async readFlash(t,n,r=null){let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(4096)),a=this._appendArray(a,this._intToByteArray(1024));const o=await this.checkCommand("read flash",this.ESP_READ_FLASH,a);if(o!=0)throw new Ba("Failed to read memory: "+o);let i=new Uint8Array(0);for(;i.length0&&(i=this._appendArray(i,s),await this.transport.write(this._intToByteArray(i.length)),r&&r(s,i.length,n));else throw new Ba("Failed to read memory: "+s)}return i}async runStub(){if(this.syncStubDetected)return this.info("Stub is already running. No upload is necessary."),this.chip;this.info("Uploading stub...");let t=N7(this.chip.ROM_TEXT),n=t.split("").map(function(s){return s.charCodeAt(0)});const r=new Uint8Array(n);t=N7(this.chip.ROM_DATA),n=t.split("").map(function(s){return s.charCodeAt(0)});const a=new Uint8Array(n);let o=Math.floor((r.length+this.ESP_RAM_BLOCK-1)/this.ESP_RAM_BLOCK),i;for(await this.memBegin(r.length,o,this.ESP_RAM_BLOCK,this.chip.TEXT_START),i=0;i"u")throw new Ba("Flash size "+t+" is not supported by this chip type. Supported sizes: "+this.chip.FLASH_SIZES);return this.chip.FLASH_SIZES[t]}_updateImageFlashParams(t,n,r,a,o){if(this.debug("_update_image_flash_params "+r+" "+a+" "+o),t.length<8||n!=this.chip.BOOTLOADER_FLASH_OFFSET)return t;if(r==="keep"&&a==="keep"&&o==="keep")return this.info("Not changing the image"),t;const i=parseInt(t[0]);let s=parseInt(t[2]);const c=parseInt(t[3]);if(i!==this.ESP_IMAGE_MAGIC)return this.info("Warning: Image file at 0x"+n.toString(16)+" doesn't look like an image file, so not changing any flash settings."),t;a!=="keep"&&(s={qio:0,qout:1,dio:2,dout:3}[a]);let u=c&15;o!=="keep"&&(u={"40m":0,"26m":1,"20m":2,"80m":15}[o]);let d=c&240;r!=="keep"&&(d=this.parseFlashSizeArg(r));const p=s<<8|u+d;return this.info("Flash params set to "+p.toString(16)),parseInt(t[2])!==s<<8&&(t=t.substring(0,2)+(s<<8).toString()+t.substring(3)),parseInt(t[3])!==u+d&&(t=t.substring(0,3)+(u+d).toString()+t.substring(4)),t}async writeFlash(t){if(this.debug("EspLoader program"),t.flashSize!=="keep"){const a=this.flashSizeBytes(t.flashSize);for(let o=0;oa)throw new Ba(`File ${o+1} doesn't fit in the available flash`)}this.IS_STUB===!0&&t.eraseAll===!0&&await this.eraseFlash();let n,r;for(let a=0;a0&&(n+="ÿÿÿÿ".substring(4-o)),r=t.fileArray[a].address,this.debug("Image Length "+n.length),n.length===0){this.debug("Warning: File is empty");continue}n=this._updateImageFlashParams(n,r,t.flashSize,t.flashMode,t.flashFreq);let i=null;t.calculateMD5Hash&&(i=t.calculateMD5Hash(n),this.debug("Image MD5 "+i));const s=n.length;let c;if(t.compress){const v=this.bstrToUi8(n);n=this.ui8ToBstr($Ve(v,{level:9})),c=await this.flashDeflBegin(s,n.length,r)}else c=await this.flashBegin(s,r);let u=0,d=0;const p=n.length;t.reportProgress&&t.reportProgress(a,0,p);let g=new Date;const m=g.getTime();let h=5e3;const b=new OVe({chunkSize:1});let x=0;for(b.onData=function(v){x+=v.byteLength};n.length>0;){this.debug("Write loop "+r+" "+u+" "+c),this.info("Writing at 0x"+(r+x).toString(16)+"... ("+Math.floor(100*(u+1)/c)+"%)");const v=this.bstrToUi8(n.slice(0,this.FLASH_WRITE_SIZE));if(t.compress){const y=x;b.push(v,!1);const w=x-y;let C=3e3;this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,w)>3e3&&(C=this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,w)),this.IS_STUB===!1&&(h=C),await this.flashDeflBlock(v,u,h),this.IS_STUB&&(h=C)}else throw new Ba("Yet to handle Non Compressed writes");d+=v.length,n=n.slice(this.FLASH_WRITE_SIZE,n.length),u++,t.reportProgress&&t.reportProgress(a,d,p)}this.IS_STUB&&await this.readReg(this.CHIP_DETECT_MAGIC_REG_ADDR,h),g=new Date;const S=g.getTime()-m;if(t.compress&&this.info("Wrote "+s+" bytes ("+d+" compressed) at 0x"+r.toString(16)+" in "+S/1e3+" seconds."),i){const v=await this.flashMd5sum(r,s);if(new String(v).valueOf()!=new String(i).valueOf())throw this.info("File md5: "+i),this.info("Flash md5: "+v),new Ba("MD5 of file does not match data in flash!");this.info("Hash of data verified.")}}this.info("Leaving..."),this.IS_STUB&&(await this.flashBegin(0,0),t.compress?await this.flashDeflFinish():await this.flashFinish())}async flashId(){this.debug("flash_id");const t=await this.readFlashId();this.info("Manufacturer: "+(t&255).toString(16));const n=t>>16&255;this.info("Device: "+(t>>8&255).toString(16)+n.toString(16)),this.info("Detected flash size: "+this.DETECTED_FLASH_SIZES[n])}async getFlashSize(){this.debug("flash_id");const n=await this.readFlashId()>>16&255;return this.DETECTED_FLASH_SIZES_NUM[n]}async hardReset(){await this.transport.setRTS(!0),await this._sleep(100),await this.transport.setRTS(!1)}async softReset(){if(!this.IS_STUB)await this.flashBegin(0,0),await this.flashFinish(!1);else{if(this.chip.CHIP_NAME!="ESP8266")throw new Ba("Soft resetting is currently only supported on ESP8266");await this.command(this.ESP_RUN_USER_CODE,void 0,void 0,!1)}}}const PVe=()=>{const[e,t]=l.useState(0),n=["",".","..","...","....","....."];return l.useEffect(()=>{const r=setInterval(()=>{t(a=>(a+1)%n.length)},666);return()=>clearInterval(r)},[]),f.jsx(f.Fragment,{children:n[e]})},LVe=()=>"serial"in navigator,Mu=new Dn(On()),{Paragraph:Hn,Text:jVe}=xn,{Step:FVe}=js,{Option:BVe}=cr,zVe=()=>{const{t:e}=Nt(),{setFetchCloudStatus:t,addNotification:n,addLoadingNotification:r,closeLoadingNotification:a}=Qn(),o=Zc(),i=dr.language,s=l.useRef(null),[c,u]=l.useState(!1),[d,p]=l.useState(""),[g,m]=l.useState(!1),[h,b]=l.useState(!1),[x,S]=l.useState(!1),[v,y]=l.useState("certs/client"),[w,C]=l.useState(""),[E,I]=l.useState(0),[T,R]=l.useState(!1),[_,$]=l.useState({progress:0,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",state:"",filename:"",flashName:"",port:null,originalFlash:null,patchedFlash:null,showStatus:!1,showProgress:!1,showDownload:!1,showFlash:!1,connected:!1,flagPreviousHostname:!1,previousHostname:"",hostname:window.location.hostname,wifi_ssid:"",wifi_pass:"",proceed:!1,actionInProgress:!1,warningTextHostname:"",warningTextWifi:"",downloadLink:"",downloadLinkPatched:"",error:!1,resetBox:!1}),[M,P]=l.useState(!1),[D,O]=l.useState(921600),k=[300,1200,2400,4800,9600,14400,19200,38400,57600,115200,230400,460800,921600],N=115200,A=ge=>{O(ge)};function L(ge){const ne=new Uint8Array(ge);let ve="";for(let _e=0;_e{(async()=>{const ve=await(await Mu.apiGetTeddyCloudSettingRaw("core.certdir")).text();y(ve)})()},[]),l.useEffect(()=>{P(LVe())},[]),l.useEffect(()=>{if(window.location.protocol!=="https:"){u(!1);const ge=async()=>{try{return await(await Mu.apiGetTeddyCloudSettingRaw("core.server.https_web_port")).text()}catch(_e){console.error("Error fetching https port: ",_e)}},ne=async()=>{try{return await(await Mu.apiGetTeddyCloudSettingRaw("core.server.http_port")).text()}catch(_e){console.error("Error fetching http port: ",_e)}};(async()=>{const _e=await ge()||"",ze=await ne()||"",Ue=new URL(window.location.href);Ue.protocol="https:",Ue.port?Ue.port=Ue.port===ze?_e:Ue.port:Ue.port=_e,p(Ue.toString())})()}else u(!0)},[]),l.useEffect(()=>{_.resetBox&&_.patchedFlash&&K()},[_.resetBox,_.patchedFlash]),l.useEffect(()=>{me(E,(()=>{switch(E){case 0:return le;case 1:return fe;case 2:return te;case 3:return _.resetBox?he:pe;default:return f.jsx("div",{})}})())},[_,i]),l.useEffect(()=>{!_.resetBox&&_.proceed&&He()},[_.proceed]),l.useEffect(()=>{m(_.actionInProgress)},[_.actionInProgress]);const j=()=>{d&&(window.location.href=d)},F=async ge=>{if(_.port)return console.log(_.port.getInfo),_.port;$(ve=>({...ve,showStatus:!0,showProgress:!1,progress:0,state:ge||"Open serial port"}));let ne=null;try{ne=await navigator.serial.requestPort(),await ne.open({baudRate:115200}),await ne.close()}catch(ve){return ve==="NetworkError"?($(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"),error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"))):ve==="NotFoundError"?$(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.noPortAvailable"),error:!0})):($(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+ve,error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+` ${ve}`)),null}return ne?(console.log("port done"),$(ve=>({...ve,port:ne})),ne):($(ve=>({...ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.invalidSerialPort"),error:!0})),null)},B=async ge=>{if(console.log("loadFlashFile"),!ge.target.files)return;const ne=ge.target.files[0];if(!ne)return;$(_e=>({..._e,state:"",chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",error:!1,actionInProgress:!0}));const ve=new FileReader;_.resetBox?(console.log("Read file '"+ne+"' for reset"),ve.onload=async _e=>{var ze;console.log("Loading file for reset"),(ze=_e.target)==null||ze.result,_e.target&&$(Ue=>{var Ae;return{...Ue,patchedFlash:(Ae=_e.target)==null?void 0:Ae.result,showFlash:!0,connected:!1,flashName:"from file"}}),console.log("Load file done")}):(console.log("Read file '"+ne+"'"),ve.onload=async _e=>{var Ae;console.log("Connecting to ESP32");const ze=await F(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadMac"));if(ze===null||_.connected){$(Oe=>({...Oe,actionInProgress:!1}));return}$(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${_.port}`,showFlash:!1,connected:!0}));let Ue=null;try{const Oe=new Sp(ze);Ue=new cv({transport:Oe,baudrate:D,romBaudrate:N})}catch(Oe){$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${Oe}`,connected:!1,actionInProgress:!1,error:!0})),alert(Oe),await ze.close();return}try{$(Qe=>({...Qe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.retrievingMac"),actionInProgress:!0})),await Ue.main();let Oe=await Ue.chip.readMac(Ue);$(Qe=>({...Qe,chipMac:Oe})),console.log("Chip MAC: "+Oe),await ze.close();const Re=(Ae=_e.target)==null?void 0:Ae.result,at=new Uint8Array(Re),Ye=`ESP32_${Oe.replace(/:/g,"")}`,We=new Blob([at],{type:"application/octet-stream"}),qe=URL.createObjectURL(We);await U(at,Ye),_e.target&&$(Qe=>{var ot;return{...Qe,patchedFlash:(ot=_e.target)==null?void 0:ot.result,showFlash:!0,connected:!1,flashName:"from file",downloadLink:qe}}),console.log("Done")}catch(Oe){$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${Oe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(Oe),alert(Oe),await ze.close();return}}),ve.readAsArrayBuffer(ne),$(_e=>({..._e,actionInProgress:!1})),ge.target.value=""},z=async()=>{let ge=null,ne=null,ve="";ne=new Uint8Array(1024);const _e=await F(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadFlash"));if(_e===null||_.connected)return;$(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${_e.getInfo()}`,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",showFlash:!1,connected:!0,actionInProgress:!0,error:!1}));try{const Oe=new Sp(_e);ge=new cv({transport:Oe,baudrate:D,romBaudrate:N})}catch(Oe){$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${Oe}`,connected:!1,actionInProgress:!1,error:!0})),alert(Oe),await _e.close();return}try{$(Ye=>({...Ye,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await ge.main(),$(Ye=>({...Ye,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected")})),ve=await ge.chip.readMac(ge),$(Ye=>({...Ye,chipMac:ve})),console.log("Chip MAC: "+ve);const Oe=await ge.chip.getChipDescription(ge);$(Ye=>({...Ye,chipType:Oe}));let Re=await ge.readFlashId();$(Ye=>({...Ye,flashId:""+Re,flashManuf:""+(Re&255),flashDevice:""+(Re>>8&255)}));let at=await ge.getFlashSize();if($(Ye=>({...Ye,flashSize:""+at})),at<0||at>16384){$(Ye=>({...Ye,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await _e.close();return}$(Ye=>({...Ye,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFlash"),showProgress:!0,progress:0})),ne=await ge.readFlash(0,at*1024,(Ye,We,qe)=>{const Qe=100*We/qe;$(ot=>({...ot,progress:Qe}))}),await _e.close(),$(Ye=>({...Ye,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFinished"),progress:100,originalFlash:ne,connected:!1}))}catch(Oe){$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${Oe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(Oe),alert(Oe),await _e.close();return}const ze=`ESP32_${ve.replace(/:/g,"")}`,Ue=new Blob([ne],{type:"application/octet-stream"}),Ae=URL.createObjectURL(Ue);$(Oe=>({...Oe,downloadLink:Ae,showProgress:!1})),await U(ne,ze),console.log("Done")},U=async(ge,ne)=>{try{$(ze=>({...ze,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploading"),error:!1}));const ve=new FormData;ve.append(ne,new Blob([ge.buffer]),ne);const _e=await Mu.apiPostTeddyCloudFormDataRaw("/api/esp32/uploadFirmware",ve);if(_e.ok&&_e.status===200){const ze=await _e.text();$(Ue=>({...Ue,showDownload:!0,filename:ze,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadSuccessful")+` ${ze}`+e("tonieboxes.esp32BoxFlashing.esp32flasher.readyToProceed"),proceed:!0,actionInProgress:!1}))}else $(ze=>({...ze,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}catch(ve){console.error("There was an error when uploading!",ve),$(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}},H=async()=>{if(_.wifi_ssid&&!_.wifi_pass||!_.wifi_ssid&&_.wifi_pass){$(ne=>({...ne,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),showStatus:!0,warningTextWifi:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),error:!0}));return}$(ne=>({...ne,actionInProgress:!0})),$(ne=>({...ne,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage"),error:!1}));const ge=await Mu.apiGetTeddyCloudApiRaw(`/api/esp32/patchFirmware?filename=${_.filename}&hostname=${encodeURIComponent(_.hostname)}`+(_.wifi_ssid&&_.wifi_pass?`&wifi_ssid=${encodeURIComponent(_.wifi_ssid)}&wifi_pass=${encodeURIComponent(_.wifi_pass)}`:""));if($(ne=>({...ne,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage")})),ge.ok&&ge.status===200){const ne=await ge.arrayBuffer();$(ze=>({...ze,patchedFlash:ne,showFlash:!0,flashName:"patched"}));const ve=new Blob([ne],{type:"application/octet-stream"}),_e=URL.createObjectURL(ve);$(ze=>({...ze,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingSuccessful",{size:(ne.byteLength/1024/1024).toFixed(0)}),downloadLinkPatched:_e})),He()}else $(ne=>({...ne,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFailed"),error:!0}));$(ne=>({...ne,actionInProgress:!1}))},K=async()=>{I(2);const ge=await F(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingWriteFlash"));if(ge===null||_.connected)return;$(ve=>({...ve,actionInProgress:!0,error:!1})),$(ve=>({...ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${ge.getInfo()}`,connected:!0}));let ne=null;try{const ve=new Sp(ge);ne=new cv({transport:ve,baudrate:D,romBaudrate:N})}catch(ve){$(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${ve}`,connected:!1,actionInProgress:!1,error:!0})),alert(ve),await ge.close();return}try{$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await ne.main(),$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected"),progress:0,showProgress:!0}));let ve=await ne.chip.readMac(ne);$(Re=>({...Re,chipMac:ve})),console.log("Chip MAC: "+ve);const _e=await ne.chip.getChipDescription(ne);$(Re=>({...Re,chipType:_e}));let ze=await ne.readFlashId();$(Re=>({...Re,flashId:""+ze,flashManuf:""+(ze&255),flashDevice:""+(ze>>8&255)}));let Ue=await ne.getFlashSize();if($(Re=>({...Re,flashSize:""+Ue})),Ue<0||Ue>16384){$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await ge.close();return}$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.preparingFlash",{size:(_.patchedFlash.byteLength/1024/1024).toFixed(0)})}));let Ae=[];Ae.push({data:L(_.patchedFlash),address:0});let Oe={fileArray:Ae,flashSize:"keep",flashMode:"keep",flashFreq:"keep",eraseAll:!1,compress:!0,reportProgress:(Re,at,Ye)=>{const We=100*at/Ye;$(qe=>({...qe,progress:We}))}};$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFlash",{size:(_.patchedFlash.byteLength/1024/1024).toFixed(0)})})),await ne.writeFlash(Oe),await ge.close(),$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFinished"),connected:!1,actionInProgress:!1})),I(3)}catch(ve){$(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${ve}`,connected:!1,actionInProgress:!1,error:!0})),console.error(ve),alert(ve),await ge.close();return}},Y=async()=>{const ge=await F(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingWriteFlash"));if(ge===null||_.connected)return;$(ve=>({...ve,actionInProgress:!0,error:!1})),$(ve=>({...ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${ge.getInfo()}`,connected:!0}));let ne=null;try{const ve=new Sp(ge);ne=new cv({transport:ve,baudrate:D,romBaudrate:N})}catch(ve){$(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${ve}`,connected:!1,actionInProgress:!1,error:!0})),alert(ve),await ge.close();return}try{$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await ne.main(),$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected"),progress:0,showProgress:!0}));let ve=await ne.chip.readMac(ne);$(Re=>({...Re,chipMac:ve})),console.log("Chip MAC: "+ve);const _e=await ne.chip.getChipDescription(ne);$(Re=>({...Re,chipType:_e}));let ze=await ne.readFlashId();$(Re=>({...Re,flashId:""+ze,flashManuf:""+(ze&255),flashDevice:""+(ze>>8&255)}));let Ue=await ne.getFlashSize();if($(Re=>({...Re,flashSize:""+Ue})),Ue<0||Ue>16384){$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await ge.close();return}$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.preparingFlash",{size:(_.patchedFlash.byteLength/1024/1024).toFixed(0)})}));let Ae=[];Ae.push({data:L(_.patchedFlash),address:0});let Oe={fileArray:Ae,flashSize:"keep",flashMode:"keep",flashFreq:"keep",eraseAll:!1,compress:!0,reportProgress:(Re,at,Ye)=>{const We=100*at/Ye;$(qe=>({...qe,progress:We}))}};$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFlash",{size:(_.patchedFlash.byteLength/1024/1024).toFixed(0)})})),await ne.writeFlash(Oe),await ge.close(),$(Re=>({...Re,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFinished"),connected:!1,actionInProgress:!1,proceed:!0}))}catch(ve){$(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${ve}`,connected:!1,actionInProgress:!1,error:!0})),console.error(ve),alert(ve),await ge.close();return}},ee=async ge=>{const ne="extractStoreCerts";r(ne,e("tonieboxes.esp32BoxFlashing.processing"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates")),ge&&S(!1);try{const ve=await Mu.apiPostTeddyCloudRaw(`/api/esp32/extractCerts?filename=${_.filename}`+(ge?"&overwrite=true":""));if(a(ne),ve.ok&&ve.status===200)n(dt.Success,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesSuccessful"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesSuccessfulDetails",{file:_.filename}),e("tonieboxes.esp32BoxFlashing.title")),t(_e=>!_e);else if(!ve.ok&&ve.status===409){const _e=await ve.text();n(dt.Error,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailedDetails",{file:_.filename})+": "+_e,e("tonieboxes.esp32BoxFlashing.title")),C(_e),S(!0)}else n(dt.Error,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailedDetails",{file:_.filename})+": "+await ve.text(),e("tonieboxes.esp32BoxFlashing.title"))}catch(ve){n(dt.Error,e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed"),e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailedDetails",{file:_.filename})+": "+ve,e("tonieboxes.esp32BoxFlashing.title"))}},ae=[{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}],W=f.jsx(f.Fragment,{children:_.showProgress&&f.jsx("div",{children:f.jsx("div",{children:f.jsx(Py,{percent:_.progress||0,format:ge=>`${(ge??0).toFixed(2)}%`})})})}),q=f.jsx(f.Fragment,{children:(_.chipType||_.chipMac)&&f.jsxs("div",{children:[f.jsx(Wn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.infoTable")}),f.jsx("table",{className:"info-table",children:f.jsxs("tbody",{children:[_.chipType&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipType")}),f.jsx("td",{children:_.chipType})]}),_.chipMac&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipMAC")}),f.jsx("td",{children:_.chipMac})]}),_.flashId&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashId")}),f.jsxs("td",{children:["0x",_.flashId.toString()]})]}),_.flashManuf&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashManuf")}),f.jsxs("td",{children:["0x",_.flashManuf.toString()]})]}),_.flashDevice&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashDevice")}),f.jsxs("td",{children:["0x",_.flashDevice.toString()]})]}),_.flashSize&&f.jsxs("tr",{children:[f.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSize")}),f.jsxs("td",{children:[_.flashSize," KiB"]})]})]})})]})}),Z=ge=>ge.replace(/[^a-zA-Z0-9-.]/g,"").trim(),Q=ge=>{if(ge.endsWith("...")){const ne=ge.slice(0,-3);return f.jsxs("div",{style:{display:"flex"},children:[ne,f.jsx(PVe,{})]})}return ge},J=_.showStatus&&f.jsx("div",{className:"status",style:{marginBottom:16,color:_.error?"#CC3010":"unset"},children:f.jsx("i",{children:Q(_.state)})}),ie=xZ(),le=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")}),!_.actionInProgress&&f.jsxs(f.Fragment,{children:[f.jsx(Hn,{children:f.jsx(Sn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")})}),f.jsx(Hn,{children:f.jsx(Sn,{type:"info",closeIcon:!0,showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.adaptBaudrateOnProblems"),description:e("tonieboxes.esp32BoxFlashing.adaptBaudrateOnProblemsText")})}),f.jsx(Hn,{style:{marginTop:16},children:f.jsx(Sn,{type:"info",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintReadESP32ImportFlash")})}),f.jsx($s,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectESPCollapseTitle"),children:ie}]})]}),J,f.jsx("input",{type:"file",style:{display:"none"},ref:s,onChange:B}),W]}),fe=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")}),f.jsxs("div",{children:[!_.actionInProgress&&f.jsx(Hn,{children:f.jsx(Sn,{type:"info",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchFlash")})}),J,!_.actionInProgress&&_.downloadLink?f.jsxs("div",{style:{marginBottom:16},children:[" ",f.jsx("a",{href:_.downloadLink,download:_.filename,title:_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})]}):"",f.jsxs(Gt,{children:[f.jsx(Wn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameSettings")}),f.jsx(Hn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchHost")}),f.jsx(Gt.Item,{children:f.jsx(la,{align:"middle",style:{display:"flex",alignItems:"center"},children:f.jsx(Cn,{children:f.jsx(ts,{checked:_.flagPreviousHostname,onChange:ge=>{$(ne=>({...ne,flagPreviousHostname:ge.target.checked}))},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flagPreviousHostname")})})})}),_.flagPreviousHostname&&f.jsxs(Gt.Item,{children:[f.jsxs(la,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Cn,{style:{flex:"0 0 200px"},children:f.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.previousHostname")})}),f.jsx(Cn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",value:_.previousHostname,onChange:ge=>{let ne=Z(ge.target.value);$(ve=>({...ve,previousHostname:ne}))}})})]}),_.warningTextHostname&&f.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong")})]}),f.jsxs(Gt.Item,{children:[f.jsxs(la,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Cn,{style:{flex:"0 0 200px",color:_.warningTextHostname?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostname")})}),f.jsx(Cn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",value:_.hostname,onChange:ge=>{let ne=Z(ge.target.value),ve="";ne.length>12?ve=e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong"):ve="",$(_e=>({..._e,hostname:ne,warningTextHostname:ve}))}})})]}),_.warningTextHostname&&f.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong")})]}),f.jsx(Wn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSettings")}),f.jsx(Hn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchWifi")}),f.jsx(Gt.Item,{children:f.jsxs(la,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Cn,{style:{flex:"0 0 200px",color:_.warningTextWifi?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSSID")})}),f.jsx(Cn,{style:{flex:"1 1 auto"},children:f.jsx(Jt,{type:"text",defaultValue:_.wifi_ssid,onChange:ge=>{let ne=ge.target.value;$(ve=>({...ve,wifi_ssid:ne,warningTextWifi:ge.target.value&&_.wifi_pass||!ge.target.value&&!_.wifi_pass?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]})}),f.jsxs(Gt.Item,{children:[f.jsxs(la,{align:"middle",style:{display:"flex",alignItems:"center"},children:[f.jsx(Cn,{style:{flex:"0 0 200px",color:_.warningTextWifi?"#CC3010":"unset"},children:f.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiPassword")})}),f.jsx(Cn,{style:{flex:"1 1 auto"},children:f.jsx(Jt.Password,{defaultValue:_.wifi_pass,onChange:ge=>{let ne=ge.target.value;$(ve=>({...ve,wifi_pass:ne,warningTextWifi:ge.target.value&&_.wifi_ssid||!ge.target.value&&!_.wifi_ssid?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]}),_.warningTextWifi&&f.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")})]})]})]}),W]}),te=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")}),!_.actionInProgress&&f.jsxs(Hn,{children:[" ",f.jsx(Sn,{type:"info",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintFlashESP32")})]}),J,!_.actionInProgress&&_.downloadLinkPatched?f.jsxs("div",{style:{marginBottom:16},children:[" ",f.jsx("a",{href:_.downloadLinkPatched,download:"patched_"+_.filename,title:"patched_"+_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})]}):"",W]}),se=`${v}/${_.chipMac?_.chipMac.replaceAll(":","").toLowerCase():""}`,pe=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}),f.jsx(Hn,{children:f.jsx(Sn,{type:"success",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintESP32FirmwareFlashed")})}),J,W,(_.downloadLink||_.downloadLinkPatched)&&f.jsxs(f.Fragment,{children:[f.jsx(Sn,{type:"info",style:{marginTop:16},showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates"),description:f.jsxs("div",{children:[f.jsxs(xn,{children:[f.jsx(Wn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.automatically")}),f.jsx(Hn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint")}),f.jsx(tt,{icon:f.jsx(BN,{}),disabled:g,type:"primary",onClick:()=>je(),style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates")}),f.jsx(Hn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint2",{certDir:v,mac:_.chipMac.replaceAll(":","").toLocaleLowerCase()})})]}),f.jsx(Wn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.manually")}),f.jsx(xn,{style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHint")}),f.jsx(xn,{children:f.jsx($s,{size:"small",items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManually"),children:f.jsxs(xn,{children:[f.jsxs(Hn,{children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP1")," ",f.jsx(jVe,{code:!0,children:"docker exec -it bash"}),"."]}),f.jsx(Hn,{children:f.jsx("pre",{style:{fontSize:12},children:`# Please check the filename of your backup # Be sure you are in the TeddyCloud directory # cd /teddycloud/ # just for docker -mkdir ${te} -teddycloud --esp32-extract data/firmware/`+(_.filename?_.filename:"ESP32_.bin")+` --destination ${te}`})}),f.jsx(Gn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP2")}),f.jsx(Gn,{children:f.jsx("pre",{style:{fontSize:12},children:`mv ${te}/CLIENT.DER ${te}/client.der -mv ${te}/PRIVATE.DER ${v}/${te}/private.der -mv ${te}/CA.DER ${v}/${te}/ca.der`})}),f.jsx(Gn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP3")}),f.jsx(Gn,{children:f.jsx("pre",{style:{fontSize:12},children:`cp ${te}/client.der ${v}/client.der -cp ${te}/private.der ${v}/private.der -cp ${te}/ca.der ${v}/ca.der`})})]})}]})})]})}),f.jsxs(Gn,{style:{marginTop:16},children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHint"),f.jsxs("ul",{style:{marginTop:8},children:[_.downloadLink&&f.jsx("li",{children:f.jsx("a",{href:_.downloadLink,download:_.filename,title:_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})}),_.downloadLinkPatched&&f.jsx("li",{children:f.jsx("a",{href:_.downloadLinkPatched,download:"patched_"+_.filename,title:"patched_"+_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})})]})]})]})]}),[pe,me]=l.useState([oe,se,fe,ie]),re=(xe,$e)=>{me(Fe=>{const be=[...Fe];return be[xe]=$e,be})},ce=()=>{z()},ge=()=>{s.current&&s.current.click()},ye=()=>{H()},Ee=()=>{Y()},Ne=()=>{K()},_e=()=>{$(xe=>({...xe,proceed:!1})),I(E+1)},Pe=()=>{$(xe=>({...xe,state:"",showProgress:!1,error:!1})),I(E-1)},Le=()=>{b(!1),Ee()},Ve=()=>{b(!1)},je=f.jsx(nt,{icon:f.jsx(Os,{}),disabled:g,onClick:()=>Pe(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.previous")}),De=()=>{Se()},Se=()=>{R(!0)},Oe=()=>{R(!1)},Re=f.jsx(gx,{boxVersion:qo.esp32,isOpen:T,onClose:Oe}),Ce=M?f.jsxs(f.Fragment,{children:[f.jsx(Vn,{children:e("tonieboxes.esp32BoxFlashing.title")}),f.jsx(Gd,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashModal"),open:h,okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.flash"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialog"),contentHint:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialogHint"),handleOk:Le,handleCancel:Ve}),f.jsx(Ls,{current:E,children:J.map((xe,$e)=>f.jsx(FVe,{title:xe.title,status:$e===E&&$e===J.length-1?"finish":$e===E?_.error?"error":"process":$eo("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})}),f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx(nt,{icon:f.jsx(REe,{}),disabled:g,onClick:()=>ge(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.loadFile")}),f.jsx(nt,{icon:f.jsx(LN,{}),disabled:g,type:"primary",onClick:()=>ce(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.readFlash")})]}),f.jsx(nt,{icon:f.jsx(io,{}),iconPosition:"end",disabled:!_.proceed&&!_.filename||g,onClick:()=>_e(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),E===1&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[je,f.jsx("div",{style:{display:"flex",gap:8},children:f.jsx(nt,{icon:f.jsx(PN,{}),disabled:g,type:"primary",onClick:()=>ye(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchImage")})}),f.jsx(nt,{icon:f.jsx(io,{}),iconPosition:"end",disabled:g||!_.showFlash,onClick:()=>_e(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),E===2&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[je,f.jsx("div",{style:{display:"flex",gap:8},children:f.jsx(nt,{icon:f.jsx(CK,{}),disabled:g,type:"primary",onClick:()=>b(!0),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashEsp32")})}),f.jsx("div",{})]}),E===3&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[je,f.jsx("div",{children:f.jsx(nt,{icon:f.jsx(kl,{}),type:"primary",onClick:De,children:e("tonieboxes.esp32BoxFlashing.legacy.checkBoxes")})}),f.jsx("div",{})]}),W]})]}):f.jsxs(f.Fragment,{children:[f.jsx(Gn,{children:f.jsx(Cn,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:e("tonieboxes.esp32BoxFlashing.browserNotSupported"),type:"warning",showIcon:!0})}),f.jsxs(Gn,{style:{marginTop:16},children:[f.jsxs(Gn,{children:[" ",e("tonieboxes.esp32BoxFlashing.hintLegacyApproach")]}),f.jsx(Gn,{children:f.jsx(nt,{onClick:()=>o("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})]})]});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs(Gn,{style:{display:"flex",gap:8,flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-end"},children:[f.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.title")}),f.jsxs(Gn,{style:{fontSize:"small",display:"flex",gap:8,width:210,alignItems:"center",justifyContent:"flex-end"},children:[f.jsx("div",{style:{textAlign:"end",textWrap:"nowrap"},children:e("tonieboxes.esp32BoxFlashing.baudRate")}),f.jsx(cr,{defaultValue:D,onChange:A,children:k.map(xe=>f.jsx(BVe,{value:xe,children:xe},xe))})," ",f.jsx(Wt,{title:e("tonieboxes.esp32BoxFlashing.baudRateInfo"),placement:"top",children:f.jsx(Mg,{style:{fontSize:"18px",cursor:"pointer"}})})]})]}),c?Ce:f.jsxs(f.Fragment,{children:[f.jsx(Cn,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:f.jsxs(f.Fragment,{children:[f.jsx(Gn,{children:e("tonieboxes.esp32BoxFlashing.hint")}),f.jsx(Gn,{children:f.jsx(nt,{icon:f.jsx(xK,{}),onClick:j,children:e("tonieboxes.esp32BoxFlashing.redirect")})})]}),type:"warning",showIcon:!0}),f.jsxs(Gn,{style:{marginTop:16},children:[f.jsxs(Gn,{children:[" ",e("tonieboxes.esp32BoxFlashing.legacy.followLegacyApproach")]}),f.jsx(Gn,{children:f.jsx(nt,{onClick:()=>o("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})]})]}),f.jsx(Gd,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwrite"),okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteConfirmButton"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteContent",{error:C}),open:x,handleOk:()=>K(!0),handleCancel:()=>S(!1)}),Re]})]})]})},HVe="/web/assets/esp32_write_patched_image_with_esptools-DmsBlrjp.png",{Paragraph:Li}=xn,{Step:UVe}=Ls,VVe=()=>{const{t:e}=Nt(),t=dr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),i=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],s=xZ(),c=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),f.jsx(Cn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),f.jsxs(Li,{children:[e("tonieboxes.esp32BoxFlashing.legacy.preparationText")," ",f.jsx(ot,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.preparationTextLink")})]}),f.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPTool")}),f.jsx(Li,{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolText")}),f.jsx(Li,{children:f.jsx(ot,{to:"https://github.com/espressif/esptool",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolLink")})}),f.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.connectESP32")}),s]}),u=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),e3(!1),f.jsx(Li,{children:f.jsx(gn,{language:"shell",code:`# extract firmware +mkdir ${se} +teddycloud --esp32-extract data/firmware/`+(_.filename?_.filename:"ESP32_.bin")+` --destination ${se}`})}),f.jsx(Hn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP2")}),f.jsx(Hn,{children:f.jsx("pre",{style:{fontSize:12},children:`mv ${se}/CLIENT.DER ${se}/client.der +mv ${se}/PRIVATE.DER ${v}/${se}/private.der +mv ${se}/CA.DER ${v}/${se}/ca.der`})}),f.jsx(Hn,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP3")}),f.jsx(Hn,{children:f.jsx("pre",{style:{fontSize:12},children:`cp ${se}/client.der ${v}/client.der +cp ${se}/private.der ${v}/private.der +cp ${se}/ca.der ${v}/ca.der`})})]})}]})})]})}),f.jsxs(Hn,{style:{marginTop:16},children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHint"),f.jsxs("ul",{style:{marginTop:8},children:[_.downloadLink&&f.jsx("li",{children:f.jsx("a",{href:_.downloadLink,download:_.filename,title:_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})}),_.downloadLinkPatched&&f.jsx("li",{children:f.jsx("a",{href:_.downloadLinkPatched,download:"patched_"+_.filename,title:"patched_"+_.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})})]})]})]})]}),he=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}),f.jsx(Hn,{children:f.jsx(Sn,{type:"success",description:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintESP32FirmwareReseted")})}),J,W]}),[re,ue]=l.useState([le,fe,te,pe]),me=(ge,ne)=>{ue(ve=>{const _e=[...ve];return _e[ge]=ne,_e})},xe=()=>{$(ge=>({...ge,resetBox:!1})),z()},Ee=()=>{$(ge=>({...ge,resetBox:!1})),s.current&&s.current.click()},ke=()=>{$(ge=>({...ge,resetBox:!0})),s.current&&s.current.click()},$e=()=>{H()},Le=()=>{Y()},je=()=>{ee()},He=()=>{$(ge=>({...ge,proceed:!1})),I(E+1)},Be=()=>{$(ge=>({...ge,state:"",showProgress:!1,error:!1})),I(E-1)},Pe=()=>{b(!1),Le()},Se=()=>{b(!1)},Ne=f.jsx(tt,{icon:f.jsx(ks,{}),disabled:g,onClick:()=>Be(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.previous")}),Te=()=>{we()},we=()=>{R(!0)},Me=()=>{R(!1)},Ge=f.jsx(hx,{boxVersion:qo.esp32,isOpen:T,onClose:Me}),st=M?f.jsxs(f.Fragment,{children:[f.jsx(Wn,{children:e("tonieboxes.esp32BoxFlashing.title")}),f.jsx(Gd,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashModal"),open:h,okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.flash"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialog"),contentHint:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialogHint"),handleOk:Pe,handleCancel:Se}),f.jsx(js,{current:E,children:ae.map((ge,ne)=>f.jsx(FVe,{title:ge.title,status:ne===E&&ne===ae.length-1?"finish":ne===E?_.error?"error":"process":neo("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})}),f.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[f.jsx(Ft,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.resetBoxineTooltip"),children:f.jsx(tt,{icon:f.jsx(Qb,{}),disabled:g,onClick:()=>ke(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.resetBoxine")})}),f.jsx(tt,{icon:f.jsx(REe,{}),disabled:g,onClick:()=>Ee(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.loadFile")}),f.jsx(tt,{icon:f.jsx(LN,{}),disabled:g,type:"primary",onClick:()=>xe(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.readFlash")})]}),f.jsx(tt,{icon:f.jsx(io,{}),iconPosition:"end",disabled:!_.proceed&&!_.filename||g,onClick:()=>He(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),E===1&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[Ne,f.jsx("div",{style:{display:"flex",gap:8},children:f.jsx(tt,{icon:f.jsx(PN,{}),disabled:g||_.hostname===""||_.flagPreviousHostname&&_.previousHostname==="",type:"primary",onClick:()=>$e(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchImage")})}),f.jsx(tt,{icon:f.jsx(io,{}),iconPosition:"end",disabled:g||!_.showFlash,onClick:()=>He(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),E===2&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[Ne,f.jsx("div",{style:{display:"flex",gap:8},children:f.jsx(tt,{icon:f.jsx(wK,{}),disabled:g,type:"primary",onClick:_.resetBox?K:()=>b(!0),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashEsp32")})}),f.jsx("div",{})]}),E===3&&f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[Ne,f.jsx("div",{children:_.resetBox?"":f.jsx(tt,{icon:f.jsx(kl,{}),type:"primary",onClick:Te,children:e("tonieboxes.esp32BoxFlashing.legacy.checkBoxes")})}),f.jsx("div",{})]}),q]})]}):f.jsxs(f.Fragment,{children:[f.jsx(Hn,{children:f.jsx(Sn,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:e("tonieboxes.esp32BoxFlashing.browserNotSupported"),type:"warning",showIcon:!0})}),f.jsxs(Hn,{style:{marginTop:16},children:[f.jsxs(Hn,{children:[" ",e("tonieboxes.esp32BoxFlashing.hintLegacyApproach")]}),f.jsx(Hn,{children:f.jsx(tt,{onClick:()=>o("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})]})]});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs(Hn,{style:{display:"flex",gap:8,flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-end"},children:[f.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.title")}),f.jsxs(Hn,{style:{fontSize:"small",display:"flex",gap:8,width:210,alignItems:"center",justifyContent:"flex-end"},children:[f.jsx("div",{style:{textAlign:"end",textWrap:"nowrap"},children:e("tonieboxes.esp32BoxFlashing.baudRate")}),f.jsx(cr,{defaultValue:D,onChange:A,children:k.map(ge=>f.jsx(BVe,{value:ge,children:ge},ge))})," ",f.jsx(Ft,{title:e("tonieboxes.esp32BoxFlashing.baudRateInfo"),placement:"top",children:f.jsx(Dg,{style:{fontSize:"18px",cursor:"pointer"}})})]})]}),c?st:f.jsxs(f.Fragment,{children:[f.jsx(Sn,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:f.jsxs(f.Fragment,{children:[f.jsx(Hn,{children:e("tonieboxes.esp32BoxFlashing.hint")}),f.jsx(Hn,{children:f.jsx(tt,{icon:f.jsx(xK,{}),onClick:j,children:e("tonieboxes.esp32BoxFlashing.redirect")})})]}),type:"warning",showIcon:!0}),f.jsxs(Hn,{style:{marginTop:16},children:[f.jsxs(Hn,{children:[" ",e("tonieboxes.esp32BoxFlashing.legacy.followLegacyApproach")]}),f.jsx(Hn,{children:f.jsx(tt,{onClick:()=>o("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})]})]}),f.jsx(Gd,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwrite"),okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteConfirmButton"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteContent",{error:w}),open:x,handleOk:()=>ee(!0),handleCancel:()=>S(!1)}),Ge]})]})]})},HVe="/web/assets/esp32_write_patched_image_with_esptools-DmsBlrjp.png",{Paragraph:ji}=xn,{Step:UVe}=js,VVe=()=>{const{t:e}=Nt(),t=dr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),i=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],s=xZ(),c=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),f.jsx(Sn,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),f.jsxs(ji,{children:[e("tonieboxes.esp32BoxFlashing.legacy.preparationText")," ",f.jsx(it,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.preparationTextLink")})]}),f.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPTool")}),f.jsx(ji,{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolText")}),f.jsx(ji,{children:f.jsx(it,{to:"https://github.com/espressif/esptool",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolLink")})}),f.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.connectESP32")}),s]}),u=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),e3(!1),f.jsx(ji,{children:f.jsx(gn,{language:"shell",code:`# extract firmware esptool.py -b 921600 read_flash 0x0 0x800000 tb.esp32.bin # extract certficates from firmware mkdir certs/client/esp32 @@ -689,7 +689,7 @@ cp certs/client//ca.der certs/client/ca.der mkdir certs/client/esp32-fakeca cp certs/client/esp32/CLIENT.DER certs/client/esp32-fakeca/ cp certs/client/esp32/PRIVATE.DER certs/client/esp32-fakeca/ -cp certs/server/ca.der certs/client/esp32-fakeca/CA.DER`})}),f.jsx(Li,{children:e("tonieboxes.esp32BoxFlashing.legacy.checkDumpIsOk")}),f.jsx("h5",{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacement")}),e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText1"),f.jsx(Li,{children:f.jsx(gn,{language:"shell",code:`# copy firmware backup +cp certs/server/ca.der certs/client/esp32-fakeca/CA.DER`})}),f.jsx(ji,{children:e("tonieboxes.esp32BoxFlashing.legacy.checkDumpIsOk")}),f.jsx("h5",{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacement")}),e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText1"),f.jsx(ji,{children:f.jsx(gn,{language:"shell",code:`# copy firmware backup cp tb.esp32.bin tb.esp32.fakeca.bin # inject new CA into firmware @@ -698,11 +698,11 @@ teddycloud --esp32-inject tb.esp32.fakeca.bin --source certs/client/esp32-fakeca teddycloud --esp32-hostpatch tb.esp32.fakeca.bin --hostname # flash firmware with new CA -esptool.py -b 921600 write_flash 0x0 tb.esp32.fakeca.bin`})}),f.jsx(dn,{preview:!1,src:HVe,alt:e("tonieboxes.esp32BoxFlashing.legacy.flashESPtoolScreen")}),f.jsx(Li,{style:{marginTop:16},children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText2")}),f.jsx(Li,{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText3")})]}),d=CZ(),p=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),f.jsx(Li,{children:e("tonieboxes.esp32BoxFlashing.legacy.skipDnsIfAlreadyDone")}),d]}),[g,m]=l.useState([c,u,p]),h=(I,T)=>{m(R=>{const _=[...R];return _[I]=T,_})};l.useEffect(()=>{h(n,(()=>{switch(n){case 0:return c;case 1:return u;case 2:return p;default:return f.jsx("div",{})}})())},[n,t,Ss()]);const b=()=>{r(n-1)},x=()=>{r(n+1)},S=f.jsx(nt,{icon:f.jsx(Os,{}),onClick:()=>b(),children:e("tonieboxes.esp32BoxFlashing.legacy.previous")}),v=I=>{r(I)},y=()=>{C()},C=()=>{o(!0)},w=()=>{o(!1)},E=f.jsx(gx,{boxVersion:qo.esp32,isOpen:a,onClose:w});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(ns,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),f.jsx(Vn,{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),f.jsxs(Li,{style:{marginTop:16},children:[f.jsx(Ls,{current:n,onChange:v,children:i.map((I,T)=>f.jsx(UVe,{title:I.title,status:T===n&&T===i.length?"finish":T===n?"process":Tr=>{t.forEach(a=>a(r))},t)}const bx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $f(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function l3(e){return"nodeType"in e}function co(e){var t,n;return e?$f(e)?e:l3(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function c3(e){const{Document:t}=co(e);return e instanceof t}function qm(e){return $f(e)?!1:e instanceof co(e).HTMLElement}function aQ(e){return e instanceof co(e).SVGElement}function Of(e){return e?$f(e)?e.document:l3(e)?c3(e)?e:qm(e)||aQ(e)?e.ownerDocument:document:document:document}const Oi=bx?l.useLayoutEffect:l.useEffect;function u3(e){const t=l.useRef(e);return Oi(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{e.current=setInterval(r,a)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Xg(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return Oi(()=>{n.current!==e&&(n.current=e)},t),n}function Km(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function l0(e){const t=u3(e),n=l.useRef(null),r=l.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function s$(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let WI={};function Ym(e,t){return l.useMemo(()=>{if(t)return t;const n=WI[e]==null?0:WI[e]+1;return WI[e]=n,e+"-"+n},[e,t])}function oQ(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{const s=Object.entries(i);for(const[c,u]of s){const d=o[c];d!=null&&(o[c]=d+e*u)}return o},{...t})}}const bd=oQ(1),c0=oQ(-1);function qVe(e){return"clientX"in e&&"clientY"in e}function d3(e){if(!e)return!1;const{KeyboardEvent:t}=co(e.target);return t&&e instanceof t}function KVe(e){if(!e)return!1;const{TouchEvent:t}=co(e.target);return t&&e instanceof t}function l$(e){if(KVe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return qVe(e)?{x:e.clientX,y:e.clientY}:null}const Zd=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Zd.Translate.toString(e),Zd.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),k7="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function YVe(e){return e.matches(k7)?e:e.querySelector(k7)}const XVe={display:"none"};function ZVe(e){let{id:t,value:n}=e;return de.createElement("div",{id:t,style:XVe},n)}function QVe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function JVe(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const iQ=l.createContext(null);function eWe(e){const t=l.useContext(iQ);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function tWe(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:a,event:o}=r;e.forEach(i=>{var s;return(s=i[a])==null?void 0:s.call(i,o)})},[e]),t]}const nWe={draggable:` +esptool.py -b 921600 write_flash 0x0 tb.esp32.fakeca.bin`})}),f.jsx(dn,{preview:!1,src:HVe,alt:e("tonieboxes.esp32BoxFlashing.legacy.flashESPtoolScreen")}),f.jsx(ji,{style:{marginTop:16},children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText2")}),f.jsx(ji,{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText3")})]}),d=wZ(),p=f.jsxs(f.Fragment,{children:[f.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),f.jsx(ji,{children:e("tonieboxes.esp32BoxFlashing.legacy.skipDnsIfAlreadyDone")}),d]}),[g,m]=l.useState([c,u,p]),h=(I,T)=>{m(R=>{const _=[...R];return _[I]=T,_})};l.useEffect(()=>{h(n,(()=>{switch(n){case 0:return c;case 1:return u;case 2:return p;default:return f.jsx("div",{})}})())},[n,t,Cs()]);const b=()=>{r(n-1)},x=()=>{r(n+1)},S=f.jsx(tt,{icon:f.jsx(ks,{}),onClick:()=>b(),children:e("tonieboxes.esp32BoxFlashing.legacy.previous")}),v=I=>{r(I)},y=()=>{w()},w=()=>{o(!0)},C=()=>{o(!1)},E=f.jsx(hx,{boxVersion:qo.esp32,isOpen:a,onClose:C});return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(as,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),f.jsx(Wn,{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),f.jsxs(ji,{style:{marginTop:16},children:[f.jsx(js,{current:n,onChange:v,children:i.map((I,T)=>f.jsx(UVe,{title:I.title,status:T===n&&T===i.length?"finish":T===n?"process":Tr=>{t.forEach(a=>a(r))},t)}const xx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $f(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function l3(e){return"nodeType"in e}function co(e){var t,n;return e?$f(e)?e:l3(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function c3(e){const{Document:t}=co(e);return e instanceof t}function Km(e){return $f(e)?!1:e instanceof co(e).HTMLElement}function aQ(e){return e instanceof co(e).SVGElement}function Of(e){return e?$f(e)?e.document:l3(e)?c3(e)?e:Km(e)||aQ(e)?e.ownerDocument:document:document:document}const Ni=xx?l.useLayoutEffect:l.useEffect;function u3(e){const t=l.useRef(e);return Ni(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{e.current=setInterval(r,a)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Zg(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return Ni(()=>{n.current!==e&&(n.current=e)},t),n}function Ym(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function u0(e){const t=u3(e),n=l.useRef(null),r=l.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function s$(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let GI={};function Xm(e,t){return l.useMemo(()=>{if(t)return t;const n=GI[e]==null?0:GI[e]+1;return GI[e]=n,e+"-"+n},[e,t])}function oQ(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{const s=Object.entries(i);for(const[c,u]of s){const d=o[c];d!=null&&(o[c]=d+e*u)}return o},{...t})}}const bd=oQ(1),d0=oQ(-1);function qVe(e){return"clientX"in e&&"clientY"in e}function d3(e){if(!e)return!1;const{KeyboardEvent:t}=co(e.target);return t&&e instanceof t}function KVe(e){if(!e)return!1;const{TouchEvent:t}=co(e.target);return t&&e instanceof t}function l$(e){if(KVe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return qVe(e)?{x:e.clientX,y:e.clientY}:null}const Zd=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Zd.Translate.toString(e),Zd.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),k7="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function YVe(e){return e.matches(k7)?e:e.querySelector(k7)}const XVe={display:"none"};function ZVe(e){let{id:t,value:n}=e;return de.createElement("div",{id:t,style:XVe},n)}function QVe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function JVe(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const iQ=l.createContext(null);function eWe(e){const t=l.useContext(iQ);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function tWe(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:a,event:o}=r;e.forEach(i=>{var s;return(s=i[a])==null?void 0:s.call(i,o)})},[e]),t]}const nWe={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. - `},rWe={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function aWe(e){let{announcements:t=rWe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=nWe}=e;const{announce:o,announcement:i}=JVe(),s=Ym("DndLiveRegion"),[c,u]=l.useState(!1);if(l.useEffect(()=>{u(!0)},[]),eWe(l.useMemo(()=>({onDragStart(p){let{active:g}=p;o(t.onDragStart({active:g}))},onDragMove(p){let{active:g,over:m}=p;t.onDragMove&&o(t.onDragMove({active:g,over:m}))},onDragOver(p){let{active:g,over:m}=p;o(t.onDragOver({active:g,over:m}))},onDragEnd(p){let{active:g,over:m}=p;o(t.onDragEnd({active:g,over:m}))},onDragCancel(p){let{active:g,over:m}=p;o(t.onDragCancel({active:g,over:m}))}}),[o,t])),!c)return null;const d=de.createElement(de.Fragment,null,de.createElement(ZVe,{id:r,value:a.draggable}),de.createElement(QVe,{id:s,announcement:i}));return n?Kr.createPortal(d,n):d}var qr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(qr||(qr={}));function u0(){}function sQ(e,t){return l.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}const Ni=Object.freeze({x:0,y:0});function oWe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function iWe(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function sWe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:i}=o,s=n.get(i);if(s){const c=sWe(s,t);c>0&&a.push({id:i,data:{droppableContainer:o,value:c}})}}return a.sort(oWe)};function cWe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function lQ(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ni}function uWe(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const dWe=uWe(1);function fWe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function pWe(e,t,n){const r=fWe(t);if(!r)return e;const{scaleX:a,scaleY:o,x:i,y:s}=r,c=e.left-i-(1-a)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,p=o?e.height/o:e.height;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c}}const gWe={ignoreTransform:!1};function Nf(e,t){t===void 0&&(t=gWe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=co(e).getComputedStyle(e);u&&(n=pWe(n,u,d))}const{top:r,left:a,width:o,height:i,bottom:s,right:c}=n;return{top:r,left:a,width:o,height:i,bottom:s,right:c}}function A7(e){return Nf(e,{ignoreTransform:!0})}function mWe(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function hWe(e,t){return t===void 0&&(t=co(e).getComputedStyle(e)),t.position==="fixed"}function vWe(e,t){t===void 0&&(t=co(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function f3(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(c3(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!qm(a)||aQ(a)||n.includes(a))return n;const o=co(e).getComputedStyle(a);return a!==e&&vWe(a,o)&&n.push(a),hWe(a,o)?n:r(a.parentNode)}return e?r(e):n}function cQ(e){const[t]=f3(e,1);return t??null}function GI(e){return!bx||!e?null:$f(e)?e:l3(e)?c3(e)||e===Of(e).scrollingElement?window:qm(e)?e:null:null}function uQ(e){return $f(e)?e.scrollX:e.scrollLeft}function dQ(e){return $f(e)?e.scrollY:e.scrollTop}function c$(e){return{x:uQ(e),y:dQ(e)}}var ca;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ca||(ca={}));function fQ(e){return!bx||!e?!1:e===document.scrollingElement}function pQ(e){const t={x:0,y:0},n=fQ(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const bWe={x:.2,y:.2};function yWe(e,t,n,r,a){let{top:o,left:i,right:s,bottom:c}=n;r===void 0&&(r=10),a===void 0&&(a=bWe);const{isTop:u,isBottom:d,isLeft:p,isRight:g}=pQ(e),m={x:0,y:0},h={x:0,y:0},b={height:t.height*a.y,width:t.width*a.x};return!u&&o<=t.top+b.height?(m.y=ca.Backward,h.y=r*Math.abs((t.top+b.height-o)/b.height)):!d&&c>=t.bottom-b.height&&(m.y=ca.Forward,h.y=r*Math.abs((t.bottom-b.height-c)/b.height)),!g&&s>=t.right-b.width?(m.x=ca.Forward,h.x=r*Math.abs((t.right-b.width-s)/b.width)):!p&&i<=t.left+b.width&&(m.x=ca.Backward,h.x=r*Math.abs((t.left+b.width-i)/b.width)),{direction:m,speed:h}}function xWe(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function gQ(e){return e.reduce((t,n)=>bd(t,c$(n)),Ni)}function SWe(e){return e.reduce((t,n)=>t+uQ(n),0)}function CWe(e){return e.reduce((t,n)=>t+dQ(n),0)}function wWe(e,t){if(t===void 0&&(t=Nf),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);cQ(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const EWe=[["x",["left","right"],SWe],["y",["top","bottom"],CWe]];class p3{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=f3(n),a=gQ(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,s]of EWe)for(const c of i)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=a[o]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class qp{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function IWe(e){const{EventTarget:t}=co(e);return e instanceof t?e:Of(e)}function qI(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Vo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Vo||(Vo={}));function M7(e){e.preventDefault()}function TWe(e){e.stopPropagation()}var Un;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Un||(Un={}));const mQ={start:[Un.Space,Un.Enter],cancel:[Un.Esc],end:[Un.Space,Un.Enter]},RWe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Un.Right:return{...n,x:n.x+25};case Un.Left:return{...n,x:n.x-25};case Un.Down:return{...n,y:n.y+25};case Un.Up:return{...n,y:n.y-25}}};class hQ{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new qp(Of(n)),this.windowListeners=new qp(co(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Vo.Resize,this.handleCancel),this.windowListeners.add(Vo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Vo.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&wWe(r),n(Ni)}handleKeyDown(t){if(d3(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=mQ,coordinateGetter:i=RWe,scrollBehavior:s="smooth"}=a,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:Ni;this.referenceCoordinates||(this.referenceCoordinates=d);const p=i(t,{active:n,context:r.current,currentCoordinates:d});if(p){const g=c0(p,d),m={x:0,y:0},{scrollableAncestors:h}=r.current;for(const b of h){const x=t.code,{isTop:S,isRight:v,isLeft:y,isBottom:C,maxScroll:w,minScroll:E}=pQ(b),I=xWe(b),T={x:Math.min(x===Un.Right?I.right-I.width/2:I.right,Math.max(x===Un.Right?I.left:I.left+I.width/2,p.x)),y:Math.min(x===Un.Down?I.bottom-I.height/2:I.bottom,Math.max(x===Un.Down?I.top:I.top+I.height/2,p.y))},R=x===Un.Right&&!v||x===Un.Left&&!y,_=x===Un.Down&&!C||x===Un.Up&&!S;if(R&&T.x!==p.x){const $=b.scrollLeft+g.x,M=x===Un.Right&&$<=w.x||x===Un.Left&&$>=E.x;if(M&&!g.y){b.scrollTo({left:$,behavior:s});return}M?m.x=b.scrollLeft-$:m.x=x===Un.Right?b.scrollLeft-w.x:b.scrollLeft-E.x,m.x&&b.scrollBy({left:-m.x,behavior:s});break}else if(_&&T.y!==p.y){const $=b.scrollTop+g.y,M=x===Un.Down&&$<=w.y||x===Un.Up&&$>=E.y;if(M&&!g.x){b.scrollTo({top:$,behavior:s});return}M?m.y=b.scrollTop-$:m.y=x===Un.Down?b.scrollTop-w.y:b.scrollTop-E.y,m.y&&b.scrollBy({top:-m.y,behavior:s});break}}this.handleMove(t,bd(c0(p,this.referenceCoordinates),m))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}hQ.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=mQ,onActivation:a}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function D7(e){return!!(e&&"distance"in e)}function P7(e){return!!(e&&"delay"in e)}class g3{constructor(t,n,r){var a;r===void 0&&(r=IWe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=Of(i),this.documentListeners=new qp(this.document),this.listeners=new qp(r),this.windowListeners=new qp(co(i)),this.initialCoordinates=(a=l$(o))!=null?a:Ni,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Vo.Resize,this.handleCancel),this.windowListeners.add(Vo.DragStart,M7),this.windowListeners.add(Vo.VisibilityChange,this.handleCancel),this.windowListeners.add(Vo.ContextMenu,M7),this.documentListeners.add(Vo.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(P7(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(D7(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Vo.Click,TWe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Vo.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!a)return;const c=(n=l$(t))!=null?n:Ni,u=c0(a,c);if(!r&&s){if(D7(s)){if(s.tolerance!=null&&qI(u,s.tolerance))return this.handleCancel();if(qI(u,s.distance))return this.handleStart()}return P7(s)&&qI(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Un.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const _We={move:{name:"pointermove"},end:{name:"pointerup"}};class yx extends g3{constructor(t){const{event:n}=t,r=Of(n.target);super(t,_We,r)}}yx.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const $We={move:{name:"mousemove"},end:{name:"mouseup"}};var u$;(function(e){e[e.RightClick=2]="RightClick"})(u$||(u$={}));class OWe extends g3{constructor(t){super(t,$We,Of(t.event.target))}}OWe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===u$.RightClick?!1:(r==null||r({event:n}),!0)}}];const KI={move:{name:"touchmove"},end:{name:"touchend"}};class NWe extends g3{constructor(t){super(t,KI)}static setup(){return window.addEventListener(KI.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(KI.move.name,t)};function t(){}}}NWe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var Kp;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Kp||(Kp={}));var d0;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(d0||(d0={}));function kWe(e){let{acceleration:t,activator:n=Kp.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:i=5,order:s=d0.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:p,threshold:g}=e;const m=MWe({delta:p,disabled:!o}),[h,b]=GVe(),x=l.useRef({x:0,y:0}),S=l.useRef({x:0,y:0}),v=l.useMemo(()=>{switch(n){case Kp.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Kp.DraggableRect:return a}},[n,a,c]),y=l.useRef(null),C=l.useCallback(()=>{const E=y.current;if(!E)return;const I=x.current.x*S.current.x,T=x.current.y*S.current.y;E.scrollBy(I,T)},[]),w=l.useMemo(()=>s===d0.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!o||!u.length||!v){b();return}for(const E of w){if((r==null?void 0:r(E))===!1)continue;const I=u.indexOf(E),T=d[I];if(!T)continue;const{direction:R,speed:_}=yWe(E,T,v,t,g);for(const $ of["x","y"])m[$][R[$]]||(_[$]=0,R[$]=0);if(_.x>0||_.y>0){b(),y.current=E,h(C,i),x.current=_,S.current=R;return}}x.current={x:0,y:0},S.current={x:0,y:0},b()},[t,C,r,b,o,i,JSON.stringify(v),JSON.stringify(m),h,u,w,d,JSON.stringify(g)])}const AWe={x:{[ca.Backward]:!1,[ca.Forward]:!1},y:{[ca.Backward]:!1,[ca.Forward]:!1}};function MWe(e){let{delta:t,disabled:n}=e;const r=s$(t);return Km(a=>{if(n||!r||!a)return AWe;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[ca.Backward]:a.x[ca.Backward]||o.x===-1,[ca.Forward]:a.x[ca.Forward]||o.x===1},y:{[ca.Backward]:a.y[ca.Backward]||o.y===-1,[ca.Forward]:a.y[ca.Forward]||o.y===1}}},[n,t,r])}function DWe(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Km(a=>{var o;return t===null?null:(o=r??a)!=null?o:null},[r,t])}function PWe(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var Zg;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Zg||(Zg={}));var d$;(function(e){e.Optimized="optimized"})(d$||(d$={}));const L7=new Map;function LWe(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,i]=l.useState(null),{frequency:s,measure:c,strategy:u}=a,d=l.useRef(e),p=x(),g=Xg(p),m=l.useCallback(function(S){S===void 0&&(S=[]),!g.current&&i(v=>v===null?S:v.concat(S.filter(y=>!v.includes(y))))},[g]),h=l.useRef(null),b=Km(S=>{if(p&&!n)return L7;if(!S||S===L7||d.current!==e||o!=null){const v=new Map;for(let y of e){if(!y)continue;if(o&&o.length>0&&!o.includes(y.id)&&y.rect.current){v.set(y.id,y.rect.current);continue}const C=y.node.current,w=C?new p3(c(C),C):null;y.rect.current=w,w&&v.set(y.id,w)}return v}return S},[e,o,n,p,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{p||m()},[n,p]),l.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),l.useEffect(()=>{p||typeof s!="number"||h.current!==null||(h.current=setTimeout(()=>{m(),h.current=null},s))},[s,p,m,...r]),{droppableRects:b,measureDroppableContainers:m,measuringScheduled:o!=null};function x(){switch(u){case Zg.Always:return!1;case Zg.BeforeDragging:return n;default:return!n}}}function vQ(e,t){return Km(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function jWe(e,t){return vQ(e,t)}function FWe(e){let{callback:t,disabled:n}=e;const r=u3(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function xx(e){let{callback:t,disabled:n}=e;const r=u3(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function BWe(e){return new p3(Nf(e),e)}function j7(e,t,n){t===void 0&&(t=BWe);const[r,a]=l.useReducer(s,null),o=FWe({callback(c){if(e)for(const u of c){const{type:d,target:p}=u;if(d==="childList"&&p instanceof HTMLElement&&p.contains(e)){a();break}}}}),i=xx({callback:a});return Oi(()=>{a(),e?(i==null||i.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),o==null||o.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function zWe(e){const t=vQ(e);return lQ(e,t)}const F7=[];function HWe(e){const t=l.useRef(e),n=Km(r=>e?r&&r!==F7&&e&&t.current&&e.parentNode===t.current.parentNode?r:f3(e):F7,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function UWe(e){const[t,n]=l.useState(null),r=l.useRef(e),a=l.useCallback(o=>{const i=GI(o.target);i&&n(s=>s?(s.set(i,c$(i)),new Map(s)):null)},[]);return l.useEffect(()=>{const o=r.current;if(e!==o){i(o);const s=e.map(c=>{const u=GI(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,c$(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{i(e),i(o)};function i(s){s.forEach(c=>{const u=GI(c);u==null||u.removeEventListener("scroll",a)})}},[a,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>bd(o,i),Ni):gQ(e):Ni,[e,t])}function B7(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==Ni;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?c0(e,n.current):Ni}function VWe(e){l.useEffect(()=>{if(!bx)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function WWe(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=i=>{o(i,t)},n},{}),[e,t])}function bQ(e){return l.useMemo(()=>e?mWe(e):null,[e])}const YI=[];function GWe(e,t){t===void 0&&(t=Nf);const[n]=e,r=bQ(n?co(n):null),[a,o]=l.useReducer(s,YI),i=xx({callback:o});return e.length>0&&a===YI&&o(),Oi(()=>{e.length?e.forEach(c=>i==null?void 0:i.observe(c)):(i==null||i.disconnect(),o())},[e]),a;function s(){return e.length?e.map(c=>fQ(c)?r:new p3(t(c),c)):YI}}function qWe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return qm(t)?t:e}function KWe(e){let{measure:t}=e;const[n,r]=l.useState(null),a=l.useCallback(u=>{for(const{target:d}of u)if(qm(d)){r(p=>{const g=t(d);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),o=xx({callback:a}),i=l.useCallback(u=>{const d=qWe(u);o==null||o.disconnect(),d&&(o==null||o.observe(d)),r(d?t(d):null)},[t,o]),[s,c]=l0(i);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const YWe=[{sensor:yx,options:{}},{sensor:hQ,options:{}}],XWe={current:{}},Yv={draggable:{measure:A7},droppable:{measure:A7,strategy:Zg.WhileDragging,frequency:d$.Optimized},dragOverlay:{measure:Nf}};class Yp extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const ZWe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Yp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:u0},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Yv,measureDroppableContainers:u0,windowRect:null,measuringScheduled:!1},QWe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:u0,draggableNodes:new Map,over:null,measureDroppableContainers:u0},Sx=l.createContext(QWe),yQ=l.createContext(ZWe);function JWe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Yp}}}function eGe(e,t){switch(t.type){case qr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case qr.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case qr.DragEnd:case qr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case qr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Yp(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case qr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Yp(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case qr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Yp(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function tGe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=l.useContext(Sx),o=s$(r),i=s$(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!d3(o)||document.activeElement===o.target)return;const s=a.get(i);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const p=YVe(d);if(p){p.focus();break}}})}},[r,t,a,i,o]),null}function nGe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function rGe(e){return l.useMemo(()=>({draggable:{...Yv.draggable,...e==null?void 0:e.draggable},droppable:{...Yv.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Yv.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function aGe(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=l.useRef(!1),{x:i,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Oi(()=>{if(!i&&!s||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),p=lQ(d,r);if(i||(p.x=0),s||(p.y=0),o.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=cQ(u);g&&g.scrollBy({top:p.y,left:p.x})}},[t,i,s,r,n])}const xQ=l.createContext({...Ni,scaleX:1,scaleY:1});var nl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(nl||(nl={}));const SQ=l.memo(function(t){var n,r,a,o;let{id:i,accessibility:s,autoScroll:c=!0,children:u,sensors:d=YWe,collisionDetection:p=lWe,measuring:g,modifiers:m,...h}=t;const b=l.useReducer(eGe,void 0,JWe),[x,S]=b,[v,y]=tWe(),[C,w]=l.useState(nl.Uninitialized),E=C===nl.Initialized,{draggable:{active:I,nodes:T,translate:R},droppable:{containers:_}}=x,$=I?T.get(I):null,M=l.useRef({initial:null,translated:null}),P=l.useMemo(()=>{var be;return I!=null?{id:I,data:(be=$==null?void 0:$.data)!=null?be:XWe,rect:M}:null},[I,$]),D=l.useRef(null),[O,k]=l.useState(null),[N,A]=l.useState(null),L=Xg(h,Object.values(h)),j=Ym("DndDescribedBy",i),F=l.useMemo(()=>_.getEnabled(),[_]),B=rGe(g),{droppableRects:z,measureDroppableContainers:U,measuringScheduled:H}=LWe(F,{dragging:E,dependencies:[R.x,R.y],config:B.droppable}),Y=DWe(T,I),K=l.useMemo(()=>N?l$(N):null,[N]),J=Fe(),ne=jWe(Y,B.draggable.measure);aGe({activeNode:I?T.get(I):null,config:J.layoutShiftCompensation,initialRect:ne,measure:B.draggable.measure});const W=j7(Y,B.draggable.measure,ne),q=j7(Y?Y.parentElement:null),Z=l.useRef({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor((n=Z.current.over)==null?void 0:n.id),ee=KWe({measure:B.dragOverlay.measure}),oe=(r=ee.nodeRef.current)!=null?r:Y,se=E?(a=ee.rect)!=null?a:W:null,fe=!!(ee.nodeRef.current&&ee.rect),te=zWe(fe?null:W),ie=bQ(oe?co(oe):null),pe=HWe(E?Q??Y:null),me=GWe(pe),re=nGe(m,{transform:{x:R.x-te.x,y:R.y-te.y,scaleX:1,scaleY:1},activatorEvent:N,active:P,activeNodeRect:W,containerNodeRect:q,draggingNodeRect:se,over:Z.current.over,overlayNodeRect:ee.rect,scrollableAncestors:pe,scrollableAncestorRects:me,windowRect:ie}),ce=K?bd(K,R):null,ge=UWe(pe),ye=B7(ge),Ee=B7(ge,[W]),Ne=bd(re,ye),_e=se?dWe(se,re):null,Pe=P&&_e?p({active:P,collisionRect:_e,droppableRects:z,droppableContainers:F,pointerCoordinates:ce}):null,Le=iWe(Pe,"id"),[Ve,je]=l.useState(null),De=fe?re:bd(re,Ee),Se=cWe(De,(o=Ve==null?void 0:Ve.rect)!=null?o:null,W),Oe=l.useCallback((be,ue)=>{let{sensor:Ie,options:We}=ue;if(D.current==null)return;const He=T.get(D.current);if(!He)return;const Be=be.nativeEvent,ke=new Ie({active:D.current,activeNode:He,event:Be,options:We,context:Z,onStart(Ue){const ct=D.current;if(ct==null)return;const rt=T.get(ct);if(!rt)return;const{onDragStart:qe}=L.current,Ye={active:{id:ct,data:rt.data,rect:M}};Kr.unstable_batchedUpdates(()=>{qe==null||qe(Ye),w(nl.Initializing),S({type:qr.DragStart,initialCoordinates:Ue,active:ct}),v({type:"onDragStart",event:Ye})})},onMove(Ue){S({type:qr.DragMove,coordinates:Ue})},onEnd:Ae(qr.DragEnd),onCancel:Ae(qr.DragCancel)});Kr.unstable_batchedUpdates(()=>{k(ke),A(be.nativeEvent)});function Ae(Ue){return async function(){const{active:rt,collisions:qe,over:Ye,scrollAdjustedTranslate:at}=Z.current;let ut=null;if(rt&&at){const{cancelDrop:Ct}=L.current;ut={activatorEvent:Be,active:rt,collisions:qe,delta:at,over:Ye},Ue===qr.DragEnd&&typeof Ct=="function"&&await Promise.resolve(Ct(ut))&&(Ue=qr.DragCancel)}D.current=null,Kr.unstable_batchedUpdates(()=>{S({type:Ue}),w(nl.Uninitialized),je(null),k(null),A(null);const Ct=Ue===qr.DragEnd?"onDragEnd":"onDragCancel";if(ut){const kt=L.current[Ct];kt==null||kt(ut),v({type:Ct,event:ut})}})}}},[T]),Re=l.useCallback((be,ue)=>(Ie,We)=>{const He=Ie.nativeEvent,Be=T.get(We);if(D.current!==null||!Be||He.dndKit||He.defaultPrevented)return;const ke={active:Be};be(Ie,ue.options,ke)===!0&&(He.dndKit={capturedBy:ue.sensor},D.current=We,Oe(Ie,ue))},[T,Oe]),Ce=PWe(d,Re);VWe(d),Oi(()=>{W&&C===nl.Initializing&&w(nl.Initialized)},[W,C]),l.useEffect(()=>{const{onDragMove:be}=L.current,{active:ue,activatorEvent:Ie,collisions:We,over:He}=Z.current;if(!ue||!Ie)return;const Be={active:ue,activatorEvent:Ie,collisions:We,delta:{x:Ne.x,y:Ne.y},over:He};Kr.unstable_batchedUpdates(()=>{be==null||be(Be),v({type:"onDragMove",event:Be})})},[Ne.x,Ne.y]),l.useEffect(()=>{const{active:be,activatorEvent:ue,collisions:Ie,droppableContainers:We,scrollAdjustedTranslate:He}=Z.current;if(!be||D.current==null||!ue||!He)return;const{onDragOver:Be}=L.current,ke=We.get(Le),Ae=ke&&ke.rect.current?{id:ke.id,rect:ke.rect.current,data:ke.data,disabled:ke.disabled}:null,Ue={active:be,activatorEvent:ue,collisions:Ie,delta:{x:He.x,y:He.y},over:Ae};Kr.unstable_batchedUpdates(()=>{je(Ae),Be==null||Be(Ue),v({type:"onDragOver",event:Ue})})},[Le]),Oi(()=>{Z.current={activatorEvent:N,active:P,activeNode:Y,collisionRect:_e,collisions:Pe,droppableRects:z,draggableNodes:T,draggingNode:oe,draggingNodeRect:se,droppableContainers:_,over:Ve,scrollableAncestors:pe,scrollAdjustedTranslate:Ne},M.current={initial:se,translated:_e}},[P,Y,Pe,_e,T,oe,se,z,_,Ve,pe,Ne]),kWe({...J,delta:R,draggingRect:_e,pointerCoordinates:ce,scrollableAncestors:pe,scrollableAncestorRects:me});const xe=l.useMemo(()=>({active:P,activeNode:Y,activeNodeRect:W,activatorEvent:N,collisions:Pe,containerNodeRect:q,dragOverlay:ee,draggableNodes:T,droppableContainers:_,droppableRects:z,over:Ve,measureDroppableContainers:U,scrollableAncestors:pe,scrollableAncestorRects:me,measuringConfiguration:B,measuringScheduled:H,windowRect:ie}),[P,Y,W,N,Pe,q,ee,T,_,z,Ve,U,pe,me,B,H,ie]),$e=l.useMemo(()=>({activatorEvent:N,activators:Ce,active:P,activeNodeRect:W,ariaDescribedById:{draggable:j},dispatch:S,draggableNodes:T,over:Ve,measureDroppableContainers:U}),[N,Ce,P,W,S,j,T,Ve,U]);return de.createElement(iQ.Provider,{value:y},de.createElement(Sx.Provider,{value:$e},de.createElement(yQ.Provider,{value:xe},de.createElement(xQ.Provider,{value:Se},u)),de.createElement(tGe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),de.createElement(aWe,{...s,hiddenTextDescribedById:j}));function Fe(){const be=(O==null?void 0:O.autoScrollEnabled)===!1,ue=typeof c=="object"?c.enabled===!1:c===!1,Ie=E&&!be&&!ue;return typeof c=="object"?{...c,enabled:Ie}:{enabled:Ie}}}),oGe=l.createContext(null),z7="button",iGe="Droppable";function sGe(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=Ym(iGe),{activators:i,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:p,over:g}=l.useContext(Sx),{role:m=z7,roleDescription:h="draggable",tabIndex:b=0}=a??{},x=(c==null?void 0:c.id)===t,S=l.useContext(x?xQ:oGe),[v,y]=l0(),[C,w]=l0(),E=WWe(i,t),I=Xg(n);Oi(()=>(p.set(t,{id:t,key:o,node:v,activatorNode:C,data:I}),()=>{const R=p.get(t);R&&R.key===o&&p.delete(t)}),[p,t]);const T=l.useMemo(()=>({role:m,tabIndex:b,"aria-disabled":r,"aria-pressed":x&&m===z7?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[r,m,b,x,h,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:T,isDragging:x,listeners:r?void 0:E,node:v,over:g,setNodeRef:y,setActivatorNodeRef:w,transform:S}}function lGe(){return l.useContext(yQ)}const cGe="Droppable",uGe={timeout:25};function dGe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=Ym(cGe),{active:i,dispatch:s,over:c,measureDroppableContainers:u}=l.useContext(Sx),d=l.useRef({disabled:n}),p=l.useRef(!1),g=l.useRef(null),m=l.useRef(null),{disabled:h,updateMeasurementsFor:b,timeout:x}={...uGe,...a},S=Xg(b??r),v=l.useCallback(()=>{if(!p.current){p.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(S.current)?S.current:[S.current]),m.current=null},x)},[x]),y=xx({callback:v,disabled:h||!i}),C=l.useCallback((T,R)=>{y&&(R&&(y.unobserve(R),p.current=!1),T&&y.observe(T))},[y]),[w,E]=l0(C),I=Xg(t);return l.useEffect(()=>{!y||!w.current||(y.disconnect(),p.current=!1,y.observe(w.current))},[w,y]),Oi(()=>(s({type:qr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:w,rect:g,data:I}}),()=>s({type:qr.UnregisterDroppable,key:o,id:r})),[r]),l.useEffect(()=>{n!==d.current.disabled&&(s({type:qr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,s]),{active:i,rect:g,isOver:(c==null?void 0:c.id)===r,node:w,over:c,setNodeRef:E}}function Cx(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function fGe(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function lv(e){return e!==null&&e>=0}function pGe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=Cx(t,r,n),i=t[a],s=o[a];return!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},cv={scaleX:1,scaleY:1},wQ=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e;const s=(t=o[n])!=null?t:r;if(!s)return null;if(a===n){const u=o[i];return u?{x:0,y:nn&&a<=i?{x:0,y:-s.height-c,...cv}:a=i?{x:0,y:s.height+c,...cv}:{x:0,y:0,...cv}};function mGe(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),h=i!=null,b=i?m.indexOf(i.id):-1,x=u?m.indexOf(u.id):-1,S=l.useRef(m),v=!pGe(m,S.current),y=x!==-1&&b===-1||v,C=gGe(o);Oi(()=>{v&&h&&d(m)},[v,m,h,d]),l.useEffect(()=>{S.current=m},[m]);const w=l.useMemo(()=>({activeIndex:b,containerId:p,disabled:C,disableTransforms:y,items:m,overIndex:x,useDragOverlay:g,sortedRects:fGe(m,c),strategy:a}),[b,p,C.draggable,C.droppable,y,m,x,c,g,a]);return de.createElement(IQ.Provider,{value:w},t)}const hGe=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return Cx(n,r,a).indexOf(t)},vGe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:s,previousContainerId:c,transition:u}=e;return!u||!r||s!==o&&a===i?!1:n?!0:i!==a&&t===c},bGe={duration:200,easing:"ease"},RQ="transform",yGe=Zd.Transition.toString({property:RQ,duration:0,easing:"linear"}),xGe={roleDescription:"sortable"};function SGe(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,i]=l.useState(null),s=l.useRef(n);return Oi(()=>{if(!t&&n!==s.current&&r.current){const c=a.current;if(c){const u=Nf(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&i(d)}}n!==s.current&&(s.current=n)},[t,n,r,a]),l.useEffect(()=>{o&&i(null)},[o]),o}function _Q(e){let{animateLayoutChanges:t=vGe,attributes:n,disabled:r,data:a,getNewIndex:o=hGe,id:i,strategy:s,resizeObserverConfig:c,transition:u=bGe}=e;const{items:d,containerId:p,activeIndex:g,disabled:m,disableTransforms:h,sortedRects:b,overIndex:x,useDragOverlay:S,strategy:v}=l.useContext(IQ),y=CGe(r,m),C=d.indexOf(i),w=l.useMemo(()=>({sortable:{containerId:p,index:C,items:d},...a}),[p,a,C,d]),E=l.useMemo(()=>d.slice(d.indexOf(i)),[d,i]),{rect:I,node:T,isOver:R,setNodeRef:_}=dGe({id:i,data:w,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:$,activatorEvent:M,activeNodeRect:P,attributes:D,setNodeRef:O,listeners:k,isDragging:N,over:A,setActivatorNodeRef:L,transform:j}=sGe({id:i,data:w,attributes:{...xGe,...n},disabled:y.draggable}),F=WVe(_,O),B=!!$,z=B&&!h&&lv(g)&&lv(x),U=!S&&N,H=U&&z?j:null,K=z?H??(s??v)({rects:b,activeNodeRect:P,activeIndex:g,overIndex:x,index:C}):null,J=lv(g)&&lv(x)?o({id:i,items:d,activeIndex:g,overIndex:x}):C,ne=$==null?void 0:$.id,W=l.useRef({activeId:ne,items:d,newIndex:J,containerId:p}),q=d!==W.current.items,Z=t({active:$,containerId:p,isDragging:N,isSorting:B,id:i,index:C,items:d,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:u,wasDragging:W.current.activeId!=null}),Q=SGe({disabled:!Z,index:C,node:T,rect:I});return l.useEffect(()=>{B&&W.current.newIndex!==J&&(W.current.newIndex=J),p!==W.current.containerId&&(W.current.containerId=p),d!==W.current.items&&(W.current.items=d)},[B,J,p,d]),l.useEffect(()=>{if(ne===W.current.activeId)return;if(ne&&!W.current.activeId){W.current.activeId=ne;return}const oe=setTimeout(()=>{W.current.activeId=ne},50);return()=>clearTimeout(oe)},[ne]),{active:$,activeIndex:g,attributes:D,data:w,rect:I,index:C,newIndex:J,items:d,isOver:R,isSorting:B,isDragging:N,listeners:k,node:T,overIndex:x,over:A,setNodeRef:F,setActivatorNodeRef:L,setDroppableNodeRef:_,setDraggableNodeRef:O,transform:Q??K,transition:ee()};function ee(){if(Q||q&&W.current.newIndex===C)return yGe;if(!(U&&!d3(M)||!u)&&(B||Z))return Zd.Transition.toString({...u,property:RQ})}}function CGe(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Un.Down,Un.Right,Un.Up,Un.Left;const{useToken:wGe}=kr,EGe=Lk,$Q=({open:e,initialValuesJson:t,onCreate:n,onCancel:r})=>{const{t:a}=Nt(),{token:o}=wGe(),[i]=Kt.useForm(),[s,c]=l.useState([]),[u,d]=l.useState(!1),[p,g]=l.useState(0),[m,h]=l.useState(-1);l.useEffect(()=>{c([])},[]),l.useEffect(()=>{if(t)try{const k=JSON.parse(t);i.setFieldsValue(k)}catch(k){console.error("Error parsing JSON:",k)}},[i,t]);const b=()=>{i.resetFields()},x=k=>{i.setFieldsValue({filepath:k.target.value})},S=(k,N,A)=>{if(k){const L=A==="library"?"lib:/":"content:/",j=k.map(F=>({filepath:L+N+"/"+F.name,name:F.name}));c(j)}},v=()=>{g(k=>k+1),d(!0)},y=k=>{g(N=>N+1),d(!0),h(k),c([i.getFieldValue(["files",k])])},C=()=>{const k=i.getFieldsValue();let N=[...k.files];m!==-1?N[m]={filepath:s[0].filepath,name:s[0].name}:N=[...k.files,...s];const A={...k,files:N};i.setFieldsValue(A),d(!1),c([]),h(-1)},w=()=>{d(!1),c([])},[E,I]=l.useState(""),[T,R]=l.useState(""),[_,$]=l.useState(!1),M=f.jsx(nt,{type:"primary",onClick:()=>$(!1),children:a("tonies.informationModal.ok")}),P=()=>{$(!1)},D=f.jsx(Rn,{footer:M,width:1e3,title:"File (you can copy the content to a *.tap file)",open:_,onCancel:P,children:E?f.jsxs(f.Fragment,{children:[f.jsx(gn,{language:"json",code:E}),f.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),f.jsx(gn,{language:"json",showLineNumbers:!1,code:T})]}):"Loading..."}),O=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:o.colorBgElevated},children:[f.jsx(nt,{onClick:w,children:a("tonies.selectFileModal.cancel")}),f.jsx(nt,{type:"primary",onClick:C,children:a("tonies.selectFileModal.ok")})]});return f.jsxs(f.Fragment,{children:[f.jsxs(Rn,{open:e,title:a(t?"tonies.tapEditor.titleEdit":"tonies.tapEditor.titleCreate"),okText:a(t?"tonies.tapEditor.save":"tonies.tapEditor.create"),cancelText:a("tonies.tapEditor.cancel"),onCancel:()=>{r(),b()},onOk:()=>{i.validateFields().then(()=>{n(i.getFieldsValue()),I(JSON.stringify(i.getFieldsValue(),null,2)),R(JSON.stringify(i.getFieldsValue(),null,0)),$(!0),b()}).catch(k=>{console.log("Validate Failed:",k)})},children:[f.jsx(Cn,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json is displayed when saving the new tap. This is not automatically saved to your library. You have to create a *.tap file manually and copy this into the file yourself.",style:{marginBottom:8}}),f.jsxs(Kt,{form:i,layout:"vertical",name:"tapEditorModal",initialValues:{type:"tap",filepath:"",name:"",files:[]},children:[f.jsx(Kt.Item,{name:"type",hidden:!0,label:"type",children:f.jsx(Jt,{type:"string"})}),f.jsx(Kt.Item,{name:"audio_id",label:"Audio ID",children:f.jsx(Jt,{type:"number"})}),f.jsx(Kt.Item,{name:"filepath",label:a("tonies.tapEditor.filePath"),children:f.jsx(Jt,{onChange:x})}),f.jsx(Kt.Item,{name:"name",label:a("tonies.tapEditor.name"),rules:[{required:!0,message:a("tonies.tapEditor.nameRequired")}],children:f.jsx(Jt,{})}),f.jsx(Kt.List,{name:"files",children:(k,{add:N,remove:A})=>f.jsxs(f.Fragment,{children:[k.map(({key:L,name:j},F)=>f.jsx("div",{className:"playlistTitle",children:f.jsxs(Ha,{style:{display:"flex",marginBottom:8,alignItems:"center",width:"100%"},align:"baseline",children:[f.jsx(Kt.Item,{name:[j,"filepath"],label:a("tonies.tapEditor.filePathContentFile"),rules:[{required:!0,message:a("tonies.tapEditor.filePathContentFileRequired")}],children:f.jsx(Jt,{width:"auto",addonBefore:f.jsx(pa,{onClick:()=>{const B=[...i.getFieldsValue().files];B[F].filepath="",i.setFieldsValue({files:B})}}),addonAfter:f.jsx(jN,{onClick:()=>y(F)})})}),f.jsx(Kt.Item,{name:[j,"name"],label:a("tonies.tapEditor.fileNameContentFile"),children:f.jsx(Jt,{placeholder:"Name"})}),f.jsx(O2e,{onClick:()=>A(j)})]},`space-${L}`)},`files-${L}`)),f.jsx(Kt.Item,{children:f.jsx(nt,{type:"dashed",onClick:()=>v(),block:!0,icon:f.jsx(Rm,{}),children:a("tonies.tapEditor.addFile")})})]})})]}),f.jsx(Rn,{className:"sticky-footer",title:a("tonies.selectFileModal.selectFile"),open:u,onOk:C,onCancel:w,width:"auto",footer:O,children:f.jsx(jk,{maxSelectedRows:99,special:"library",trackUrl:!1,filetypeFilter:EGe,onFileSelectChange:S},p)})]}),D]})},{useToken:IGe}=kr,TGe=({originNode:e,fileObjectList:t,file:n,onRemove:r,disabled:a})=>{const{token:o}=IGe(),{attributes:i,listeners:s,setNodeRef:c,transform:u,transition:d,isDragging:p}=_Q({id:n.uid}),{t:g}=Nt(),m={transform:Zd.Transform.toString(u),transition:d,cursor:"move"};return f.jsx("div",{ref:c,style:m,className:p?"is-dragging":"",...i,...s,children:f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"space-between",alignItems:"center",margin:"8px 0",padding:8,borderRadius:8,border:`1px solid ${o.colorBorder}`},children:[f.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[f.jsxs("span",{style:{fontSize:30,width:48,height:48,textAlign:"center",color:`${o.colorPrimaryText}`},children:[t.indexOf(n)+1,"."]}),f.jsxs("div",{children:[f.jsx("div",{children:n.name}),f.jsxs("div",{style:{fontSize:"smaller",color:`${o.colorTextSecondary}`},children:["in ",n.path,"/"]})]})]}),f.jsx(nt,{title:g("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:f.jsx(Al,{})})]})})},OQ=/[<>:"/\\|?*]/,Xp=OQ.source.slice(1,-1).split("").join(" ");function od(e){return!OQ.test(e)}const RGe=({isHelpModalOpen:e,onClose:t})=>{const n=[{key:1,avatar:f.jsx(Xb,{}),title:Tt("fileBrowser.help.actionItemsMulti.moveSelectedFiles.title"),text:Tt("fileBrowser.help.actionItemsMulti.moveSelectedFiles.text")},{key:2,avatar:f.jsx(Al,{}),title:Tt("fileBrowser.help.actionItemsMulti.deleteSelectedFiles.title"),text:Tt("fileBrowser.help.actionItemsMulti.deleteSelectedFiles.text")},{key:3,avatar:f.jsx(Yb,{}),title:Tt("fileBrowser.help.actionItemsMulti.encodeFilesToTAF.title"),text:Tt("fileBrowser.help.actionItemsMulti.encodeFilesToTAF.text")}],r=[{key:1,avatar:f.jsx(Eo,{}),title:Tt("fileBrowser.help.actionItems.playAudioFile.title"),text:Tt("fileBrowser.help.actionItems.playAudioFile.text")},{key:2,avatar:f.jsx(uK,{}),title:Tt("fileBrowser.help.actionItems.migrateToLibraryRoot.title"),text:Tt("fileBrowser.help.actionItems.migrateToLibraryRoot.text")},{key:3,avatar:f.jsx(SK,{}),title:Tt("fileBrowser.help.actionItems.migrateToAudioIdFolder.title"),text:Tt("fileBrowser.help.actionItems.migrateToAudioIdFolder.text")},{key:4,avatar:f.jsx(Ml,{}),title:Tt("fileBrowser.help.actionItems.editTAFMetadata.title"),text:Tt("fileBrowser.help.actionItems.editTAFMetadata.text")},{key:5,avatar:f.jsx(Ml,{}),title:Tt("fileBrowser.help.actionItems.editTAPPlaylist.title"),text:Tt("fileBrowser.help.actionItems.editTAPPlaylist.text")},{key:6,avatar:f.jsx(fK,{}),title:Tt("fileBrowser.help.actionItems.renameFile.title"),text:Tt("fileBrowser.help.actionItems.renameFile.text")},{key:7,avatar:f.jsx(Xb,{}),title:Tt("fileBrowser.help.actionItems.moveFile.title"),text:Tt("fileBrowser.help.actionItems.moveFile.text")},{key:8,avatar:f.jsx(Al,{}),title:Tt("fileBrowser.help.actionItems.deleteFileFolder.title"),text:Tt("fileBrowser.help.actionItems.deleteFileFolder.text")},{key:9,avatar:f.jsx(Dy,{}),title:Tt("fileBrowser.help.actionItems.duplicateTAPFile.title"),text:Tt("fileBrowser.help.actionItems.duplicateTAPFile.text")}],a=[{key:1,title:Tt("fileBrowser.help.instructions.openDirectory.title"),text:Tt("fileBrowser.help.instructions.openDirectory.text")},{key:2,title:Tt("fileBrowser.help.instructions.openTAFViewer.title"),text:Tt("fileBrowser.help.instructions.openTAFViewer.text")},{key:3,title:Tt("fileBrowser.help.instructions.openTAPJSONViewer.title"),text:Tt("fileBrowser.help.instructions.openTAPJSONViewer.text")},{key:4,title:Tt("fileBrowser.help.instructions.viewTonieInfoModal.title"),text:Tt("fileBrowser.help.instructions.viewTonieInfoModal.text")},{key:5,title:Tt("fileBrowser.help.instructions.multiSelection.title"),text:f.jsxs(f.Fragment,{children:[Tt("fileBrowser.help.instructions.multiSelection.text"),f.jsx(Er,{size:"small",dataSource:n,renderItem:o=>f.jsx(Er.Item,{children:f.jsx(Er.Item.Meta,{avatar:o.avatar,title:o.title,description:o.text})})})]})},{key:6,title:Tt("fileBrowser.help.instructions.fileActions.title"),description:f.jsx(Er,{size:"small",dataSource:r,renderItem:o=>f.jsx(Er.Item,{children:f.jsx(Er.Item.Meta,{avatar:o.avatar,title:o.title,description:o.text})})})}];return f.jsx(Rn,{className:"help-viewer",width:800,title:Tt("fileBrowser.help.title"),open:e,onOk:t,onCancel:t,footer:[f.jsx(nt,{type:"primary",onClick:t,children:Tt("fileBrowser.help.closeButton")},"close")],children:f.jsx(Er,{size:"small",dataSource:a,renderItem:o=>f.jsx(Er.Item,{children:f.jsx(Er.Item.Meta,{title:o.title,description:f.jsxs(f.Fragment,{children:[f.jsx("div",{children:o.text}),o.description&&f.jsx("div",{children:o.description})]})})})})})},ji=new Dn($n()),{useToken:_Ge}=kr,H7=99,Du=Lk,ui={id:"1",pId:"-1",value:"1",title:"/",fullPath:"/"},m3=({special:e,filetypeFilter:t=[],isTapList:n=!1,overlay:r="",trackUrl:a=!0,showDirOnly:o=!1,showColumns:i=void 0})=>{const{t:s}=Nt(),{playAudio:c}=Am(),{token:u}=_Ge(),{addNotification:d,addLoadingNotification:p,closeLoadingNotification:g}=Qn(),m=Zc(),h=l.useRef(null),b=l.useRef(null),x=l.useRef(null),S=l.useRef(null),v=l.useRef(null),y=oi(),w=new URLSearchParams(y.search).get("path")||"",[E,I]=l.useState(w),[T,R]=l.useState([]),[_,$]=l.useState(!1),[M,P]=l.useState(""),[D,O]=l.useState([]),[k,N]=l.useState(ui.id),[A,L]=l.useState([ui]),[j,F]=l.useState([]),[B,z]=l.useState(""),[U,H]=l.useState(!1),[Y,K]=l.useState(!1),[J,ne]=l.useState(),[W,q]=l.useState(""),[Z,Q]=l.useState(""),[ee,oe]=l.useState(!1),[se,fe]=l.useState(!1),[te,ie]=l.useState(0);l.useState(!1),l.useState(0);const[pe,me]=l.useState(),[re,ce]=l.useState(!1),[ge,ye]=l.useState(!0),[Ee,Ne]=l.useState(!1),[_e,Pe]=l.useState(!1),[Le,Ve]=l.useState(!0),[je,De]=l.useState(!1),[Se,Oe]=l.useState(1),[Re,Ce]=l.useState(w),[xe,$e]=l.useState(!1),[Fe,be]=l.useState(!1),[ue,Ie]=l.useState(null),[We,He]=l.useState(""),[Be,ke]=l.useState(""),[Ae,Ue]=l.useState(!1),[ct,rt]=l.useState(!1),[qe,Ye]=l.useState(0),[at,ut]=l.useState(!1),[Ct,kt]=l.useState([]),[xt,et]=l.useState(!1),[tt,bt]=l.useState(!1),[Ot,ht]=l.useState(0),[it,Et]=l.useState([]),[Ze,st]=l.useState(!1),[ft,Je]=l.useState(!1),[Xe,_t]=l.useState(0),[Mt,Ut]=l.useState([]),[mn,pn]=l.useState(!1),[yt,At]=l.useState(!0),jt=l.useRef(null);l.useEffect(()=>{(async()=>{const we=En(ui.id);ji.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${we}&special=library`).then(Ge=>Ge.json()).then(Ge=>{var gt=Ge.files;gt=gt.filter($t=>$t.isDir&&$t.name!=="..").sort(($t,Qt)=>$t.name===Qt.name?0:$t.name.toLowerCase()>Qt.name.toLowerCase()?1:-1).map($t=>({id:ui.id+"."+gt.indexOf($t),pId:ui.id,value:ui.id+"."+gt.indexOf($t),title:$t.name,fullPath:`${we}/${$t.name}/`})),L(A.concat(gt))})})()},[]),l.useEffect(()=>{const we=new URLSearchParams(y.search).get("path")||"";I(we)},[]),l.useEffect(()=>{if(r){const Te=new URLSearchParams(y.search);Te.set("path",""),I("");const we=`${window.location.pathname}?${Te.toString()}`;window.history.replaceState(null,"",we),$(Ge=>!Ge)}},[r]),l.useEffect(()=>{At(!0),ji.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${E}&special=${e}`+(r?`&overlay=${r}`:"")).then(Te=>Te.json()).then(Te=>{var we=Te.files;o&&(we=we.filter(Ge=>Ge.isDir)),t.length>0&&(we=we.filter(Ge=>Ge.isDir||t.some(gt=>Ge.name.endsWith(gt)))),R(we)}).catch(Te=>d(dt.Error,s("fileBrowser.messages.errorFetchingDirContent"),s("fileBrowser.messages.errorFetchingDirContentDetails",{path:E||"/"})+Te,s("fileBrowser.title"))).finally(()=>{At(!1)})},[E,e,o,_]),l.useEffect(()=>{je&&setTimeout(()=>{b.current&&b.current.focus()},0)},[je]),l.useEffect(()=>{h.current!==null&&v.current&&v.current.setSelectionRange(h.current,h.current)},[B]),l.useEffect(()=>{Ce(En(k))},[k]),l.useEffect(()=>{Ce(E)},[E]);const tn=Te=>{At(!0),a&&m(`?path=${Te}`),E===Te&&$(we=>!we),H(!1),I(Te)},An=(Te,we)=>{const Ge=Te.split("/").filter($t=>$t),gt=[{title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>we(""),children:s("fileBrowser.root")}),key:"/"}];return Ge.forEach(($t,Qt)=>{const cn=`/${Ge.slice(0,Qt+1).join("/")}`;gt.push({title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>we(cn),children:$t}),key:cn})}),f.jsx(Cm,{items:gt})},Or=({id:Te})=>new Promise((we,Ge)=>{const gt=En(Te);ji.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${gt}&special=library`).then($t=>$t.json()).then($t=>{let Qt=$t.files;Qt=Qt.filter(cn=>cn.isDir&&cn.name!=="..").sort((cn,Wr)=>cn.name===Wr.name?0:cn.name.toLowerCase()>Wr.name.toLowerCase()?1:-1).map(cn=>({id:Te+"."+Qt.indexOf(cn),pId:Te,value:Te+"."+Qt.indexOf(cn),title:cn.name,fullPath:`${gt}/${cn.name}/`})),L(A.concat(Qt)),we(!0)}).then(()=>{Ge()})}),En=Te=>{const we=A.filter(Ge=>Ge.value===Te)[0];return we.pId==="-1"?"":En(A.filter(Ge=>Ge.id===we.pId)[0].id)+"/"+we.title},br=(Te,we)=>{for(const Ge of we)if(Ge.fullPath===Te)return Ge.id;return null},na=(Te,we)=>{let Ge=[];for(const gt of we)gt.pId===Te&&Ge.push(gt);return Ge},jr=Te=>j.includes(Te),Xn=f.jsx(Gl,{className:"move-file",treeLine:!0,treeDataSimpleMode:!0,value:k,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:N,loadData:Or,treeData:A,treeNodeLabelProp:"fullPath",placeholder:s("fileBrowser.moveFile.destinationPlaceholder"),treeExpandedKeys:j,onTreeExpand:Te=>F(Te),disabled:Ze||xt}),Zt=Te=>{var we;!Te.isDir&&((we=Te.tonieInfo)!=null&&we.tracks)&&(ne(Te),q(encodeURI("/content"+E+"/"+Te.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:"")),K(!0))},Rt=Te=>{zt((e==="library"?"/library":"/content")+Te),H(!1),P(Te),oe(!0)},Bt=()=>{oe(!1)},zt=async Te=>{try{const Ge=await(await ji.apiGetTeddyCloudApiRaw(Te)).json();Q(Ge)}catch(we){console.error("Error fetching JSON data:",we)}},nn=f.jsx(nt,{type:"primary",onClick:()=>oe(!1),children:s("tonies.informationModal.ok")}),It=f.jsx(Rn,{className:"json-viewer",footer:nn,width:800,title:"File: "+M,open:ee,onCancel:Bt,children:Z?f.jsx(gn,{language:"json",code:JSON.stringify(Z,null,2)}):"Loading..."}),Dt=(Te,we)=>{const Ge=we,{trackSeconds:gt,...$t}=Ge;H(!1),me($t),P(Te),ce(!0)},vn=()=>{ce(!1)},zn=f.jsx(Rn,{className:"taf-header-viewer",footer:f.jsx(nt,{type:"primary",onClick:()=>ce(!1),children:s("tonies.informationModal.ok")}),title:s("tonies.tafHeaderOf")+M,open:re,onCancel:vn,width:700,children:pe?f.jsx(gn,{language:"json",code:JSON.stringify(pe,null,2)}):"Loading..."}),Sr=Te=>{Te.includes(".tap")&&(zt((e==="library"?"/library":"/content")+Te),H(!1),P(Te),ie(Ge=>Ge+1),fe(!0))},Cr=Te=>{console.log("Received values of form: ",Te),fe(!1)},Ar=(Te,we)=>{},qt=(Te,we,Ge)=>{H(!1),Ie(Te),He(we),ke(Ge),$e(!0)},pt=()=>{$e(!1),be(!1)},St=()=>{tr(We,Be),$(Te=>!Te),$e(!1)},ln=()=>{be(!0)},Wn=async()=>{if(D.length>0){const Te="deletingFiles";p(Te,s("fileBrowser.messages.deleting"),s("fileBrowser.messages.deleting"));for(const we of D){const Ge=T.find(gt=>gt.name===we);if(Ge){const gt=E+"/"+Ge.name,$t="?special="+e+(r?`&overlay=${r}`:"");await tr(gt,$t,!0)}}g(Te),$(we=>!we),be(!1),O([])}else d(dt.Warning,s("tonies.messages.noRowsSelected"),s("tonies.messages.noRowsSelectedForDeletion"),s("fileBrowser.title"))},tr=async(Te,we,Ge)=>{const gt="deletingFiles";p(gt,s("fileBrowser.messages.deleting"),s("fileBrowser.messages.deletingDetails",{file:Te}));try{const $t=`/api/fileDelete${we}`,cn=await(await ji.apiPostTeddyCloudRaw($t,Te)).text();if(!Ge&&g(gt),cn==="OK"){d(dt.Success,s("fileBrowser.messages.deleteSuccessful"),s("fileBrowser.messages.deleteSuccessfulDetails",{file:Te}),s("fileBrowser.title"));const Wr=br(Te+"/",A);Wr&&L(Mr=>Mr.filter(Zm=>Zm.id!==Wr)),Re===Te+"/"&&Ce(E)}else d(dt.Error,s("fileBrowser.messages.deleteFailed"),`${s("fileBrowser.messages.deleteFailedDetails",{file:Te})}: ${cn}`,s("fileBrowser.title"))}catch($t){!Ge&&g(gt),d(dt.Error,s("fileBrowser.messages.deleteFailed"),`${s("fileBrowser.messages.deleteFailedDetails",{file:Te})}: ${$t}`,s("fileBrowser.title"))}},fr=()=>{ye(!0),Ne(!1),Oe(Te=>Te+1),H(!1),De(!0)},ha=()=>{H(!1),De(!1)},Pa=Te=>{const we=Te.target.value,Ge=!od(we.toString());Ne(Ge),ye(we==="")},La=()=>{var we,Ge;const Te=((Ge=(we=b.current)==null?void 0:we.input)==null?void 0:Ge.value)||"";try{ji.apiPostTeddyCloudRaw("/api/dirCreate?special=library",Re+"/"+Te).then(gt=>gt.text()).then(gt=>{if(gt!=="OK")throw new Error(gt);const $t=br(Re+"/",A)||ui.id,Qt=`${$t}.${A.length}`,cn=jr($t),Wr=na($t,A);if(cn||Wr.length>0){const Mr={id:Qt,pId:$t,value:Qt,title:Te,fullPath:Re+"/"+Te+"/"};L([...A,Mr].sort((Zm,w3)=>Zm.title===w3.title?0:Zm.title.toLowerCase()>w3.title.toLowerCase()?1:-1)),(Ae||tt)&&N(Qt)}d(dt.Success,s("fileBrowser.createDirectory.directoryCreated"),s("fileBrowser.createDirectory.directoryCreatedDetails",{directory:Re+"/"+Te}),s("fileBrowser.title")),De(!1),$(Mr=>!Mr),Ce(E)}).catch(gt=>{d(dt.Error,s("fileBrowser.createDirectory.directoryCreateFailed"),s("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:Re+"/"+Te})+gt,s("fileBrowser.title"))})}catch(gt){d(dt.Error,s("fileBrowser.createDirectory.directoryCreateFailed"),s("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:Re+"/"+Te})+gt,s("fileBrowser.title"))}},Do=ge||Ee,pu=f.jsxs(Rn,{title:s("fileBrowser.createDirectory.modalTitle"),open:je,onCancel:ha,onOk:La,okText:s("fileBrowser.createDirectory.create"),cancelText:s("fileBrowser.createDirectory.cancel"),zIndex:1050,okButtonProps:{disabled:Do},children:[f.jsxs(xn,{style:{marginBottom:8},children:[s("fileBrowser.createDirectory.parentPath")+" "+Re+"/"," "]}),f.jsxs(Kt.Item,{validateStatus:Ee?"error":"",help:Ee?s("inputValidator.invalidCharactersDetected",{invalidChar:Xp}):"",required:!0,children:[" ",f.jsx(Jt,{ref:b,type:"text",placeholder:s("fileBrowser.createDirectory.placeholder"),status:Ee?"error":"",onChange:Pa})]})]},"createDirModal-"+Se),Bs=async(Te,we,Ge,gt)=>{const $t="source="+encodeURIComponent(Te)+"&target="+encodeURIComponent(we),Qt=Ge?"move-file":"rename-file";p(Qt,s(Ge?"fileBrowser.messages.moving":"fileBrowser.messages.renaming"),Ge?s("fileBrowser.messages.movingDetails",{file:Te}):s("fileBrowser.messages.renamingDetails",{file:Te}));try{const cn=`/api/fileMove${"?special="+e+(r?`&overlay=${r}`:"")}`,Mr=await(await ji.apiPostTeddyCloudRaw(cn,$t)).text();if(!gt&&g(Qt),Mr==="OK")d(dt.Success,s(Ge?"fileBrowser.messages.movingSuccessful":"fileBrowser.messages.renamingSuccessful"),Ge?s("fileBrowser.messages.movingSuccessfulDetails",{fileSource:Te,fileTarget:we}):s("fileBrowser.messages.renamingSuccessfulDetails",{fileSource:Te,fileTarget:we}),s("fileBrowser.title"));else throw Mr}catch(cn){!gt&&g(Qt),d(dt.Error,s(Ge?"fileBrowser.messages.movingFailed":"fileBrowser.messages.renamingFailed"),(Ge?s("fileBrowser.messages.movingFailedDetails",{fileSource:Te,fileTarget:we}):s("fileBrowser.messages.renamingFailedDetails",{fileSource:Te,fileTarget:we}))+cn,s("fileBrowser.title"))}},Pt=Te=>{N(ui.id),P(Te),Ue(!0)},Xt=()=>{Ue(!1),Ce(E)},or=async(Te,we)=>{await Bs(Te+"/"+M,we+"/"+M,!0),$(Ge=>!Ge),Ue(!1),N(ui.id)},wr=async(Te,we)=>{if(D.length>0){const Ge="move-file";p(Ge,s("fileBrowser.messages.moving"),s("fileBrowser.messages.moving"));for(const gt of D){const $t=T.find(Qt=>Qt.name===gt);$t&&!$t.isDir&&await Bs(Te+"/"+$t.name,we+"/"+$t.name,!0,!0)}g(Ge),$(gt=>!gt),Ue(!1),O([]),N(ui.id)}else d(dt.Warning,s("tonies.messages.noRowsSelected"),s("tonies.messages.noRowsSelectedForMoving"),s("fileBrowser.title"))},ir=!k||En(k)===E,zs=f.jsxs(Rn,{title:s(M?"fileBrowser.moveFile.modalTitle":"fileBrowser.moveFile.modalTitleMultiple"),open:Ae,onCancel:Xt,onOk:()=>M?or(E,En(k)):wr(E,En(k)),okText:s("fileBrowser.moveFile.move"),cancelText:s("fileBrowser.moveFile.cancel"),okButtonProps:{disabled:ir},children:[f.jsx(Cn,{message:s("fileBrowser.attention"),description:s("fileBrowser.moveFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:[f.jsx(Jt,{type:"text",style:{borderTopRightRadius:M?0:"unset",borderBottomRightRadius:M?0:"unset"},disabled:!0,value:E+"/"+(M||""),placeholder:E+"/"+(M||"")}),f.jsx("div",{children:s("fileBrowser.moveFile.moveTo")}),f.jsxs("div",{style:{display:"flex"},children:[Xn,f.jsx(Wt,{title:s("fileBrowser.createDirectory.createDirectory"),children:f.jsx(nt,{icon:f.jsx(jv,{}),onClick:()=>{Ce(En(k)),fr()},style:{borderTopLeftRadius:0,borderBottomLeftRadius:0}})})]})]})]}),kf=Te=>{P(Te),ye(!0),Pe(!od(Te)),Ye(we=>we+1),rt(!0)},Xm=()=>{rt(!1)},gu=async(Te,we)=>{try{await Bs(Te+"/"+M,Te+"/"+we,!1),$(Ge=>!Ge),rt(!1)}catch{}},NQ=Te=>{const we=Te.target.value,Ge=!od(we.toString()),gt=!we.toString()||Ge;Pe(Ge),Ve(gt),ye(!we||we===M)},kQ=ge||_e||Le,AQ=f.jsxs(Rn,{title:s("fileBrowser.renameFile.modalTitle"),open:ct,onCancel:Xm,onOk:()=>gu(E,S.current&&S.current.input?S.current.input.value:M),okText:s("fileBrowser.renameFile.rename"),cancelText:s("fileBrowser.renameFile.cancel"),okButtonProps:{disabled:kQ},children:[f.jsx(Cn,{message:s("fileBrowser.attention"),description:s("fileBrowser.renameFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),f.jsx("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:f.jsx(Kt.Item,{validateStatus:_e?"error":"",help:_e?s("inputValidator.invalidCharactersDetected",{invalidChar:Xp}):"",required:!0,children:f.jsx(Jt,{ref:S,type:"text",defaultValue:M,onChange:NQ,placeholder:M,status:_e?"error":""})})})]},"renameModal-"+qe),MQ=()=>{_t(Te=>Te+1),Je(!0)},v3=()=>{Je(!1)},b3=()=>{Et(Te=>[...Te,...Mt]),Je(!1),Ut([])},DQ=(Te,we,Ge)=>{const gt=[];if(Te.length>0)for(const $t of Te){const Qt=Te.find(cn=>cn.name===$t.name&&Du.some(Wr=>cn.name.toLowerCase().endsWith(Wr)));Qt&>.push({uid:B_(),name:Qt.name,path:we})}Ut(gt)},PQ=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[f.jsx(nt,{onClick:v3,children:s("tonies.selectFileModal.cancel")}),f.jsx(nt,{type:"primary",onClick:b3,children:s("tonies.selectFileModal.ok")})]}),LQ=f.jsx(Rn,{className:"sticky-footer",title:s("tonies.selectFileModal.selectFile"),open:ft,onOk:b3,onCancel:v3,width:"auto",footer:PQ,children:f.jsx(jk,{special:"library",maxSelectedRows:H7-it.length-1,trackUrl:!1,filetypeFilter:Du,onFileSelectChange:DQ},Xe)}),jQ=()=>{ye(!0),Pe(!1),ht(we=>we+1),N(ui.id);const Te=[];for(const we of D){const Ge=T.find(gt=>gt.name===we&&Du.some($t=>gt.name.toLowerCase().endsWith($t)));Ge&&Te.push({uid:B_(),name:Ge.name,path:E})}Et(Te),bt(!0)},FQ=()=>{bt(!1),Ce(E),Et([])},BQ=async()=>{var $t,Qt;st(!0);const Te=(Qt=($t=x==null?void 0:x.current)==null?void 0:$t.input)==null?void 0:Qt.value,we="encoding-"+Te;p(we,s("fileBrowser.encodeFiles.encoding"),s("fileBrowser.encodeFiles.encodingInProgress"));const Ge=En(k)+"/"+Te+".taf",gt=it.map(cn=>`source=${encodeURIComponent(cn.path+"/"+cn.name)}`).join("&")+`&target=${encodeURIComponent(Ge)}`;try{(await ji.apiPostTeddyCloudRaw(`/api/fileEncode?special=${e}`,gt)).ok?(g(we),d(dt.Success,s("fileBrowser.encodeFiles.encodingSuccessful"),s("fileBrowser.encodeFiles.encodingSuccessfulDetails",{file:Ge}),s("fileBrowser.title")),bt(!1),N("1"),O([]),$(!_)):(g(we),d(dt.Error,s("fileBrowser.encodeFiles.encodingFailed"),s("fileBrowser.encodeFiles.encodingFailedDetails",{file:Ge}).replace(": ",""),s("fileBrowser.title")))}catch(cn){g(we),d(dt.Error,s("fileBrowser.encodeFiles.encodingFailed"),s("fileBrowser.encodeFiles.encodingFailedDetails",{file:Ge})+cn,s("fileBrowser.title"))}st(!1)},zQ=sQ(yx,{activationConstraint:{distance:10}}),HQ=({active:Te,over:we})=>{Te.id!==(we==null?void 0:we.id)&&Et(Ge=>{const gt=Ge.findIndex(Qt=>Qt.uid===Te.id),$t=Ge.findIndex(Qt=>Qt.uid===(we==null?void 0:we.id));return Cx(Ge,gt,$t)})},UQ=Te=>{const we=it.indexOf(Te),Ge=it.slice();Ge.splice(we,1),Et(Ge)},VQ=()=>{Et(Te=>[...Te].sort((we,Ge)=>we.name.localeCompare(Ge.name)))},WQ=Te=>{const we=Te.target.value,Ge=!od(we.toString()),gt=it.length>0&&!we.toString()||Ge;Pe(Ge),Ve(gt),ye(we==="")},GQ=f.jsxs(Rn,{title:s("fileBrowser.encodeFiles.modalTitle"),open:tt,onCancel:FQ,onOk:BQ,okText:s("fileBrowser.encodeFiles.encode"),cancelText:s("fileBrowser.encodeFiles.cancel"),zIndex:1e3,width:"auto",okButtonProps:{disabled:Ze||Le||ge||it.length===0},children:[LQ,f.jsx(SQ,{sensors:[zQ],onDragEnd:HQ,children:f.jsxs(TQ,{items:it.map(Te=>Te.uid),strategy:wQ,disabled:Ze,children:[f.jsx(nt,{disabled:Ze,onClick:MQ,children:s("fileBrowser.encodeFiles.addFiles")}),it.map(Te=>f.jsx(TGe,{originNode:f.jsx("div",{children:Te.name}),onRemove:UQ,disabled:Ze,fileObjectList:it,file:Te},Te.uid))]})}),f.jsx(Ha,{direction:"vertical",style:{display:"flex"},children:it.length>0?f.jsxs(f.Fragment,{children:[f.jsx(Ha,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start"},children:f.jsx(nt,{type:"default",disabled:Ze,onClick:VQ,children:s("tonies.encoder.sortAlphabetically")})}),f.jsx(Vn,{}),f.jsx("div",{style:{width:"100%"},className:"encoder",children:f.jsxs(Ha,{direction:"vertical",style:{width:"100%"},children:[f.jsxs(Ha.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[f.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:s("tonies.encoder.saveAs")}),Xn,f.jsx(Wt,{title:s("fileBrowser.createDirectory.createDirectory"),children:f.jsx(nt,{disabled:Ze,icon:f.jsx(jv,{}),onClick:()=>{Ce(En(k)),fr()},style:{borderRadius:0}})}),f.jsx(Jt,{ref:x,addonAfter:".taf",required:!0,status:Le?"error":"",onChange:WQ,disabled:Ze})]}),_e?f.jsx("div",{style:{textAlign:"end",color:u.colorErrorText},children:s("inputValidator.invalidCharactersDetected",{invalidChar:Xp})}):""]})})]}):f.jsx(f.Fragment,{})})]},"encodeModal-"+Ot),qQ=()=>{ut(!0)},y3=()=>{kt([]),ut(!1)},KQ={name:"file",multiple:!0,fileList:Ct,customRequest:async Te=>{const{onSuccess:we,onError:Ge,file:gt}=Te;we("Ok")},onChange(Te){const{status:we,fileList:Ge}=Te;we!=="uploading"&&(kt(Ge),console.log(Te.file,Te.fileList))},onDrop(Te){console.log("Dropped files",Te.dataTransfer.files)},onRemove:Te=>{kt(we=>we.filter(Ge=>Ge.uid!==Te.uid))}},YQ=async Te=>{if(!Te.length)return;et(!0);let we=!1;const Ge="uploading-"+Te.length+"-"+new Date;for(let gt=0;gtWr.filter(Mr=>Mr.uid!==$t.uid)),d(dt.Success,s("fileBrowser.upload.uploadedFile"),s("fileBrowser.upload.uploadSuccessfulForFile",{file:$t.name}),s("fileBrowser.title"))):(we=!0,kt(Wr=>Wr.map(Mr=>Mr.uid===$t.uid?{...Mr,status:"Failed"}:Mr)),d(dt.Error,s("fileBrowser.upload.uploadedFileFailed"),s("fileBrowser.upload.uploadFailedForFile",{file:$t.name}),s("fileBrowser.title")))}catch{we=!0,d(dt.Error,s("fileBrowser.upload.uploadedFileFailed"),s("fileBrowser.upload.uploadFailedForFile",{file:$t.name}),s("fileBrowser.title")),kt(Wr=>Wr.map(Mr=>Mr.uid===$t.uid?{...Mr,status:"Failed"}:Mr))}}g(Ge),we?($(!_),d(dt.Error,s("fileBrowser.upload.uploadFailed"),s("fileBrowser.upload.uploadFailed"),s("fileBrowser.title"))):($(!_),ut(!1),d(dt.Success,s("fileBrowser.upload.uploadSuccessful"),s("fileBrowser.upload.uploadSuccessfulDetails"),s("fileBrowser.title"))),et(!1)},XQ=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[f.jsx(nt,{onClick:y3,children:s("fileBrowser.upload.cancel")}),f.jsx(nt,{type:"primary",onClick:()=>YQ(Ct),loading:xt,disabled:Ct.length===0||xt,children:s(xt?"fileBrowser.upload.uploading":"fileBrowser.upload.upload")})]}),ZQ=f.jsx(Rn,{className:"sticky-footer",title:s("fileBrowser.upload.modalTitle"),open:at,onCancel:y3,footer:XQ,children:f.jsx("div",{style:{width:"100%",marginBottom:8},children:f.jsxs(Bd.Dragger,{...KQ,style:{width:"100%",marginBottom:8},children:[f.jsx("p",{className:"ant-upload-drag-icon",children:f.jsx(FN,{})}),f.jsx("p",{className:"ant-upload-text",children:s("fileBrowser.upload.uploadText")}),f.jsx("p",{className:"ant-upload-hint",children:s("fileBrowser.upload.uploadHint")})]})})}),x3=(Te,we,Ge)=>{const gt="migrating-"+Te;try{p(gt,s("fileBrowser.messages.migrationOngoing"),s("fileBrowser.messages.migrationOngoingDetails",{ruid:Te}));const $t=`ruid=${Te}&libroot=${we}`;ji.apiPostTeddyCloudRaw("/api/migrateContent2Lib",$t,Ge).then(Qt=>Qt.text()).then(Qt=>{g(gt),Qt==="OK"?(d(dt.Success,s("fileBrowser.messages.migrationSuccessful"),s("fileBrowser.messages.migrationSuccessfulDetails",{ruid:Te}),s("fileBrowser.title")),$(cn=>!cn)):d(dt.Success,s("fileBrowser.messages.migrationFailed"),s("fileBrowser.messages.migrationFailedDetails",{ruid:Te}).replace(": ",""),s("fileBrowser.title"))}).catch(Qt=>{g(gt),d(dt.Success,s("fileBrowser.messages.migrationFailed"),s("fileBrowser.messages.migrationFailedDetails",{ruid:Te})+Qt,s("fileBrowser.title"))})}catch($t){g(gt),d(dt.Success,s("fileBrowser.messages.migrationFailed"),s("fileBrowser.messages.migrationFailedDetails",{ruid:Te})+$t,s("fileBrowser.title"))}},QQ=Te=>{z(Te.target.value),h.current=Te.target.selectionStart,H(!0)},JQ=()=>{z(""),h.current=0},eJ=()=>{H(!0)},tJ=()=>{H(!1)},nJ=Te=>D.includes(Te.key)?"highlight-row":"",rJ=Te=>{O(Te)},aJ=Te=>{At(!0);const we=Te===".."?E.split("/").slice(0,-1).join("/"):`${E}/${Te}`;a&&m(`?path=${we}`),H(!1),O([]),I(we)},S3=(Te,we)=>we.reduce((Ge,gt)=>{if(Ge&&Ge[gt]!==void 0)return Ge[gt]},Te),C3=(Te,we,Ge)=>{const gt=Array.isArray(Ge)?S3(Te,Ge):Te[Ge],$t=Array.isArray(Ge)?S3(we,Ge):we[Ge];return gt===void 0&&$t===void 0?0:gt===void 0?1:$t===void 0?-1:typeof gt=="string"&&typeof $t=="string"?gt.localeCompare($t):typeof gt=="number"&&typeof $t=="number"?gt-$t:(console.log("Unsupported types for sorting:",Te,we),console.log("Unsupported types for sorting field:",Ge,gt,$t),0)},oJ=(Te,we)=>Te.isDir===we.isDir?C3(Te,we,"name"):Te.isDir?-1:1,iJ=Te=>Te>0&&Te<=H7;var Yl=[{title:f.jsx("div",{style:{minHeight:32}}),dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(Te,we)=>{var Ge,gt;return f.jsxs(f.Fragment,{children:[we&&((Ge=we.tonieInfo)!=null&&Ge.picture)?f.jsx(f.Fragment,{children:f.jsx("img",{src:we.tonieInfo.picture,alt:s("tonies.content.toniePicture"),onClick:()=>Zt(we),style:{width:100,cursor:!we.isDir&&((gt=we==null?void 0:we.tonieInfo)!=null&>.tracks)?"help":"default"}},`picture-${we.name}`)}):f.jsx(f.Fragment,{}),we.hide?f.jsx("div",{style:{textAlign:"center"},children:f.jsx(Pg,{bordered:!1,color:"warning",children:s("fileBrowser.hidden")})}):""]})},showOnDirOnly:!1},{title:s("fileBrowser.name"),dataIndex:"name",key:"name",sorter:oJ,defaultSortOrder:"ascend",render:(Te,we)=>{var Ge,gt,$t,Qt,cn;return we&&f.jsxs("div",{children:[f.jsxs("div",{className:"showSmallDevicesOnly",children:[f.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[f.jsxs("div",{style:{display:"flex"},children:[we.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:we.isDir?"normal":"break-word"},children:we.isDir?f.jsx(f.Fragment,{children:we.name}):we.name})]}),!we.isDir&&we.size?" ("+ad(we.size)+")":""]}),f.jsx("div",{children:(Ge=we.tonieInfo)==null?void 0:Ge.model}),f.jsx("div",{style:{wordBreak:we.isDir?"normal":"break-word"},children:((gt=we.tonieInfo)!=null&>.series?($t=we.tonieInfo)==null?void 0:$t.series:"")+((Qt=we.tonieInfo)!=null&&Qt.episode?" - "+((cn=we.tonieInfo)==null?void 0:cn.episode):"")}),f.jsx("div",{children:!we.isDir&&new Date(we.date*1e3).toLocaleString()})]}),f.jsxs("div",{className:"showMediumDevicesOnly",children:[f.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[f.jsxs("div",{style:{display:"flex"},children:[we.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:we.isDir?"normal":"break-word"},children:we.isDir?f.jsx(f.Fragment,{children:we.name}):we.name})]}),!we.isDir&&we.size?" ("+ad(we.size)+")":""]}),f.jsx("div",{children:!we.isDir&&new Date(we.date*1e3).toLocaleString()})]}),f.jsx("div",{className:"showBigDevicesOnly",children:f.jsxs("div",{style:{display:"flex"},children:[we.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:we.isDir?"normal":"break-word"},children:we.isDir?f.jsx(f.Fragment,{children:we.name}):we.name})]})})]},`name-${we.name}`)},filteredValue:[B],onFilter:(Te,we)=>{var gt,$t,Qt,cn;const Ge=Te.toLowerCase();return we.name===".."||we.name.toLowerCase().includes(Ge)||!we.isDir&&"tafHeader"in we&&we.tafHeader.size&&ad(we.tafHeader.size).toString().includes(Ge)||"tafHeader"in we&&((gt=we.tafHeader.audioId)==null?void 0:gt.toString().includes(Ge))||"tonieInfo"in we&&(($t=we.tonieInfo)==null?void 0:$t.model.toLowerCase().includes(Ge))||"tonieInfo"in we&&((Qt=we.tonieInfo)==null?void 0:Qt.series.toLowerCase().includes(Ge))||"tonieInfo"in we&&((cn=we.tonieInfo)==null?void 0:cn.episode.toLowerCase().includes(Ge))},showOnDirOnly:!0},{title:s("fileBrowser.size"),dataIndex:"size",key:"size",render:(Te,we)=>f.jsx("div",{children:we.isDir?"":ad(Te)},`size-${we.name}`),showOnDirOnly:!1,responsive:["xl"]},{title:s("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(Te,we)=>{var Ge;return f.jsx("div",{children:(Ge=we.tonieInfo)==null?void 0:Ge.model},`model-${we.name}`)}},{title:f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[s("fileBrowser.model"),"/",s("fileBrowser.series"),"/",s("fileBrowser.episode")]}),f.jsx("div",{className:"showBigDevicesOnly",children:s("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(Te,we)=>{var Ge,gt,$t,Qt,cn,Wr,Mr;return f.jsxs("div",{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[f.jsx("div",{children:(Ge=we.tonieInfo)==null?void 0:Ge.model}),f.jsx("div",{style:{wordBreak:"break-word"},children:((gt=we.tonieInfo)!=null&>.series?($t=we.tonieInfo)==null?void 0:$t.series:"")+((Qt=we.tonieInfo)!=null&&Qt.episode?" - "+((cn=we.tonieInfo)==null?void 0:cn.episode):"")})]}),f.jsx("div",{className:"showBigDevicesOnly",children:(Wr=we.tonieInfo)!=null&&Wr.series?(Mr=we.tonieInfo)==null?void 0:Mr.series:""})]},`series-${we.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:s("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(Te,we)=>{var Ge;return f.jsx("div",{children:(Ge=we.tonieInfo)==null?void 0:Ge.episode},`episode-${we.name}`)}},{title:s("fileBrowser.date"),dataIndex:"date",key:"date",render:(Te,we)=>f.jsx("div",{children:new Date(Te*1e3).toLocaleString()},`date-${we.name}`),showOnDirOnly:!0,responsive:["xl"]},{title:f.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:s("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(Te,we)=>{let Ge=[];return we.tafHeader?(Ge.push(f.jsx(Wt,{title:s("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>c(encodeURI("/content"+E+"/"+we.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:""),we.tonieInfo,{...we,audioUrl:encodeURI("/content"+E+"/"+we.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:"")})})},`action-play-${we.name}`)),e!=="library"&&(Ge.push(f.jsx(Wt,{title:s("fileBrowser.migrateContentToLib"),children:f.jsx(uK,{onClick:()=>x3(E.replace("/","")+we.name,!1,r),style:{margin:"4px 8px 4px 0",padding:4}})},`action-migrate-${we.name}`)),Ge.push(f.jsx(Wt,{title:s("fileBrowser.migrateContentToLibRoot"),children:f.jsx(SK,{onClick:()=>x3(E.replace("/","")+we.name,!0,r),style:{margin:"4px 8px 4px 0",padding:4}})},`action-migrate-root-${we.name}`)))):Du.some(gt=>we.name.endsWith(gt))&&Ge.push(f.jsx(Wt,{title:s("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>c(encodeURI("/content"+E+"/"+we.name)+"?special="+e+(r?`&overlay=${r}`:""),we.tonieInfo)})},`action-play-${we.name}`)),n&&we.name.includes(".tap")&&(Ge.push(f.jsx(Wt,{title:s("fileBrowser.tap.edit"),children:f.jsx(Ml,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>Sr(E+"/"+we.name)})},`action-edit-${we.name}`)),Ge.push(f.jsx(Wt,{title:s("fileBrowser.tap.copy"),children:f.jsx(Dy,{style:{margin:"4px 8px 4px 0",padding:4}})},`action-copy-${we.name}`))),we.tafHeader&&Ge.push(f.jsx(Wt,{title:s("fileBrowser.tafMeta.edit"),children:f.jsx(Ml,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>Ar()})},`action-edit-${we.name}`)),e==="library"&&(!we.isDir&&we.name!==".."&&Ge.push(f.jsx(Wt,{title:s("fileBrowser.rename"),children:f.jsx(fK,{onClick:()=>kf(we.name),style:{margin:"4px 8px 4px 0",padding:4}})},`action-rename-${we.name}`)),!we.isDir&&we.name!==".."&&Ge.push(f.jsx(Wt,{title:s("fileBrowser.move"),children:f.jsx(Xb,{onClick:()=>Pt(we.name),style:{margin:"4px 8px 4px 0",padding:4}})},`action-move-${we.name}`))),we.name!==".."&&Ge.push(f.jsx(Wt,{title:s("fileBrowser.delete"),children:f.jsx(Al,{onClick:()=>qt(we.name,E+"/"+we.name,"?special="+e+(r?`&overlay=${r}`:"")),style:{margin:"4px 8px 4px 0",padding:4}})},`action-delete-${we.name}`)),Ge},showOnDirOnly:!1}];Yl.forEach(Te=>{Te.hasOwnProperty("sorter")||(Te.sorter=(we,Ge)=>C3(we,Ge,Te.dataIndex))}),o&&(Yl=Yl.filter(Te=>Te.showOnDirOnly)),i&&(Yl=Yl.filter(Te=>typeof Te.key=="string"?i.includes(Te.key):!1));const sJ=yt?"":f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE});return f.jsxs(f.Fragment,{children:[f.jsx(Gd,{title:s("fileBrowser.confirmDeleteModal"),open:xe,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmDeleteDialog",{fileToDelete:ue}),handleOk:St,handleCancel:pt}),f.jsx(Gd,{title:s("fileBrowser.confirmDeleteModal"),open:Fe,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmMultipleDeleteDialog"),handleOk:Wn,handleCancel:pt}),It,zn,pu,ZQ,zs,AQ,GQ,mn&&f.jsx(RGe,{isHelpModalOpen:mn,onClose:()=>pn(!1)}),J?f.jsx(Ky,{open:Y,tonieCardOrTAFRecord:{...J,audioUrl:W},onClose:()=>K(!1),overlay:r}):"",f.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[f.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[f.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:s("tonies.currentPath")}),An(E,tn)]}),f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",marginBottom:8,minHeight:32},children:[e==="library"?f.jsx("div",{style:{width:"100%"},children:f.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8,minHeight:32},children:[D.length>0?f.jsxs(f.Fragment,{children:[e==="library"&&T.filter(Te=>D.includes(Te.name)&&!Te.isDir).length>0?f.jsx(Wt,{title:s("fileBrowser.moveMultiple"),children:f.jsx(nt,{size:"small",icon:f.jsx(Xb,{}),onClick:()=>Pt(""),disabled:D.length===0,children:f.jsxs("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:[" ",s("fileBrowser.move")]})})},"moveMultiple"):"",f.jsx(Wt,{title:s("fileBrowser.deleteMultiple"),children:f.jsx(nt,{size:"small",icon:f.jsx(Al,{}),onClick:ln,disabled:D.length===0,children:f.jsxs("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:[" ",s("fileBrowser.delete")]})})},"deleteMultiple"),iJ(T.filter(Te=>D.includes(Te.name)&&Du.some(we=>Te.name.toLowerCase().endsWith(we))).length)&&e==="library"?f.jsx(Wt,{title:s("fileBrowser.encodeFiles.encodeFiles")+Du.join(", "),children:f.jsx(nt,{size:"small",icon:f.jsx(Yb,{}),onClick:jQ,disabled:D.length===0,children:f.jsxs("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:[" ",s("fileBrowser.encodeFiles.encode")]})})},"encodeFiles"):""]}):f.jsx(f.Fragment,{}),f.jsx(nt,{icon:f.jsx(jv,{}),size:"small",onClick:fr,children:f.jsx("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:s("fileBrowser.createDirectory.createDirectory")})}),f.jsx(nt,{icon:f.jsx(CK,{}),size:"small",onClick:qQ,children:f.jsx("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:s("fileBrowser.upload.showUploadFilesDragNDrop")})})]})}):f.jsx("div",{}),f.jsx("div",{children:f.jsx(nt,{size:"small",icon:f.jsx(Mg,{}),onClick:()=>pn(!0),style:{marginLeft:8},children:s("fileBrowser.help.showHelp")})})]})]}),f.jsxs("div",{className:"test",style:{position:"relative"},ref:jt,children:[yt?f.jsx(MX,{parentRef:jt}):"",f.jsx(ya,{dataSource:T,columns:Yl,rowKey:Te=>Te.name,pagination:!1,onRow:Te=>({onDoubleClick:()=>{Te.isDir?aJ(Te.name):Te.name.includes(".json")||Te.name.includes(".tap")?Rt(E+"/"+Te.name):Te.tafHeader&&Dt(Te.name,Te.tafHeader)},style:{cursor:Te.isDir?"context-menu":"unset"}}),rowClassName:nJ,rowSelection:{selectedRowKeys:D,onChange:rJ,getCheckboxProps:Te=>({disabled:Te.name===".."}),onSelectAll:(Te,we)=>{const Ge=Te?we.filter(gt=>gt.name!=="..").map(gt=>gt.name):[];O(Ge)}},components:{header:{wrapper:Te=>f.jsx("thead",{...Te}),row:Te=>f.jsxs(f.Fragment,{children:[f.jsx("tr",{...Te}),f.jsx("tr",{children:f.jsx("th",{style:{padding:"10px 8px"},colSpan:Yl.length+1,children:f.jsx(Jt,{placeholder:s("fileBrowser.filter"),value:B,onChange:QQ,onFocus:eJ,onBlur:tJ,ref:v,style:{width:"100%"},autoFocus:U,addonAfter:f.jsx(pa,{onClick:JQ,disabled:B.length===0,style:{color:B.length===0?u.colorTextDisabled:u.colorText,cursor:B.length===0?"default":"pointer"}})})})})]}),cell:Te=>f.jsx("th",{...Te,style:{position:"sticky",top:0,zIndex:8}})}},locale:{emptyText:sJ}})]}),f.jsx($Q,{open:se,initialValuesJson:Z?JSON.stringify(Z,null,2):void 0,onCreate:Cr,onCancel:()=>{fe(!1)}},te)]})},XI=new Dn($n()),h3=e=>{const[t,n]=l.useState([]),[r,a]=l.useState(()=>{if(e!==void 0){if(e!==null)return localStorage.setItem("contentOverlay",e),e;{const i=localStorage.getItem("contentOverlay");return i||""}}else{const i=localStorage.getItem("contentOverlay");return i||""}});return l.useEffect(()=>{(async()=>{const s=await XI.apiGetTonieboxesIndex(),u=(await Promise.all(s.map(async m=>[await XI.apiGetTonieboxContentDir(m.ID),m.boxName,m.ID]))).reduce((m,[h,b,x])=>{const S=m.findIndex(v=>v[0]===h);return S!==-1?(m[S][1].push(b),r===x&&a(m[S][2])):m.push([h,[b],x]),m},[]),d=await XI.apiGetTonieboxContentDir("");u.findIndex(m=>m[0]===d)===-1&&u.push(["",["TeddyCloud Default Content Dir"],""]);const g=u.map(([m,h,b])=>[m,h,b]);if(r===""||r===null||r===void 0){const m=g.length>0?g[0][2]:"";a(m),localStorage.setItem("contentOverlay",m)}n(g)})()},[]),{tonieBoxContentDirs:t,overlay:r,handleContentOverlayChange:i=>{a(i),localStorage.setItem("contentOverlay",i)}}},{Option:$Ge}=cr,OGe=()=>{const{t:e}=Nt(),t=oi(),r=new URLSearchParams(t.search).get("overlay"),{tonieBoxContentDirs:a,overlay:o,handleContentOverlayChange:i}=h3(r);return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.content.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",flexWrap:"wrap",gap:8,alignItems:"center",marginBottom:8},children:[f.jsx("h1",{children:e("tonies.content.title")}),a.length>1?f.jsx(cr,{id:"contentDirectorySelect",defaultValue:"",onChange:i,style:{maxWidth:"300px"},value:o,title:e("tonies.content.showToniesOfBoxes"),children:a.map(([s,c,u])=>f.jsx($Ge,{value:u,children:c.join(", ")},u))}):""]}),f.jsx(m3,{special:"",overlay:o})]})]})]})},{Text:NGe}=xn,kGe=({originNode:e,fileList:t,file:n,onRemove:r,disabled:a})=>{const{attributes:o,listeners:i,setNodeRef:s,transform:c,transition:u,isDragging:d}=_Q({id:n.uid}),{t:p}=Nt(),g={transform:Zd.Transform.toString(c),transition:u,cursor:"move"};return f.jsx("div",{ref:s,style:g,className:d?"is-dragging":"",...o,...i,children:f.jsxs("div",{className:"ant-upload-list-item ant-upload-list-item-undefined",children:[f.jsx("div",{className:"ant-upload-list-item-thumbnail ant-upload-list-item-file",children:f.jsxs("span",{role:"img","aria-label":"file",className:"anticon anticon-file",children:[t.indexOf(n)+1,"."]})}),f.jsxs("span",{className:"ant-upload-list-item-name",title:n.name,children:[f.jsx("span",{className:"",children:n.name}),f.jsx("br",{}),f.jsx(NGe,{type:"secondary",children:ad(n.size?n.size:-1)})]}),f.jsx("span",{className:"ant-upload-list-item-actions picture",children:f.jsx(nt,{title:p("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:f.jsx(Al,{})})})]})})};function AGe(e,t,n,r,a,o){const i=new FileReader;i.onload=async s=>{try{if(s.target==null)return;const c=s.target.result,u=new AudioContext,d=48e3,p=await u.decodeAudioData(c),g=new OfflineAudioContext({numberOfChannels:p.numberOfChannels,length:Math.round(p.length*d/p.sampleRate),sampleRate:d}),m=g.createBufferSource();m.buffer=p,m.connect(g.destination),m.start();const h=await g.startRendering(),b=h.numberOfChannels,x=new Float32Array(h.getChannelData(0)),S=b>1?new Float32Array(h.getChannelData(1)):new Float32Array(h.getChannelData(0)),v=new Int16Array(x.length+S.length);for(let y=0,C=0;y{u(!0)},[]),eWe(l.useMemo(()=>({onDragStart(p){let{active:g}=p;o(t.onDragStart({active:g}))},onDragMove(p){let{active:g,over:m}=p;t.onDragMove&&o(t.onDragMove({active:g,over:m}))},onDragOver(p){let{active:g,over:m}=p;o(t.onDragOver({active:g,over:m}))},onDragEnd(p){let{active:g,over:m}=p;o(t.onDragEnd({active:g,over:m}))},onDragCancel(p){let{active:g,over:m}=p;o(t.onDragCancel({active:g,over:m}))}}),[o,t])),!c)return null;const d=de.createElement(de.Fragment,null,de.createElement(ZVe,{id:r,value:a.draggable}),de.createElement(QVe,{id:s,announcement:i}));return n?Kr.createPortal(d,n):d}var qr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(qr||(qr={}));function f0(){}function sQ(e,t){return l.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}const ki=Object.freeze({x:0,y:0});function oWe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function iWe(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function sWe(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:i}=o,s=n.get(i);if(s){const c=sWe(s,t);c>0&&a.push({id:i,data:{droppableContainer:o,value:c}})}}return a.sort(oWe)};function cWe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function lQ(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ki}function uWe(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const dWe=uWe(1);function fWe(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function pWe(e,t,n){const r=fWe(t);if(!r)return e;const{scaleX:a,scaleY:o,x:i,y:s}=r,c=e.left-i-(1-a)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,p=o?e.height/o:e.height;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c}}const gWe={ignoreTransform:!1};function Nf(e,t){t===void 0&&(t=gWe);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=co(e).getComputedStyle(e);u&&(n=pWe(n,u,d))}const{top:r,left:a,width:o,height:i,bottom:s,right:c}=n;return{top:r,left:a,width:o,height:i,bottom:s,right:c}}function A7(e){return Nf(e,{ignoreTransform:!0})}function mWe(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function hWe(e,t){return t===void 0&&(t=co(e).getComputedStyle(e)),t.position==="fixed"}function vWe(e,t){t===void 0&&(t=co(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function f3(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(c3(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Km(a)||aQ(a)||n.includes(a))return n;const o=co(e).getComputedStyle(a);return a!==e&&vWe(a,o)&&n.push(a),hWe(a,o)?n:r(a.parentNode)}return e?r(e):n}function cQ(e){const[t]=f3(e,1);return t??null}function qI(e){return!xx||!e?null:$f(e)?e:l3(e)?c3(e)||e===Of(e).scrollingElement?window:Km(e)?e:null:null}function uQ(e){return $f(e)?e.scrollX:e.scrollLeft}function dQ(e){return $f(e)?e.scrollY:e.scrollTop}function c$(e){return{x:uQ(e),y:dQ(e)}}var ua;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ua||(ua={}));function fQ(e){return!xx||!e?!1:e===document.scrollingElement}function pQ(e){const t={x:0,y:0},n=fQ(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const bWe={x:.2,y:.2};function yWe(e,t,n,r,a){let{top:o,left:i,right:s,bottom:c}=n;r===void 0&&(r=10),a===void 0&&(a=bWe);const{isTop:u,isBottom:d,isLeft:p,isRight:g}=pQ(e),m={x:0,y:0},h={x:0,y:0},b={height:t.height*a.y,width:t.width*a.x};return!u&&o<=t.top+b.height?(m.y=ua.Backward,h.y=r*Math.abs((t.top+b.height-o)/b.height)):!d&&c>=t.bottom-b.height&&(m.y=ua.Forward,h.y=r*Math.abs((t.bottom-b.height-c)/b.height)),!g&&s>=t.right-b.width?(m.x=ua.Forward,h.x=r*Math.abs((t.right-b.width-s)/b.width)):!p&&i<=t.left+b.width&&(m.x=ua.Backward,h.x=r*Math.abs((t.left+b.width-i)/b.width)),{direction:m,speed:h}}function xWe(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function gQ(e){return e.reduce((t,n)=>bd(t,c$(n)),ki)}function SWe(e){return e.reduce((t,n)=>t+uQ(n),0)}function wWe(e){return e.reduce((t,n)=>t+dQ(n),0)}function CWe(e,t){if(t===void 0&&(t=Nf),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);cQ(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const EWe=[["x",["left","right"],SWe],["y",["top","bottom"],wWe]];class p3{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=f3(n),a=gQ(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,s]of EWe)for(const c of i)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=a[o]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Kp{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function IWe(e){const{EventTarget:t}=co(e);return e instanceof t?e:Of(e)}function KI(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Vo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Vo||(Vo={}));function M7(e){e.preventDefault()}function TWe(e){e.stopPropagation()}var Vn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Vn||(Vn={}));const mQ={start:[Vn.Space,Vn.Enter],cancel:[Vn.Esc],end:[Vn.Space,Vn.Enter]},RWe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Vn.Right:return{...n,x:n.x+25};case Vn.Left:return{...n,x:n.x-25};case Vn.Down:return{...n,y:n.y+25};case Vn.Up:return{...n,y:n.y-25}}};class hQ{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Kp(Of(n)),this.windowListeners=new Kp(co(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Vo.Resize,this.handleCancel),this.windowListeners.add(Vo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Vo.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&CWe(r),n(ki)}handleKeyDown(t){if(d3(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=mQ,coordinateGetter:i=RWe,scrollBehavior:s="smooth"}=a,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:ki;this.referenceCoordinates||(this.referenceCoordinates=d);const p=i(t,{active:n,context:r.current,currentCoordinates:d});if(p){const g=d0(p,d),m={x:0,y:0},{scrollableAncestors:h}=r.current;for(const b of h){const x=t.code,{isTop:S,isRight:v,isLeft:y,isBottom:w,maxScroll:C,minScroll:E}=pQ(b),I=xWe(b),T={x:Math.min(x===Vn.Right?I.right-I.width/2:I.right,Math.max(x===Vn.Right?I.left:I.left+I.width/2,p.x)),y:Math.min(x===Vn.Down?I.bottom-I.height/2:I.bottom,Math.max(x===Vn.Down?I.top:I.top+I.height/2,p.y))},R=x===Vn.Right&&!v||x===Vn.Left&&!y,_=x===Vn.Down&&!w||x===Vn.Up&&!S;if(R&&T.x!==p.x){const $=b.scrollLeft+g.x,M=x===Vn.Right&&$<=C.x||x===Vn.Left&&$>=E.x;if(M&&!g.y){b.scrollTo({left:$,behavior:s});return}M?m.x=b.scrollLeft-$:m.x=x===Vn.Right?b.scrollLeft-C.x:b.scrollLeft-E.x,m.x&&b.scrollBy({left:-m.x,behavior:s});break}else if(_&&T.y!==p.y){const $=b.scrollTop+g.y,M=x===Vn.Down&&$<=C.y||x===Vn.Up&&$>=E.y;if(M&&!g.x){b.scrollTo({top:$,behavior:s});return}M?m.y=b.scrollTop-$:m.y=x===Vn.Down?b.scrollTop-C.y:b.scrollTop-E.y,m.y&&b.scrollBy({top:-m.y,behavior:s});break}}this.handleMove(t,bd(d0(p,this.referenceCoordinates),m))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}hQ.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=mQ,onActivation:a}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function D7(e){return!!(e&&"distance"in e)}function P7(e){return!!(e&&"delay"in e)}class g3{constructor(t,n,r){var a;r===void 0&&(r=IWe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=Of(i),this.documentListeners=new Kp(this.document),this.listeners=new Kp(r),this.windowListeners=new Kp(co(i)),this.initialCoordinates=(a=l$(o))!=null?a:ki,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Vo.Resize,this.handleCancel),this.windowListeners.add(Vo.DragStart,M7),this.windowListeners.add(Vo.VisibilityChange,this.handleCancel),this.windowListeners.add(Vo.ContextMenu,M7),this.documentListeners.add(Vo.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(P7(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(D7(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Vo.Click,TWe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Vo.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!a)return;const c=(n=l$(t))!=null?n:ki,u=d0(a,c);if(!r&&s){if(D7(s)){if(s.tolerance!=null&&KI(u,s.tolerance))return this.handleCancel();if(KI(u,s.distance))return this.handleStart()}return P7(s)&&KI(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Vn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const _We={move:{name:"pointermove"},end:{name:"pointerup"}};class Sx extends g3{constructor(t){const{event:n}=t,r=Of(n.target);super(t,_We,r)}}Sx.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const $We={move:{name:"mousemove"},end:{name:"mouseup"}};var u$;(function(e){e[e.RightClick=2]="RightClick"})(u$||(u$={}));class OWe extends g3{constructor(t){super(t,$We,Of(t.event.target))}}OWe.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===u$.RightClick?!1:(r==null||r({event:n}),!0)}}];const YI={move:{name:"touchmove"},end:{name:"touchend"}};class NWe extends g3{constructor(t){super(t,YI)}static setup(){return window.addEventListener(YI.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(YI.move.name,t)};function t(){}}}NWe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var Yp;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Yp||(Yp={}));var p0;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(p0||(p0={}));function kWe(e){let{acceleration:t,activator:n=Yp.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:i=5,order:s=p0.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:p,threshold:g}=e;const m=MWe({delta:p,disabled:!o}),[h,b]=GVe(),x=l.useRef({x:0,y:0}),S=l.useRef({x:0,y:0}),v=l.useMemo(()=>{switch(n){case Yp.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Yp.DraggableRect:return a}},[n,a,c]),y=l.useRef(null),w=l.useCallback(()=>{const E=y.current;if(!E)return;const I=x.current.x*S.current.x,T=x.current.y*S.current.y;E.scrollBy(I,T)},[]),C=l.useMemo(()=>s===p0.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!o||!u.length||!v){b();return}for(const E of C){if((r==null?void 0:r(E))===!1)continue;const I=u.indexOf(E),T=d[I];if(!T)continue;const{direction:R,speed:_}=yWe(E,T,v,t,g);for(const $ of["x","y"])m[$][R[$]]||(_[$]=0,R[$]=0);if(_.x>0||_.y>0){b(),y.current=E,h(w,i),x.current=_,S.current=R;return}}x.current={x:0,y:0},S.current={x:0,y:0},b()},[t,w,r,b,o,i,JSON.stringify(v),JSON.stringify(m),h,u,C,d,JSON.stringify(g)])}const AWe={x:{[ua.Backward]:!1,[ua.Forward]:!1},y:{[ua.Backward]:!1,[ua.Forward]:!1}};function MWe(e){let{delta:t,disabled:n}=e;const r=s$(t);return Ym(a=>{if(n||!r||!a)return AWe;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[ua.Backward]:a.x[ua.Backward]||o.x===-1,[ua.Forward]:a.x[ua.Forward]||o.x===1},y:{[ua.Backward]:a.y[ua.Backward]||o.y===-1,[ua.Forward]:a.y[ua.Forward]||o.y===1}}},[n,t,r])}function DWe(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Ym(a=>{var o;return t===null?null:(o=r??a)!=null?o:null},[r,t])}function PWe(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var Qg;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Qg||(Qg={}));var d$;(function(e){e.Optimized="optimized"})(d$||(d$={}));const L7=new Map;function LWe(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,i]=l.useState(null),{frequency:s,measure:c,strategy:u}=a,d=l.useRef(e),p=x(),g=Zg(p),m=l.useCallback(function(S){S===void 0&&(S=[]),!g.current&&i(v=>v===null?S:v.concat(S.filter(y=>!v.includes(y))))},[g]),h=l.useRef(null),b=Ym(S=>{if(p&&!n)return L7;if(!S||S===L7||d.current!==e||o!=null){const v=new Map;for(let y of e){if(!y)continue;if(o&&o.length>0&&!o.includes(y.id)&&y.rect.current){v.set(y.id,y.rect.current);continue}const w=y.node.current,C=w?new p3(c(w),w):null;y.rect.current=C,C&&v.set(y.id,C)}return v}return S},[e,o,n,p,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{p||m()},[n,p]),l.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),l.useEffect(()=>{p||typeof s!="number"||h.current!==null||(h.current=setTimeout(()=>{m(),h.current=null},s))},[s,p,m,...r]),{droppableRects:b,measureDroppableContainers:m,measuringScheduled:o!=null};function x(){switch(u){case Qg.Always:return!1;case Qg.BeforeDragging:return n;default:return!n}}}function vQ(e,t){return Ym(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function jWe(e,t){return vQ(e,t)}function FWe(e){let{callback:t,disabled:n}=e;const r=u3(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function wx(e){let{callback:t,disabled:n}=e;const r=u3(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function BWe(e){return new p3(Nf(e),e)}function j7(e,t,n){t===void 0&&(t=BWe);const[r,a]=l.useReducer(s,null),o=FWe({callback(c){if(e)for(const u of c){const{type:d,target:p}=u;if(d==="childList"&&p instanceof HTMLElement&&p.contains(e)){a();break}}}}),i=wx({callback:a});return Ni(()=>{a(),e?(i==null||i.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),o==null||o.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function zWe(e){const t=vQ(e);return lQ(e,t)}const F7=[];function HWe(e){const t=l.useRef(e),n=Ym(r=>e?r&&r!==F7&&e&&t.current&&e.parentNode===t.current.parentNode?r:f3(e):F7,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function UWe(e){const[t,n]=l.useState(null),r=l.useRef(e),a=l.useCallback(o=>{const i=qI(o.target);i&&n(s=>s?(s.set(i,c$(i)),new Map(s)):null)},[]);return l.useEffect(()=>{const o=r.current;if(e!==o){i(o);const s=e.map(c=>{const u=qI(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,c$(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{i(e),i(o)};function i(s){s.forEach(c=>{const u=qI(c);u==null||u.removeEventListener("scroll",a)})}},[a,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>bd(o,i),ki):gQ(e):ki,[e,t])}function B7(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==ki;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?d0(e,n.current):ki}function VWe(e){l.useEffect(()=>{if(!xx)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function WWe(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=i=>{o(i,t)},n},{}),[e,t])}function bQ(e){return l.useMemo(()=>e?mWe(e):null,[e])}const XI=[];function GWe(e,t){t===void 0&&(t=Nf);const[n]=e,r=bQ(n?co(n):null),[a,o]=l.useReducer(s,XI),i=wx({callback:o});return e.length>0&&a===XI&&o(),Ni(()=>{e.length?e.forEach(c=>i==null?void 0:i.observe(c)):(i==null||i.disconnect(),o())},[e]),a;function s(){return e.length?e.map(c=>fQ(c)?r:new p3(t(c),c)):XI}}function qWe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Km(t)?t:e}function KWe(e){let{measure:t}=e;const[n,r]=l.useState(null),a=l.useCallback(u=>{for(const{target:d}of u)if(Km(d)){r(p=>{const g=t(d);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),o=wx({callback:a}),i=l.useCallback(u=>{const d=qWe(u);o==null||o.disconnect(),d&&(o==null||o.observe(d)),r(d?t(d):null)},[t,o]),[s,c]=u0(i);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const YWe=[{sensor:Sx,options:{}},{sensor:hQ,options:{}}],XWe={current:{}},Xv={draggable:{measure:A7},droppable:{measure:A7,strategy:Qg.WhileDragging,frequency:d$.Optimized},dragOverlay:{measure:Nf}};class Xp extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const ZWe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:f0},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Xv,measureDroppableContainers:f0,windowRect:null,measuringScheduled:!1},QWe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:f0,draggableNodes:new Map,over:null,measureDroppableContainers:f0},Cx=l.createContext(QWe),yQ=l.createContext(ZWe);function JWe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xp}}}function eGe(e,t){switch(t.type){case qr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case qr.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case qr.DragEnd:case qr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case qr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Xp(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case qr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Xp(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case qr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Xp(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function tGe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=l.useContext(Cx),o=s$(r),i=s$(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!d3(o)||document.activeElement===o.target)return;const s=a.get(i);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const p=YVe(d);if(p){p.focus();break}}})}},[r,t,a,i,o]),null}function nGe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function rGe(e){return l.useMemo(()=>({draggable:{...Xv.draggable,...e==null?void 0:e.draggable},droppable:{...Xv.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Xv.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function aGe(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=l.useRef(!1),{x:i,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Ni(()=>{if(!i&&!s||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),p=lQ(d,r);if(i||(p.x=0),s||(p.y=0),o.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=cQ(u);g&&g.scrollBy({top:p.y,left:p.x})}},[t,i,s,r,n])}const xQ=l.createContext({...ki,scaleX:1,scaleY:1});var rl;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(rl||(rl={}));const SQ=l.memo(function(t){var n,r,a,o;let{id:i,accessibility:s,autoScroll:c=!0,children:u,sensors:d=YWe,collisionDetection:p=lWe,measuring:g,modifiers:m,...h}=t;const b=l.useReducer(eGe,void 0,JWe),[x,S]=b,[v,y]=tWe(),[w,C]=l.useState(rl.Uninitialized),E=w===rl.Initialized,{draggable:{active:I,nodes:T,translate:R},droppable:{containers:_}}=x,$=I?T.get(I):null,M=l.useRef({initial:null,translated:null}),P=l.useMemo(()=>{var ge;return I!=null?{id:I,data:(ge=$==null?void 0:$.data)!=null?ge:XWe,rect:M}:null},[I,$]),D=l.useRef(null),[O,k]=l.useState(null),[N,A]=l.useState(null),L=Zg(h,Object.values(h)),j=Xm("DndDescribedBy",i),F=l.useMemo(()=>_.getEnabled(),[_]),B=rGe(g),{droppableRects:z,measureDroppableContainers:U,measuringScheduled:H}=LWe(F,{dragging:E,dependencies:[R.x,R.y],config:B.droppable}),K=DWe(T,I),Y=l.useMemo(()=>N?l$(N):null,[N]),ee=st(),ae=jWe(K,B.draggable.measure);aGe({activeNode:I?T.get(I):null,config:ee.layoutShiftCompensation,initialRect:ae,measure:B.draggable.measure});const W=j7(K,B.draggable.measure,ae),q=j7(K?K.parentElement:null),Z=l.useRef({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor((n=Z.current.over)==null?void 0:n.id),J=KWe({measure:B.dragOverlay.measure}),ie=(r=J.nodeRef.current)!=null?r:K,le=E?(a=J.rect)!=null?a:W:null,fe=!!(J.nodeRef.current&&J.rect),te=zWe(fe?null:W),se=bQ(ie?co(ie):null),pe=HWe(E?Q??K:null),he=GWe(pe),re=nGe(m,{transform:{x:R.x-te.x,y:R.y-te.y,scaleX:1,scaleY:1},activatorEvent:N,active:P,activeNodeRect:W,containerNodeRect:q,draggingNodeRect:le,over:Z.current.over,overlayNodeRect:J.rect,scrollableAncestors:pe,scrollableAncestorRects:he,windowRect:se}),ue=Y?bd(Y,R):null,me=UWe(pe),xe=B7(me),Ee=B7(me,[W]),ke=bd(re,xe),$e=le?dWe(le,re):null,Le=P&&$e?p({active:P,collisionRect:$e,droppableRects:z,droppableContainers:F,pointerCoordinates:ue}):null,je=iWe(Le,"id"),[He,Be]=l.useState(null),Pe=fe?re:bd(re,Ee),Se=cWe(Pe,(o=He==null?void 0:He.rect)!=null?o:null,W),Ne=l.useCallback((ge,ne)=>{let{sensor:ve,options:_e}=ne;if(D.current==null)return;const ze=T.get(D.current);if(!ze)return;const Ue=ge.nativeEvent,Ae=new ve({active:D.current,activeNode:ze,event:Ue,options:_e,context:Z,onStart(Re){const at=D.current;if(at==null)return;const Ye=T.get(at);if(!Ye)return;const{onDragStart:We}=L.current,qe={active:{id:at,data:Ye.data,rect:M}};Kr.unstable_batchedUpdates(()=>{We==null||We(qe),C(rl.Initializing),S({type:qr.DragStart,initialCoordinates:Re,active:at}),v({type:"onDragStart",event:qe})})},onMove(Re){S({type:qr.DragMove,coordinates:Re})},onEnd:Oe(qr.DragEnd),onCancel:Oe(qr.DragCancel)});Kr.unstable_batchedUpdates(()=>{k(Ae),A(ge.nativeEvent)});function Oe(Re){return async function(){const{active:Ye,collisions:We,over:qe,scrollAdjustedTranslate:Qe}=Z.current;let ot=null;if(Ye&&Qe){const{cancelDrop:wt}=L.current;ot={activatorEvent:Ue,active:Ye,collisions:We,delta:Qe,over:qe},Re===qr.DragEnd&&typeof wt=="function"&&await Promise.resolve(wt(ot))&&(Re=qr.DragCancel)}D.current=null,Kr.unstable_batchedUpdates(()=>{S({type:Re}),C(rl.Uninitialized),Be(null),k(null),A(null);const wt=Re===qr.DragEnd?"onDragEnd":"onDragCancel";if(ot){const kt=L.current[wt];kt==null||kt(ot),v({type:wt,event:ot})}})}}},[T]),Te=l.useCallback((ge,ne)=>(ve,_e)=>{const ze=ve.nativeEvent,Ue=T.get(_e);if(D.current!==null||!Ue||ze.dndKit||ze.defaultPrevented)return;const Ae={active:Ue};ge(ve,ne.options,Ae)===!0&&(ze.dndKit={capturedBy:ne.sensor},D.current=_e,Ne(ve,ne))},[T,Ne]),we=PWe(d,Te);VWe(d),Ni(()=>{W&&w===rl.Initializing&&C(rl.Initialized)},[W,w]),l.useEffect(()=>{const{onDragMove:ge}=L.current,{active:ne,activatorEvent:ve,collisions:_e,over:ze}=Z.current;if(!ne||!ve)return;const Ue={active:ne,activatorEvent:ve,collisions:_e,delta:{x:ke.x,y:ke.y},over:ze};Kr.unstable_batchedUpdates(()=>{ge==null||ge(Ue),v({type:"onDragMove",event:Ue})})},[ke.x,ke.y]),l.useEffect(()=>{const{active:ge,activatorEvent:ne,collisions:ve,droppableContainers:_e,scrollAdjustedTranslate:ze}=Z.current;if(!ge||D.current==null||!ne||!ze)return;const{onDragOver:Ue}=L.current,Ae=_e.get(je),Oe=Ae&&Ae.rect.current?{id:Ae.id,rect:Ae.rect.current,data:Ae.data,disabled:Ae.disabled}:null,Re={active:ge,activatorEvent:ne,collisions:ve,delta:{x:ze.x,y:ze.y},over:Oe};Kr.unstable_batchedUpdates(()=>{Be(Oe),Ue==null||Ue(Re),v({type:"onDragOver",event:Re})})},[je]),Ni(()=>{Z.current={activatorEvent:N,active:P,activeNode:K,collisionRect:$e,collisions:Le,droppableRects:z,draggableNodes:T,draggingNode:ie,draggingNodeRect:le,droppableContainers:_,over:He,scrollableAncestors:pe,scrollAdjustedTranslate:ke},M.current={initial:le,translated:$e}},[P,K,Le,$e,T,ie,le,z,_,He,pe,ke]),kWe({...ee,delta:R,draggingRect:$e,pointerCoordinates:ue,scrollableAncestors:pe,scrollableAncestorRects:he});const Me=l.useMemo(()=>({active:P,activeNode:K,activeNodeRect:W,activatorEvent:N,collisions:Le,containerNodeRect:q,dragOverlay:J,draggableNodes:T,droppableContainers:_,droppableRects:z,over:He,measureDroppableContainers:U,scrollableAncestors:pe,scrollableAncestorRects:he,measuringConfiguration:B,measuringScheduled:H,windowRect:se}),[P,K,W,N,Le,q,J,T,_,z,He,U,pe,he,B,H,se]),Ge=l.useMemo(()=>({activatorEvent:N,activators:we,active:P,activeNodeRect:W,ariaDescribedById:{draggable:j},dispatch:S,draggableNodes:T,over:He,measureDroppableContainers:U}),[N,we,P,W,S,j,T,He,U]);return de.createElement(iQ.Provider,{value:y},de.createElement(Cx.Provider,{value:Ge},de.createElement(yQ.Provider,{value:Me},de.createElement(xQ.Provider,{value:Se},u)),de.createElement(tGe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),de.createElement(aWe,{...s,hiddenTextDescribedById:j}));function st(){const ge=(O==null?void 0:O.autoScrollEnabled)===!1,ne=typeof c=="object"?c.enabled===!1:c===!1,ve=E&&!ge&&!ne;return typeof c=="object"?{...c,enabled:ve}:{enabled:ve}}}),oGe=l.createContext(null),z7="button",iGe="Droppable";function sGe(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=Xm(iGe),{activators:i,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:p,over:g}=l.useContext(Cx),{role:m=z7,roleDescription:h="draggable",tabIndex:b=0}=a??{},x=(c==null?void 0:c.id)===t,S=l.useContext(x?xQ:oGe),[v,y]=u0(),[w,C]=u0(),E=WWe(i,t),I=Zg(n);Ni(()=>(p.set(t,{id:t,key:o,node:v,activatorNode:w,data:I}),()=>{const R=p.get(t);R&&R.key===o&&p.delete(t)}),[p,t]);const T=l.useMemo(()=>({role:m,tabIndex:b,"aria-disabled":r,"aria-pressed":x&&m===z7?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[r,m,b,x,h,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:T,isDragging:x,listeners:r?void 0:E,node:v,over:g,setNodeRef:y,setActivatorNodeRef:C,transform:S}}function lGe(){return l.useContext(yQ)}const cGe="Droppable",uGe={timeout:25};function dGe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=Xm(cGe),{active:i,dispatch:s,over:c,measureDroppableContainers:u}=l.useContext(Cx),d=l.useRef({disabled:n}),p=l.useRef(!1),g=l.useRef(null),m=l.useRef(null),{disabled:h,updateMeasurementsFor:b,timeout:x}={...uGe,...a},S=Zg(b??r),v=l.useCallback(()=>{if(!p.current){p.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(S.current)?S.current:[S.current]),m.current=null},x)},[x]),y=wx({callback:v,disabled:h||!i}),w=l.useCallback((T,R)=>{y&&(R&&(y.unobserve(R),p.current=!1),T&&y.observe(T))},[y]),[C,E]=u0(w),I=Zg(t);return l.useEffect(()=>{!y||!C.current||(y.disconnect(),p.current=!1,y.observe(C.current))},[C,y]),Ni(()=>(s({type:qr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:C,rect:g,data:I}}),()=>s({type:qr.UnregisterDroppable,key:o,id:r})),[r]),l.useEffect(()=>{n!==d.current.disabled&&(s({type:qr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,s]),{active:i,rect:g,isOver:(c==null?void 0:c.id)===r,node:C,over:c,setNodeRef:E}}function Ex(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function fGe(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function uv(e){return e!==null&&e>=0}function pGe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=Ex(t,r,n),i=t[a],s=o[a];return!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},dv={scaleX:1,scaleY:1},CQ=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e;const s=(t=o[n])!=null?t:r;if(!s)return null;if(a===n){const u=o[i];return u?{x:0,y:nn&&a<=i?{x:0,y:-s.height-c,...dv}:a=i?{x:0,y:s.height+c,...dv}:{x:0,y:0,...dv}};function mGe(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),h=i!=null,b=i?m.indexOf(i.id):-1,x=u?m.indexOf(u.id):-1,S=l.useRef(m),v=!pGe(m,S.current),y=x!==-1&&b===-1||v,w=gGe(o);Ni(()=>{v&&h&&d(m)},[v,m,h,d]),l.useEffect(()=>{S.current=m},[m]);const C=l.useMemo(()=>({activeIndex:b,containerId:p,disabled:w,disableTransforms:y,items:m,overIndex:x,useDragOverlay:g,sortedRects:fGe(m,c),strategy:a}),[b,p,w.draggable,w.droppable,y,m,x,c,g,a]);return de.createElement(IQ.Provider,{value:C},t)}const hGe=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return Ex(n,r,a).indexOf(t)},vGe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:s,previousContainerId:c,transition:u}=e;return!u||!r||s!==o&&a===i?!1:n?!0:i!==a&&t===c},bGe={duration:200,easing:"ease"},RQ="transform",yGe=Zd.Transition.toString({property:RQ,duration:0,easing:"linear"}),xGe={roleDescription:"sortable"};function SGe(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,i]=l.useState(null),s=l.useRef(n);return Ni(()=>{if(!t&&n!==s.current&&r.current){const c=a.current;if(c){const u=Nf(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&i(d)}}n!==s.current&&(s.current=n)},[t,n,r,a]),l.useEffect(()=>{o&&i(null)},[o]),o}function _Q(e){let{animateLayoutChanges:t=vGe,attributes:n,disabled:r,data:a,getNewIndex:o=hGe,id:i,strategy:s,resizeObserverConfig:c,transition:u=bGe}=e;const{items:d,containerId:p,activeIndex:g,disabled:m,disableTransforms:h,sortedRects:b,overIndex:x,useDragOverlay:S,strategy:v}=l.useContext(IQ),y=wGe(r,m),w=d.indexOf(i),C=l.useMemo(()=>({sortable:{containerId:p,index:w,items:d},...a}),[p,a,w,d]),E=l.useMemo(()=>d.slice(d.indexOf(i)),[d,i]),{rect:I,node:T,isOver:R,setNodeRef:_}=dGe({id:i,data:C,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:$,activatorEvent:M,activeNodeRect:P,attributes:D,setNodeRef:O,listeners:k,isDragging:N,over:A,setActivatorNodeRef:L,transform:j}=sGe({id:i,data:C,attributes:{...xGe,...n},disabled:y.draggable}),F=WVe(_,O),B=!!$,z=B&&!h&&uv(g)&&uv(x),U=!S&&N,H=U&&z?j:null,Y=z?H??(s??v)({rects:b,activeNodeRect:P,activeIndex:g,overIndex:x,index:w}):null,ee=uv(g)&&uv(x)?o({id:i,items:d,activeIndex:g,overIndex:x}):w,ae=$==null?void 0:$.id,W=l.useRef({activeId:ae,items:d,newIndex:ee,containerId:p}),q=d!==W.current.items,Z=t({active:$,containerId:p,isDragging:N,isSorting:B,id:i,index:w,items:d,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:u,wasDragging:W.current.activeId!=null}),Q=SGe({disabled:!Z,index:w,node:T,rect:I});return l.useEffect(()=>{B&&W.current.newIndex!==ee&&(W.current.newIndex=ee),p!==W.current.containerId&&(W.current.containerId=p),d!==W.current.items&&(W.current.items=d)},[B,ee,p,d]),l.useEffect(()=>{if(ae===W.current.activeId)return;if(ae&&!W.current.activeId){W.current.activeId=ae;return}const ie=setTimeout(()=>{W.current.activeId=ae},50);return()=>clearTimeout(ie)},[ae]),{active:$,activeIndex:g,attributes:D,data:C,rect:I,index:w,newIndex:ee,items:d,isOver:R,isSorting:B,isDragging:N,listeners:k,node:T,overIndex:x,over:A,setNodeRef:F,setActivatorNodeRef:L,setDroppableNodeRef:_,setDraggableNodeRef:O,transform:Q??Y,transition:J()};function J(){if(Q||q&&W.current.newIndex===w)return yGe;if(!(U&&!d3(M)||!u)&&(B||Z))return Zd.Transition.toString({...u,property:RQ})}}function wGe(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Vn.Down,Vn.Right,Vn.Up,Vn.Left;const{useToken:CGe}=kr,EGe=Lk,$Q=({open:e,initialValuesJson:t,onCreate:n,onCancel:r})=>{const{t:a}=Nt(),{token:o}=CGe(),[i]=Gt.useForm(),[s,c]=l.useState([]),[u,d]=l.useState(!1),[p,g]=l.useState(0),[m,h]=l.useState(-1);l.useEffect(()=>{c([])},[]),l.useEffect(()=>{if(t)try{const k=JSON.parse(t);i.setFieldsValue(k)}catch(k){console.error("Error parsing JSON:",k)}},[i,t]);const b=()=>{i.resetFields()},x=k=>{i.setFieldsValue({filepath:k.target.value})},S=(k,N,A)=>{if(k){const L=A==="library"?"lib:/":"content:/",j=k.map(F=>({filepath:L+N+"/"+F.name,name:F.name}));c(j)}},v=()=>{g(k=>k+1),d(!0)},y=k=>{g(N=>N+1),d(!0),h(k),c([i.getFieldValue(["files",k])])},w=()=>{const k=i.getFieldsValue();let N=[...k.files];m!==-1?N[m]={filepath:s[0].filepath,name:s[0].name}:N=[...k.files,...s];const A={...k,files:N};i.setFieldsValue(A),d(!1),c([]),h(-1)},C=()=>{d(!1),c([])},[E,I]=l.useState(""),[T,R]=l.useState(""),[_,$]=l.useState(!1),M=f.jsx(tt,{type:"primary",onClick:()=>$(!1),children:a("tonies.informationModal.ok")}),P=()=>{$(!1)},D=f.jsx(_n,{footer:M,width:1e3,title:"File (you can copy the content to a *.tap file)",open:_,onCancel:P,children:E?f.jsxs(f.Fragment,{children:[f.jsx(gn,{language:"json",code:E}),f.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),f.jsx(gn,{language:"json",showLineNumbers:!1,code:T})]}):"Loading..."}),O=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:o.colorBgElevated},children:[f.jsx(tt,{onClick:C,children:a("tonies.selectFileModal.cancel")}),f.jsx(tt,{type:"primary",onClick:w,children:a("tonies.selectFileModal.ok")})]});return f.jsxs(f.Fragment,{children:[f.jsxs(_n,{open:e,title:a(t?"tonies.tapEditor.titleEdit":"tonies.tapEditor.titleCreate"),okText:a(t?"tonies.tapEditor.save":"tonies.tapEditor.create"),cancelText:a("tonies.tapEditor.cancel"),onCancel:()=>{r(),b()},onOk:()=>{i.validateFields().then(()=>{n(i.getFieldsValue()),I(JSON.stringify(i.getFieldsValue(),null,2)),R(JSON.stringify(i.getFieldsValue(),null,0)),$(!0),b()}).catch(k=>{console.log("Validate Failed:",k)})},children:[f.jsx(Sn,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json is displayed when saving the new tap. This is not automatically saved to your library. You have to create a *.tap file manually and copy this into the file yourself.",style:{marginBottom:8}}),f.jsxs(Gt,{form:i,layout:"vertical",name:"tapEditorModal",initialValues:{type:"tap",filepath:"",name:"",files:[]},children:[f.jsx(Gt.Item,{name:"type",hidden:!0,label:"type",children:f.jsx(Jt,{type:"string"})}),f.jsx(Gt.Item,{name:"audio_id",label:f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx("label",{children:a("tonies.tapEditor.audioId")}),f.jsx(Ft,{title:a("tonies.tapEditor.audioIdTooltip"),children:f.jsx(Xo,{})})]}),children:f.jsx(Jt,{type:"number"})}),f.jsx(Gt.Item,{name:"filepath",label:f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx("label",{children:a("tonies.tapEditor.filePath")}),f.jsx(Ft,{title:a("tonies.tapEditor.filePathTooltip"),children:f.jsx(Xo,{})})]}),rules:[{required:!0,message:a("tonies.tapEditor.filePathRequired")}],children:f.jsx(Jt,{onChange:x})}),f.jsx(Gt.Item,{name:"name",label:f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx("label",{children:a("tonies.tapEditor.name")}),f.jsx(Ft,{title:a("tonies.tapEditor.nameTooltip"),children:f.jsx(Xo,{})})]}),rules:[{required:!0,message:a("tonies.tapEditor.nameRequired")}],children:f.jsx(Jt,{})}),f.jsx(Gt.List,{name:"files",children:(k,{add:N,remove:A})=>f.jsxs(f.Fragment,{children:[k.map(({key:L,name:j},F)=>f.jsx("div",{className:"playlistTitle",children:f.jsxs(Ha,{style:{display:"flex",marginBottom:8,alignItems:"center",width:"100%"},align:"baseline",children:[f.jsx(Gt.Item,{name:[j,"filepath"],label:f.jsxs("div",{style:{display:"flex",gap:8},children:[f.jsx("label",{children:a("tonies.tapEditor.filePathContentFile")}),f.jsx(Ft,{title:a("tonies.tapEditor.filePathContentFileTooltip"),children:f.jsx(Xo,{})})]}),rules:[{required:!0,message:a("tonies.tapEditor.filePathContentFileRequired")}],children:f.jsx(Jt,{width:"auto",addonBefore:f.jsx(ga,{onClick:()=>{const B=[...i.getFieldsValue().files];B[F].filepath="",i.setFieldsValue({files:B})}}),addonAfter:f.jsx(jN,{onClick:()=>y(F)})})}),f.jsx(Gt.Item,{name:[j,"name"],label:a("tonies.tapEditor.fileNameContentFile"),children:f.jsx(Jt,{placeholder:"Name"})}),f.jsx(O2e,{onClick:()=>A(j)})]},`space-${L}`)},`files-${L}`)),f.jsx(Gt.Item,{children:f.jsx(tt,{type:"dashed",onClick:()=>v(),block:!0,icon:f.jsx(_m,{}),children:a("tonies.tapEditor.addFile")})})]})})]}),f.jsx(_n,{className:"sticky-footer",title:a("tonies.selectFileModal.selectFile"),open:u,onOk:w,onCancel:C,width:"auto",footer:O,children:f.jsx(jk,{maxSelectedRows:99,special:"library",trackUrl:!1,filetypeFilter:EGe,onFileSelectChange:S},p)})]}),D]})},{useToken:IGe}=kr,TGe=({originNode:e,fileObjectList:t,file:n,onRemove:r,disabled:a})=>{const{token:o}=IGe(),{attributes:i,listeners:s,setNodeRef:c,transform:u,transition:d,isDragging:p}=_Q({id:n.uid}),{t:g}=Nt(),m={transform:Zd.Transform.toString(u),transition:d,cursor:"move"};return f.jsx("div",{ref:c,style:m,className:p?"is-dragging":"",...i,...s,children:f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"space-between",alignItems:"center",margin:"8px 0",padding:8,borderRadius:8,border:`1px solid ${o.colorBorder}`},children:[f.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[f.jsxs("span",{style:{fontSize:30,width:48,height:48,textAlign:"center",color:`${o.colorPrimaryText}`},children:[t.indexOf(n)+1,"."]}),f.jsxs("div",{children:[f.jsx("div",{children:n.name}),f.jsxs("div",{style:{fontSize:"smaller",color:`${o.colorTextSecondary}`},children:["in ",n.path,"/"]})]})]}),f.jsx(tt,{title:g("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:f.jsx(Al,{})})]})})},OQ=/[<>:"/\\|?*]/,Zp=OQ.source.slice(1,-1).split("").join(" ");function od(e){return!OQ.test(e)}const RGe=({isHelpModalOpen:e,onClose:t})=>{const n=[{key:1,avatar:f.jsx(Zb,{}),title:Tt("fileBrowser.help.actionItemsMulti.moveSelectedFiles.title"),text:Tt("fileBrowser.help.actionItemsMulti.moveSelectedFiles.text")},{key:2,avatar:f.jsx(Al,{}),title:Tt("fileBrowser.help.actionItemsMulti.deleteSelectedFiles.title"),text:Tt("fileBrowser.help.actionItemsMulti.deleteSelectedFiles.text")},{key:3,avatar:f.jsx(Xb,{}),title:Tt("fileBrowser.help.actionItemsMulti.encodeFilesToTAF.title"),text:Tt("fileBrowser.help.actionItemsMulti.encodeFilesToTAF.text")}],r=[{key:1,avatar:f.jsx(Eo,{}),title:Tt("fileBrowser.help.actionItems.playAudioFile.title"),text:Tt("fileBrowser.help.actionItems.playAudioFile.text")},{key:2,avatar:f.jsx(uK,{}),title:Tt("fileBrowser.help.actionItems.migrateToLibraryRoot.title"),text:Tt("fileBrowser.help.actionItems.migrateToLibraryRoot.text")},{key:3,avatar:f.jsx(SK,{}),title:Tt("fileBrowser.help.actionItems.migrateToAudioIdFolder.title"),text:Tt("fileBrowser.help.actionItems.migrateToAudioIdFolder.text")},{key:4,avatar:f.jsx(Ml,{}),title:Tt("fileBrowser.help.actionItems.editTAFMetadata.title"),text:Tt("fileBrowser.help.actionItems.editTAFMetadata.text")},{key:5,avatar:f.jsx(Ml,{}),title:Tt("fileBrowser.help.actionItems.editTAPPlaylist.title"),text:Tt("fileBrowser.help.actionItems.editTAPPlaylist.text")},{key:6,avatar:f.jsx(fK,{}),title:Tt("fileBrowser.help.actionItems.renameFile.title"),text:Tt("fileBrowser.help.actionItems.renameFile.text")},{key:7,avatar:f.jsx(Zb,{}),title:Tt("fileBrowser.help.actionItems.moveFile.title"),text:Tt("fileBrowser.help.actionItems.moveFile.text")},{key:8,avatar:f.jsx(Al,{}),title:Tt("fileBrowser.help.actionItems.deleteFileFolder.title"),text:Tt("fileBrowser.help.actionItems.deleteFileFolder.text")},{key:9,avatar:f.jsx(Ly,{}),title:Tt("fileBrowser.help.actionItems.duplicateTAPFile.title"),text:Tt("fileBrowser.help.actionItems.duplicateTAPFile.text")}],a=[{key:1,title:Tt("fileBrowser.help.instructions.openDirectory.title"),text:Tt("fileBrowser.help.instructions.openDirectory.text")},{key:2,title:Tt("fileBrowser.help.instructions.openTAFViewer.title"),text:Tt("fileBrowser.help.instructions.openTAFViewer.text")},{key:3,title:Tt("fileBrowser.help.instructions.openTAPJSONViewer.title"),text:Tt("fileBrowser.help.instructions.openTAPJSONViewer.text")},{key:4,title:Tt("fileBrowser.help.instructions.viewTonieInfoModal.title"),text:Tt("fileBrowser.help.instructions.viewTonieInfoModal.text")},{key:5,title:Tt("fileBrowser.help.instructions.multiSelection.title"),text:f.jsxs(f.Fragment,{children:[Tt("fileBrowser.help.instructions.multiSelection.text"),f.jsx(Er,{size:"small",dataSource:n,renderItem:o=>f.jsx(Er.Item,{children:f.jsx(Er.Item.Meta,{avatar:o.avatar,title:o.title,description:o.text})})})]})},{key:6,title:Tt("fileBrowser.help.instructions.fileActions.title"),description:f.jsx(Er,{size:"small",dataSource:r,renderItem:o=>f.jsx(Er.Item,{children:f.jsx(Er.Item.Meta,{avatar:o.avatar,title:o.title,description:o.text})})})}];return f.jsx(_n,{className:"help-viewer",width:800,title:Tt("fileBrowser.help.title"),open:e,onOk:t,onCancel:t,footer:[f.jsx(tt,{type:"primary",onClick:t,children:Tt("fileBrowser.help.closeButton")},"close")],children:f.jsx(Er,{size:"small",dataSource:a,renderItem:o=>f.jsx(Er.Item,{children:f.jsx(Er.Item.Meta,{title:o.title,description:f.jsxs(f.Fragment,{children:[f.jsx("div",{children:o.text}),o.description&&f.jsx("div",{children:o.description})]})})})})})},Fi=new Dn(On()),{useToken:_Ge}=kr,H7=99,Du=Lk,di={id:"1",pId:"-1",value:"1",title:"/",fullPath:"/"},m3=({special:e,filetypeFilter:t=[],isTapList:n=!1,overlay:r="",trackUrl:a=!0,showDirOnly:o=!1,showColumns:i=void 0})=>{const{t:s}=Nt(),{playAudio:c}=Mm(),{token:u}=_Ge(),{addNotification:d,addLoadingNotification:p,closeLoadingNotification:g}=Qn(),m=Zc(),h=l.useRef(null),b=l.useRef(null),x=l.useRef(null),S=l.useRef(null),v=l.useRef(null),y=ii(),C=new URLSearchParams(y.search).get("path")||"",[E,I]=l.useState(C),[T,R]=l.useState([]),[_,$]=l.useState(!1),[M,P]=l.useState(""),[D,O]=l.useState([]),[k,N]=l.useState(di.id),[A,L]=l.useState([di]),[j,F]=l.useState([]),[B,z]=l.useState(""),[U,H]=l.useState(!1),[K,Y]=l.useState(!1),[ee,ae]=l.useState(),[W,q]=l.useState(""),[Z,Q]=l.useState(""),[J,ie]=l.useState(!1),[le,fe]=l.useState(!1),[te,se]=l.useState(0);l.useState(!1),l.useState(0);const[pe,he]=l.useState(),[re,ue]=l.useState(!1),[me,xe]=l.useState(!0),[Ee,ke]=l.useState(!1),[$e,Le]=l.useState(!1),[je,He]=l.useState(!0),[Be,Pe]=l.useState(!1),[Se,Ne]=l.useState(1),[Te,we]=l.useState(C),[Me,Ge]=l.useState(!1),[st,ge]=l.useState(!1),[ne,ve]=l.useState(null),[_e,ze]=l.useState(""),[Ue,Ae]=l.useState(""),[Oe,Re]=l.useState(!1),[at,Ye]=l.useState(!1),[We,qe]=l.useState(0),[Qe,ot]=l.useState(!1),[wt,kt]=l.useState([]),[xt,nt]=l.useState(!1),[rt,bt]=l.useState(!1),[Ot,ht]=l.useState(0),[lt,Et]=l.useState([]),[Ze,ct]=l.useState(!1),[ft,et]=l.useState(!1),[Xe,_t]=l.useState(0),[Mt,Vt]=l.useState([]),[mn,pn]=l.useState(!1),[yt,At]=l.useState(!0),jt=l.useRef(null);l.useEffect(()=>{(async()=>{const Ce=In(di.id);Fi.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${Ce}&special=library`).then(Ve=>Ve.json()).then(Ve=>{var gt=Ve.files;gt=gt.filter($t=>$t.isDir&&$t.name!=="..").sort(($t,Qt)=>$t.name===Qt.name?0:$t.name.toLowerCase()>Qt.name.toLowerCase()?1:-1).map($t=>({id:di.id+"."+gt.indexOf($t),pId:di.id,value:di.id+"."+gt.indexOf($t),title:$t.name,fullPath:`${Ce}/${$t.name}/`})),L(A.concat(gt))})})()},[]),l.useEffect(()=>{const Ce=new URLSearchParams(y.search).get("path")||"";I(Ce)},[]),l.useEffect(()=>{if(r){const Ie=new URLSearchParams(y.search);Ie.set("path",""),I("");const Ce=`${window.location.pathname}?${Ie.toString()}`;window.history.replaceState(null,"",Ce),$(Ve=>!Ve)}},[r]),l.useEffect(()=>{At(!0),Fi.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${E}&special=${e}`+(r?`&overlay=${r}`:"")).then(Ie=>Ie.json()).then(Ie=>{var Ce=Ie.files;o&&(Ce=Ce.filter(Ve=>Ve.isDir)),t.length>0&&(Ce=Ce.filter(Ve=>Ve.isDir||t.some(gt=>Ve.name.endsWith(gt)))),R(Ce)}).catch(Ie=>d(dt.Error,s("fileBrowser.messages.errorFetchingDirContent"),s("fileBrowser.messages.errorFetchingDirContentDetails",{path:E||"/"})+Ie,s("fileBrowser.title"))).finally(()=>{At(!1)})},[E,e,o,_]),l.useEffect(()=>{Be&&setTimeout(()=>{b.current&&b.current.focus()},0)},[Be]),l.useEffect(()=>{h.current!==null&&v.current&&v.current.setSelectionRange(h.current,h.current)},[B]),l.useEffect(()=>{we(In(k))},[k]),l.useEffect(()=>{we(E)},[E]);const tn=Ie=>{At(!0),a&&m(`?path=${Ie}`),E===Ie&&$(Ce=>!Ce),H(!1),I(Ie)},An=(Ie,Ce)=>{const Ve=Ie.split("/").filter($t=>$t),gt=[{title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>Ce(""),children:s("fileBrowser.root")}),key:"/"}];return Ve.forEach(($t,Qt)=>{const cn=`/${Ve.slice(0,Qt+1).join("/")}`;gt.push({title:f.jsx("span",{style:{cursor:"pointer"},onClick:()=>Ce(cn),children:$t}),key:cn})}),f.jsx(Cm,{items:gt})},Or=({id:Ie})=>new Promise((Ce,Ve)=>{const gt=In(Ie);Fi.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${gt}&special=library`).then($t=>$t.json()).then($t=>{let Qt=$t.files;Qt=Qt.filter(cn=>cn.isDir&&cn.name!=="..").sort((cn,Wr)=>cn.name===Wr.name?0:cn.name.toLowerCase()>Wr.name.toLowerCase()?1:-1).map(cn=>({id:Ie+"."+Qt.indexOf(cn),pId:Ie,value:Ie+"."+Qt.indexOf(cn),title:cn.name,fullPath:`${gt}/${cn.name}/`})),L(A.concat(Qt)),Ce(!0)}).then(()=>{Ve()})}),In=Ie=>{const Ce=A.filter(Ve=>Ve.value===Ie)[0];return Ce.pId==="-1"?"":In(A.filter(Ve=>Ve.id===Ce.pId)[0].id)+"/"+Ce.title},br=(Ie,Ce)=>{for(const Ve of Ce)if(Ve.fullPath===Ie)return Ve.id;return null},na=(Ie,Ce)=>{let Ve=[];for(const gt of Ce)gt.pId===Ie&&Ve.push(gt);return Ve},jr=Ie=>j.includes(Ie),Xn=f.jsx(Gl,{className:"move-file",treeLine:!0,treeDataSimpleMode:!0,value:k,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:N,loadData:Or,treeData:A,treeNodeLabelProp:"fullPath",placeholder:s("fileBrowser.moveFile.destinationPlaceholder"),treeExpandedKeys:j,onTreeExpand:Ie=>F(Ie),disabled:Ze||xt}),Zt=Ie=>{var Ce;!Ie.isDir&&((Ce=Ie.tonieInfo)!=null&&Ce.tracks)&&(ae(Ie),q(encodeURI("/content"+E+"/"+Ie.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:"")),Y(!0))},Rt=Ie=>{Ht((e==="library"?"/library":"/content")+Ie),H(!1),P(Ie),ie(!0)},zt=()=>{ie(!1)},Ht=async Ie=>{try{const Ve=await(await Fi.apiGetTeddyCloudApiRaw(Ie)).json();Q(Ve)}catch(Ce){console.error("Error fetching JSON data:",Ce)}},nn=f.jsx(tt,{type:"primary",onClick:()=>ie(!1),children:s("tonies.informationModal.ok")}),It=f.jsx(_n,{className:"json-viewer",footer:nn,width:800,title:"File: "+M,open:J,onCancel:zt,children:Z?f.jsx(gn,{language:"json",code:JSON.stringify(Z,null,2)}):"Loading..."}),Dt=(Ie,Ce)=>{const Ve=Ce,{trackSeconds:gt,...$t}=Ve;H(!1),he($t),P(Ie),ue(!0)},vn=()=>{ue(!1)},zn=f.jsx(_n,{className:"taf-header-viewer",footer:f.jsx(tt,{type:"primary",onClick:()=>ue(!1),children:s("tonies.informationModal.ok")}),title:s("tonies.tafHeaderOf")+M,open:re,onCancel:vn,width:700,children:pe?f.jsx(gn,{language:"json",code:JSON.stringify(pe,null,2)}):"Loading..."}),Sr=Ie=>{Ie.includes(".tap")&&(Ht((e==="library"?"/library":"/content")+Ie),H(!1),P(Ie),se(Ve=>Ve+1),fe(!0))},wr=Ie=>{console.log("Received values of form: ",Ie),fe(!1)},Ar=(Ie,Ce)=>{},Kt=(Ie,Ce,Ve)=>{H(!1),ve(Ie),ze(Ce),Ae(Ve),Ge(!0)},pt=()=>{Ge(!1),ge(!1)},St=()=>{tr(_e,Ue),$(Ie=>!Ie),Ge(!1)},ln=()=>{ge(!0)},Gn=async()=>{if(D.length>0){const Ie="deletingFiles";p(Ie,s("fileBrowser.messages.deleting"),s("fileBrowser.messages.deleting"));for(const Ce of D){const Ve=T.find(gt=>gt.name===Ce);if(Ve){const gt=E+"/"+Ve.name,$t="?special="+e+(r?`&overlay=${r}`:"");await tr(gt,$t,!0)}}g(Ie),$(Ce=>!Ce),ge(!1),O([])}else d(dt.Warning,s("tonies.messages.noRowsSelected"),s("tonies.messages.noRowsSelectedForDeletion"),s("fileBrowser.title"))},tr=async(Ie,Ce,Ve)=>{const gt="deletingFiles";p(gt,s("fileBrowser.messages.deleting"),s("fileBrowser.messages.deletingDetails",{file:Ie}));try{const $t=`/api/fileDelete${Ce}`,cn=await(await Fi.apiPostTeddyCloudRaw($t,Ie)).text();if(!Ve&&g(gt),cn==="OK"){d(dt.Success,s("fileBrowser.messages.deleteSuccessful"),s("fileBrowser.messages.deleteSuccessfulDetails",{file:Ie}),s("fileBrowser.title"));const Wr=br(Ie+"/",A);Wr&&L(Mr=>Mr.filter(Qm=>Qm.id!==Wr)),Te===Ie+"/"&&we(E)}else d(dt.Error,s("fileBrowser.messages.deleteFailed"),`${s("fileBrowser.messages.deleteFailedDetails",{file:Ie})}: ${cn}`,s("fileBrowser.title"))}catch($t){!Ve&&g(gt),d(dt.Error,s("fileBrowser.messages.deleteFailed"),`${s("fileBrowser.messages.deleteFailedDetails",{file:Ie})}: ${$t}`,s("fileBrowser.title"))}},fr=()=>{xe(!0),ke(!1),Ne(Ie=>Ie+1),H(!1),Pe(!0)},va=()=>{H(!1),Pe(!1)},Pa=Ie=>{const Ce=Ie.target.value,Ve=!od(Ce.toString());ke(Ve),xe(Ce==="")},La=()=>{var Ce,Ve;const Ie=((Ve=(Ce=b.current)==null?void 0:Ce.input)==null?void 0:Ve.value)||"";try{Fi.apiPostTeddyCloudRaw("/api/dirCreate?special=library",Te+"/"+Ie).then(gt=>gt.text()).then(gt=>{if(gt!=="OK")throw new Error(gt);const $t=br(Te+"/",A)||di.id,Qt=`${$t}.${A.length}`,cn=jr($t),Wr=na($t,A);if(cn||Wr.length>0){const Mr={id:Qt,pId:$t,value:Qt,title:Ie,fullPath:Te+"/"+Ie+"/"};L([...A,Mr].sort((Qm,C3)=>Qm.title===C3.title?0:Qm.title.toLowerCase()>C3.title.toLowerCase()?1:-1)),(Oe||rt)&&N(Qt)}d(dt.Success,s("fileBrowser.createDirectory.directoryCreated"),s("fileBrowser.createDirectory.directoryCreatedDetails",{directory:Te+"/"+Ie}),s("fileBrowser.title")),Pe(!1),$(Mr=>!Mr),we(E)}).catch(gt=>{d(dt.Error,s("fileBrowser.createDirectory.directoryCreateFailed"),s("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:Te+"/"+Ie})+gt,s("fileBrowser.title"))})}catch(gt){d(dt.Error,s("fileBrowser.createDirectory.directoryCreateFailed"),s("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:Te+"/"+Ie})+gt,s("fileBrowser.title"))}},Do=me||Ee,pu=f.jsxs(_n,{title:s("fileBrowser.createDirectory.modalTitle"),open:Be,onCancel:va,onOk:La,okText:s("fileBrowser.createDirectory.create"),cancelText:s("fileBrowser.createDirectory.cancel"),zIndex:1050,okButtonProps:{disabled:Do},children:[f.jsxs(xn,{style:{marginBottom:8},children:[s("fileBrowser.createDirectory.parentPath")+" "+Te+"/"," "]}),f.jsxs(Gt.Item,{validateStatus:Ee?"error":"",help:Ee?s("inputValidator.invalidCharactersDetected",{invalidChar:Zp}):"",required:!0,children:[" ",f.jsx(Jt,{ref:b,type:"text",placeholder:s("fileBrowser.createDirectory.placeholder"),status:Ee?"error":"",onChange:Pa})]})]},"createDirModal-"+Se),zs=async(Ie,Ce,Ve,gt)=>{const $t="source="+encodeURIComponent(Ie)+"&target="+encodeURIComponent(Ce),Qt=Ve?"move-file":"rename-file";p(Qt,s(Ve?"fileBrowser.messages.moving":"fileBrowser.messages.renaming"),Ve?s("fileBrowser.messages.movingDetails",{file:Ie}):s("fileBrowser.messages.renamingDetails",{file:Ie}));try{const cn=`/api/fileMove${"?special="+e+(r?`&overlay=${r}`:"")}`,Mr=await(await Fi.apiPostTeddyCloudRaw(cn,$t)).text();if(!gt&&g(Qt),Mr==="OK")d(dt.Success,s(Ve?"fileBrowser.messages.movingSuccessful":"fileBrowser.messages.renamingSuccessful"),Ve?s("fileBrowser.messages.movingSuccessfulDetails",{fileSource:Ie,fileTarget:Ce}):s("fileBrowser.messages.renamingSuccessfulDetails",{fileSource:Ie,fileTarget:Ce}),s("fileBrowser.title"));else throw Mr}catch(cn){!gt&&g(Qt),d(dt.Error,s(Ve?"fileBrowser.messages.movingFailed":"fileBrowser.messages.renamingFailed"),(Ve?s("fileBrowser.messages.movingFailedDetails",{fileSource:Ie,fileTarget:Ce}):s("fileBrowser.messages.renamingFailedDetails",{fileSource:Ie,fileTarget:Ce}))+cn,s("fileBrowser.title"))}},Pt=Ie=>{N(di.id),P(Ie),Re(!0)},Xt=()=>{Re(!1),we(E)},or=async(Ie,Ce)=>{await zs(Ie+"/"+M,Ce+"/"+M,!0),$(Ve=>!Ve),Re(!1),N(di.id)},Cr=async(Ie,Ce)=>{if(D.length>0){const Ve="move-file";p(Ve,s("fileBrowser.messages.moving"),s("fileBrowser.messages.moving"));for(const gt of D){const $t=T.find(Qt=>Qt.name===gt);$t&&!$t.isDir&&await zs(Ie+"/"+$t.name,Ce+"/"+$t.name,!0,!0)}g(Ve),$(gt=>!gt),Re(!1),O([]),N(di.id)}else d(dt.Warning,s("tonies.messages.noRowsSelected"),s("tonies.messages.noRowsSelectedForMoving"),s("fileBrowser.title"))},ir=!k||In(k)===E,Hs=f.jsxs(_n,{title:s(M?"fileBrowser.moveFile.modalTitle":"fileBrowser.moveFile.modalTitleMultiple"),open:Oe,onCancel:Xt,onOk:()=>M?or(E,In(k)):Cr(E,In(k)),okText:s("fileBrowser.moveFile.move"),cancelText:s("fileBrowser.moveFile.cancel"),okButtonProps:{disabled:ir},children:[f.jsx(Sn,{message:s("fileBrowser.attention"),description:s("fileBrowser.moveFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:[f.jsx(Jt,{type:"text",style:{borderTopRightRadius:M?0:"unset",borderBottomRightRadius:M?0:"unset"},disabled:!0,value:E+"/"+(M||""),placeholder:E+"/"+(M||"")}),f.jsx("div",{children:s("fileBrowser.moveFile.moveTo")}),f.jsxs("div",{style:{display:"flex"},children:[Xn,f.jsx(Ft,{title:s("fileBrowser.createDirectory.createDirectory"),children:f.jsx(tt,{icon:f.jsx(Bv,{}),onClick:()=>{we(In(k)),fr()},style:{borderTopLeftRadius:0,borderBottomLeftRadius:0}})})]})]})]}),kf=Ie=>{P(Ie),xe(!0),Le(!od(Ie)),qe(Ce=>Ce+1),Ye(!0)},Zm=()=>{Ye(!1)},gu=async(Ie,Ce)=>{try{await zs(Ie+"/"+M,Ie+"/"+Ce,!1),$(Ve=>!Ve),Ye(!1)}catch{}},NQ=Ie=>{const Ce=Ie.target.value,Ve=!od(Ce.toString()),gt=!Ce.toString()||Ve;Le(Ve),He(gt),xe(!Ce||Ce===M)},kQ=me||$e||je,AQ=f.jsxs(_n,{title:s("fileBrowser.renameFile.modalTitle"),open:at,onCancel:Zm,onOk:()=>gu(E,S.current&&S.current.input?S.current.input.value:M),okText:s("fileBrowser.renameFile.rename"),cancelText:s("fileBrowser.renameFile.cancel"),okButtonProps:{disabled:kQ},children:[f.jsx(Sn,{message:s("fileBrowser.attention"),description:s("fileBrowser.renameFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),f.jsx("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:f.jsx(Gt.Item,{validateStatus:$e?"error":"",help:$e?s("inputValidator.invalidCharactersDetected",{invalidChar:Zp}):"",required:!0,children:f.jsx(Jt,{ref:S,type:"text",defaultValue:M,onChange:NQ,placeholder:M,status:$e?"error":""})})})]},"renameModal-"+We),MQ=()=>{_t(Ie=>Ie+1),et(!0)},v3=()=>{et(!1)},b3=()=>{Et(Ie=>[...Ie,...Mt]),et(!1),Vt([])},DQ=(Ie,Ce,Ve)=>{const gt=[];if(Ie.length>0)for(const $t of Ie){const Qt=Ie.find(cn=>cn.name===$t.name&&Du.some(Wr=>cn.name.toLowerCase().endsWith(Wr)));Qt&>.push({uid:B_(),name:Qt.name,path:Ce})}Vt(gt)},PQ=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[f.jsx(tt,{onClick:v3,children:s("tonies.selectFileModal.cancel")}),f.jsx(tt,{type:"primary",onClick:b3,children:s("tonies.selectFileModal.ok")})]}),LQ=f.jsx(_n,{className:"sticky-footer",title:s("tonies.selectFileModal.selectFile"),open:ft,onOk:b3,onCancel:v3,width:"auto",footer:PQ,children:f.jsx(jk,{special:"library",maxSelectedRows:H7-lt.length-1,trackUrl:!1,filetypeFilter:Du,onFileSelectChange:DQ},Xe)}),jQ=()=>{xe(!0),Le(!1),ht(Ce=>Ce+1),N(di.id);const Ie=[];for(const Ce of D){const Ve=T.find(gt=>gt.name===Ce&&Du.some($t=>gt.name.toLowerCase().endsWith($t)));Ve&&Ie.push({uid:B_(),name:Ve.name,path:E})}Et(Ie),bt(!0)},FQ=()=>{bt(!1),we(E),Et([])},BQ=async()=>{var $t,Qt;ct(!0);const Ie=(Qt=($t=x==null?void 0:x.current)==null?void 0:$t.input)==null?void 0:Qt.value,Ce="encoding-"+Ie;p(Ce,s("fileBrowser.encodeFiles.encoding"),s("fileBrowser.encodeFiles.encodingInProgress"));const Ve=In(k)+"/"+Ie+".taf",gt=lt.map(cn=>`source=${encodeURIComponent(cn.path+"/"+cn.name)}`).join("&")+`&target=${encodeURIComponent(Ve)}`;try{(await Fi.apiPostTeddyCloudRaw(`/api/fileEncode?special=${e}`,gt)).ok?(g(Ce),d(dt.Success,s("fileBrowser.encodeFiles.encodingSuccessful"),s("fileBrowser.encodeFiles.encodingSuccessfulDetails",{file:Ve}),s("fileBrowser.title")),bt(!1),N("1"),O([]),$(!_)):(g(Ce),d(dt.Error,s("fileBrowser.encodeFiles.encodingFailed"),s("fileBrowser.encodeFiles.encodingFailedDetails",{file:Ve}).replace(": ",""),s("fileBrowser.title")))}catch(cn){g(Ce),d(dt.Error,s("fileBrowser.encodeFiles.encodingFailed"),s("fileBrowser.encodeFiles.encodingFailedDetails",{file:Ve})+cn,s("fileBrowser.title"))}ct(!1)},zQ=sQ(Sx,{activationConstraint:{distance:10}}),HQ=({active:Ie,over:Ce})=>{Ie.id!==(Ce==null?void 0:Ce.id)&&Et(Ve=>{const gt=Ve.findIndex(Qt=>Qt.uid===Ie.id),$t=Ve.findIndex(Qt=>Qt.uid===(Ce==null?void 0:Ce.id));return Ex(Ve,gt,$t)})},UQ=Ie=>{const Ce=lt.indexOf(Ie),Ve=lt.slice();Ve.splice(Ce,1),Et(Ve)},VQ=()=>{Et(Ie=>[...Ie].sort((Ce,Ve)=>Ce.name.localeCompare(Ve.name)))},WQ=Ie=>{const Ce=Ie.target.value,Ve=!od(Ce.toString()),gt=lt.length>0&&!Ce.toString()||Ve;Le(Ve),He(gt),xe(Ce==="")},GQ=f.jsxs(_n,{title:s("fileBrowser.encodeFiles.modalTitle"),open:rt,onCancel:FQ,onOk:BQ,okText:s("fileBrowser.encodeFiles.encode"),cancelText:s("fileBrowser.encodeFiles.cancel"),zIndex:1e3,width:"auto",okButtonProps:{disabled:Ze||je||me||lt.length===0},children:[LQ,f.jsx(SQ,{sensors:[zQ],onDragEnd:HQ,children:f.jsxs(TQ,{items:lt.map(Ie=>Ie.uid),strategy:CQ,disabled:Ze,children:[f.jsx(tt,{disabled:Ze,onClick:MQ,children:s("fileBrowser.encodeFiles.addFiles")}),lt.map(Ie=>f.jsx(TGe,{originNode:f.jsx("div",{children:Ie.name}),onRemove:UQ,disabled:Ze,fileObjectList:lt,file:Ie},Ie.uid))]})}),f.jsx(Ha,{direction:"vertical",style:{display:"flex"},children:lt.length>0?f.jsxs(f.Fragment,{children:[f.jsx(Ha,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start"},children:f.jsx(tt,{type:"default",disabled:Ze,onClick:VQ,children:s("tonies.encoder.sortAlphabetically")})}),f.jsx(Wn,{}),f.jsx("div",{style:{width:"100%"},className:"encoder",children:f.jsxs(Ha,{direction:"vertical",style:{width:"100%"},children:[f.jsxs(Ha.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[f.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:s("tonies.encoder.saveAs")}),Xn,f.jsx(Ft,{title:s("fileBrowser.createDirectory.createDirectory"),children:f.jsx(tt,{disabled:Ze,icon:f.jsx(Bv,{}),onClick:()=>{we(In(k)),fr()},style:{borderRadius:0}})}),f.jsx(Jt,{ref:x,addonAfter:".taf",required:!0,status:je?"error":"",onChange:WQ,disabled:Ze})]}),$e?f.jsx("div",{style:{textAlign:"end",color:u.colorErrorText},children:s("inputValidator.invalidCharactersDetected",{invalidChar:Zp})}):""]})})]}):f.jsx(f.Fragment,{})})]},"encodeModal-"+Ot),qQ=()=>{ot(!0)},y3=()=>{kt([]),ot(!1)},KQ={name:"file",multiple:!0,fileList:wt,customRequest:async Ie=>{const{onSuccess:Ce,onError:Ve,file:gt}=Ie;Ce("Ok")},onChange(Ie){const{status:Ce,fileList:Ve}=Ie;Ce!=="uploading"&&(kt(Ve),console.log(Ie.file,Ie.fileList))},onDrop(Ie){console.log("Dropped files",Ie.dataTransfer.files)},onRemove:Ie=>{kt(Ce=>Ce.filter(Ve=>Ve.uid!==Ie.uid))}},YQ=async Ie=>{if(!Ie.length)return;nt(!0);let Ce=!1;const Ve="uploading-"+Ie.length+"-"+new Date;for(let gt=0;gtWr.filter(Mr=>Mr.uid!==$t.uid)),d(dt.Success,s("fileBrowser.upload.uploadedFile"),s("fileBrowser.upload.uploadSuccessfulForFile",{file:$t.name}),s("fileBrowser.title"))):(Ce=!0,kt(Wr=>Wr.map(Mr=>Mr.uid===$t.uid?{...Mr,status:"Failed"}:Mr)),d(dt.Error,s("fileBrowser.upload.uploadedFileFailed"),s("fileBrowser.upload.uploadFailedForFile",{file:$t.name}),s("fileBrowser.title")))}catch{Ce=!0,d(dt.Error,s("fileBrowser.upload.uploadedFileFailed"),s("fileBrowser.upload.uploadFailedForFile",{file:$t.name}),s("fileBrowser.title")),kt(Wr=>Wr.map(Mr=>Mr.uid===$t.uid?{...Mr,status:"Failed"}:Mr))}}g(Ve),Ce?($(!_),d(dt.Error,s("fileBrowser.upload.uploadFailed"),s("fileBrowser.upload.uploadFailed"),s("fileBrowser.title"))):($(!_),ot(!1),d(dt.Success,s("fileBrowser.upload.uploadSuccessful"),s("fileBrowser.upload.uploadSuccessfulDetails"),s("fileBrowser.title"))),nt(!1)},XQ=f.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[f.jsx(tt,{onClick:y3,children:s("fileBrowser.upload.cancel")}),f.jsx(tt,{type:"primary",onClick:()=>YQ(wt),loading:xt,disabled:wt.length===0||xt,children:s(xt?"fileBrowser.upload.uploading":"fileBrowser.upload.upload")})]}),ZQ=f.jsx(_n,{className:"sticky-footer",title:s("fileBrowser.upload.modalTitle"),open:Qe,onCancel:y3,footer:XQ,children:f.jsx("div",{style:{width:"100%",marginBottom:8},children:f.jsxs(Bd.Dragger,{...KQ,style:{width:"100%",marginBottom:8},children:[f.jsx("p",{className:"ant-upload-drag-icon",children:f.jsx(FN,{})}),f.jsx("p",{className:"ant-upload-text",children:s("fileBrowser.upload.uploadText")}),f.jsx("p",{className:"ant-upload-hint",children:s("fileBrowser.upload.uploadHint")})]})})}),x3=(Ie,Ce,Ve)=>{const gt="migrating-"+Ie;try{p(gt,s("fileBrowser.messages.migrationOngoing"),s("fileBrowser.messages.migrationOngoingDetails",{ruid:Ie}));const $t=`ruid=${Ie}&libroot=${Ce}`;Fi.apiPostTeddyCloudRaw("/api/migrateContent2Lib",$t,Ve).then(Qt=>Qt.text()).then(Qt=>{g(gt),Qt==="OK"?(d(dt.Success,s("fileBrowser.messages.migrationSuccessful"),s("fileBrowser.messages.migrationSuccessfulDetails",{ruid:Ie}),s("fileBrowser.title")),$(cn=>!cn)):d(dt.Success,s("fileBrowser.messages.migrationFailed"),s("fileBrowser.messages.migrationFailedDetails",{ruid:Ie}).replace(": ",""),s("fileBrowser.title"))}).catch(Qt=>{g(gt),d(dt.Success,s("fileBrowser.messages.migrationFailed"),s("fileBrowser.messages.migrationFailedDetails",{ruid:Ie})+Qt,s("fileBrowser.title"))})}catch($t){g(gt),d(dt.Success,s("fileBrowser.messages.migrationFailed"),s("fileBrowser.messages.migrationFailedDetails",{ruid:Ie})+$t,s("fileBrowser.title"))}},QQ=Ie=>{z(Ie.target.value),h.current=Ie.target.selectionStart,H(!0)},JQ=()=>{z(""),h.current=0},eJ=()=>{H(!0)},tJ=()=>{H(!1)},nJ=Ie=>D.includes(Ie.key)?"highlight-row":"",rJ=Ie=>{O(Ie)},aJ=Ie=>{At(!0);const Ce=Ie===".."?E.split("/").slice(0,-1).join("/"):`${E}/${Ie}`;a&&m(`?path=${Ce}`),H(!1),O([]),I(Ce)},S3=(Ie,Ce)=>Ce.reduce((Ve,gt)=>{if(Ve&&Ve[gt]!==void 0)return Ve[gt]},Ie),w3=(Ie,Ce,Ve)=>{const gt=Array.isArray(Ve)?S3(Ie,Ve):Ie[Ve],$t=Array.isArray(Ve)?S3(Ce,Ve):Ce[Ve];return gt===void 0&&$t===void 0?0:gt===void 0?1:$t===void 0?-1:typeof gt=="string"&&typeof $t=="string"?gt.localeCompare($t):typeof gt=="number"&&typeof $t=="number"?gt-$t:(console.log("Unsupported types for sorting:",Ie,Ce),console.log("Unsupported types for sorting field:",Ve,gt,$t),0)},oJ=(Ie,Ce)=>Ie.isDir===Ce.isDir?w3(Ie,Ce,"name"):Ie.isDir?-1:1,iJ=Ie=>Ie>0&&Ie<=H7;var Yl=[{title:f.jsx("div",{style:{minHeight:32}}),dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(Ie,Ce)=>{var Ve,gt;return f.jsxs(f.Fragment,{children:[Ce&&((Ve=Ce.tonieInfo)!=null&&Ve.picture)?f.jsx(f.Fragment,{children:f.jsx("img",{src:Ce.tonieInfo.picture,alt:s("tonies.content.toniePicture"),onClick:()=>Zt(Ce),style:{width:100,cursor:!Ce.isDir&&((gt=Ce==null?void 0:Ce.tonieInfo)!=null&>.tracks)?"help":"default"}},`picture-${Ce.name}`)}):f.jsx(f.Fragment,{}),Ce.hide?f.jsx("div",{style:{textAlign:"center"},children:f.jsx(Lg,{bordered:!1,color:"warning",children:s("fileBrowser.hidden")})}):""]})},showOnDirOnly:!1},{title:s("fileBrowser.name"),dataIndex:"name",key:"name",sorter:oJ,defaultSortOrder:"ascend",render:(Ie,Ce)=>{var Ve,gt,$t,Qt,cn;return Ce&&f.jsxs("div",{children:[f.jsxs("div",{className:"showSmallDevicesOnly",children:[f.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[f.jsxs("div",{style:{display:"flex"},children:[Ce.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:Ce.isDir?"normal":"break-word"},children:Ce.isDir?f.jsx(f.Fragment,{children:Ce.name}):Ce.name})]}),!Ce.isDir&&Ce.size?" ("+ad(Ce.size)+")":""]}),f.jsx("div",{children:(Ve=Ce.tonieInfo)==null?void 0:Ve.model}),f.jsx("div",{style:{wordBreak:Ce.isDir?"normal":"break-word"},children:((gt=Ce.tonieInfo)!=null&>.series?($t=Ce.tonieInfo)==null?void 0:$t.series:"")+((Qt=Ce.tonieInfo)!=null&&Qt.episode?" - "+((cn=Ce.tonieInfo)==null?void 0:cn.episode):"")}),f.jsx("div",{children:!Ce.isDir&&new Date(Ce.date*1e3).toLocaleString()})]}),f.jsxs("div",{className:"showMediumDevicesOnly",children:[f.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[f.jsxs("div",{style:{display:"flex"},children:[Ce.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:Ce.isDir?"normal":"break-word"},children:Ce.isDir?f.jsx(f.Fragment,{children:Ce.name}):Ce.name})]}),!Ce.isDir&&Ce.size?" ("+ad(Ce.size)+")":""]}),f.jsx("div",{children:!Ce.isDir&&new Date(Ce.date*1e3).toLocaleString()})]}),f.jsx("div",{className:"showBigDevicesOnly",children:f.jsxs("div",{style:{display:"flex"},children:[Ce.isDir?f.jsx(Ic,{style:{marginRight:8}}):"",f.jsx("div",{style:{wordBreak:Ce.isDir?"normal":"break-word"},children:Ce.isDir?f.jsx(f.Fragment,{children:Ce.name}):Ce.name})]})})]},`name-${Ce.name}`)},filteredValue:[B],onFilter:(Ie,Ce)=>{var gt,$t,Qt,cn;const Ve=Ie.toLowerCase();return Ce.name===".."||Ce.name.toLowerCase().includes(Ve)||!Ce.isDir&&"tafHeader"in Ce&&Ce.tafHeader.size&&ad(Ce.tafHeader.size).toString().includes(Ve)||"tafHeader"in Ce&&((gt=Ce.tafHeader.audioId)==null?void 0:gt.toString().includes(Ve))||"tonieInfo"in Ce&&(($t=Ce.tonieInfo)==null?void 0:$t.model.toLowerCase().includes(Ve))||"tonieInfo"in Ce&&((Qt=Ce.tonieInfo)==null?void 0:Qt.series.toLowerCase().includes(Ve))||"tonieInfo"in Ce&&((cn=Ce.tonieInfo)==null?void 0:cn.episode.toLowerCase().includes(Ve))},showOnDirOnly:!0},{title:s("fileBrowser.size"),dataIndex:"size",key:"size",render:(Ie,Ce)=>f.jsx("div",{children:Ce.isDir?"":ad(Ie)},`size-${Ce.name}`),showOnDirOnly:!1,responsive:["xl"]},{title:s("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(Ie,Ce)=>{var Ve;return f.jsx("div",{children:(Ve=Ce.tonieInfo)==null?void 0:Ve.model},`model-${Ce.name}`)}},{title:f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[s("fileBrowser.model"),"/",s("fileBrowser.series"),"/",s("fileBrowser.episode")]}),f.jsx("div",{className:"showBigDevicesOnly",children:s("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(Ie,Ce)=>{var Ve,gt,$t,Qt,cn,Wr,Mr;return f.jsxs("div",{children:[f.jsxs("div",{className:"showMediumDevicesOnly",children:[f.jsx("div",{children:(Ve=Ce.tonieInfo)==null?void 0:Ve.model}),f.jsx("div",{style:{wordBreak:"break-word"},children:((gt=Ce.tonieInfo)!=null&>.series?($t=Ce.tonieInfo)==null?void 0:$t.series:"")+((Qt=Ce.tonieInfo)!=null&&Qt.episode?" - "+((cn=Ce.tonieInfo)==null?void 0:cn.episode):"")})]}),f.jsx("div",{className:"showBigDevicesOnly",children:(Wr=Ce.tonieInfo)!=null&&Wr.series?(Mr=Ce.tonieInfo)==null?void 0:Mr.series:""})]},`series-${Ce.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:s("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(Ie,Ce)=>{var Ve;return f.jsx("div",{children:(Ve=Ce.tonieInfo)==null?void 0:Ve.episode},`episode-${Ce.name}`)}},{title:s("fileBrowser.date"),dataIndex:"date",key:"date",render:(Ie,Ce)=>f.jsx("div",{children:new Date(Ie*1e3).toLocaleString()},`date-${Ce.name}`),showOnDirOnly:!0,responsive:["xl"]},{title:f.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:s("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(Ie,Ce)=>{let Ve=[];return Ce.tafHeader?(Ve.push(f.jsx(Ft,{title:s("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>c(encodeURI("/content"+E+"/"+Ce.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:""),Ce.tonieInfo,{...Ce,audioUrl:encodeURI("/content"+E+"/"+Ce.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:"")})})},`action-play-${Ce.name}`)),e!=="library"&&(Ve.push(f.jsx(Ft,{title:s("fileBrowser.migrateContentToLib"),children:f.jsx(uK,{onClick:()=>x3(E.replace("/","")+Ce.name,!1,r),style:{margin:"4px 8px 4px 0",padding:4}})},`action-migrate-${Ce.name}`)),Ve.push(f.jsx(Ft,{title:s("fileBrowser.migrateContentToLibRoot"),children:f.jsx(SK,{onClick:()=>x3(E.replace("/","")+Ce.name,!0,r),style:{margin:"4px 8px 4px 0",padding:4}})},`action-migrate-root-${Ce.name}`)))):Du.some(gt=>Ce.name.endsWith(gt))&&Ve.push(f.jsx(Ft,{title:s("fileBrowser.playFile"),children:f.jsx(Eo,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>c(encodeURI("/content"+E+"/"+Ce.name)+"?special="+e+(r?`&overlay=${r}`:""),Ce.tonieInfo)})},`action-play-${Ce.name}`)),n&&Ce.name.includes(".tap")&&(Ve.push(f.jsx(Ft,{title:s("fileBrowser.tap.edit"),children:f.jsx(Ml,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>Sr(E+"/"+Ce.name)})},`action-edit-${Ce.name}`)),Ve.push(f.jsx(Ft,{title:s("fileBrowser.tap.copy"),children:f.jsx(Ly,{style:{margin:"4px 8px 4px 0",padding:4}})},`action-copy-${Ce.name}`))),Ce.tafHeader&&Ve.push(f.jsx(Ft,{title:s("fileBrowser.tafMeta.edit"),children:f.jsx(Ml,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>Ar()})},`action-edit-${Ce.name}`)),e==="library"&&(!Ce.isDir&&Ce.name!==".."&&Ve.push(f.jsx(Ft,{title:s("fileBrowser.rename"),children:f.jsx(fK,{onClick:()=>kf(Ce.name),style:{margin:"4px 8px 4px 0",padding:4}})},`action-rename-${Ce.name}`)),!Ce.isDir&&Ce.name!==".."&&Ve.push(f.jsx(Ft,{title:s("fileBrowser.move"),children:f.jsx(Zb,{onClick:()=>Pt(Ce.name),style:{margin:"4px 8px 4px 0",padding:4}})},`action-move-${Ce.name}`))),Ce.name!==".."&&Ve.push(f.jsx(Ft,{title:s("fileBrowser.delete"),children:f.jsx(Al,{onClick:()=>Kt(Ce.name,E+"/"+Ce.name,"?special="+e+(r?`&overlay=${r}`:"")),style:{margin:"4px 8px 4px 0",padding:4}})},`action-delete-${Ce.name}`)),Ve},showOnDirOnly:!1}];Yl.forEach(Ie=>{Ie.hasOwnProperty("sorter")||(Ie.sorter=(Ce,Ve)=>w3(Ce,Ve,Ie.dataIndex))}),o&&(Yl=Yl.filter(Ie=>Ie.showOnDirOnly)),i&&(Yl=Yl.filter(Ie=>typeof Ie.key=="string"?i.includes(Ie.key):!1));const sJ=yt?"":f.jsx(Yr,{image:Yr.PRESENTED_IMAGE_SIMPLE});return f.jsxs(f.Fragment,{children:[f.jsx(Gd,{title:s("fileBrowser.confirmDeleteModal"),open:Me,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmDeleteDialog",{fileToDelete:ne}),handleOk:St,handleCancel:pt}),f.jsx(Gd,{title:s("fileBrowser.confirmDeleteModal"),open:st,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmMultipleDeleteDialog"),handleOk:Gn,handleCancel:pt}),It,zn,pu,ZQ,Hs,AQ,GQ,mn&&f.jsx(RGe,{isHelpModalOpen:mn,onClose:()=>pn(!1)}),ee?f.jsx(Xy,{open:K,tonieCardOrTAFRecord:{...ee,audioUrl:W},onClose:()=>Y(!1),overlay:r}):"",f.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[f.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[f.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:s("tonies.currentPath")}),An(E,tn)]}),f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",marginBottom:8,minHeight:32},children:[e==="library"?f.jsx("div",{style:{width:"100%"},children:f.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8,minHeight:32},children:[D.length>0?f.jsxs(f.Fragment,{children:[e==="library"&&T.filter(Ie=>D.includes(Ie.name)&&!Ie.isDir).length>0?f.jsx(Ft,{title:s("fileBrowser.moveMultiple"),children:f.jsx(tt,{size:"small",icon:f.jsx(Zb,{}),onClick:()=>Pt(""),disabled:D.length===0,children:f.jsxs("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:[" ",s("fileBrowser.move")]})})},"moveMultiple"):"",f.jsx(Ft,{title:s("fileBrowser.deleteMultiple"),children:f.jsx(tt,{size:"small",icon:f.jsx(Al,{}),onClick:ln,disabled:D.length===0,children:f.jsxs("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:[" ",s("fileBrowser.delete")]})})},"deleteMultiple"),iJ(T.filter(Ie=>D.includes(Ie.name)&&Du.some(Ce=>Ie.name.toLowerCase().endsWith(Ce))).length)&&e==="library"?f.jsx(Ft,{title:s("fileBrowser.encodeFiles.encodeFiles")+Du.join(", "),children:f.jsx(tt,{size:"small",icon:f.jsx(Xb,{}),onClick:jQ,disabled:D.length===0,children:f.jsxs("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:[" ",s("fileBrowser.encodeFiles.encode")]})})},"encodeFiles"):""]}):f.jsx(f.Fragment,{}),f.jsx(tt,{icon:f.jsx(Bv,{}),size:"small",onClick:fr,children:f.jsx("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:s("fileBrowser.createDirectory.createDirectory")})}),f.jsx(tt,{icon:f.jsx(wK,{}),size:"small",onClick:qQ,children:f.jsx("div",{className:"showBigDevicesOnly showMediumDevicesOnly",children:s("fileBrowser.upload.showUploadFilesDragNDrop")})})]})}):f.jsx("div",{}),f.jsx("div",{children:f.jsx(tt,{size:"small",icon:f.jsx(Dg,{}),onClick:()=>pn(!0),style:{marginLeft:8},children:s("fileBrowser.help.showHelp")})})]})]}),f.jsxs("div",{className:"test",style:{position:"relative"},ref:jt,children:[yt?f.jsx(MX,{parentRef:jt}):"",f.jsx(xa,{dataSource:T,columns:Yl,rowKey:Ie=>Ie.name,pagination:!1,onRow:Ie=>({onDoubleClick:()=>{Ie.isDir?aJ(Ie.name):Ie.name.includes(".json")||Ie.name.includes(".tap")?Rt(E+"/"+Ie.name):Ie.tafHeader&&Dt(Ie.name,Ie.tafHeader)},style:{cursor:Ie.isDir?"context-menu":"unset"}}),rowClassName:nJ,rowSelection:{selectedRowKeys:D,onChange:rJ,getCheckboxProps:Ie=>({disabled:Ie.name===".."}),onSelectAll:(Ie,Ce)=>{const Ve=Ie?Ce.filter(gt=>gt.name!=="..").map(gt=>gt.name):[];O(Ve)}},components:{header:{wrapper:Ie=>f.jsx("thead",{...Ie}),row:Ie=>f.jsxs(f.Fragment,{children:[f.jsx("tr",{...Ie}),f.jsx("tr",{children:f.jsx("th",{style:{padding:"10px 8px"},colSpan:Yl.length+1,children:f.jsx(Jt,{placeholder:s("fileBrowser.filter"),value:B,onChange:QQ,onFocus:eJ,onBlur:tJ,ref:v,style:{width:"100%"},autoFocus:U,addonAfter:f.jsx(ga,{onClick:JQ,disabled:B.length===0,style:{color:B.length===0?u.colorTextDisabled:u.colorText,cursor:B.length===0?"default":"pointer"}})})})})]}),cell:Ie=>f.jsx("th",{...Ie,style:{position:"sticky",top:0,zIndex:8}})}},locale:{emptyText:sJ}})]}),f.jsx($Q,{open:le,initialValuesJson:Z?JSON.stringify(Z,null,2):void 0,onCreate:wr,onCancel:()=>{fe(!1)}},te)]})},ZI=new Dn(On()),h3=e=>{const[t,n]=l.useState([]),[r,a]=l.useState(()=>{if(e!==void 0){if(e!==null)return localStorage.setItem("contentOverlay",e),e;{const i=localStorage.getItem("contentOverlay");return i||""}}else{const i=localStorage.getItem("contentOverlay");return i||""}});return l.useEffect(()=>{(async()=>{const s=await ZI.apiGetTonieboxesIndex(),u=(await Promise.all(s.map(async m=>[await ZI.apiGetTonieboxContentDir(m.ID),m.boxName,m.ID]))).reduce((m,[h,b,x])=>{const S=m.findIndex(v=>v[0]===h);return S!==-1?(m[S][1].push(b),r===x&&a(m[S][2])):m.push([h,[b],x]),m},[]),d=await ZI.apiGetTonieboxContentDir("");u.findIndex(m=>m[0]===d)===-1&&u.push(["",["TeddyCloud Default Content Dir"],""]);const g=u.map(([m,h,b])=>[m,h,b]);if(r===""||r===null||r===void 0){const m=g.length>0?g[0][2]:"";a(m),localStorage.setItem("contentOverlay",m)}n(g)})()},[]),{tonieBoxContentDirs:t,overlay:r,handleContentOverlayChange:i=>{a(i),localStorage.setItem("contentOverlay",i)}}},{Option:$Ge}=cr,OGe=()=>{const{t:e}=Nt(),t=ii(),r=new URLSearchParams(t.search).get("overlay"),{tonieBoxContentDirs:a,overlay:o,handleContentOverlayChange:i}=h3(r);return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.content.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",flexWrap:"wrap",gap:8,alignItems:"center",marginBottom:8},children:[f.jsx("h1",{children:e("tonies.content.title")}),a.length>1?f.jsx(cr,{id:"contentDirectorySelect",defaultValue:"",onChange:i,style:{maxWidth:"300px"},value:o,title:e("tonies.content.showToniesOfBoxes"),children:a.map(([s,c,u])=>f.jsx($Ge,{value:u,children:c.join(", ")},u))}):""]}),f.jsx(m3,{special:"",overlay:o})]})]})]})},{Text:NGe}=xn,kGe=({originNode:e,fileList:t,file:n,onRemove:r,disabled:a})=>{const{attributes:o,listeners:i,setNodeRef:s,transform:c,transition:u,isDragging:d}=_Q({id:n.uid}),{t:p}=Nt(),g={transform:Zd.Transform.toString(c),transition:u,cursor:"move"};return f.jsx("div",{ref:s,style:g,className:d?"is-dragging":"",...o,...i,children:f.jsxs("div",{className:"ant-upload-list-item ant-upload-list-item-undefined",children:[f.jsx("div",{className:"ant-upload-list-item-thumbnail ant-upload-list-item-file",children:f.jsxs("span",{role:"img","aria-label":"file",className:"anticon anticon-file",children:[t.indexOf(n)+1,"."]})}),f.jsxs("span",{className:"ant-upload-list-item-name",title:n.name,children:[f.jsx("span",{className:"",children:n.name}),f.jsx("br",{}),f.jsx(NGe,{type:"secondary",children:ad(n.size?n.size:-1)})]}),f.jsx("span",{className:"ant-upload-list-item-actions picture",children:f.jsx(tt,{title:p("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:f.jsx(Al,{})})})]})})};function AGe(e,t,n,r,a,o){const i=new FileReader;i.onload=async s=>{try{if(s.target==null)return;const c=s.target.result,u=new AudioContext,d=48e3,p=await u.decodeAudioData(c),g=new OfflineAudioContext({numberOfChannels:p.numberOfChannels,length:Math.round(p.length*d/p.sampleRate),sampleRate:d}),m=g.createBufferSource();m.buffer=p,m.connect(g.destination),m.start();const h=await g.startRendering(),b=h.numberOfChannels,x=new Float32Array(h.getChannelData(0)),S=b>1?new Float32Array(h.getChannelData(1)):new Float32Array(h.getChannelData(0)),v=new Int16Array(x.length+S.length);for(let y=0,w=0;y{t("Failed to read the file")},a.file&&i.readAsArrayBuffer(a.file)}const MGe=e=>Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),uv=new Dn($n()),{useToken:DGe}=kr,Pu={id:"1",pId:"-1",value:"1",title:"/"},PGe=()=>{const{t:e}=Nt(),{token:t}=DGe(),{addNotification:n,addLoadingNotification:r,closeLoadingNotification:a}=Qn(),[o,i]=l.useState(!1),[s,c]=l.useState([]),[u,d]=l.useState(!1),[p,g]=l.useState(!1),[m,h]=l.useState(""),[b,x]=l.useState(Pu.id),[S,v]=l.useState([Pu]),[y,C]=l.useState(!1),[w,E]=l.useState(""),[I,T]=l.useState(!1),[R,_]=l.useState(!1),$=l.useRef(null);let M=0;l.useEffect(()=>{(async()=>{const q=new Dn($n());let Z=!1;try{const Q=await q.apiGetTeddyCloudSettingRaw("debug.web.pcm_encode_console_url");if(!Q.ok)throw new Error(`HTTP error! status: ${Q.status}`);Z=(await Q.json()).toString()==="true"}catch(Q){console.error("Error fetching debug.web.pcm_encode_console_url: ",Q)}i(Z)})(),(async()=>{const q=j(Pu.id);uv.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${q}&special=library`).then(Z=>Z.json()).then(Z=>{var Q=Z.files;Q=Q.filter(ee=>ee.isDir&&ee.name!=="..").sort((ee,oe)=>ee.name===oe.name?0:ee.name.toLowerCase()>oe.name.toLowerCase()?1:-1).map(ee=>({id:Pu.id+"."+Q.indexOf(ee),pId:Pu.id,value:Pu.id+"."+Q.indexOf(ee),title:ee.name})),v(S.concat(Q))})})()},[]),l.useEffect(()=>{y&&setTimeout(()=>{$.current&&$.current.focus()},0)},[y]),l.useEffect(()=>{M=s.length},[s]);const P=sQ(yx,{activationConstraint:{distance:10}}),D=({active:ne,over:W})=>{ne.id!==(W==null?void 0:W.id)&&c(q=>{const Z=q.findIndex(ee=>ee.uid===ne.id),Q=q.findIndex(ee=>ee.uid===(W==null?void 0:W.id));return Cx(q,Z,Q)})},O=({fileList:ne})=>{M++,M>Yh&&n(dt.Error,e("tonies.encoder.tooManyFilesError"),e("tonies.encoder.maxFiles",{maxFiles:Yh}),e("tonies.title"));const W=ne.slice(0,Yh);if(W.length===1&&m===""){const Z=W[0].name.replace(/\.[^/.]+$/,"");h(Z)}c(W)},k=ne=>{const W=s.indexOf(ne),q=s.slice();q.splice(W,1),c(q)},N=async()=>{d(!0);const ne=new FormData,W="encoding-"+m+".taf";r(W,e("tonies.encoder.uploading"),e("tonies.encoder.uploading"));for(const ee of s){r(W,e("tonies.encoder.uploading"),e("tonies.encoder.uploadingDetails",{file:ee.name}));try{await new Promise((oe,se)=>AGe(oe,se,ne,s,ee,o))}catch(oe){n(dt.Error,e("tonies.encoder.processingError"),e("tonies.encoder.errorFileProcessing")+oe,e("tonies.title")),a(W),d(!1);return}}const q=Math.floor(Date.now()/1e3),Z={name:m+".taf",audioId:q-1342177280,path:j(b),special:"library"};g(!0);const Q=MGe(Z);try{r(W,e("tonies.encoder.processing"),e("tonies.encoder.processingDetails",{file:m+".taf"}));const ee=await uv.apiPostTeddyCloudFormDataRaw(`/api/pcmUpload?${Q}`,ne);a(W),ee.ok?(n(dt.Success,e("tonies.encoder.uploadSuccessful"),e("tonies.encoder.uploadSuccessfulDetails",{file:m+".taf"}),e("tonies.title")),c([]),h("")):n(dt.Error,e("tonies.encoder.uploadFailed"),e("tonies.encoder.uploadFailedDetails")+ee.statusText,e("tonies.title")),g(!1),d(!1)}catch(ee){a(W),n(dt.Error,e("tonies.encoder.uploadFailed"),e("tonies.encoder.uploadFailedDetails")+ee,e("tonies.title")),g(!1),d(!1)}},A={listType:"picture",multiple:!0,beforeUpload:ne=>{const W=ne;return W.file=ne,s.push(W),c(s),!1},fileList:s,onChange:O,itemRender:(ne,W)=>f.jsx(kGe,{originNode:ne,fileList:s,file:W,onRemove:k,disabled:u})},L=({id:ne})=>new Promise((W,q)=>{const Z=j(ne);uv.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${Z}&special=library`).then(Q=>Q.json()).then(Q=>{let ee=Q.files;ee=ee.filter(oe=>oe.isDir&&oe.name!=="..").sort((oe,se)=>oe.name===se.name?0:oe.name.toLowerCase()>se.name.toLowerCase()?1:-1).map(oe=>({id:ne+"."+ee.indexOf(oe),pId:ne,value:ne+"."+ee.indexOf(oe),title:oe.name})),v(S.concat(ee)),W(!0)}).then(()=>{q()})}),j=ne=>{const W=S.filter(q=>q.value===ne)[0];return W.pId==="-1"?"":j(S.filter(q=>q.id===W.pId)[0].id)+"/"+W.title},F=()=>{c(ne=>[...ne].sort((W,q)=>W.name.localeCompare(q.name)))},B=()=>{c([])},z=()=>{C(!0)},U=ne=>{_(!od(ne.target.value.toString())),E(ne.target.value)},H=()=>{const ne=j(b),W=`${b}.${S.length}`,q={id:W,pId:b,value:W,title:w};try{uv.apiPostTeddyCloudRaw("/api/dirCreate?special=library",ne+"/"+w).then(Z=>Z.text()).then(Z=>{if(Z!=="OK")throw new Error(Z);v([...S,q].sort((Q,ee)=>Q.title===ee.title?0:Q.title.toLowerCase()>ee.title.toLowerCase()?1:-1)),x(W),n(dt.Success,e("fileBrowser.createDirectory.directoryCreated"),e("fileBrowser.createDirectory.directoryCreatedDetails",{directory:ne+"/"+w}),e("fileBrowser.title")),C(!1),E("")}).catch(Z=>{n(dt.Error,e("fileBrowser.createDirectory.directoryCreateFailed"),e("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:ne+"/"+w})+Z,e("fileBrowser.title"))})}catch(Z){n(dt.Error,e("fileBrowser.createDirectory.directoryCreateFailed"),e("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:ne+"/"+w})+Z,e("fileBrowser.title"))}},Y=()=>{C(!1),E(""),_(!1)},K=f.jsxs(Rn,{title:e("fileBrowser.createDirectory.modalTitle"),open:y,onCancel:Y,onOk:H,okText:e("fileBrowser.createDirectory.create"),cancelText:e("fileBrowser.createDirectory.cancel"),okButtonProps:{disabled:R},children:[f.jsxs("p",{children:[e("fileBrowser.createDirectory.inDirectory")," ",f.jsxs("b",{children:[j(b),"/"]})]}),f.jsx(Kt.Item,{validateStatus:R?"error":"",help:R?e("inputValidator.invalidCharactersDetected",{invalidChar:Xp}):"",required:!0,children:f.jsx(Jt,{ref:$,autoFocus:!0,placeholder:e("fileBrowser.createDirectory.placeholder"),value:w,status:R?"error":"",onChange:U})})]}),J=ne=>{const W=ne.target.value;T(!od(W)),h(W)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.encoder.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonies.encoder.title")}),f.jsxs(Ha,{direction:"vertical",style:{display:"flex"},children:[f.jsx(SQ,{sensors:[P],onDragEnd:D,children:f.jsx(TQ,{items:s.map(ne=>ne.uid),strategy:wQ,disabled:u,children:f.jsxs(Bd.Dragger,{...A,disabled:u,children:[f.jsx("p",{className:"ant-upload-drag-icon",children:f.jsx(FN,{})}),f.jsx("p",{className:"ant-upload-text",children:e("tonies.encoder.uploadText",{maxFiles:Yh})}),f.jsx("p",{className:"ant-upload-hint",children:e("tonies.encoder.uploadHint")})]})})}),s.length>0?f.jsxs(f.Fragment,{children:[f.jsxs(Ha,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start",flexWrap:"wrap"},children:[f.jsx(nt,{type:"default",disabled:u,onClick:F,children:e("tonies.encoder.sortAlphabetically")}),f.jsx(nt,{type:"default",disabled:u,style:{marginRight:16},onClick:B,children:e("tonies.encoder.clearList")})]}),f.jsx(Vn,{}),f.jsx("div",{style:{width:"100%"},className:"encoder",children:f.jsxs(Ha,{direction:"vertical",style:{width:"100%"},children:[f.jsxs(Ha.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[f.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:e("tonies.encoder.saveAs")}),f.jsx(Gl,{treeLine:!0,treeDataSimpleMode:!0,disabled:u,style:{maxWidth:250},value:b,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:x,loadData:L,treeData:S}),f.jsx(Wt,{title:e("fileBrowser.createDirectory.createDirectory"),children:f.jsx(nt,{disabled:u,icon:f.jsx(jv,{}),onClick:z,style:{borderRadius:0}})}),f.jsx(Jt,{addonAfter:".taf",required:!0,defaultValue:m,style:{maxWidth:300},status:s.length>0&&m===""||I?"error":"",onChange:J,disabled:u})]}),I?f.jsx("div",{style:{textAlign:"end",color:t.colorErrorText},children:e("inputValidator.invalidCharactersDetected",{invalidChar:Xp})}):"",f.jsx(Ha.Compact,{style:{display:"flex",justifyContent:"flex-end",marginTop:"8px"},children:f.jsx(nt,{type:"primary",onClick:N,disabled:s.length===0||m===""||I,loading:u,children:e(u?p?"tonies.encoder.processing":"tonies.encoder.uploading":"tonies.encoder.upload")})})]})})]}):f.jsx(f.Fragment,{})]})]})]}),K]})},LGe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.library.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonies.library.title")}),f.jsx(m3,{special:"library"})]})]})]})},jGe=new Dn($n()),{Option:FGe}=cr,BGe=()=>{const{t:e}=Nt(),{addNotification:t}=Qn(),n=oi(),a=new URLSearchParams(n.search).get("overlay"),{tonieBoxContentDirs:o,overlay:i,handleContentOverlayChange:s}=h3(a),[c,u]=l.useState([]),[d,p]=l.useState(!0);return l.useEffect(()=>{(async()=>{p(!0);try{const m=await jGe.apiGetTagIndex(i||"");u(m.sort((h,b)=>h.tonieInfo.seriesb.tonieInfo.series?1:h.tonieInfo.episodeb.tonieInfo.episode?1:0))}catch(m){t(dt.Error,e("tonies.errorFetchingSystemSounds"),e("tonies.errorFetchingSystemSounds")+": "+m,e("tonies.navigationTitle"))}finally{p(!1)}})()},[i]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.system-sounds.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",flexWrap:"wrap",gap:8,alignItems:"center",marginBottom:8},children:[f.jsx("h1",{children:e("tonies.system-sounds.title")}),o.length>1?f.jsx(cr,{id:"contentDirectorySelect",defaultValue:"",onChange:s,style:{maxWidth:"300px"},value:i,title:e("tonies.content.showToniesOfBoxes"),children:o.map(([g,m,h])=>f.jsx(FGe,{value:h,children:m.join(", ")},h))}):""]}),d?f.jsx(su,{}):f.jsx(Fk,{showFilter:!1,showPagination:!0,tonieCards:c.filter(g=>g.type==="system"),overlay:i,readOnly:!1})]})]})]})},{Paragraph:zGe}=xn,HGe=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),r=a=>{console.log("Received values of form: ",a),n(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.tap.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonies.tap.title")}),f.jsx(Cn,{message:e("settings.information"),description:f.jsx("div",{children:"Development still in progress - Please be patient or support implementation of this feature!"}),type:"info",showIcon:!0,style:{marginBottom:8}}),f.jsx(m3,{special:"library",filetypeFilter:[".tap"],showColumns:["picture","name","size","date","controls"],isTapList:!0}),f.jsx(zGe,{children:f.jsxs("div",{children:[f.jsx(nt,{type:"primary",style:{marginTop:8},onClick:()=>{n(!0)},children:e("tonies.tapEditor.titleCreate")}),f.jsx($Q,{open:t,onCreate:r,onCancel:()=>{n(!1)}})]})})]})]})]})},UGe=new Dn($n()),{Option:VGe}=cr,WGe=()=>{const{t:e}=Nt(),{addNotification:t}=Qn(),n=oi(),a=new URLSearchParams(n.search).get("overlay"),{tonieBoxContentDirs:o,overlay:i,handleContentOverlayChange:s}=h3(a),[c,u]=l.useState([]),[d,p]=l.useState(""),[g,m]=l.useState(!0),h=b=>{u(x=>x.map(S=>S.ruid===b.ruid?b:S))};return l.useEffect(()=>{(async()=>{m(!0);try{const x=(await UGe.apiGetTagIndex(i||"",!0)).filter(S=>!S.hide);u(x.sort((S,v)=>S.tonieInfo.seriesv.tonieInfo.series?1:S.tonieInfo.episodev.tonieInfo.episode?1:0))}catch(x){t(dt.Error,e("tonies.errorFetchingTonies"),e("tonies.errorFetchingTonies")+": "+x,e("tonies.navigationTitle")),console.log("error: fetching tonies failed: "+x)}finally{m(!1)}})()},[i]),l.useEffect(()=>{const b={};c.forEach(v=>{const y=v.tonieInfo.language;b[y]?b[y]++:b[y]=1});let x=0,S="";for(const v in b)b.hasOwnProperty(v)&&b[v]>x&&(x=b[v],S=v);p(S)},[c]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",flexWrap:"wrap",gap:8,alignItems:"center",marginBottom:8},children:[f.jsx("h1",{style:{width:"200px"},children:e("tonies.title")}),o.length>1?f.jsx(Wt,{title:e("tonies.content.showToniesOfBoxes"),children:f.jsx(cr,{id:"contentDirectorySelect",defaultValue:"",onChange:s,style:{maxWidth:"300px"},value:i,children:o.map(([b,x,S])=>f.jsx(VGe,{value:S,children:x.join(", ")},S))})}):""]}),g?f.jsx(su,{}):f.jsx(Fk,{showFilter:!0,showPagination:!0,tonieCards:c.filter(b=>b.type==="tag"),overlay:i,readOnly:!1,defaultLanguage:d,onToniesCardUpdate:h})]})]})]})},{Option:rc}=cr,{Paragraph:ap}=xn,{useToken:GGe}=kr,qGe=()=>{const{t:e}=Nt(),{token:t}=GGe(),{notifications:n,confirmNotification:r,clearAllNotifications:a,removeNotifications:o}=Qn(),[i,s]=l.useState(n),[c,u]=l.useState(!1),[d,p]=l.useState(!1),[g,m]=l.useState([]),[h,b]=l.useState(20),[x,S]=l.useState(1),[v,y]=l.useState(!0),[C,w]=l.useState([null,null]),[E,I]=l.useState(""),[T,R]=l.useState(""),[_,$]=l.useState([]),[M,P]=l.useState([]),[D,O]=l.useState([]);l.useEffect(()=>{const H=n.filter(Y=>{const K=(!C[0]||Y.date>=C[0])&&(!C[1]||Y.date<=C[1]),J=Y.title.toLowerCase().includes(E.toLowerCase()),ne=Y.description.toLowerCase().includes(T.toLowerCase()),W=_.length===0||_.includes(Y.type),q=M.length===0||M.includes(Y.context),Z=D.length===0||D.includes(Y.flagConfirmed?"Confirmed":"Unconfirmed");return K&&J&&ne&&W&&q&&Z});s(H)},[n,C,E,T,_,M,D]),l.useEffect(()=>{const H=()=>{p(window.innerWidth<1024),u(window.innerWidth<768)};return H(),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},[]);const k={success:f.jsx(of,{style:{color:t.colorSuccess}}),error:f.jsx(Hl,{style:{color:t.colorError}}),info:f.jsx(K0,{style:{color:t.colorInfo}}),warning:f.jsx(im,{style:{color:t.colorWarning}})},N=Array.from(new Set(n.map(H=>H.context))).filter(Boolean),A=[{title:e("settings.notifications.colType"),dataIndex:"type",key:"type",render:H=>f.jsxs("div",{style:{display:"flex",gap:8},children:[c?"":k[H],H.charAt(0).toUpperCase()+H.slice(1)]}),sorter:(H,Y)=>H.type.localeCompare(Y.type),ellipsis:!0},{title:e("settings.notifications.colTitle"),dataIndex:"title",key:"title",sorter:(H,Y)=>{const K=H.title||"",J=Y.title||"";return K.localeCompare(J)}},{title:e("settings.notifications.colDetails"),dataIndex:"description",key:"description",sorter:(H,Y)=>{const K=H.description||"",J=Y.description||"";return K.localeCompare(J)},responsive:["lg"]},{title:e("settings.notifications.colContext"),dataIndex:"context",key:"context",sorter:(H,Y)=>{const K=H.context||"",J=Y.context||"";return K.localeCompare(J)},width:90,onCell:()=>({style:{maxWidth:90}}),ellipsis:!0,responsive:["lg"]},{title:e("settings.notifications.colDate"),dataIndex:"date",key:"date",render:H=>H instanceof Date?c?H.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(",",""):H.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(",",""):"",sorter:(H,Y)=>{const K=new Date(H.date),J=new Date(Y.date);return K.getTime()-J.getTime()},ellipsis:!0},{title:e("settings.notifications.colStatus"),dataIndex:"flagConfirmed",key:"flagConfirmed",render:(H,Y)=>f.jsx("div",{style:{cursor:"pointer"},onClick:K=>{K.stopPropagation(),Y.flagConfirmed||r(Y.uuid)},children:Y.flagConfirmed?e("settings.notifications.confirmed"):f.jsx(Wt,{title:e("settings.notifications.clickToConfirm"),children:e("settings.notifications.unconfirmed")})}),sorter:(H,Y)=>Number(H.flagConfirmed)-Number(Y.flagConfirmed),responsive:["sm"]}],j={selectedRowKeys:g,onChange:H=>{console.log("selectedRowKeys changed: ",H),m(H)}},F=f.jsxs("div",{style:{marginBottom:16,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:16,alignItems:"start"},children:[f.jsxs(cr,{mode:"multiple",placeholder:e("settings.notifications.filterBy")+" "+e("settings.notifications.colType"),onChange:$,children:[f.jsx(rc,{value:"success",children:e("settings.notifications.success")}),f.jsx(rc,{value:"info",children:e("settings.notifications.info")}),f.jsx(rc,{value:"warning",children:e("settings.notifications.warning")}),f.jsx(rc,{value:"error",children:e("settings.notifications.error")})]}),f.jsx(cr,{mode:"multiple",placeholder:e("settings.notifications.filterBy")+" "+e("settings.notifications.colContext"),onChange:P,children:N.map(H=>f.jsx(rc,{value:H,children:H},H))}),f.jsxs(cr,{mode:"multiple",placeholder:e("settings.notifications.filterBy")+" "+e("settings.notifications.colStatus"),onChange:O,children:[f.jsx(rc,{value:"Confirmed",children:e("settings.notifications.confirmed")}),f.jsx(rc,{value:"Unconfirmed",children:e("settings.notifications.unconfirmed")})]}),f.jsx(hf.RangePicker,{onChange:H=>{w(H&&H[0]&&H[1]?[H[0].toDate(),H[1].toDate()]:[null,null])},placeholder:[e("settings.notifications.startDate"),e("settings.notifications.endDate")]}),f.jsx(Jt,{placeholder:e("settings.notifications.searchIn")+" "+e("settings.notifications.colTitle"),onChange:H=>I(H.target.value)}),f.jsx(Jt,{placeholder:e("settings.notifications.searchIn")+" "+e("settings.notifications.colDetails"),onChange:H=>R(H.target.value)})]}),B=[{key:"search-filter",label:e(v?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:F}],z=()=>{g.forEach(H=>{const Y=String(H);r(Y),m([])})},U=()=>{const H=g.map(Y=>String(Y));o(H)};return f.jsxs("div",{children:[f.jsx("h2",{children:e("settings.notifications.title")}),f.jsx(ap,{style:{width:"100%",marginBottom:16},children:f.jsx(Rs,{items:B,defaultActiveKey:v?[]:["search-filter"],onChange:()=>y(!v),bordered:!1,style:{width:"100%"}})}),f.jsxs(ap,{style:{display:"flex",gap:8,justifyContent:"space-between"},children:[g.length>0?f.jsxs(ap,{style:{display:"flex",gap:8},children:[f.jsx(nt,{onClick:U,children:e("settings.notifications.removeSelectedNotifications")}),f.jsx(nt,{onClick:z,children:e("settings.notifications.confirmSelectedNotifications")})," "]}):f.jsx(ap,{}),f.jsx(ap,{children:f.jsx(nt,{onClick:a,children:e("settings.notifications.removeAll")})})]}),f.jsx(ya,{tableLayout:"auto",size:"small",rowSelection:j,dataSource:i.map(H=>({uuid:H.uuid,type:H.type,title:H.title,description:H.description,context:H.context,date:H.date,flagConfirmed:H.flagConfirmed})),columns:A,pagination:{current:x,pageSize:h,showSizeChanger:!0,pageSizeOptions:[10,20,30,50],onChange:(H,Y)=>{S(H),b(Y)},locale:{items_per_page:e("settings.notifications.pageSelector")}},sticky:{offsetHeader:0},rowKey:"uuid",expandable:d?{expandedRowRender:H=>f.jsxs("div",{children:[f.jsxs("strong",{children:[e("settings.notifications.colDetails"),":"]})," ",H.description,H.context?f.jsxs("div",{children:[f.jsx("br",{}),f.jsxs("strong",{children:[e("settings.notifications.colContext"),":"]})," ",H.context," "]}):null,f.jsx("br",{}),c?f.jsxs("div",{children:[f.jsxs("strong",{children:[e("settings.notifications.colStatus"),":"]})," ",H.flagConfirmed?e("settings.notifications.confirmed"):f.jsx(Wt,{title:e("settings.notifications.clickToConfirm"),children:e("settings.notifications.unconfirmed")})]}):null]}),rowExpandable:H=>H.description!==void 0}:void 0})]})},KGe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Lm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.notifications.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.notifications.title")}),f.jsx(qGe,{})]})]})]})},{Paragraph:Ks}=xn,{useToken:YGe}=kr,XGe=()=>{const{t:e}=Nt(),{token:t}=YGe();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(js,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.supportRequestGuide.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.supportRequestGuide.title")}),f.jsx(Ks,{children:e("community.supportRequestGuide.intro")}),f.jsx(Vn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step1.title")}),f.jsx(Ks,{children:e("community.supportRequestGuide.step1.content")}),f.jsx(Vn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step2.title")}),f.jsx(Ks,{children:e("community.supportRequestGuide.step2.intro")}),f.jsx("ul",{children:e("community.supportRequestGuide.step2.list",{returnObjects:!0}).map((n,r)=>f.jsx("li",{children:n},r))}),f.jsx(Vn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step3.title")}),f.jsx("ul",{children:e("community.supportRequestGuide.step3.list",{returnObjects:!0}).map((n,r)=>f.jsx("li",{children:n},r))}),f.jsx(Vn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step4.title")}),f.jsx(Ks,{children:e("community.supportRequestGuide.step4.intro")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("community.supportRequestGuide.step4.listFirstEntry"),f.jsx(gn,{language:"shell",code:"docker logs -f teddycloud > teddycloud_logs.txt"})]}),e("community.supportRequestGuide.step4.list",{returnObjects:!0}).map((n,r)=>f.jsx("li",{children:n},r))]}),f.jsx(Vn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step5.title")}),f.jsx(Ks,{children:e("community.supportRequestGuide.step5.content")}),f.jsx(Vn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step6.title")}),f.jsx(Ks,{children:e("community.supportRequestGuide.step6.content")}),f.jsx(Vn,{}),f.jsx("h3",{children:e("community.supportRequestGuide.example.title")}),f.jsx(Ks,{children:e("community.supportRequestGuide.example.description")}),f.jsx("blockquote",{style:{borderLeft:"2px solid",borderLeftColor:t.colorBorder,paddingLeft:16,color:t.colorTextSecondary},children:f.jsx("span",{dangerouslySetInnerHTML:{__html:e("community.supportRequestGuide.example.details")}})}),f.jsx(Vn,{}),f.jsx(Ks,{children:e("community.supportRequestGuide.closing")})]})]})]})};function ZGe(){const{defaultAlgorithm:e,darkAlgorithm:t}=kr,n=u=>{const d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",u),document.body.style.backgroundColor=u},[r,a]=l.useState(()=>localStorage.getItem("theme")||"auto"),[o,i]=l.useState(Ss()==="dark"),s=()=>{a(u=>u==="dark"?"light":u==="light"?"auto":"dark")};l.useEffect(()=>{localStorage.setItem("theme",r),i(Ss()==="dark"),Ss()==="dark"?n("#000000"):n("#f5f5f5")},[r]);let c;return r==="dark"?c=f.jsx(j2e,{onClick:s}):r==="light"?c=f.jsx(AIe,{onClick:s}):c=f.jsx(kwe,{onClick:s}),f.jsx(ki,{theme:{algorithm:o?t:e,components:{Slider:{dotSize:3,handleSize:6,handleSizeHover:8,railSize:4},Popover:{titleMinWidth:0}}},children:f.jsx(Dke,{children:f.jsx("div",{className:"App",children:f.jsx(ks,{style:{minHeight:"100vh"},children:f.jsxs(Vre,{basename:"/web",children:[f.jsx(AFe,{themeSwitch:c}),f.jsxs(dNe,{children:[f.jsx(ks,{children:f.jsxs(Lre,{children:[f.jsx(On,{path:"/",element:f.jsx(p8e,{})}),f.jsx(On,{path:"/home/stats",element:f.jsx(m8e,{})}),f.jsx(On,{path:"/home/features",element:f.jsx(JFe,{})}),f.jsx(On,{path:"/home/toniemeeting",element:f.jsx(v8e,{})}),f.jsx(On,{path:"/tonies",element:f.jsx(WGe,{})}),f.jsx(On,{path:"/tonies/system-sounds",element:f.jsx(BGe,{})}),f.jsx(On,{path:"/tonies/content",element:f.jsx(OGe,{})}),f.jsx(On,{path:"/tonies/library",element:f.jsx(LGe,{})}),f.jsx(On,{path:"/tonies/encoder",element:f.jsx(PGe,{})}),f.jsx(On,{path:"/tonies/tap",element:f.jsx(HGe,{})}),f.jsx(On,{path:"/tonieboxes",element:f.jsx(t9e,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup",element:f.jsx(a9e,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup/identifyboxversion",element:f.jsx(h9e,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup/openboxguide",element:f.jsx(E9e,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup/boxversioninfo",element:f.jsx(o9e,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup/esp32/flashing",element:f.jsx(zVe,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup/esp32/legacy",element:f.jsx(VVe,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup/cc3200/flashing",element:f.jsx(P9e,{})}),f.jsx(On,{path:"/tonieboxes/boxsetup/cc3235/flashing",element:f.jsx(G9e,{})}),f.jsx(On,{path:"/settings",element:f.jsx(Gze,{})}),f.jsx(On,{path:"/settings/certificates",element:f.jsx(qze,{})}),f.jsx(On,{path:"/settings/rtnl",element:f.jsx(y8e,{})}),f.jsx(On,{path:"/settings/notifications",element:f.jsx(KGe,{})}),f.jsx(On,{path:"/community",element:f.jsx(zFe,{})}),f.jsx(On,{path:"/community/faq",element:f.jsx(qFe,{})}),f.jsx(On,{path:"/community/supportrequestguide",element:f.jsx(XGe,{})}),f.jsx(On,{path:"/community/contribution",element:f.jsx(HFe,{})}),f.jsx(On,{path:"/community/contribution/tonies-json",element:f.jsx(WFe,{})}),f.jsx(On,{path:"/community/contribution/translations",element:f.jsx(QFe,{})}),f.jsx(On,{path:"/community/contributors",element:f.jsx(GFe,{})}),f.jsx(On,{path:"/community/changelog",element:f.jsx(BFe,{})}),f.jsx(On,{path:"/*",element:f.jsx(FFe,{})})]})}),f.jsx(Gke,{})]})]})})})})})}const QGe=ZI.createRoot(document.getElementById("root"));QGe.render(f.jsx(de.StrictMode,{children:f.jsx(ZGe,{})}))});export default JGe(); + `),n.append(a.name,new Blob([v.buffer]),`pcmData.${r.indexOf(a)}.pcm`),e(void 0)}catch(c){t(c)}},i.onerror=()=>{t("Failed to read the file")},a.file&&i.readAsArrayBuffer(a.file)}const MGe=e=>Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),fv=new Dn(On()),{useToken:DGe}=kr,Pu={id:"1",pId:"-1",value:"1",title:"/"},PGe=()=>{const{t:e}=Nt(),{token:t}=DGe(),{addNotification:n,addLoadingNotification:r,closeLoadingNotification:a}=Qn(),[o,i]=l.useState(!1),[s,c]=l.useState([]),[u,d]=l.useState(!1),[p,g]=l.useState(!1),[m,h]=l.useState(""),[b,x]=l.useState(Pu.id),[S,v]=l.useState([Pu]),[y,w]=l.useState(!1),[C,E]=l.useState(""),[I,T]=l.useState(!1),[R,_]=l.useState(!1),$=l.useRef(null);let M=0;l.useEffect(()=>{(async()=>{const q=new Dn(On());let Z=!1;try{const Q=await q.apiGetTeddyCloudSettingRaw("debug.web.pcm_encode_console_url");if(!Q.ok)throw new Error(`HTTP error! status: ${Q.status}`);Z=(await Q.json()).toString()==="true"}catch(Q){console.error("Error fetching debug.web.pcm_encode_console_url: ",Q)}i(Z)})(),(async()=>{const q=j(Pu.id);fv.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${q}&special=library`).then(Z=>Z.json()).then(Z=>{var Q=Z.files;Q=Q.filter(J=>J.isDir&&J.name!=="..").sort((J,ie)=>J.name===ie.name?0:J.name.toLowerCase()>ie.name.toLowerCase()?1:-1).map(J=>({id:Pu.id+"."+Q.indexOf(J),pId:Pu.id,value:Pu.id+"."+Q.indexOf(J),title:J.name})),v(S.concat(Q))})})()},[]),l.useEffect(()=>{y&&setTimeout(()=>{$.current&&$.current.focus()},0)},[y]),l.useEffect(()=>{M=s.length},[s]);const P=sQ(Sx,{activationConstraint:{distance:10}}),D=({active:ae,over:W})=>{ae.id!==(W==null?void 0:W.id)&&c(q=>{const Z=q.findIndex(J=>J.uid===ae.id),Q=q.findIndex(J=>J.uid===(W==null?void 0:W.id));return Ex(q,Z,Q)})},O=({fileList:ae})=>{M++,M>Xh&&n(dt.Error,e("tonies.encoder.tooManyFilesError"),e("tonies.encoder.maxFiles",{maxFiles:Xh}),e("tonies.title"));const W=ae.slice(0,Xh);if(W.length===1&&m===""){const Z=W[0].name.replace(/\.[^/.]+$/,"");h(Z)}c(W)},k=ae=>{const W=s.indexOf(ae),q=s.slice();q.splice(W,1),c(q)},N=async()=>{d(!0);const ae=new FormData,W="encoding-"+m+".taf";r(W,e("tonies.encoder.uploading"),e("tonies.encoder.uploading"));for(const J of s){r(W,e("tonies.encoder.uploading"),e("tonies.encoder.uploadingDetails",{file:J.name}));try{await new Promise((ie,le)=>AGe(ie,le,ae,s,J,o))}catch(ie){n(dt.Error,e("tonies.encoder.processingError"),e("tonies.encoder.errorFileProcessing")+ie,e("tonies.title")),a(W),d(!1);return}}const q=Math.floor(Date.now()/1e3),Z={name:m+".taf",audioId:q-1342177280,path:j(b),special:"library"};g(!0);const Q=MGe(Z);try{r(W,e("tonies.encoder.processing"),e("tonies.encoder.processingDetails",{file:m+".taf"}));const J=await fv.apiPostTeddyCloudFormDataRaw(`/api/pcmUpload?${Q}`,ae);a(W),J.ok?(n(dt.Success,e("tonies.encoder.uploadSuccessful"),e("tonies.encoder.uploadSuccessfulDetails",{file:m+".taf"}),e("tonies.title")),c([]),h("")):n(dt.Error,e("tonies.encoder.uploadFailed"),e("tonies.encoder.uploadFailedDetails")+J.statusText,e("tonies.title")),g(!1),d(!1)}catch(J){a(W),n(dt.Error,e("tonies.encoder.uploadFailed"),e("tonies.encoder.uploadFailedDetails")+J,e("tonies.title")),g(!1),d(!1)}},A={listType:"picture",multiple:!0,beforeUpload:ae=>{const W=ae;return W.file=ae,s.push(W),c(s),!1},fileList:s,onChange:O,itemRender:(ae,W)=>f.jsx(kGe,{originNode:ae,fileList:s,file:W,onRemove:k,disabled:u})},L=({id:ae})=>new Promise((W,q)=>{const Z=j(ae);fv.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${Z}&special=library`).then(Q=>Q.json()).then(Q=>{let J=Q.files;J=J.filter(ie=>ie.isDir&&ie.name!=="..").sort((ie,le)=>ie.name===le.name?0:ie.name.toLowerCase()>le.name.toLowerCase()?1:-1).map(ie=>({id:ae+"."+J.indexOf(ie),pId:ae,value:ae+"."+J.indexOf(ie),title:ie.name})),v(S.concat(J)),W(!0)}).then(()=>{q()})}),j=ae=>{const W=S.filter(q=>q.value===ae)[0];return W.pId==="-1"?"":j(S.filter(q=>q.id===W.pId)[0].id)+"/"+W.title},F=()=>{c(ae=>[...ae].sort((W,q)=>W.name.localeCompare(q.name)))},B=()=>{c([])},z=()=>{w(!0)},U=ae=>{_(!od(ae.target.value.toString())),E(ae.target.value)},H=()=>{const ae=j(b),W=`${b}.${S.length}`,q={id:W,pId:b,value:W,title:C};try{fv.apiPostTeddyCloudRaw("/api/dirCreate?special=library",ae+"/"+C).then(Z=>Z.text()).then(Z=>{if(Z!=="OK")throw new Error(Z);v([...S,q].sort((Q,J)=>Q.title===J.title?0:Q.title.toLowerCase()>J.title.toLowerCase()?1:-1)),x(W),n(dt.Success,e("fileBrowser.createDirectory.directoryCreated"),e("fileBrowser.createDirectory.directoryCreatedDetails",{directory:ae+"/"+C}),e("fileBrowser.title")),w(!1),E("")}).catch(Z=>{n(dt.Error,e("fileBrowser.createDirectory.directoryCreateFailed"),e("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:ae+"/"+C})+Z,e("fileBrowser.title"))})}catch(Z){n(dt.Error,e("fileBrowser.createDirectory.directoryCreateFailed"),e("fileBrowser.createDirectory.directoryCreateFailedDetails",{directory:ae+"/"+C})+Z,e("fileBrowser.title"))}},K=()=>{w(!1),E(""),_(!1)},Y=f.jsxs(_n,{title:e("fileBrowser.createDirectory.modalTitle"),open:y,onCancel:K,onOk:H,okText:e("fileBrowser.createDirectory.create"),cancelText:e("fileBrowser.createDirectory.cancel"),okButtonProps:{disabled:R},children:[f.jsxs("p",{children:[e("fileBrowser.createDirectory.inDirectory")," ",f.jsxs("b",{children:[j(b),"/"]})]}),f.jsx(Gt.Item,{validateStatus:R?"error":"",help:R?e("inputValidator.invalidCharactersDetected",{invalidChar:Zp}):"",required:!0,children:f.jsx(Jt,{ref:$,autoFocus:!0,placeholder:e("fileBrowser.createDirectory.placeholder"),value:C,status:R?"error":"",onChange:U})})]}),ee=ae=>{const W=ae.target.value;T(!od(W)),h(W)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.encoder.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonies.encoder.title")}),f.jsxs(Ha,{direction:"vertical",style:{display:"flex"},children:[f.jsx(SQ,{sensors:[P],onDragEnd:D,children:f.jsx(TQ,{items:s.map(ae=>ae.uid),strategy:CQ,disabled:u,children:f.jsxs(Bd.Dragger,{...A,disabled:u,children:[f.jsx("p",{className:"ant-upload-drag-icon",children:f.jsx(FN,{})}),f.jsx("p",{className:"ant-upload-text",children:e("tonies.encoder.uploadText",{maxFiles:Xh})}),f.jsx("p",{className:"ant-upload-hint",children:e("tonies.encoder.uploadHint")})]})})}),s.length>0?f.jsxs(f.Fragment,{children:[f.jsxs(Ha,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start",flexWrap:"wrap"},children:[f.jsx(tt,{type:"default",disabled:u,onClick:F,children:e("tonies.encoder.sortAlphabetically")}),f.jsx(tt,{type:"default",disabled:u,style:{marginRight:16},onClick:B,children:e("tonies.encoder.clearList")})]}),f.jsx(Wn,{}),f.jsx("div",{style:{width:"100%"},className:"encoder",children:f.jsxs(Ha,{direction:"vertical",style:{width:"100%"},children:[f.jsxs(Ha.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[f.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:e("tonies.encoder.saveAs")}),f.jsx(Gl,{treeLine:!0,treeDataSimpleMode:!0,disabled:u,style:{maxWidth:250},value:b,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:x,loadData:L,treeData:S}),f.jsx(Ft,{title:e("fileBrowser.createDirectory.createDirectory"),children:f.jsx(tt,{disabled:u,icon:f.jsx(Bv,{}),onClick:z,style:{borderRadius:0}})}),f.jsx(Jt,{addonAfter:".taf",required:!0,defaultValue:m,style:{maxWidth:300},status:s.length>0&&m===""||I?"error":"",onChange:ee,disabled:u})]}),I?f.jsx("div",{style:{textAlign:"end",color:t.colorErrorText},children:e("inputValidator.invalidCharactersDetected",{invalidChar:Zp})}):"",f.jsx(Ha.Compact,{style:{display:"flex",justifyContent:"flex-end",marginTop:"8px"},children:f.jsx(tt,{type:"primary",onClick:N,disabled:s.length===0||m===""||I,loading:u,children:e(u?p?"tonies.encoder.processing":"tonies.encoder.uploading":"tonies.encoder.upload")})})]})})]}):f.jsx(f.Fragment,{})]})]})]}),Y]})},LGe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.library.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonies.library.title")}),f.jsx(m3,{special:"library"})]})]})]})},jGe=new Dn(On()),{Option:FGe}=cr,BGe=()=>{const{t:e}=Nt(),{addNotification:t}=Qn(),n=ii(),a=new URLSearchParams(n.search).get("overlay"),{tonieBoxContentDirs:o,overlay:i,handleContentOverlayChange:s}=h3(a),[c,u]=l.useState([]),[d,p]=l.useState(!0);return l.useEffect(()=>{(async()=>{p(!0);try{const m=await jGe.apiGetTagIndex(i||"");u(m.sort((h,b)=>h.tonieInfo.seriesb.tonieInfo.series?1:h.tonieInfo.episodeb.tonieInfo.episode?1:0))}catch(m){t(dt.Error,e("tonies.errorFetchingSystemSounds"),e("tonies.errorFetchingSystemSounds")+": "+m,e("tonies.navigationTitle"))}finally{p(!1)}})()},[i]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.system-sounds.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",flexWrap:"wrap",gap:8,alignItems:"center",marginBottom:8},children:[f.jsx("h1",{children:e("tonies.system-sounds.title")}),o.length>1?f.jsx(cr,{id:"contentDirectorySelect",defaultValue:"",onChange:s,style:{maxWidth:"300px"},value:i,title:e("tonies.content.showToniesOfBoxes"),children:o.map(([g,m,h])=>f.jsx(FGe,{value:h,children:m.join(", ")},h))}):""]}),d?f.jsx(su,{}):f.jsx(Fk,{showFilter:!1,showPagination:!0,tonieCards:c.filter(g=>g.type==="system"),overlay:i,readOnly:!1})]})]})]})},{Paragraph:zGe}=xn,HGe=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),r=a=>{console.log("Received values of form: ",a),n(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.tap.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("tonies.tap.title")}),f.jsx(Sn,{message:e("settings.information"),description:f.jsx("div",{children:"Development still in progress - Please be patient or support implementation of this feature!"}),type:"info",showIcon:!0,style:{marginBottom:8}}),f.jsx(m3,{special:"library",filetypeFilter:[".tap"],showColumns:["picture","name","size","date","controls"],isTapList:!0}),f.jsx(zGe,{children:f.jsxs("div",{children:[f.jsx(tt,{type:"primary",style:{marginTop:8},onClick:()=>{n(!0)},children:e("tonies.tapEditor.titleCreate")}),f.jsx($Q,{open:t,onCreate:r,onCancel:()=>{n(!1)}})]})})]})]})]})},UGe=new Dn(On()),{Option:VGe}=cr,WGe=()=>{const{t:e}=Nt(),{addNotification:t}=Qn(),n=ii(),a=new URLSearchParams(n.search).get("overlay"),{tonieBoxContentDirs:o,overlay:i,handleContentOverlayChange:s}=h3(a),[c,u]=l.useState([]),[d,p]=l.useState(""),[g,m]=l.useState(!0),h=b=>{u(x=>x.map(S=>S.ruid===b.ruid?b:S))};return l.useEffect(()=>{(async()=>{m(!0);try{const x=(await UGe.apiGetTagIndex(i||"",!0)).filter(S=>!S.hide);u(x.sort((S,v)=>S.tonieInfo.seriesv.tonieInfo.series?1:S.tonieInfo.episodev.tonieInfo.episode?1:0))}catch(x){t(dt.Error,e("tonies.errorFetchingTonies"),e("tonies.errorFetchingTonies")+": "+x,e("tonies.navigationTitle")),console.log("error: fetching tonies failed: "+x)}finally{m(!1)}})()},[i]),l.useEffect(()=>{const b={};c.forEach(v=>{const y=v.tonieInfo.language;b[y]?b[y]++:b[y]=1});let x=0,S="";for(const v in b)b.hasOwnProperty(v)&&b[v]>x&&(x=b[v],S=v);p(S)},[c]),f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(iu,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",flexWrap:"wrap",gap:8,alignItems:"center",marginBottom:8},children:[f.jsx("h1",{style:{width:"200px"},children:e("tonies.title")}),o.length>1?f.jsx(Ft,{title:e("tonies.content.showToniesOfBoxes"),children:f.jsx(cr,{id:"contentDirectorySelect",defaultValue:"",onChange:s,style:{maxWidth:"300px"},value:i,children:o.map(([b,x,S])=>f.jsx(VGe,{value:S,children:x.join(", ")},S))})}):""]}),g?f.jsx(su,{}):f.jsx(Fk,{showFilter:!0,showPagination:!0,tonieCards:c.filter(b=>b.type==="tag"),overlay:i,readOnly:!1,defaultLanguage:d,onToniesCardUpdate:h})]})]})]})},{Option:rc}=cr,{Paragraph:ap}=xn,{useToken:GGe}=kr,qGe=()=>{const{t:e}=Nt(),{token:t}=GGe(),{notifications:n,confirmNotification:r,clearAllNotifications:a,removeNotifications:o}=Qn(),[i,s]=l.useState(n),[c,u]=l.useState(!1),[d,p]=l.useState(!1),[g,m]=l.useState([]),[h,b]=l.useState(20),[x,S]=l.useState(1),[v,y]=l.useState(!0),[w,C]=l.useState([null,null]),[E,I]=l.useState(""),[T,R]=l.useState(""),[_,$]=l.useState([]),[M,P]=l.useState([]),[D,O]=l.useState([]);l.useEffect(()=>{const H=n.filter(K=>{const Y=(!w[0]||K.date>=w[0])&&(!w[1]||K.date<=w[1]),ee=K.title.toLowerCase().includes(E.toLowerCase()),ae=K.description.toLowerCase().includes(T.toLowerCase()),W=_.length===0||_.includes(K.type),q=M.length===0||M.includes(K.context),Z=D.length===0||D.includes(K.flagConfirmed?"Confirmed":"Unconfirmed");return Y&&ee&&ae&&W&&q&&Z});s(H)},[n,w,E,T,_,M,D]),l.useEffect(()=>{const H=()=>{p(window.innerWidth<1024),u(window.innerWidth<768)};return H(),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},[]);const k={success:f.jsx(of,{style:{color:t.colorSuccess}}),error:f.jsx(Hl,{style:{color:t.colorError}}),info:f.jsx(X0,{style:{color:t.colorInfo}}),warning:f.jsx(sm,{style:{color:t.colorWarning}})},N=Array.from(new Set(n.map(H=>H.context))).filter(Boolean),A=[{title:e("settings.notifications.colType"),dataIndex:"type",key:"type",render:H=>f.jsxs("div",{style:{display:"flex",gap:8},children:[c?"":k[H],H.charAt(0).toUpperCase()+H.slice(1)]}),sorter:(H,K)=>H.type.localeCompare(K.type),ellipsis:!0},{title:e("settings.notifications.colTitle"),dataIndex:"title",key:"title",sorter:(H,K)=>{const Y=H.title||"",ee=K.title||"";return Y.localeCompare(ee)}},{title:e("settings.notifications.colDetails"),dataIndex:"description",key:"description",sorter:(H,K)=>{const Y=H.description||"",ee=K.description||"";return Y.localeCompare(ee)},responsive:["lg"]},{title:e("settings.notifications.colContext"),dataIndex:"context",key:"context",sorter:(H,K)=>{const Y=H.context||"",ee=K.context||"";return Y.localeCompare(ee)},width:90,onCell:()=>({style:{maxWidth:90}}),ellipsis:!0,responsive:["lg"]},{title:e("settings.notifications.colDate"),dataIndex:"date",key:"date",render:H=>H instanceof Date?c?H.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(",",""):H.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(",",""):"",sorter:(H,K)=>{const Y=new Date(H.date),ee=new Date(K.date);return Y.getTime()-ee.getTime()},ellipsis:!0},{title:e("settings.notifications.colStatus"),dataIndex:"flagConfirmed",key:"flagConfirmed",render:(H,K)=>f.jsx("div",{style:{cursor:"pointer"},onClick:Y=>{Y.stopPropagation(),K.flagConfirmed||r(K.uuid)},children:K.flagConfirmed?e("settings.notifications.confirmed"):f.jsx(Ft,{title:e("settings.notifications.clickToConfirm"),children:e("settings.notifications.unconfirmed")})}),sorter:(H,K)=>Number(H.flagConfirmed)-Number(K.flagConfirmed),responsive:["sm"]}],j={selectedRowKeys:g,onChange:H=>{console.log("selectedRowKeys changed: ",H),m(H)}},F=f.jsxs("div",{style:{marginBottom:16,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(250px, 1fr))",gap:16,alignItems:"start"},children:[f.jsxs(cr,{mode:"multiple",placeholder:e("settings.notifications.filterBy")+" "+e("settings.notifications.colType"),onChange:$,children:[f.jsx(rc,{value:"success",children:e("settings.notifications.success")}),f.jsx(rc,{value:"info",children:e("settings.notifications.info")}),f.jsx(rc,{value:"warning",children:e("settings.notifications.warning")}),f.jsx(rc,{value:"error",children:e("settings.notifications.error")})]}),f.jsx(cr,{mode:"multiple",placeholder:e("settings.notifications.filterBy")+" "+e("settings.notifications.colContext"),onChange:P,children:N.map(H=>f.jsx(rc,{value:H,children:H},H))}),f.jsxs(cr,{mode:"multiple",placeholder:e("settings.notifications.filterBy")+" "+e("settings.notifications.colStatus"),onChange:O,children:[f.jsx(rc,{value:"Confirmed",children:e("settings.notifications.confirmed")}),f.jsx(rc,{value:"Unconfirmed",children:e("settings.notifications.unconfirmed")})]}),f.jsx(hf.RangePicker,{onChange:H=>{C(H&&H[0]&&H[1]?[H[0].toDate(),H[1].toDate()]:[null,null])},placeholder:[e("settings.notifications.startDate"),e("settings.notifications.endDate")]}),f.jsx(Jt,{placeholder:e("settings.notifications.searchIn")+" "+e("settings.notifications.colTitle"),onChange:H=>I(H.target.value)}),f.jsx(Jt,{placeholder:e("settings.notifications.searchIn")+" "+e("settings.notifications.colDetails"),onChange:H=>R(H.target.value)})]}),B=[{key:"search-filter",label:e(v?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:F}],z=()=>{g.forEach(H=>{const K=String(H);r(K),m([])})},U=()=>{const H=g.map(K=>String(K));o(H)};return f.jsxs("div",{children:[f.jsx("h2",{children:e("settings.notifications.title")}),f.jsx(ap,{style:{width:"100%",marginBottom:16},children:f.jsx($s,{items:B,defaultActiveKey:v?[]:["search-filter"],onChange:()=>y(!v),bordered:!1,style:{width:"100%"}})}),f.jsxs(ap,{style:{display:"flex",gap:8,justifyContent:"space-between"},children:[g.length>0?f.jsxs(ap,{style:{display:"flex",gap:8},children:[f.jsx(tt,{onClick:U,children:e("settings.notifications.removeSelectedNotifications")}),f.jsx(tt,{onClick:z,children:e("settings.notifications.confirmSelectedNotifications")})," "]}):f.jsx(ap,{}),f.jsx(ap,{children:f.jsx(tt,{onClick:a,children:e("settings.notifications.removeAll")})})]}),f.jsx(xa,{tableLayout:"auto",size:"small",rowSelection:j,dataSource:i.map(H=>({uuid:H.uuid,type:H.type,title:H.title,description:H.description,context:H.context,date:H.date,flagConfirmed:H.flagConfirmed})),columns:A,pagination:{current:x,pageSize:h,showSizeChanger:!0,pageSizeOptions:[10,20,30,50],onChange:(H,K)=>{S(H),b(K)},locale:{items_per_page:e("settings.notifications.pageSelector")}},sticky:{offsetHeader:0},rowKey:"uuid",expandable:d?{expandedRowRender:H=>f.jsxs("div",{children:[f.jsxs("strong",{children:[e("settings.notifications.colDetails"),":"]})," ",H.description,H.context?f.jsxs("div",{children:[f.jsx("br",{}),f.jsxs("strong",{children:[e("settings.notifications.colContext"),":"]})," ",H.context," "]}):null,f.jsx("br",{}),c?f.jsxs("div",{children:[f.jsxs("strong",{children:[e("settings.notifications.colStatus"),":"]})," ",H.flagConfirmed?e("settings.notifications.confirmed"):f.jsx(Ft,{title:e("settings.notifications.clickToConfirm"),children:e("settings.notifications.unconfirmed")})]}):null]}),rowExpandable:H=>H.description!==void 0}:void 0})]})},KGe=()=>{const{t:e}=Nt();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(jm,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("settings.notifications.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("settings.notifications.title")}),f.jsx(qGe,{})]})]})]})},{Paragraph:Ys}=xn,{useToken:YGe}=kr,XGe=()=>{const{t:e}=Nt(),{token:t}=YGe();return f.jsxs(f.Fragment,{children:[f.jsx(jn,{children:f.jsx(Fs,{})}),f.jsxs(Fn,{children:[f.jsx(Bn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.supportRequestGuide.navigationTitle")}]}),f.jsxs(Pn,{children:[f.jsx("h1",{children:e("community.supportRequestGuide.title")}),f.jsx(Ys,{children:e("community.supportRequestGuide.intro")}),f.jsx(Wn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step1.title")}),f.jsx(Ys,{children:e("community.supportRequestGuide.step1.content")}),f.jsx(Wn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step2.title")}),f.jsx(Ys,{children:e("community.supportRequestGuide.step2.intro")}),f.jsx("ul",{children:e("community.supportRequestGuide.step2.list",{returnObjects:!0}).map((n,r)=>f.jsx("li",{children:n},r))}),f.jsx(Wn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step3.title")}),f.jsx("ul",{children:e("community.supportRequestGuide.step3.list",{returnObjects:!0}).map((n,r)=>f.jsx("li",{children:n},r))}),f.jsx(Wn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step4.title")}),f.jsx(Ys,{children:e("community.supportRequestGuide.step4.intro")}),f.jsxs("ul",{children:[f.jsxs("li",{children:[e("community.supportRequestGuide.step4.listFirstEntry"),f.jsx(gn,{language:"shell",code:"docker logs -f teddycloud > teddycloud_logs.txt"})]}),e("community.supportRequestGuide.step4.list",{returnObjects:!0}).map((n,r)=>f.jsx("li",{children:n},r))]}),f.jsx(Wn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step5.title")}),f.jsx(Ys,{children:e("community.supportRequestGuide.step5.content")}),f.jsx(Wn,{}),f.jsx("h2",{children:e("community.supportRequestGuide.step6.title")}),f.jsx(Ys,{children:e("community.supportRequestGuide.step6.content")}),f.jsx(Wn,{}),f.jsx("h3",{children:e("community.supportRequestGuide.example.title")}),f.jsx(Ys,{children:e("community.supportRequestGuide.example.description")}),f.jsx("blockquote",{style:{borderLeft:"2px solid",borderLeftColor:t.colorBorder,paddingLeft:16,color:t.colorTextSecondary},children:f.jsx("span",{dangerouslySetInnerHTML:{__html:e("community.supportRequestGuide.example.details")}})}),f.jsx(Wn,{}),f.jsx(Ys,{children:e("community.supportRequestGuide.closing")})]})]})]})};function ZGe(){const{defaultAlgorithm:e,darkAlgorithm:t}=kr,n=u=>{const d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",u),document.body.style.backgroundColor=u},[r,a]=l.useState(()=>localStorage.getItem("theme")||"auto"),[o,i]=l.useState(Cs()==="dark"),s=()=>{a(u=>u==="dark"?"light":u==="light"?"auto":"dark")};l.useEffect(()=>{localStorage.setItem("theme",r),i(Cs()==="dark"),Cs()==="dark"?n("#000000"):n("#f5f5f5")},[r]);let c;return r==="dark"?c=f.jsx(j2e,{onClick:s}):r==="light"?c=f.jsx(AIe,{onClick:s}):c=f.jsx(kCe,{onClick:s}),f.jsx(Ai,{theme:{algorithm:o?t:e,components:{Slider:{dotSize:3,handleSize:6,handleSizeHover:8,railSize:4},Popover:{titleMinWidth:0}}},children:f.jsx(Dke,{children:f.jsx("div",{className:"App",children:f.jsx(As,{style:{minHeight:"100vh"},children:f.jsxs(Vre,{basename:"/web",children:[f.jsx(AFe,{themeSwitch:c}),f.jsxs(dNe,{children:[f.jsx(As,{children:f.jsxs(Lre,{children:[f.jsx(Nn,{path:"/",element:f.jsx(p8e,{})}),f.jsx(Nn,{path:"/home/stats",element:f.jsx(m8e,{})}),f.jsx(Nn,{path:"/home/features",element:f.jsx(JFe,{})}),f.jsx(Nn,{path:"/home/toniemeeting",element:f.jsx(v8e,{})}),f.jsx(Nn,{path:"/tonies",element:f.jsx(WGe,{})}),f.jsx(Nn,{path:"/tonies/system-sounds",element:f.jsx(BGe,{})}),f.jsx(Nn,{path:"/tonies/content",element:f.jsx(OGe,{})}),f.jsx(Nn,{path:"/tonies/library",element:f.jsx(LGe,{})}),f.jsx(Nn,{path:"/tonies/encoder",element:f.jsx(PGe,{})}),f.jsx(Nn,{path:"/tonies/tap",element:f.jsx(HGe,{})}),f.jsx(Nn,{path:"/tonieboxes",element:f.jsx(t9e,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup",element:f.jsx(a9e,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup/identifyboxversion",element:f.jsx(h9e,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup/openboxguide",element:f.jsx(E9e,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup/boxversioninfo",element:f.jsx(o9e,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup/esp32/flashing",element:f.jsx(zVe,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup/esp32/legacy",element:f.jsx(VVe,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup/cc3200/flashing",element:f.jsx(P9e,{})}),f.jsx(Nn,{path:"/tonieboxes/boxsetup/cc3235/flashing",element:f.jsx(G9e,{})}),f.jsx(Nn,{path:"/settings",element:f.jsx(Gze,{})}),f.jsx(Nn,{path:"/settings/certificates",element:f.jsx(qze,{})}),f.jsx(Nn,{path:"/settings/rtnl",element:f.jsx(y8e,{})}),f.jsx(Nn,{path:"/settings/notifications",element:f.jsx(KGe,{})}),f.jsx(Nn,{path:"/community",element:f.jsx(zFe,{})}),f.jsx(Nn,{path:"/community/faq",element:f.jsx(qFe,{})}),f.jsx(Nn,{path:"/community/supportrequestguide",element:f.jsx(XGe,{})}),f.jsx(Nn,{path:"/community/contribution",element:f.jsx(HFe,{})}),f.jsx(Nn,{path:"/community/contribution/tonies-json",element:f.jsx(WFe,{})}),f.jsx(Nn,{path:"/community/contribution/translations",element:f.jsx(QFe,{})}),f.jsx(Nn,{path:"/community/contributors",element:f.jsx(GFe,{})}),f.jsx(Nn,{path:"/community/changelog",element:f.jsx(BFe,{})}),f.jsx(Nn,{path:"/*",element:f.jsx(FFe,{})})]})}),f.jsx(Gke,{})]})]})})})})})}const QGe=QI.createRoot(document.getElementById("root"));QGe.render(f.jsx(de.StrictMode,{children:f.jsx(ZGe,{})}))});export default JGe(); diff --git a/contrib/data/www/web/esp32_tool.htm b/contrib/data/www/web/esp32_tool.htm deleted file mode 100644 index 8cff967b..00000000 --- a/contrib/data/www/web/esp32_tool.htm +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - - - ESP32 flash checker - - - - - -

ESP32 flash checker

- -
- -
- - - - - -
Open serial port and this tool will automatically check flash
- - - - - - - - - - - - \ No newline at end of file diff --git a/contrib/data/www/web/index.html b/contrib/data/www/web/index.html index 6322772a..656add85 100644 --- a/contrib/data/www/web/index.html +++ b/contrib/data/www/web/index.html @@ -12,7 +12,7 @@ --> TeddyCloud - + diff --git a/contrib/data/www/web/revvox_flasher.js b/contrib/data/www/web/revvox_flasher.js deleted file mode 100644 index beaa62b1..00000000 --- a/contrib/data/www/web/revvox_flasher.js +++ /dev/null @@ -1,708 +0,0 @@ - -/* Command defines */ -const FLASH_BEGIN = 0x02; -const FLASH_DATA = 0x03; -const FLASH_END = 0x04; -const MEM_BEGIN = 0x05; -const MEM_END = 0x06; -const MEM_DATA = 0x07; -const SYNC = 0x08; -const WRITE_REG = 0x09; -const READ_REG = 0x0a; -const SPI_SET_PARAMS = 0x0b; -const SPI_ATTACH = 0x0d; -const CHANGE_BAUDRATE = 0x0f; -const FLASH_DEFL_BEGIN = 0x10; -const FLASH_DEFL_DATA = 0x11; -const FLASH_DEFL_END = 0x12; -const SPI_FLASH_MD5 = 0x13; -const GET_SECURITY_INFO = 0x14; -const ERASE_FLASH = 0xd0; -const ERASE_REGION = 0xd1; -const READ_FLASH = 0xd2; -const RUN_USER_CODE = 0xd3; - - -class SlipLayer { - constructor() { - this.buffer = []; - this.escaping = false; - } - - encode(packet) { - const SLIP_END = 0xC0; - const SLIP_ESC = 0xDB; - const SLIP_ESC_END = 0xDC; - const SLIP_ESC_ESC = 0xDD; - - let slipFrame = [SLIP_END]; - - for (let byte of packet) { - if (byte === SLIP_END) { - slipFrame.push(SLIP_ESC, SLIP_ESC_END); - } else if (byte === SLIP_ESC) { - slipFrame.push(SLIP_ESC, SLIP_ESC_ESC); - } else { - slipFrame.push(byte); - } - } - - slipFrame.push(SLIP_END); - return new Uint8Array(slipFrame); - } - - decode(value) { - const SLIP_END = 0xC0; - const SLIP_ESC = 0xDB; - const SLIP_ESC_END = 0xDC; - const SLIP_ESC_ESC = 0xDD; - - let outputPackets = []; - - for (let byte of value) { - if (byte === SLIP_END) { - if (this.buffer.length > 0) { - outputPackets.push(new Uint8Array(this.buffer)); - this.buffer = []; - } - } else if (this.escaping) { - if (byte === SLIP_ESC_END) { - this.buffer.push(0xC0); - } else if (byte === SLIP_ESC_ESC) { - this.buffer.push(0xDB); - } - this.escaping = false; - } else if (byte === SLIP_ESC) { - this.escaping = true; - } else { - this.buffer.push(byte); - } - } - - return outputPackets; - } -} - -class RevvoxFlasher { - - constructor() { - this.port = null; - this.currentAddress = 0x0000; - - this.devMode = false; - this.stubLoaded = false; - this.responseHandlers = new Map(); - this.chip_magic_addr = 0x40001000; - this.chip_descriptions = - { - "esp32s2": { - "name": "ESP32-S2", - "mac_efuse_reg": 0x3F41A044, - "magic_value": 0x000007C6, - "stub": - { - "entry": 1077381760, - "text": "FIADYACAA2BMAMo/BIADYDZBAIH7/wxJwCAAmQjGBAAAgfj/wCAAqAiB9/+goHSICOAIACH2/8AgAIgCJ+jhHfAAAAAIAABgHAAAYBAAAGA2QQAh/P/AIAA4AkH7/8AgACgEICCUnOJB6P9GBAAMODCIAcAgAKgIiASgoHTgCAALImYC6Ib0/yHx/8AgADkCHfAAAPQryz9sq8o/hIAAAEBAAACs68o/+CvLPzZBALH5/yCgdBARICU5AZYaBoH2/5KhAZCZEZqYwCAAuAmR8/+goHSaiMAgAJIYAJCQ9BvJwMD0wCAAwlgAmpvAIACiSQDAIACSGACB6v+QkPSAgPSHmUeB5f+SoQGQmRGamMAgAMgJoeX/seP/h5wXxgEAfOiHGt7GCADAIACJCsAgALkJRgIAwCAAuQrAIACJCZHX/5qIDAnAIACSWAAd8AAAVCAAYFQwAGA2QQCR/f/AIACICYCAJFZI/5H6/8AgAIgJgIAkVkj/HfAAAAAsIABgACAAYAAAAAg2QQAQESCl/P8h+v8MCMAgAIJiAJH6/4H4/8AgAJJoAMAgAJgIVnn/wCAAiAJ88oAiMCAgBB3wAAAAAEA2QQAQESDl+/8Wav+B7P+R+//AIACSaADAIACYCFZ5/x3wAADoCABAuAgAQDaBAIH9/+AIABwGBgwAAABgVEMMCAwa0JURDI05Me0CiWGpUZlBiSGJEdkBLA8MzAxLgfL/4AgAUETAWjNaIuYUzQwCHfAAABQoAEA2QQAgoiCB/f/gCAAd8AAAcOL6PwggAGC8CgBAyAoAQDZhABARIGXv/zH5/70BrQOB+v/gCABNCgwS7OqIAZKiAJCIEIkBEBEg5fP/kfL/oKIBwCAAiAmgiCDAIACJCbgBrQOB7v/gCACgJIMd8AAAXIDKP/8PAABoq8o/NkEAgfz/DBmSSAAwnEGZKJH6/zkYKTgwMLSaIiozMDxBOUgx9v8ioAAyAwAiaAUnEwmBv//gCABGAwAAEBEgZfb/LQqMGiKgxR3wAP///wAEIABg9AgAQAwJAEAACQBANoEAMeT/KEMWghEQESAl5v8W+hAM+AwEJ6gMiCMMEoCANIAkkyBAdBARICXo/xARIOXg/yHa/yICABYyCqgjgev/QCoRFvQEJyg8gaH/4AgAgej/4AgA6CMMAgwaqWGpURyPQO4RDI3CoNgMWylBKTEpISkRKQGBl//gCACBlP/gCACGAgAAAKCkIYHb/+AIABwKBiAAAAAnKDmBjf/gCACB1P/gCADoIwwSHI9A7hEMjSwMDFutAilhKVFJQUkxSSFJEUkBgYP/4AgAgYH/4AgARgEAgcn/4AgADBqGDQAAKCMMGUAiEZCJAcwUgIkBkb//kCIQkb7/wCAAImkAIVr/wCAAgmIAwCAAiAJWeP8cCgwSQKKDKEOgIsApQygjqiIpIx3wAAA2gQCBaf/gCAAsBoYPAAAAga//4AgAYFRDDAgMGtCVEe0CqWGpUYlBiTGZITkRiQEsDwyNwqASsqAEgVz/4AgAgVr/4AgAWjNaIlBEwOYUvx3wAAAUCgBANmEAQYT/WDRQM2MWYwtYFFpTUFxBRgEAEBEgZeb/aESmFgRoJGel7xARIGXM/xZq/1F6/2gUUgUAFkUGgUX/4AgAYFB0gqEAUHjAd7MIzQO9Aq0Ghg4AzQe9Aq0GUtX/EBEgZfT/OlVQWEEMCUYFAADCoQCZARARIOXy/5gBctcBG5mQkHRgp4BwsoBXOeFww8AQESAl8f+BLv/gCACGBQDNA70CrQaB1f/gCACgoHSMSiKgxCJkBSgUOiIpFCg0MCLAKTQd8ABcBwBANkEAgf7/4AgAggoYDAmCyPwMEoApkx3wNkEAgfj/4AgAggoYDAmCyP0MEoApkx3wvP/OP0gAyj9QAMo/QCYAQDQmAEDQJgBANmEAfMitAoeTLTH3/8YFAACoAwwcvQGB9//gCACBj/6iAQCICOAIAKgDgfP/4AgA5hrdxgoAAABmAyYMA80BDCsyYQCB7v/gCACYAYHo/zeZDagIZhoIMeb/wCAAokMAmQgd8EQAyj8CAMo/KCYAQDZBACH8/4Hc/8gCqAix+v+B+//gCAAMCIkCHfCQBgBANkEAEBEgpfP/jLqB8v+ICIxIEBEgpfz/EBEg5fD/FioAoqAEgfb/4AgAHfAAAMo/SAYAQDZBABARIGXw/00KvDox5P8MGYgDDAobSEkDMeL/ijOCyMGAqYMiQwCgQHTMqjKvQDAygDCUkxZpBBARIOX2/0YPAK0Cge7/4AgAEBEgZer/rMox6f886YITABuIgID0glMAhzkPgq9AiiIMGiCkk6CgdBaqAAwCEBEgJfX/IlMAHfAAADZBAKKgwBARICX3/x3wAAA2QQCCoMCtAoeSEaKg2xARIKX1/6Kg3EYEAAAAAIKg24eSCBARIGX0/6Kg3RARIOXz/x3wNkEAOjLGAgAAogIAGyIQESCl+/83kvEd8AAAAFwcAEAgCgBAaBwAQHQcAEA2ISGi0RCB+v/gCACGDwAAUdD+DBRARBGCBQBAQ2PNBL0BrQKMmBARICWm/8YBAAAAgfD/4AgAoKB0/DrNBL0BotEQge3/4AgASiJAM8BW4/siogsQIrCtArLREIHo/+AIAK0CHAsQESCl9v8tA4YAACKgYx3wAACIJgBAhBsAQJQmAECQGwBANkEAEBEgpdj/rIoME0Fm//AzAYyyqASB9v/gCACtA8YJAK0DgfT/4AgAqASB8//gCAAGCQAQESDl0/8MGPCIASwDoIODrQgWkgCB7P/gCACGAQAAgej/4AgAHfBgBgBANkEhYqQd4GYRGmZZBgwXUqAAYtEQUKUgQHcRUmYaEBEg5ff/R7cCxkIArQaBt//gCADGLwCRjP5Qc8CCCQBAd2PNB70BrQIWqAAQESBllf/GAQAAAIGt/+AIAKCgdIyqDAiCZhZ9CEYSAAAAEBEgpeP/vQetARARICXn/xARIKXi/80HELEgYKYggaH/4AgAeiJ6VTe1yIKhB8CIEZKkHRqI4JkRiAgamZgJgHXAlzeDxur/DAiCRmyipBsQqqCBz//gCABWCv+yoguiBmwQu7AQESClsgD36hL2Rw+Sog0QmbB6maJJABt3hvH/fOmXmsFmRxKSoQeCJhrAmREamYkJN7gCh7WLIqILECKwvQatAoGA/+AIABARIOXY/60CHAsQESBl3P8QESDl1/8MGhARIOXm/x3wAADKP09IQUmwgABgoTrYUJiAAGC4gABgKjEdj7SAAGD8K8s/rIA3QJggDGA8gjdArIU3QAgACGCAIQxgEIA3QBCAA2BQgDdADAAAYDhAAGCcLMs///8AACyBAGAQQAAAACzLPxAsyz98kABg/4///4CQAGCEkABgeJAAYFQAyj9YAMo/XCzLPxQAAGDw//8A/CvLP1wAyj90gMo/gAcAQHgbAEC4JgBAZCYAQHQfAEDsCgBABCAAQFQJAEBQCgBAAAYAQBwpAEAkJwBACCgAQOQGAEB0gQRAnAkAQPwJAEAICgBAqAYAQIQJAEBsCQBAkAkAQCgIAEDYBgBANgEBIcH/DAoiYRCB5f/gCAAQESDlrP8WigQxvP8hvP9Bvf/AIAApAwwCwCAAKQTAIAApA1G5/zG5/2G5/8AgADkFwCAAOAZ89BBEAUAzIMAgADkGwCAAKQWGAQBJAksiBgIAIaj/Ma//QqAANzLsEBEgJcD/DEuiwUAQESClw/8ioQEQESDlvv8xY/2QIhEqI8AgADkCQaT/ITv9SQIQESClpf8tChb6BSGa/sGb/qgCDCuBnf7gCABBnP+xnf8cGgwMwCAAqQSBt//gCAAMGvCqAYEl/+AIALGW/6gCDBWBsv/gCACoAoEd/+AIAKgCga//4AgAQZD/wCAAKARQIiDAIAApBIYWABARIGWd/6yaQYr/HBqxiv/AIACiZAAgwiCBoP/gCAAhh/8MRAwawCAASQLwqgHGCAAAALGD/80KDFqBmP/gCABBgP9SoQHAIAAoBCwKUCIgwCAAKQSBAv/gCACBk//gCAAhef/AIAAoAsy6HMRAIhAiwvgMFCCkgwwLgYz/4AgAgYv/4AgAXQqMmkGo/QwSIkQARhQAHIYMEmlBYsEgqWFpMakhqRGpAf0K7QopUQyNwqCfsqAEIKIggWr94AgAcgEiHGhix+dgYHRnuAEtBTyGDBV3NgEMBUGU/VAiICAgdCJEABbiAKFZ/4Fy/+AIAIFb/eAIAPFW/wwdDBwMG+KhAEDdEQDMEWC7AQwKgWr/4AgAMYT9YtMrhhYAwCAAUgcAUFB0FhUFDBrwqgHAIAAiRwCByf7gCACionHAqhGBX//gCACBXv/gCABxQv986MAgAFgHfPqAVRAQqgHAIABZB4FY/+AIAIFX/+AIACCiIIFW/+AIAHEn/kHp/MAgACgEFmL5DAfAIABYBAwSwCAAeQQiQTQiBQEMKHnhIkE1glEbHDd3EiQcR3cSIWaSISIFA3IFAoAiEXAiIGZCEiglwCAAKAIp4YYBAAAAHCIiURsQESBlmf+yoAiiwTQQESDlnP+yBQMiBQKAuxEgSyAhGf8gIPRHshqioMAQESCll/+ioO4QESAll/8QESDllf+G2P8iBQEcRyc3N/YiGwYJAQAiwi8gIHS2QgIGJQBxC/9wIqAoAqACAAAiwv4gIHQcJye3Akb/AHEF/3AioCgCoAIAcsIwcHB0tlfFhvkALEkMByKgwJcUAob3AHnhDHKtBxARIGWQ/60HEBEg5Y//EBEgZY7/EBEgJY7/DIuiwTQiwv8QESBlkf9WIv1GQAAMElakOcLBIL0ErQSBCP/gCABWqjgcS6LBIBARICWP/4bAAAwSVnQ3gQL/4AgAoCSDxtoAJoQEDBLG2AAoJXg1cIIggIC0Vtj+EBEgZT7/eiKsmgb4/0EN/aCsQYIEAIz4gSL94AgARgMActfwRgMAAACB8f7gCAAW6v4G7v9wosDMF8anAKCA9FaY/EYKAEH+/KCg9YIEAJwYgRP94AgAxgMAfPgAiBGKd8YCAIHj/uAIABbK/kbf/wwYAIgRcKLAdzjKhgkAQfD8oKxBggQAjOiBBv3gCAAGAwBy1/AGAwAAgdX+4AgAFvr+BtL/cKLAVif9hosADAcioMAmhAIGqgAMBy0HRqgAJrT1Bn4ADBImtAIGogC4NaglDAcQESClgf+gJ4OGnQAMGWa0X4hFIKkRDAcioMKHugIGmwC4VaglkmEWEBEgZTT/kiEWoJeDRg4ADBlmtDSIRSCpEQwHIqDCh7oCRpAAKDW4VaglIHiCkmEWEBEgZTH/IcH8DAiSIRaJYiLSK3JiAqCYgy0JBoMAkbv8DAeiCQAioMZ3mgKGgQB4JbLE8CKgwLeXAiIpBQwHkqDvRgIAeoWCCBgbd4CZMLcn8oIFBXIFBICIEXCIIHIFBgB3EYB3IIIFB4CIAXCIIICZwIKgwQwHkCiTxm0AgaP8IqDGkggAfQkWmRqYOAwHIqDIdxkCBmcAKFiSSABGYgAciQwHDBKXFAIGYgD4dehl2FXIRbg1qCWBev7gCAAMCH0KoCiDBlsADBImRAJGVgCRX/6BX/7AIAB4CUAiEYB3ECB3IKglwCAAeQmRWv4MC8AgAHgJgHcQIHcgwCAAeQmRVv7AIAB4CYB3ECB3IMAgAHkJkVL+wCAAeAmAdxAgJyDAIAApCYFb/uAIAAYgAABAkDQMByKgwHcZAoY9AEBEQYvFfPhGDwCoPIJhFZJhFsJhFIFU/uAIAMIhFIIhFSgseByoDJIhFnByECYCDcAgANgKICgw0CIQIHcgwCAAeQobmcLMEEc5vsZ//2ZEAkZ+/wwHIqDAhiYADBImtALGIQAhL/6IVXgliQIhLv55AgwCBh0A8Sr+DAfIDwwZssTwjQctB7Apk8CJgyCIECKgxneYYKEk/n0I2AoioMm3PVOw4BQioMBWrgQtCIYCAAAqhYhoSyKJB40JIO3AKny3Mu0WaNjpCnkPxl//DBJmhBghFP6CIgCMGIKgyAwHeQIhEP55AgwSgCeDDAdGAQAADAcioP8goHQQESClUv9woHQQESDlUf8QESClUP9W8rAiBQEcJyc3H/YyAkbA/iLC/SAgdAz3J7cCxrz+cf/9cCKgKAKgAgAAcqDSdxJfcqDUd5ICBiEARrX+KDVYJRARIKU0/40KVmqsoqJxwKoRgmEVgQD+4AgAcfH9kfH9wCAAeAeCIRVwtDXAdxGQdxBwuyAgu4KtCFC7woH//eAIAKKj6IH0/eAIAMag/gAA2FXIRbg1qCUQESAlXP8GnP4AsgUDIgUCgLsRILsgssvwosUYEBEgJR//BpX+ACIFA3IFAoAiEXAiIIHt/eAIAHH7+yLC8Ig3gCJjFjKjiBeKgoCMQUYDAAAAgmEVEBEgpQP/giEVkicEphkFkicCl6jnEBEgZen+Fmr/qBfNArLFGIHc/eAIAIw6UqDEWVdYFypVWRdYNyAlwCk3gdb94AgABnf+AAAiBQOCBQJyxRiAIhFYM4AiICLC8FZFCvZSAoYnACKgyUYsAFGz/YHY+6gFKfGgiMCJgYgmrQmHsgEMOpJhFqJhFBARIOX6/qIhFIGq/akB6AWhqf3dCL0HwsE88sEggmEVgbz94AgAuCbNCqjxkiEWoLvAuSagIsC4Bap3qIGCIRWquwwKuQXAqYOAu8Cg0HTMiuLbgK0N4KmDrCqtCIJhFZJhFsJhFBARIKUM/4IhFZIhFsIhFIkFBgEAAAwcnQyMslgzjHXAXzHAVcCWNfXWfAAioMcpUwZA/lbcjygzFoKPIqDIBvv/KCVW0o4QESBlIv+ionHAqhGBif3gCACBlv3gCACGNP4oNRbSjBARIGUg/6Kj6IGC/eAIAOACAAYu/h3wAAAANkEAnQKCoMAoA4eZD8wyDBKGBwAMAikDfOKGDwAmEgcmIhiGAwAAAIKg24ApI4eZKgwiKQN88kYIAAAAIqDcJ5kKDBIpAy0IBgQAAACCoN188oeZBgwSKQMioNsd8AAA", - "text_start": 1077379072, - "data": "XADKP16ON0AzjzdAR5Q3QL2PN0BTjzdAvY83QB2QN0A6kTdArJE3QFWRN0DpjTdA0JA3QCyRN0BAkDdA0JE3QGiQN0DQkTdAIY83QH6PN0C9jzdAHZA3QDmPN0AqjjdAkJI3QA2UN0AAjTdALZQ3QACNN0AAjTdAAI03QACNN0AAjTdAAI03QACNN0AAjTdAKpI3QACNN0AlkzdADZQ3QAQInwAAAAAAAAAYAQQIBQAAAAAAAAAIAQQIBgAAAAAAAAAAAQQIIQAAAAAAIAAAEQQI3AAAAAAAIAAAEQQIDAAAAAAAIAAAAQQIEgAAAAAAIAAAESAoDAAQAQAA", - "data_start": 1070279676, - "bss_start": 1070202880, - } - }, - "esp32s3": { - "name": "ESP32-S3", - "mac_efuse_reg": 0x60007044, - "magic_value": 0x00000009, - "stub": - { - "entry": 1077381760, - "text": "FIADYACAA2BMAMo/BIADYDZBAIH7/wxJwCAAmQjGBAAAgfj/wCAAqAiB9/+goHSICOAIACH2/8AgAIgCJ+jhHfAAAAAIAABgHAAAYBAAAGA2QQAh/P/AIAA4AkH7/8AgACgEICCUnOJB6P9GBAAMODCIAcAgAKgIiASgoHTgCAALImYC6Ib0/yHx/8AgADkCHfAAAPQryz9sq8o/hIAAAEBAAACs68o/+CvLPzZBALH5/yCgdBARICU5AZYaBoH2/5KhAZCZEZqYwCAAuAmR8/+goHSaiMAgAJIYAJCQ9BvJwMD0wCAAwlgAmpvAIACiSQDAIACSGACB6v+QkPSAgPSHmUeB5f+SoQGQmRGamMAgAMgJoeX/seP/h5wXxgEAfOiHGt7GCADAIACJCsAgALkJRgIAwCAAuQrAIACJCZHX/5qIDAnAIACSWAAd8AAAVCAAYFQwAGA2QQCR/f/AIACICYCAJFZI/5H6/8AgAIgJgIAkVkj/HfAAAAAsIABgACAAYAAAAAg2QQAQESCl/P8h+v8MCMAgAIJiAJH6/4H4/8AgAJJoAMAgAJgIVnn/wCAAiAJ88oAiMCAgBB3wAAAAAEA2QQAQESDl+/8Wav+B7P+R+//AIACSaADAIACYCFZ5/x3wAADoCABAuAgAQDaBAIH9/+AIABwGBgwAAABgVEMMCAwa0JURDI05Me0CiWGpUZlBiSGJEdkBLA8MzAxLgfL/4AgAUETAWjNaIuYUzQwCHfAAABQoAEA2QQAgoiCB/f/gCAAd8AAAcOL6PwggAGC8CgBAyAoAQDZhABARIGXv/zH5/70BrQOB+v/gCABNCgwS7OqIAZKiAJCIEIkBEBEg5fP/kfL/oKIBwCAAiAmgiCDAIACJCbgBrQOB7v/gCACgJIMd8AAAXIDKP/8PAABoq8o/NkEAgfz/DBmSSAAwnEGZKJH6/zkYKTgwMLSaIiozMDxBOUgx9v8ioAAyAwAiaAUnEwmBv//gCABGAwAAEBEgZfb/LQqMGiKgxR3wAP///wAEIABg9AgAQAwJAEAACQBANoEAMeT/KEMWghEQESAl5v8W+hAM+AwEJ6gMiCMMEoCANIAkkyBAdBARICXo/xARIOXg/yHa/yICABYyCqgjgev/QCoRFvQEJyg8gaH/4AgAgej/4AgA6CMMAgwaqWGpURyPQO4RDI3CoNgMWylBKTEpISkRKQGBl//gCACBlP/gCACGAgAAAKCkIYHb/+AIABwKBiAAAAAnKDmBjf/gCACB1P/gCADoIwwSHI9A7hEMjSwMDFutAilhKVFJQUkxSSFJEUkBgYP/4AgAgYH/4AgARgEAgcn/4AgADBqGDQAAKCMMGUAiEZCJAcwUgIkBkb//kCIQkb7/wCAAImkAIVr/wCAAgmIAwCAAiAJWeP8cCgwSQKKDKEOgIsApQygjqiIpIx3wAAA2gQCBaf/gCAAsBoYPAAAAga//4AgAYFRDDAgMGtCVEe0CqWGpUYlBiTGZITkRiQEsDwyNwqASsqAEgVz/4AgAgVr/4AgAWjNaIlBEwOYUvx3wAAAUCgBANmEAQYT/WDRQM2MWYwtYFFpTUFxBRgEAEBEgZeb/aESmFgRoJGel7xARIGXM/xZq/1F6/2gUUgUAFkUGgUX/4AgAYFB0gqEAUHjAd7MIzQO9Aq0Ghg4AzQe9Aq0GUtX/EBEgZfT/OlVQWEEMCUYFAADCoQCZARARIOXy/5gBctcBG5mQkHRgp4BwsoBXOeFww8AQESAl8f+BLv/gCACGBQDNA70CrQaB1f/gCACgoHSMSiKgxCJkBSgUOiIpFCg0MCLAKTQd8ABcBwBANkEAgf7/4AgAggoYDAmCyPwMEoApkx3wNkEAgfj/4AgAggoYDAmCyP0MEoApkx3wvP/OP0gAyj9QAMo/QCYAQDQmAEDQJgBANmEAfMitAoeTLTH3/8YFAACoAwwcvQGB9//gCACBj/6iAQCICOAIAKgDgfP/4AgA5hrdxgoAAABmAyYMA80BDCsyYQCB7v/gCACYAYHo/zeZDagIZhoIMeb/wCAAokMAmQgd8EQAyj8CAMo/KCYAQDZBACH8/4Hc/8gCqAix+v+B+//gCAAMCIkCHfCQBgBANkEAEBEgpfP/jLqB8v+ICIxIEBEgpfz/EBEg5fD/FioAoqAEgfb/4AgAHfAAAMo/SAYAQDZBABARIGXw/00KvDox5P8MGYgDDAobSEkDMeL/ijOCyMGAqYMiQwCgQHTMqjKvQDAygDCUkxZpBBARIOX2/0YPAK0Cge7/4AgAEBEgZer/rMox6f886YITABuIgID0glMAhzkPgq9AiiIMGiCkk6CgdBaqAAwCEBEgJfX/IlMAHfAAADZBAKKgwBARICX3/x3wAAA2QQCCoMCtAoeSEaKg2xARIKX1/6Kg3EYEAAAAAIKg24eSCBARIGX0/6Kg3RARIOXz/x3wNkEAOjLGAgAAogIAGyIQESCl+/83kvEd8AAAAFwcAEAgCgBAaBwAQHQcAEA2ISGi0RCB+v/gCACGDwAAUdD+DBRARBGCBQBAQ2PNBL0BrQKMmBARICWm/8YBAAAAgfD/4AgAoKB0/DrNBL0BotEQge3/4AgASiJAM8BW4/siogsQIrCtArLREIHo/+AIAK0CHAsQESCl9v8tA4YAACKgYx3wAACIJgBAhBsAQJQmAECQGwBANkEAEBEgpdj/rIoME0Fm//AzAYyyqASB9v/gCACtA8YJAK0DgfT/4AgAqASB8//gCAAGCQAQESDl0/8MGPCIASwDoIODrQgWkgCB7P/gCACGAQAAgej/4AgAHfBgBgBANkEhYqQd4GYRGmZZBgwXUqAAYtEQUKUgQHcRUmYaEBEg5ff/R7cCxkIArQaBt//gCADGLwCRjP5Qc8CCCQBAd2PNB70BrQIWqAAQESBllf/GAQAAAIGt/+AIAKCgdIyqDAiCZhZ9CEYSAAAAEBEgpeP/vQetARARICXn/xARIKXi/80HELEgYKYggaH/4AgAeiJ6VTe1yIKhB8CIEZKkHRqI4JkRiAgamZgJgHXAlzeDxur/DAiCRmyipBsQqqCBz//gCABWCv+yoguiBmwQu7AQESClsgD36hL2Rw+Sog0QmbB6maJJABt3hvH/fOmXmsFmRxKSoQeCJhrAmREamYkJN7gCh7WLIqILECKwvQatAoGA/+AIABARIOXY/60CHAsQESBl3P8QESDl1/8MGhARIOXm/x3wAADKP09IQUmwgABgoTrYUJiAAGC4gABgKjEdj7SAAGD8K8s/rIA3QJggDGA8gjdArIU3QAgACGCAIQxgEIA3QBCAA2BQgDdADAAAYDhAAGCcLMs///8AACyBAGAQQAAAACzLPxAsyz98kABg/4///4CQAGCEkABgeJAAYFQAyj9YAMo/XCzLPxQAAGDw//8A/CvLP1wAyj90gMo/gAcAQHgbAEC4JgBAZCYAQHQfAEDsCgBABCAAQFQJAEBQCgBAAAYAQBwpAEAkJwBACCgAQOQGAEB0gQRAnAkAQPwJAEAICgBAqAYAQIQJAEBsCQBAkAkAQCgIAEDYBgBANgEBIcH/DAoiYRCB5f/gCAAQESDlrP8WigQxvP8hvP9Bvf/AIAApAwwCwCAAKQTAIAApA1G5/zG5/2G5/8AgADkFwCAAOAZ89BBEAUAzIMAgADkGwCAAKQWGAQBJAksiBgIAIaj/Ma//QqAANzLsEBEgJcD/DEuiwUAQESClw/8ioQEQESDlvv8xY/2QIhEqI8AgADkCQaT/ITv9SQIQESClpf8tChb6BSGa/sGb/qgCDCuBnf7gCABBnP+xnf8cGgwMwCAAqQSBt//gCAAMGvCqAYEl/+AIALGW/6gCDBWBsv/gCACoAoEd/+AIAKgCga//4AgAQZD/wCAAKARQIiDAIAApBIYWABARIGWd/6yaQYr/HBqxiv/AIACiZAAgwiCBoP/gCAAhh/8MRAwawCAASQLwqgHGCAAAALGD/80KDFqBmP/gCABBgP9SoQHAIAAoBCwKUCIgwCAAKQSBAv/gCACBk//gCAAhef/AIAAoAsy6HMRAIhAiwvgMFCCkgwwLgYz/4AgAgYv/4AgAXQqMmkGo/QwSIkQARhQAHIYMEmlBYsEgqWFpMakhqRGpAf0K7QopUQyNwqCfsqAEIKIggWr94AgAcgEiHGhix+dgYHRnuAEtBTyGDBV3NgEMBUGU/VAiICAgdCJEABbiAKFZ/4Fy/+AIAIFb/eAIAPFW/wwdDBwMG+KhAEDdEQDMEWC7AQwKgWr/4AgAMYT9YtMrhhYAwCAAUgcAUFB0FhUFDBrwqgHAIAAiRwCByf7gCACionHAqhGBX//gCACBXv/gCABxQv986MAgAFgHfPqAVRAQqgHAIABZB4FY/+AIAIFX/+AIACCiIIFW/+AIAHEn/kHp/MAgACgEFmL5DAfAIABYBAwSwCAAeQQiQTQiBQEMKHnhIkE1glEbHDd3EiQcR3cSIWaSISIFA3IFAoAiEXAiIGZCEiglwCAAKAIp4YYBAAAAHCIiURsQESBlmf+yoAiiwTQQESDlnP+yBQMiBQKAuxEgSyAhGf8gIPRHshqioMAQESCll/+ioO4QESAll/8QESDllf+G2P8iBQEcRyc3N/YiGwYJAQAiwi8gIHS2QgIGJQBxC/9wIqAoAqACAAAiwv4gIHQcJye3Akb/AHEF/3AioCgCoAIAcsIwcHB0tlfFhvkALEkMByKgwJcUAob3AHnhDHKtBxARIGWQ/60HEBEg5Y//EBEgZY7/EBEgJY7/DIuiwTQiwv8QESBlkf9WIv1GQAAMElakOcLBIL0ErQSBCP/gCABWqjgcS6LBIBARICWP/4bAAAwSVnQ3gQL/4AgAoCSDxtoAJoQEDBLG2AAoJXg1cIIggIC0Vtj+EBEgZT7/eiKsmgb4/0EN/aCsQYIEAIz4gSL94AgARgMActfwRgMAAACB8f7gCAAW6v4G7v9wosDMF8anAKCA9FaY/EYKAEH+/KCg9YIEAJwYgRP94AgAxgMAfPgAiBGKd8YCAIHj/uAIABbK/kbf/wwYAIgRcKLAdzjKhgkAQfD8oKxBggQAjOiBBv3gCAAGAwBy1/AGAwAAgdX+4AgAFvr+BtL/cKLAVif9hosADAcioMAmhAIGqgAMBy0HRqgAJrT1Bn4ADBImtAIGogC4NaglDAcQESClgf+gJ4OGnQAMGWa0X4hFIKkRDAcioMKHugIGmwC4VaglkmEWEBEgZTT/kiEWoJeDRg4ADBlmtDSIRSCpEQwHIqDCh7oCRpAAKDW4VaglIHiCkmEWEBEgZTH/IcH8DAiSIRaJYiLSK3JiAqCYgy0JBoMAkbv8DAeiCQAioMZ3mgKGgQB4JbLE8CKgwLeXAiIpBQwHkqDvRgIAeoWCCBgbd4CZMLcn8oIFBXIFBICIEXCIIHIFBgB3EYB3IIIFB4CIAXCIIICZwIKgwQwHkCiTxm0AgaP8IqDGkggAfQkWmRqYOAwHIqDIdxkCBmcAKFiSSABGYgAciQwHDBKXFAIGYgD4dehl2FXIRbg1qCWBev7gCAAMCH0KoCiDBlsADBImRAJGVgCRX/6BX/7AIAB4CUAiEYB3ECB3IKglwCAAeQmRWv4MC8AgAHgJgHcQIHcgwCAAeQmRVv7AIAB4CYB3ECB3IMAgAHkJkVL+wCAAeAmAdxAgJyDAIAApCYFb/uAIAAYgAABAkDQMByKgwHcZAoY9AEBEQYvFfPhGDwCoPIJhFZJhFsJhFIFU/uAIAMIhFIIhFSgseByoDJIhFnByECYCDcAgANgKICgw0CIQIHcgwCAAeQobmcLMEEc5vsZ//2ZEAkZ+/wwHIqDAhiYADBImtALGIQAhL/6IVXgliQIhLv55AgwCBh0A8Sr+DAfIDwwZssTwjQctB7Apk8CJgyCIECKgxneYYKEk/n0I2AoioMm3PVOw4BQioMBWrgQtCIYCAAAqhYhoSyKJB40JIO3AKny3Mu0WaNjpCnkPxl//DBJmhBghFP6CIgCMGIKgyAwHeQIhEP55AgwSgCeDDAdGAQAADAcioP8goHQQESClUv9woHQQESDlUf8QESClUP9W8rAiBQEcJyc3H/YyAkbA/iLC/SAgdAz3J7cCxrz+cf/9cCKgKAKgAgAAcqDSdxJfcqDUd5ICBiEARrX+KDVYJRARIKU0/40KVmqsoqJxwKoRgmEVgQD+4AgAcfH9kfH9wCAAeAeCIRVwtDXAdxGQdxBwuyAgu4KtCFC7woH//eAIAKKj6IH0/eAIAMag/gAA2FXIRbg1qCUQESAlXP8GnP4AsgUDIgUCgLsRILsgssvwosUYEBEgJR//BpX+ACIFA3IFAoAiEXAiIIHt/eAIAHH7+yLC8Ig3gCJjFjKjiBeKgoCMQUYDAAAAgmEVEBEgpQP/giEVkicEphkFkicCl6jnEBEgZen+Fmr/qBfNArLFGIHc/eAIAIw6UqDEWVdYFypVWRdYNyAlwCk3gdb94AgABnf+AAAiBQOCBQJyxRiAIhFYM4AiICLC8FZFCvZSAoYnACKgyUYsAFGz/YHY+6gFKfGgiMCJgYgmrQmHsgEMOpJhFqJhFBARIOX6/qIhFIGq/akB6AWhqf3dCL0HwsE88sEggmEVgbz94AgAuCbNCqjxkiEWoLvAuSagIsC4Bap3qIGCIRWquwwKuQXAqYOAu8Cg0HTMiuLbgK0N4KmDrCqtCIJhFZJhFsJhFBARIKUM/4IhFZIhFsIhFIkFBgEAAAwcnQyMslgzjHXAXzHAVcCWNfXWfAAioMcpUwZA/lbcjygzFoKPIqDIBvv/KCVW0o4QESBlIv+ionHAqhGBif3gCACBlv3gCACGNP4oNRbSjBARIGUg/6Kj6IGC/eAIAOACAAYu/h3wAAAANkEAnQKCoMAoA4eZD8wyDBKGBwAMAikDfOKGDwAmEgcmIhiGAwAAAIKg24ApI4eZKgwiKQN88kYIAAAAIqDcJ5kKDBIpAy0IBgQAAACCoN188oeZBgwSKQMioNsd8AAA", - "text_start": 1077379072, - "data": "XADKP16ON0AzjzdAR5Q3QL2PN0BTjzdAvY83QB2QN0A6kTdArJE3QFWRN0DpjTdA0JA3QCyRN0BAkDdA0JE3QGiQN0DQkTdAIY83QH6PN0C9jzdAHZA3QDmPN0AqjjdAkJI3QA2UN0AAjTdALZQ3QACNN0AAjTdAAI03QACNN0AAjTdAAI03QACNN0AAjTdAKpI3QACNN0AlkzdADZQ3QAQInwAAAAAAAAAYAQQIBQAAAAAAAAAIAQQIBgAAAAAAAAAAAQQIIQAAAAAAIAAAEQQI3AAAAAAAIAAAEQQIDAAAAAAAIAAAAQQIEgAAAAAAIAAAESAoDAAQAQAA", - "data_start": 1070279676, - "bss_start": 1070202880 - } - }, - "esp32c3": { - "name": "ESP32-C3", - "mac_efuse_reg": 0x60008844, - "magic_value": [0x6921506F, 0x1B31506F, 0x4881606F, 0x4361606F], - "stub": - { - "entry": 1077413584, - "text": "QREixCbCBsa3NwRgEUc3RMg/2Mu3NARgEwQEANxAkYuR57JAIkSSREEBgoCIQBxAE3X1D4KX3bcBEbcHAGBOxoOphwBKyDdJyD8mylLEBs4izLcEAGB9WhMJCQDATBN09D8N4PJAYkQjqDQBQknSRLJJIkoFYYKAiECDJwkAE3X1D4KXfRTjGUT/yb8TBwAMlEGqh2MY5QCFR4XGI6AFAHlVgoAFR2OH5gAJRmONxgB9VYKAQgUTB7ANQYVjlecCiUecwfW3kwbADWMW1QCYwRMFAAyCgJMG0A19VWOV1wCYwRMFsA2CgLd1yT9BEZOFxboGxmE/Y0UFBrd3yT+Th0eyA6cHCAPWRwgTdfUPkwYWAMIGwYIjktcIMpcjAKcAA9dHCJFnk4cHBGMe9wI398g/EwdHsqFnupcDpgcItzbJP7d3yT+Th0eyk4ZGtmMf5gAjpscII6DXCCOSBwghoPlX4wb1/LJAQQGCgCOm1wgjoOcI3bc3JwBgfEudi/X/NzcAYHxLnYv1/4KAQREGxt03tycAYCOmBwI3BwAImMOYQ33/yFeyQBNF9f8FiUEBgoBBEQbG2T993TcHAEC3JwBgmMM3JwBgHEP9/7JAQQGCgEERIsQ3xMg/kweEAUrAA6kHAQbGJsJjCgkERTc5xb1HEwSEAYFEY9YnAQREvYiTtBQAfTeFPxxENwaAABOXxwCZ4DcGAAG39v8AdY+3JgBg2MKQwphCff9BR5HgBUczCelAupcjKCQBHMSyQCJEkkQCSUEBgoABEQbOIswlNzcEzj9sABMFRP+XAMj/54Ag8KqHBUWV57JHk/cHID7GiTc3JwBgHEe3BkAAEwVE/9WPHMeyRZcAyP/ngKDtMzWgAPJAYkQFYYKAQRG3x8g/BsaTh4cBBUcjgOcAE9fFAJjHBWd9F8zDyMf5jTqVqpWxgYzLI6oHAEE3GcETBVAMskBBAYKAAREizDfEyD+TB4QBJsrER07GBs5KyKqJEwSEAWPzlQCuhKnAAylEACaZE1nJABxIY1XwABxEY175ArU9fd1IQCaGzoWXAMj/54Ag4RN19Q8BxZMHQAxcyFxAppdcwFxEhY9cxPJAYkTSREJJskkFYYKAaTVtv0ERBsaXAMj/54AA1gNFhQGyQHUVEzUVAEEBgoBBEQbGxTcdyTdHyD8TBwcAXEONxxBHHcK3BgxgmEYNinGbUY+YxgVmuE4TBgbA8Y99dhMG9j9xj9mPvM6yQEEBgoBBEQbGeT8RwQ1FskBBARcDyP9nAIPMQREGxibCIsSqhJcAyP/ngODJrT8NyTdHyD+TBgcAg9fGABMEBwCFB8IHwYMjlvYAkwYADGOG1AATB+ADY3X3AG03IxYEALJAIkSSREEBgoBBEQbGEwcADGMa5QATBbANRTcTBcANskBBAVm/EwewDeMb5f5xNxMF0A31t0ERIsQmwgbGKoSzBLUAYxeUALJAIkSSREEBgoADRQQABQRNP+23NXEmy07H/XKFaf10Is1KyVLFVsMGz5OEhPoWkZOHCQemlxgIs4TnACqJJoUuhJcAyP/ngEAYk4cJBxgIBWq6l7OKR0Ex5AVnfXWTBYX6kwcHBxMFhfkUCKqXM4XXAJMHBweul7OF1wAqxpcAyP/ngAAVMkXBRZU3AUWFYhaR+kBqRNpESkm6SSpKmkoNYYKAooljc4oAhWlOhtaFSoWXAMj/54AAwxN19Q8B7U6G1oUmhZcAyP/ngEAQTpkzBDRBUbcTBTAGVb8TBQAMSb0xcf1yBWdO11LVVtNezwbfIt0m20rZWtFizWbLaslux/13FpETBwcHPpccCLqXPsYjqgf4qokuirKKtovFM5MHAAIZwbcHAgA+hZcAyP/ngOAIhWdj5VcTBWR9eRMJifqTBwQHypcYCDOJ5wBKhZcAyP/ngGAHfXsTDDv5kwyL+RMHBAeTBwQHFAhil+aXgUQzDNcAs4zXAFJNY3xNCWPxpANBqJk/ooUIAY01uTcihgwBSoWXAMj/54BAA6KZopRj9UQDs4ekQWPxdwMzBJpAY/OKAFaEIoYMAU6FlwDI/+eAQLITdfUPVd0CzAFEeV2NTaMJAQBihZcAyP/ngICkffkDRTEB5oWRPGNPBQDj4o3+hWeThwcHopcYCLqX2pcjiqf4BQTxt+MVpf2RR+MF9PYFZ311kwcHB5MFhfoTBYX5FAiqlzOF1wCTBwcHrpezhdcAKsaXAMj/54Bg+XE9MkXBRWUzUT1VObcHAgAZ4ZMHAAI+hZcAyP/ngGD2hWIWkfpQalTaVEpZulkqWppaClv6S2pM2kxKTbpNKWGCgLdXQUkZcZOH94QBRYbeotym2srYztbS1NbS2tDezuLM5srqyO7GPs6XAMj/54BAnLExDc23BAxgnEQ3RMg/EwQEABzEvEx9dxMH9z9cwPmPk+cHQLzMEwVABpcAyP/ngGCSHETxm5PnFwCcxAE5IcG3hwBgN0fYUJOGhwoTBxeqmMIThwcJIyAHADc3HY8joAYAEwenEpOGBwuYwpOHxwqYQzcGAIBRj5jDI6AGALdHyD83d8k/k4cHABMHR7shoCOgBwCRB+Pt5/5BO5FFaAhxOWEzt/fIP5OHR7IhZz6XIyD3CLcHOEA3Scg/k4eHDiMg+QC3eck/UTYTCQkAk4lJsmMJBRC3JwxgRUe414VFRUWXAMj/54Dg37cFOEABRpOFBQBFRZcAyP/ngODgtzcEYBFHmMs3BQIAlwDI/+eAIOCXAMj/54Cg8LdHAGCcXwnl8YvhFxO1FwCBRZcAyP/ngICTwWe3xMg//RcTBwAQhWZBZrcFAAEBRZOEhAG3Ssg/DWqXAMj/54AAjhOLigEmmoOnyQj134OryQiFRyOmCQgjAvECg8cbAAlHIxPhAqMC8QIC1E1HY4HnCFFHY4/nBilHY5/nAIPHOwADxysAogfZjxFHY5bnAIOniwCcQz7UpTmhRUgQUTaDxzsAA8crAKIH2Y8RZ0EHY3T3BBMFsA39NBMFwA3lNBMF4A7NNKkxQbe3BThAAUaThYUDFUWXAMj/54BA0TcHAGBcRxMFAAKT5xcQXMcJt8lHIxPxAk23A8cbANFGY+fmAoVGY+bmAAFMEwTwD4WoeRcTd/cPyUbj6Ob+t3bJPwoHk4aGuzaXGEMCh5MGBwOT9vYPEUbjadb8Ewf3AhN39w+NRmPo5gq3dsk/CgeThkbANpcYQwKHEwdAAmOV5xIC1B1EAUWBNAFFcTRVNk02oUVIEH0UdTR19AFMAUQTdfQPlTwTdfwPvTRZNuMeBOqDxxsASUdjZfcyCUfjdvfq9ReT9/cPPUfjYPfqN3fJP4oHEwdHwbqXnEOChwVEoeu3BwBAA6dHAZlHcBCBRQFFY/3nAJfQzP/ngACzBUQF6dFFaBA9PAFEHaCXsMz/54Bg/e23BUSB75fwx//ngOBwMzSgACmgIUdjhecABUQBTL23A6yLAAOkywCzZ4wA0gf19+/w34B98cFsIpz9HH19MwWMQE3Ys3eVAZXjwWwzBYxAY+aMAv18MwWMQEncMYGX8Mf/54Dga1X5ZpT1tzGBl/DH/+eA4GpV8WqU0bdBgZfwx//ngKBpUfkzBJRBwbchR+OM5+4BTBMEAAzNvUFHzb9BRwVE45zn9oOlywADpYsAXTKxv0FHBUTjkuf2A6cLAZFnY+rnHoOlSwEDpYsA7/AP/DW/QUcFROOS5/SDpwsBEWdjavccA6fLAIOlSwEDpYsAM4TnAu/wj/kjrAQAIySKsDG3A8cEAGMDBxQDp4sAwRcTBAAMYxP3AMBIAUeTBvAOY0b3AoPHWwADx0sAAUyiB9mPA8drAEIHXY+Dx3sA4gfZj+OE9uQTBBAMgbUzhusAA0aGAQUHsY7ht4PHBAD9x9xEY50HFMBII4AEAH21YUdjlucCg6fLAQOniwGDpksBA6YLAYOlywADpYsAl/DH/+eAoFkqjDM0oADFuwFMBUTtsxFHBUTjmufmt5cAYLRDZXd9FwVm+Y7RjgOliwC0w7RHgUX5jtGOtMf0Q/mO0Y70w9RfdY9Rj9jfl/DH/+eAwFcBvRP39wDjFQfqk9xHABOEiwABTH1d43ec2UhEl/DH/+eAQEQYRFRAEED5jmMHpwEcQhNH9/99j9mOFMIFDEEE2b8RR6W1QUcFROOX596Dp4sAA6dLASMq+QAjKOkATbuDJQkBwReR5YnPAUwTBGAMJbsDJ0kBY2b3BhP3NwDjGQfiAyhJAQFGAUczBehAs4blAGNp9wDjBwbQIyqpACMo2QAJszOG6wAQThEHkMIFRum/IUcFROOR59gDJEkBGcATBIAMIyoJACMoCQAzNIAApbMBTBMEIAzBuQFMEwSADOGxAUwTBJAMwbETByANY4PnDBMHQA3jnue2A8Q7AIPHKwAiBF2Ml/DH/+eAIEIDrMQAQRRjc4QBIozjDAy0wEBilDGAnEhjVfAAnERjW/QK7/DPxnXdyEBihpOFiwGX8Mf/54AgPgHFkwdADNzI3EDil9zA3ESzh4dB3MSX8Mf/54AAPTm2CWUTBQVxA6zLAAOkiwCX8Mf/54DALrcHAGDYS7cGAAHBFpNXRwESB3WPvYvZj7OHhwMBRbPVhwKX8Mf/54CgLxMFgD6X8Mf/54BgK8G0g6ZLAQOmCwGDpcsAA6WLAO/wz/dttIPFOwCDxysAE4WLAaIF3Y3BFe/wr9BJvO/wD8A9vwPEOwCDxysAE4yLASIEXYzcREEUzeORR4VLY/+HCJMHkAzcyJ20A6cNACLQBUizh+xAPtaDJ4qwY3P0AA1IQsY6xO/wj7siRzJIN8XIP+KFfBCThooBEBATBQUDl/DH/+eAACw398g/kwiHAYJXA6eIsIOlDQAdjB2PPpyyVyOk6LCqi76VI6C9AJOHigGdjQHFoWdjl/UAWoXv8E/GI6BtAQnE3ESZw+NPcPdj3wsAkwdwDL23hUu3fck/t8zIP5ONTbuTjIwB6b/jkAuc3ETjjQeakweADKm3g6eLAOOWB5rv8A/PCWUTBQVxl/DH/+eAwBjv8M/Jl/DH/+eAABxpsgOkywDjAgSY7/CPzBMFgD6X8Mf/54BgFu/wb8cClK2y7/DvxvZQZlTWVEZZtlkmWpZaBlv2S2ZM1kxGTbZNCWGCgA==", - "text_start": 1077411840, - "data": "GEDIP8AKOEAQCzhAaAs4QDYMOECiDDhAUAw4QHIJOEDyCzhAMgw4QHwLOEAiCThAsAs4QCIJOECaCjhA4Ao4QBALOEBoCzhArAo4QNYJOEAgCjhAqAo4QPoOOEAQCzhAug04QLIOOEBiCDhA2g44QGIIOEBiCDhAYgg4QGIIOEBiCDhAYgg4QGIIOEBiCDhAVg04QGIIOEDYDThAsg44QA==", - "data_start": 1070164916, - "bss_start": 1070088192 - } - }, - "esp32c6": { - "name": "ESP32-C6", - "mac_efuse_reg": 0x600B0844, - "magic_value": 0x2CE0806F, - "stub": - { - "entry": 1082132164, - "text": "QREixCbCBsa39wBgEUc3BIRA2Mu39ABgEwQEANxAkYuR57JAIkSSREEBgoCIQBxAE3X1D4KX3bcBEbcHAGBOxoOphwBKyDcJhEAmylLEBs4izLcEAGB9WhMJCQDATBN09A8N4PJAYkQjqDQBQknSRLJJIkoFYYKAiECDJwkAE3X1D4KXfRTjGUT/yb8TBwAMlEGqh2MY5QCFR4XGI6AFAHlVgoAFR2OH5gAJRmONxgB9VYKAQgUTB7ANQYVjlecCiUecwfW3kwbADWMW1QCYwRMFAAyCgJMG0A19VWOV1wCYwRMFsA2CgLc1hUBBEZOFhboGxmE/Y0UFBrc3hUCThweyA6cHCAPWRwgTdfUPkwYWAMIGwYIjktcIMpcjAKcAA9dHCJFnk4cHBGMe9wI3t4RAEwcHsqFnupcDpgcIt/aEQLc3hUCThweyk4YGtmMf5gAjpscII6DXCCOSBwghoPlX4wb1/LJAQQGCgCOm1wgjoOcI3bc3NwBgfEudi/X/NycAYHxLnYv1/4KAQREGxt03tzcAYCOmBwI3BwAImMOYQ33/yFeyQBNF9f8FiUEBgoBBEQbG2T993TcHAEC3NwBgmMM3NwBgHEP9/7JAQQGCgEERIsQ3hIRAkwdEAUrAA6kHAQbGJsJjCgkERTc5xb1HEwREAYFEY9YnAQREvYiTtBQAfTeFPxxENwaAABOXxwCZ4DcGAAG39v8AdY+3NgBg2MKQwphCff9BR5HgBUczCelAupcjKCQBHMSyQCJEkkQCSUEBgoABEQbOIswlNzcEzj9sABMFRP+XAID/54Cg8qqHBUWV57JHk/cHID7GiTc3NwBgHEe3BkAAEwVE/9WPHMeyRZcAgP/ngCDwMzWgAPJAYkQFYYKAQRG3h4RABsaTh0cBBUcjgOcAE9fFAJjHBWd9F8zDyMf5jTqVqpWxgYzLI6oHAEE3GcETBVAMskBBAYKAAREizDeEhECTB0QBJsrER07GBs5KyKqJEwREAWPzlQCuhKnAAylEACaZE1nJABxIY1XwABxEY175ArU9fd1IQCaGzoWXAID/54Ag4xN19Q8BxZMHQAxcyFxAppdcwFxEhY9cxPJAYkTSREJJskkFYYKAaTVtv0ERBsaXAID/54BA1gNFhQGyQHUVEzUVAEEBgoBBEQbGxTcNxbcHhECThwcA1EOZzjdnCWATBwcRHEM3Bv3/fRbxjzcGAwDxjtWPHMOyQEEBgoBBEQbGbTcRwQ1FskBBARcDgP9nAIPMQREGxibCIsSqhJcAgP/ngODJWTcNyTcHhECTBgcAg9eGABMEBwCFB8IHwYMjlPYAkwYADGOG1AATB+ADY3X3AG03IxQEALJAIkSSREEBgoBBEQbGEwcADGMa5QATBbANRTcTBcANskBBAVm/EwewDeMb5f5xNxMF0A31t0ERIsQmwgbGKoSzBLUAYxeUALJAIkSSREEBgoADRQQABQRNP+23NXEmy07H/XKFaf10Is1KyVLFVsMGz5OEhPoWkZOHCQemlxgIs4TnACqJJoUuhJcAgP/ngIAsk4cJBxgIBWq6l7OKR0Ex5AVnfXWTBYX6kwcHBxMFhfkUCKqXM4XXAJMHBweul7OF1wAqxpcAgP/ngEApMkXBRZU3AUWFYhaR+kBqRNpESkm6SSpKmkoNYYKAooljc4oAhWlOhtaFSoWXAID/54DAxRN19Q8B7U6G1oUmhZcAgP/ngIAkTpkzBDRBUbcTBTAGVb8TBQAMSb0xcf1yBWdO11LVVtNezwbfIt0m20rZWtFizWbLaslux/13FpETBwcHPpccCLqXPsYjqgf4qokuirKKtov1M5MHAAIZwbcHAgA+hZcAgP/ngCAdhWdj5VcTBWR9eRMJifqTBwQHypcYCDOJ5wBKhZcAgP/ngKAbfXsTDDv5kwyL+RMHBAeTBwQHFAhil+aXgUQzDNcAs4zXAFJNY3xNCWPxpANBqJk/ooUIAY01uTcihgwBSoWXAID/54CAF6KZopRj9UQDs4ekQWPxdwMzBJpAY/OKAFaEIoYMAU6FlwCA/+eAALUTdfUPVd0CzAFEeV2NTaMJAQBihZcAgP/ngECkffkDRTEB5oWFNGNPBQDj4o3+hWeThwcHopcYCLqX2pcjiqf4BQTxt+MVpf2RR+MF9PYFZ311kwcHB5MFhfoTBYX5FAiqlzOF1wCTBwcHrpezhdcAKsaXAID/54CgDXE9MkXBRWUzUT3BMbcHAgAZ4ZMHAAI+hZcAgP/ngKAKhWIWkfpQalTaVEpZulkqWppaClv6S2pM2kxKTbpNKWGCgLdXQUkZcZOH94QBRYbeotym2srYztbS1NbS2tDezuLM5srqyO7GPs6XAID/54CAnaE5DcE3ZwlgEwcHERxDtwaEQCOi9gC3Bv3//Rb1j8Fm1Y8cwxU5Bc23JwtgN0fYUJOGh8ETBxeqmMIThgfAIyAGACOgBgCThgfCmMKTh8fBmEM3BgQAUY+YwyOgBgC3B4RANzeFQJOHBwATBwe7IaAjoAcAkQfj7ef+RTuRRWgIdTllM7e3hECThweyIWc+lyMg9wi3B4BANwmEQJOHhw4jIPkAtzmFQEU+EwkJAJOJCbJjBQUQtwcBYEVHI6DnDIVFRUWXAID/54AA9rcFgEABRpOFBQBFRZcAgP/ngAD3t/cAYBFHmMs3BQIAlwCA/+eAQPa3FwlgiF+BRbeEhEBxiWEVEzUVAJcAgP/ngACewWf9FxMHABCFZkFmtwUAAQFFk4REAbcKhEANapcAgP/ngACUE4tKASaag6fJCPXfg6vJCIVHI6YJCCMC8QKDxxsACUcjE+ECowLxAgLUTUdjgecIUUdjj+cGKUdjn+cAg8c7AAPHKwCiB9mPEUdjlucAg6eLAJxDPtRFMaFFSBB1NoPHOwADxysAogfZjxFnQQdjdPcEEwWwDRk+EwXADQE+EwXgDik2jTlBt7cFgEABRpOFhQMVRZcAgP/ngADoNwcAYFxHEwUAApPnFxBcxzG3yUcjE/ECTbcDxxsA0UZj5+YChUZj5uYAAUwTBPAPhah5FxN39w/JRuPo5v63NoVACgeThka7NpcYQwKHkwYHA5P29g8RRuNp1vwTB/cCE3f3D41GY+vmCLc2hUAKB5OGBsA2lxhDAocTB0ACY5jnEALUHUQBRaU0AUVVPPE26TahRUgQfRTRPHX0AUwBRBN19A9xPBN1/A9ZPH024x4E6oPHGwBJR2No9zAJR+N29+r1F5P39w89R+Ng9+o3N4VAigcTBwfBupecQ4KHBUSd63AQgUUBRZfwf//ngABxHeHRRWgQnTwBRDGoBUSB75fwf//ngAB2MzSgACmgIUdjhecABUQBTGG3A6yLAAOkywCzZ4wA0gf19+/wv4V98cFsIpz9HH19MwWMQFXcs3eVAZXjwWwzBYxAY+aMAv18MwWMQFXQMYGX8H//54CAclX5ZpT1tzGBl/B//+eAgHFV8WqU0bdBgZfwf//ngMBwUfkzBJRBwbchR+OJ5/ABTBMEAAwxt0FHzb9BRwVE45zn9oOlywADpYsA5TKxv0FHBUTjkuf2A6cLAZFnY+rnHoOlSwEDpYsA7/D/gDW/QUcFROOS5/SDpwsBEWdjavccA6fLAIOlSwEDpYsAM4TnAu/wb/4jrAQAIySKsDG3A8cEAGMDBxQDp4sAwRcTBAAMYxP3AMBIAUeTBvAOY0b3AoPHWwADx0sAAUyiB9mPA8drAEIHXY+Dx3sA4gfZj+OB9uYTBBAMqb0zhusAA0aGAQUHsY7ht4PHBAD9x9xEY50HFMBII4AEAH21YUdjlucCg6fLAQOniwGDpksBA6YLAYOlywADpYsAl/B//+eAQGEqjDM0oAAptQFMBUQRtRFHBUTjmufmt5cAYLRfZXd9FwVm+Y7RjgOliwC037RXgUX5jtGOtNf0X/mO0Y703/RTdY9Rj/jTl/B//+eAIGQpvRP39wDjFQfqk9xHABOEiwABTH1d43Sc20hEl/B//+eAIEgYRFRAEED5jmMHpwEcQhNH9/99j9mOFMIFDEEE2b8RR6W1QUcFROOX596Dp4sAA6dLASMo+QAjJukAdbuDJckAwReR5YnPAUwTBGAMibsDJwkBY2b3BhP3NwDjGQfiAygJAQFGAUczBehAs4blAGNp9wDjBAbSIyipACMm2QAxuzOG6wAQThEHkMIFRum/IUcFROOR59gDJAkBGcATBIAMIygJACMmCQAzNIAApbMBTBMEIAztsQFMEwSADM2xAUwTBJAM6bkTByANY4PnDBMHQA3jm+e4A8Q7AIPHKwAiBF2Ml/B//+eAQEcDrMQAQRRjc4QBIozjCQy2wEBilDGAnEhjVfAAnERjW/QK7/Cvy3XdyEBihpOFiwGX8H//54BAQwHFkwdADNzI3EDil9zA3ESzh4dB3MSX8H//54AgQiW2CWUTBQVxA6zLAAOkiwCX8H//54CgMrcHAGDYS7cGAAHBFpNXRwESB3WPvYvZj7OHhwMBRbPVhwKX8H//54DAMxMFgD6X8H//54BAL+m8g6ZLAQOmCwGDpcsAA6WLAO/w7/vRtIPFOwCDxysAE4WLAaIF3Y3BFe/wj9V1tO/w78Q9vwPEOwCDxysAE4yLASIEXYzcREEUzeORR4VLY/+HCJMHkAzcyEG0A6cNACLQBUizh+xAPtaDJ4qwY3P0AA1IQsY6xO/wb8AiRzJIN4WEQOKFfBCThkoBEBATBcUCl/B//+eAIDE3t4RAkwhHAYJXA6eIsIOlDQAdjB2PPpyyVyOk6LCqi76VI6C9AJOHSgGdjQHFoWdjl/UAWoXv8C/LI6BtAQnE3ESZw+NPcPdj3wsAkwdwDL23hUu3PYVAt4yEQJONDbuTjEwB6b/jnQuc3ETjigeckweADKm3g6eLAOOTB5zv8C/TCWUTBQVxl/B//+eAoBzv8K/Ol/B//+eA4CBVsgOkywDjDwSY7/Cv0BMFgD6X8H//54BAGu/wT8wClFGy7/DPy/ZQZlTWVEZZtlkmWpZaBlv2S2ZM1kxGTbZNCWGCgAAA", - "text_start": 1082130432, - "data": "FACEQHIKgEDCCoBAGguAQOgLgEBUDIBAAgyAQD4JgECkC4BA5AuAQC4LgEDuCIBAYguAQO4IgEBMCoBAkgqAQMIKgEAaC4BAXgqAQKIJgEDSCYBAWgqAQKwOgEDCCoBAbA2AQGQOgEAuCIBAjA6AQC4IgEAuCIBALgiAQC4IgEAuCIBALgiAQC4IgEAuCIBACA2AQC4IgECKDYBAZA6AQA==", - "data_start": 1082469296, - "bss_start": 1082392576 - } - } - } - - this.buffer = []; - this.escaping = false; - this.slipLayer = new SlipLayer(); - this.chip = null; - - - this.disconnected = () => { }; - this.logDebug = () => { }; - this.logError = () => { }; - } - - async openPort() { - return new Promise(async (resolve, reject) => { - - /* Request a port and open a connection */ - try { - this.port = await navigator.serial.requestPort(); - await this.port.open({ baudRate: 921600 }); - } catch (error) { - reject(error); - return; - } - - // Register for device lost - navigator.serial.addEventListener('disconnect', (event) => { - if (event.target === this.port) { - logError(`The device was disconnected`); - this.disconnect(); - } - }); - - // Register for port closing - this.port.addEventListener('close', () => { - logError('Serial port closed'); - this.disconnect(); - }); - - resolve(); - - /* Set up reading from the port */ - const reader = this.port.readable.getReader(); - - while (true) { - const { value, done } = await reader.read(); - if (done) { - reader.releaseLock(); - break; - } - if (value) { - const packets = this.slipLayer.decode(value); - for (let packet of packets) { - await this.processPacket(packet); - } - } - } - }); - } - - async readReg(addr) { - return this.executeCommand(this.buildCommandPacketU32(READ_REG, addr), - async (resolve, reject, responsePacket) => { - if (responsePacket) { - resolve(responsePacket.value); - } else { - reject('Failed to read register'); - } - }); - } - - async executeCommand(packet, callback, default_callback, timeout = 100) { - if (!this.port || !this.port.writable) { - throw new Error("Port is not writable."); - } - - var pkt = this.parsePacket(packet.payload); - this.dumpPacket(pkt); - - const responsePromise = new Promise((resolve, reject) => { - - this.responseHandlers.clear(); - this.responseHandlers.set(packet.command, async (response) => { - if (callback) { - return callback(resolve, reject, response); - } - }); - - if (default_callback) { - this.responseHandlers.set(-1, async (response) => { - return default_callback(resolve, reject, response); - }); - } - - setTimeout(() => { - reject(new Error(`Timeout after ${timeout} ms waiting for response to command ${packet.command}`)); - }, timeout); - }); - - // Send the packet - const writer = this.port.writable.getWriter(); - const slipFrame = this.slipLayer.encode(packet.payload); - await writer.write(slipFrame); - writer.releaseLock(); - - return responsePromise; - } - - async disconnect() { - - if (this.port) { - try { - if (this.port.readable) { - this.port.readable.cancel(); - } - if (this.port.writable) { - this.port.writable.getWriter().releaseLock(); - } - this.port.close(); - } catch (error) { - this.logError('Error during disconnect:', error); - } - this.port = null; - } - - this.disconnected(); - } - - base64ToByteArray(base64) { - const binaryString = atob(base64); - const byteArray = new Uint8Array(binaryString.length); - for (let index = 0; index < binaryString.length; index++) { - byteArray[index] = binaryString.charCodeAt(index); - } - return byteArray; - } - - async downloadMem(address, payload) { - var binary = this.base64ToByteArray(payload); - - await this.executeCommand(this.buildCommandPacketU32(MEM_BEGIN, binary.length, 1, binary.length, address), - async (resolve, reject, responsePacket) => { - resolve(); - }); - await this.executeCommand(this.buildCommandPacketU32(MEM_DATA, binary.length, 0, 0, 0, binary), - async (resolve, reject, responsePacket) => { - resolve(); - }); - } - - async sync() { - var synchronized = false; - - const data = new Uint8Array([0x07, 0x07, 0x12, 0x20, ...Array(32).fill(0x55)]); - - await this.executeCommand(this.buildCommandPacket(SYNC, data), - async (resolve, reject, responsePacket) => { - if (synchronized) { - return; - } - - this.logDebug(`Synchronized`); - synchronized = true; - resolve(); - }); - - const currentValue = await this.readReg(this.chip_magic_addr); - - /* Function to check if the value matches any of the magic values */ - const isMagicValue = (stub, value) => { - if (Array.isArray(stub.magic_value)) { - return stub.magic_value.includes(value); - } else { - return stub.magic_value === value; - } - }; - - /* Iterate through each stub in the object */ - for (const desc in this.chip_descriptions) { - if (this.chip_descriptions.hasOwnProperty(desc)) { - const checkStub = this.chip_descriptions[desc]; - if (isMagicValue(checkStub, currentValue)) { - this.chip = this.chip_descriptions[desc]; - } - } - } - } - - async readMac() { - - // Read the MAC address registers - const register1 = await flasher.readReg(this.chip.mac_efuse_reg); - const register2 = await flasher.readReg(this.chip.mac_efuse_reg + 4); - - if (!register1 || !register2) { - return; - } - - const lower = (register1 >>> 0); - const higher = (register2 >>> 0) & 0xFFFF; - - // Construct MAC address from register values - const macBytes = new Uint8Array(6); - macBytes[0] = (higher >> 8) & 0xFF; - macBytes[1] = higher & 0xFF; - macBytes[2] = (lower >> 24) & 0xFF; - macBytes[3] = (lower >> 16) & 0xFF; - macBytes[4] = (lower >> 8) & 0xFF; - macBytes[5] = lower & 0xFF; - - function toHex(byte) { - const hexString = byte.toString(16); - return hexString.length === 1 ? '0' + hexString : hexString; - } - const mac = Array.from(macBytes) - .map(byte => toHex(byte)) - .join(':'); - - return mac; - } - - async testReliability(cbr) { - - var reference = 0; - - try { - reference = await this.executeCommand(this.buildCommandPacketU32(READ_REG, this.chip.mac_efuse_reg), - async (resolve, reject, responsePacket) => { - if (responsePacket) { - resolve(responsePacket.value); - } else { - this.logError(`Test read failed`); - reject(`Test read failed`); - } - }); - } catch (error) { - this.logError(`Test read failed due to an error: ${error.message}`); - return false; - } - - var duration = 10000; - const endTime = Date.now() + duration; - - let totalReads = 0; - let totalTime = 0; - - while (Date.now() < endTime) { - try { - const startTime = Date.now(); - - var testread = await this.executeCommand(this.buildCommandPacketU32(READ_REG, this.chip.mac_efuse_reg), - async (resolve, reject, responsePacket) => { - if (responsePacket) { - resolve(responsePacket.value); - } else { - reject(`Test read failed`); - } - }); - - const endTimeRead = Date.now(); - const readDuration = endTimeRead - startTime; - - totalTime += readDuration; - totalReads++; - - /* Update the progress bar */ - const elapsed = Date.now() - (endTime - duration); // duration is the total time period (change to 30000 for 30 seconds) - const progressPercentage = Math.min(100, (elapsed / duration) * 100); // Cap at 100% - - cbr && cbr(progressPercentage); - - /* Check if the read value differs from the reference */ - if (testread !== reference) { - this.logError(`Test read failed! Expected: 0x${reference.toString(16).padStart(8, '0')}, but got: 0x${testread.toString(16).padStart(8, '0')}`); - break; - } - } catch (error) { - this.logError(`Test read failed due to an error: ${error.message}`); - return false; - } - } - - if (totalReads > 0) { - const averageTime = totalTime / totalReads; - this.logDebug(`Average read time: ${averageTime.toFixed(2)} ms over ${totalReads} reads.`); - } - - return true; - } - - async downloadStub() { - - var stub = this.chip.stub - - await this.downloadMem(stub.text_start, stub.text); - await this.downloadMem(stub.data_start, stub.data); - - try { - await this.executeCommand(this.buildCommandPacketU32(MEM_END, 0, stub.entry), - async (resolve, reject, responsePacket) => { - console.log("Final MEM_END ACK"); - }, - async (resolve, reject, rawData) => { - const decoder = new TextDecoder('utf-8'); - const responseData = decoder.decode(rawData); - - if (responseData == "OHAI") { - this.logDebug(`Stub loader executed successfully (received ${responseData})`); - this.stubLoaded = true; - resolve(); - } - }); - } catch (error) { - this.logError("Failed to execute stub - is the device locked?"); - return false; - } - - await this.executeCommand(this.buildCommandPacketU32(SPI_SET_PARAMS, 0, 0x800000, 64 * 1024, 4 * 1024, 256, 0xFFFF), async (resolve, reject, responsePacket) => { - console.log("SPI_SET_PARAMS", responsePacket); - resolve(); - }); - - return true; - } - - async writeFlash(address, data) { - - const MAX_PACKET_SIZE = 1024; - const packets = Math.ceil(data.length / MAX_PACKET_SIZE); - - /* Send FLASH_BEGIN command with the total data size */ - await this.executeCommand( - this.buildCommandPacketU32(FLASH_BEGIN, data.length, packets, - Math.min(MAX_PACKET_SIZE, data.length), - address, this.stubLoaded ? undefined : 0 - ), - async (resolve) => { - resolve(); - } - ); - - /* Split data into chunks and send FLASH_DATA commands */ - var seq = 0; - for (let offset = 0; offset < data.length; offset += MAX_PACKET_SIZE) { - const chunk = data.slice(offset, offset + MAX_PACKET_SIZE); - - /* Four 32-bit words: data size, sequence number, 0, 0, then data. Uses Checksum. */ - await this.executeCommand( - this.buildCommandPacketU32(FLASH_DATA, chunk.length, seq++, 0, 0, chunk), - async (resolve) => { - resolve(); - } - ); - } - } - - async readFlash(address, blockSize = 0x100) { - let packet = 0; - var data = {}; - - if (blockSize > 0x1000) { - blockSize = 0x1000; - } - - return this.executeCommand( - this.buildCommandPacketU32(READ_FLASH, address, blockSize, 0x1000, 1), - async (resolve, reject, responsePacket) => { - packet = 0; - }, - async (resolve, reject, rawData) => { - if (packet == 0) { - data = rawData; - - /* Prepare response */ - var resp = new Uint8Array(4); - resp[0] = (blockSize >> 0) & 0xFF; - resp[1] = (blockSize >> 8) & 0xFF; - resp[2] = (blockSize >> 16) & 0xFF; - resp[3] = (blockSize >> 24) & 0xFF; - - /* Encode and write response */ - const slipFrame = this.slipLayer.encode(resp); - - const writer = this.port.writable.getWriter(); - await writer.write(slipFrame); - await writer.releaseLock(); - } else if (packet == 1) { - resolve(data); - } - packet++; - }, - 1000 - ); - } - - async blankCheck(cbr) { - const startAddress = 0x000000; - const endAddress = 0x800000; - const blockSize = 0x200; - - let totalReads = 0; - let totalTime = 0; - let erasedBytesTotal = 0; - let currentAddress = startAddress; - - while (currentAddress < endAddress) { - - try { - const startTime = Date.now(); - var rawData = await this.readFlash(currentAddress, blockSize); - const endTimeRead = Date.now(); - const readDuration = endTimeRead - startTime; - - var erasedBytes = 0; - for (var pos = 0; pos < rawData.length; pos++) { - if (rawData[pos] == 0xFF) { - erasedBytes++; - } - } - - currentAddress += rawData.length; - erasedBytesTotal += erasedBytes; - totalTime += readDuration; - totalReads++; - - cbr && cbr(currentAddress, startAddress, endAddress, blockSize, erasedBytes, erasedBytesTotal); - } catch (error) { - this.logError(`Test read failed due to an error: ${error.message}`); - this.disconnect(); - break; - } - } - - if (totalReads > 0) { - const averageTime = totalTime / totalReads; - this.logDebug(`Average read time: ${averageTime.toFixed(2)} ms over ${totalReads} reads.`); - } - } - - buildCommandPacketU32(command, ...values) { - /* Calculate total length for data */ - let totalLength = 0; - values.forEach(value => { - if (typeof value === 'number') { - totalLength += 4; // uint32 is 4 bytes - } else if (value instanceof Uint8Array) { - totalLength += value.length; - } - }); - - /* Convert each uint32_t to little-endian bytes or append byte arrays */ - const data = new Uint8Array(totalLength); - let offset = 0; - values.forEach(value => { - if (typeof value === 'number') { - data[offset] = (value >> 0) & 0xFF; - data[offset + 1] = (value >> 8) & 0xFF; - data[offset + 2] = (value >> 16) & 0xFF; - data[offset + 3] = (value >> 24) & 0xFF; - offset += 4; - } else if (value instanceof Uint8Array) { - data.set(value, offset); - offset += value.length; - } - }); - - /* Call the original function with the constructed data */ - return this.buildCommandPacket(command, data); - } - - buildCommandPacket(command, data) { - /* Construct command packet */ - const direction = 0x00; - const size = data.length; - let checksum = 0; - - if (size > 32) { - checksum = 0xEF; - for (let index = 16; index < size; index++) { - checksum ^= data[index]; - } - } - - const packet = new Uint8Array(8 + size); - packet[0] = direction; - packet[1] = command; - packet[2] = size & 0xff; - packet[3] = (size >> 8) & 0xff; - packet[4] = checksum & 0xff; - packet[5] = (checksum >> 8) & 0xff; - packet[6] = (checksum >> 16) & 0xff; - packet[7] = (checksum >> 24) & 0xff; - packet.set(data, 8); - - var ret = {}; - - ret.command = command; - ret.payload = packet; - - return ret; - } - - dumpPacket(pkt) { - - if (!this.devMode) { - return; - } - if (pkt.dir == 0) { - console.log(`Command: `, pkt); - console.log(`Command raw: ${Array.from(pkt.raw).map(byte => byte.toString(16).padStart(2, '0')).join(' ')}`); - } - if (pkt.dir == 1) { - console.log(`Response: `, pkt); - console.log(`Response raw: ${Array.from(pkt.raw).map(byte => byte.toString(16).padStart(2, '0')).join(' ')}`); - } - } - - parsePacket(packet) { - var pkt = {}; - - pkt.dir = packet[0]; - pkt.command = packet[1]; - pkt.size = packet[2] | (packet[3] << 8); - pkt.value = (packet[4] | (packet[5] << 8) | (packet[6] << 16) | (packet[7] << 24)) >>> 0; - - if (pkt.dir > 2 || packet.length != 8 + pkt.size) { - return null; - } - pkt.data = packet.slice(8, 8 + pkt.size); - pkt.raw = packet; - - return pkt; - } - - async processPacket(packet) { - var pkt = this.parsePacket(packet); - - if (pkt && pkt.dir === 0x01) { - - this.dumpPacket(pkt); - /* Call response handler if registered */ - if (this.responseHandlers.has(pkt.command)) { - var handler = this.responseHandlers.get(pkt.command); - await handler(pkt); - } - } else { - //console.log(`Received raw SLIP: ${ Array.from(packet).map(byte => byte.toString(16).padStart(2, '0')).join(' ') }`); - - if (this.responseHandlers.has(-1)) { - var handler = this.responseHandlers.get(-1); - await handler(packet); - } - } - } -} \ No newline at end of file diff --git a/contrib/data/www/web/translations/de.json b/contrib/data/www/web/translations/de.json index 4c5cc5d5..f3afb535 100644 --- a/contrib/data/www/web/translations/de.json +++ b/contrib/data/www/web/translations/de.json @@ -1153,6 +1153,7 @@ "extractingCertificatesSuccessfulDetails": "Zertifikate erfolgreich aus \"{{file}}\" extrahiert und in TeddyCloud gespeichert.", "failedToCommunicate": "Kommunikation fehlgeschlagen:", "failedToConnect": "Verbindung fehlgeschlagen:", + "flagPreviousHostname": "Das Flash-Image enthält einen zuvor festgelegten TeddyCloud-Hostname (WIP, wird derzeit nicht verarbeitet)", "flash": "Flashen", "flashDevice": "Flash-Gerät", "flashEsp32": "ESP32 flashen", @@ -1161,6 +1162,7 @@ "flashSize": "Flash-Größe", "flashSizeError": "Flash-Größenfehler", "hintESP32FirmwareFlashed": "Das Patchen ist abgeschlossen. Trenne die Toniebox vom UART, entferne den Kurzschluss von J100 und starte die Box neu. Sie sollte sich jetzt mit TeddyCloud verbinden können!", + "hintESP32FirmwareReseted": "Das Zurücksetzen sollte abgeschlossen sein. Bitte trenne die Toniebox vom UART, entferne den Kurzschluss von J100 und starte die Box neu. Sie sollte nicht mehr mit deinem Teddycloud verbunden sein. Führe einen Frische-Check durch, um zu testen, ob alles einwandfrei funktioniert.", "hintFlashESP32": "Trenne die Stromversorgung deiner Toniebox noch einmal. Klicke auf \"ESP32 flashen\", wähle bei Bedarf den COM-Port. Schließe dann deine Toniebox an die Stromversorgung an und warte, bis der Schritt abgeschlossen ist!", "hintPatchFlash": "Um das ausgewählte / gelesene Flash mit dem dem CA-Zertifikat deiner TeddyCloud zu versehen und ggf. weitere Anpassungen wie Hostname der TeddyCloud und/oder der WiFi-Zugangsdaten vorzunehmen, klicke nach Eingabe auf \"Patch\" oder gehe ohne Patching direkt zum nächsten Schritt. ", "hintPatchHost": "Gib den gewünschten Hostnamen deiner TeddyCloud-Instanz ein.", @@ -1183,10 +1185,13 @@ "portOpenFailedInUse": "Port konnte nicht geöffnet werden. Bereits in Gebrauch?", "preparingFlash": "Vorbereitung von {{size}} MiB Flash", "previous": "Zurück", + "previousHostname": "Alter TeddyCloud-Hostname:", "readFlash": "Flash lesen", "readingFinished": "Lesen abgeschlossen", "readingFlash": "Flash wird gelesen...", "readyToProceed": ", bereit fortzufahren.", + "resetBoxine": "Box zurücksetzen", + "resetBoxineTooltip": "Um deine Toniebox auf die Original-Firmware zurückzusetzen, drücke diesen Button, um den Vorgang zu starten. Du musst das Original-Backup der Firmware auswählen, das dann im unveränderten Zustand auf deine Toniebox geflasht wird. Leider ist es nicht möglich, deine Toniebox zurückzusetzen, wenn du kein Backup der Original-Firmware besitzt.", "retrievingMac": "MAC-Adresse wird abgerufen...", "titleESP32FirmwareFlashed": "ESP32 geflasht", "titleFlashESP32": "ESP32 flashen", @@ -1442,15 +1447,20 @@ }, "tapEditor": { "addFile": "Datei hinzufügen", + "audioId": "Audio-ID", + "audioIdTooltip": "Legt die Audio-ID fest, wenn die Datei zwischengespeichert ist. Setze sie auf 0, um die zwischengespeicherte Datei neu zu erstellen", "cancel": "Abbrechen", "create": "Anlegen", "fileNameContentFile": "Beschreibung", "filePath": "Dateipfad Playlist", "filePathContentFile": "Dateipfad", "filePathContentFileRequired": "Der Dateipfad muss ausgefüllt werden", + "filePathContentFileTooltip": "Legt den Pfad zur Audioquelle fest (muss mit ffmpeg kompatibel sein)", "filePathRequired": "Der Dateipfad Playlist muss ausgefüllt werden", + "filePathTooltip": "Legt einen Pfad für die TAF-Datei fest, die von ffmpeg erstellt wird", "name": "TAP Name", "nameRequired": "Der TAP Name muss ausgefüllt werden", + "nameTooltip": "Legt den Namen der Wiedergabeliste fest", "save": "Speichern", "titleCreate": "Neue TAP erstellen", "titleEdit": "TAP bearbeiten" diff --git a/contrib/data/www/web/translations/en.json b/contrib/data/www/web/translations/en.json index 7ba3e101..3cc3c333 100644 --- a/contrib/data/www/web/translations/en.json +++ b/contrib/data/www/web/translations/en.json @@ -1153,6 +1153,7 @@ "extractingCertificatesSuccessfulDetails": "Certificates successfully extracted from \"{{file}}\" and stored in TeddyCloud.", "failedToCommunicate": "Failed to communicate:", "failedToConnect": "Failed to connect:", + "flagPreviousHostname": "Flash image contains a previous set hostname of TeddyCloud (WIP, not processed currently)", "flash": "Flash", "flashDevice": "Flash Device", "flashEsp32": "Flash ESP32", @@ -1161,6 +1162,7 @@ "flashSize": "Flash Size", "flashSizeError": "Flash size error", "hintESP32FirmwareFlashed": "The patching should be done. Please disconnect the Toniebox from the UART, remove the short circuit from J100 and restart the box. It should now be able to connect to TeddyCloud!", + "hintESP32FirmwareReseted": "The reset should be done. Please disconnect the Toniebox from the UART, remove the short circuit from J100 and restart the box. It should be no longer connected to your Teddycloud. Do a freschnessccheck to test if it works fine.", "hintFlashESP32": "Disconnect the powersource of your Toniebox once more. Click on \"Flash ESP32\", if necessary choose the COM-Port. Then connect your Toniebox to power and wait till the step is done!", "hintPatchFlash": "To apply the selected/read flash with your TeddyCloud CA certificate and possibly make other adjustments like the TeddyCloud hostname and/or WiFi credentials, click 'Patch' after entering the information or proceed to the next step without patching.", "hintPatchHost": "Enter the desired hostname for your TeddyCloud instance.", @@ -1183,10 +1185,13 @@ "portOpenFailedInUse": "Failed to open this port. Already in use?", "preparingFlash": "Preparing {{size}} MiB flash", "previous": "Previous", + "previousHostname": "Old TeddyCloud hostname:", "readFlash": "Read Flash", "readingFinished": "Reading finished", "readingFlash": "Reading Flash...", "readyToProceed": ", ready to proceed.", + "resetBoxine": "Reset Box", + "resetBoxineTooltip": "To reset your Toniebox to its original firmware, press this button to begin the process. You will need to select the original backup of the firmware, which will then be flashed onto your Toniebox in its untouched state. Unfortunately, if you do not have a backup of the original firmware, it will not be possible to reset your Toniebox.", "retrievingMac": "Retrieving MAC address...", "titleESP32FirmwareFlashed": "ESP32 flashed", "titleFlashESP32": "Flash ESP32", @@ -1442,15 +1447,20 @@ }, "tapEditor": { "addFile": "Add file", + "audioId": "Audio ID", + "audioIdTooltip": "Sets the audio id if the file is cached. Set it to 0 to force recreating the cached file", "cancel": "Cancel", "create": "Create", "fileNameContentFile": "Description", "filePath": "File path Playlist", "filePathContentFile": "File path", "filePathContentFileRequired": "File path must be set", + "filePathContentFileTooltip": "Sets the path to audio resource (must be compatible to ffmpeg)", "filePathRequired": "File path Playlist must be set", + "filePathTooltip": "Sets a path of TAF, which will be produced by ffmpeg", "name": "TAP Name", "nameRequired": "TAP Name must be set", + "nameTooltip": "Sets the name of the playlist", "save": "Save", "titleCreate": "Create new TAP", "titleEdit": "Edit TAP" diff --git a/contrib/data/www/web/translations/es.json b/contrib/data/www/web/translations/es.json index 8f47b552..2d705ac0 100644 --- a/contrib/data/www/web/translations/es.json +++ b/contrib/data/www/web/translations/es.json @@ -1153,6 +1153,7 @@ "extractingCertificatesSuccessfulDetails": "Certificados extraídos con éxito de \"{{file}}\" y almacenados en TeddyCloud.", "failedToCommunicate": "Error de comunicación:", "failedToConnect": "Error al conectar:", + "flagPreviousHostname": "La imagen de flash contiene un nombre de host de TeddyCloud establecido previamente (WIP, actualmente no procesado)", "flash": "Flashear", "flashDevice": "Flashear dispositivo", "flashEsp32": "Flashear ESP32", @@ -1161,6 +1162,7 @@ "flashSize": "Tamaño de Flash", "flashSizeError": "Error en el tamaño de Flash", "hintESP32FirmwareFlashed": "El parcheo debería estar hecho. Desconecta la Toniebox del UART, quita el cortocircuito de J100 y reinicia la caja. ¡Ahora debería poder conectarse a TeddyCloud!", + "hintESP32FirmwareReseted": "El restablecimiento debería estar completado. Por favor, desconecta la Toniebox del UART, retira el cortocircuito de J100 y reinicia la caja. Ya no debería estar conectada a tu Teddycloud. Realiza una comprobación de frescura para verificar que todo funciona bien.", "hintFlashESP32": "Desconecta la fuente de alimentación de tu Toniebox una vez más. Haz clic en \"Flashear ESP32\", si es necesario elige el puerto COM. Luego conecta tu Toniebox a la alimentación y espera hasta que se complete el paso.", "hintPatchFlash": "Para aplicar el flash seleccionado/leído con tu certificado CA de TeddyCloud y posiblemente hacer otros ajustes como el nombre de host de TeddyCloud y/o credenciales WiFi, haz clic en 'Parchear' después de ingresar la información o continúa con el siguiente paso sin parchear.", "hintPatchHost": "Introduce el nombre de host deseado para tu instancia de TeddyCloud.", @@ -1183,10 +1185,13 @@ "portOpenFailedInUse": "Error al abrir este puerto. ¿Ya está en uso?", "preparingFlash": "Preparando flash de {{size}} MiB", "previous": "Anterior", + "previousHostname": "Nombre de host antiguo de TeddyCloud:", "readFlash": "Leer Flash", "readingFinished": "Lectura finalizada", "readingFlash": "Leyendo Flash...", "readyToProceed": ", listo para continuar.", + "resetBoxine": "Restablecer la caja", + "resetBoxineTooltip": "Para restablecer tu Toniebox a su firmware original, pulsa este botón para comenzar el proceso. Necesitarás seleccionar la copia de seguridad del firmware original, que se instalará en tu Toniebox en su estado original. Desafortunadamente, no será posible restablecer tu Toniebox si no tienes una copia de seguridad del firmware original.", "retrievingMac": "Recuperando dirección MAC...", "titleESP32FirmwareFlashed": "ESP32 flasheado", "titleFlashESP32": "Flashear ESP32", @@ -1442,15 +1447,20 @@ }, "tapEditor": { "addFile": "Agregar archivo", + "audioId": "ID de audio", + "audioIdTooltip": "Establece la ID de audio si el archivo está en caché. Configúralo en 0 para forzar la recreación del archivo en caché", "cancel": "Cancelar", "create": "Crear", "fileNameContentFile": "Descripción", "filePath": "Ruta del archivo Lista de reproducción", "filePathContentFile": "Ruta del archivo", "filePathContentFileRequired": "Se debe establecer la ruta del archivo", + "filePathContentFileTooltip": "Establece la ruta al recurso de audio (debe ser compatible con ffmpeg)", "filePathRequired": "Se debe establecer la ruta de la lista de reproducción", + "filePathTooltip": "Establece una ruta para el archivo TAF, que será producido por ffmpeg", "name": "Nombre TAP", "nameRequired": "Se debe establecer el nombre TAP", + "nameTooltip": "Establece el nombre de la lista de reproducción", "save": "Guardar", "titleCreate": "Crear nuevo TAP", "titleEdit": "Editar TAP" diff --git a/contrib/data/www/web/translations/fr.json b/contrib/data/www/web/translations/fr.json index 23763a10..2894c970 100644 --- a/contrib/data/www/web/translations/fr.json +++ b/contrib/data/www/web/translations/fr.json @@ -1153,6 +1153,7 @@ "extractingCertificatesSuccessfulDetails": "Certificats extraits avec succès depuis \"{{file}}\" et stockés dans TeddyCloud.", "failedToCommunicate": "Échec de la communication :", "failedToConnect": "Échec de la connexion :", + "flagPreviousHostname": "L'image flash contient un nom d'hôte TeddyCloud défini précédemment (WIP, non traité actuellement)", "flash": "Flasher", "flashDevice": "Périphérique flash", "flashEsp32": "Flasher l'ESP32", @@ -1161,6 +1162,7 @@ "flashSize": "Taille du flash", "flashSizeError": "Erreur de taille du flash", "hintESP32FirmwareFlashed": "Le patchage est terminé. Déconnecte la Toniebox de l'UART, retire le court-circuit du J100 et redémarre la box. Elle devrait maintenant pouvoir se connecter à TeddyCloud !", + "hintESP32FirmwareReseted": "La réinitialisation devrait être terminée. Veuillez déconnecter la Toniebox du UART, retirer le court-circuit de J100 et redémarrer la box. Elle ne devrait plus être connectée à ton Teddycloud. Fais une vérification de fraîcheur pour tester si tout fonctionne correctement.", "hintFlashESP32": "Déconnecte l'alimentation de ta Toniebox une fois de plus. Clique sur \"Flasher l'ESP32\", choisis le port COM si nécessaire. Ensuite, connecte ta Toniebox à l'alimentation et attends que l'étape soit terminée !", "hintPatchFlash": "Pour appliquer le flash sélectionné/lu avec le certificat CA de votre TeddyCloud et éventuellement effectuer d'autres ajustements tels que le nom d'hôte de TeddyCloud et/ou les identifiants WiFi, cliquez sur 'Patch' après avoir entré les informations ou passez à l'étape suivante sans patch.", "hintPatchHost": "Entrez le nom d'hôte souhaité pour votre instance TeddyCloud.", @@ -1183,10 +1185,13 @@ "portOpenFailedInUse": "Échec de l'ouverture de ce port. Déjà en cours d'utilisation ?", "preparingFlash": "Préparation du flash de {{size}} MiB", "previous": "Précédent", + "previousHostname": "Ancien nom d'hôte TeddyCloud :", "readFlash": "Lire le flash", "readingFinished": "Lecture terminée", "readingFlash": "Lecture du flash...", "readyToProceed": ", prêt à continuer.", + "resetBoxine": "Réinitialiser la box", + "resetBoxineTooltip": "Pour réinitialiser ta Toniebox à son firmware d'origine, appuie sur ce bouton pour commencer le processus. Tu devras sélectionner la sauvegarde originale du firmware, qui sera ensuite installée sur ta Toniebox dans son état d'origine. Malheureusement, si tu n'as pas de sauvegarde du firmware d'origine, il ne sera pas possible de réinitialiser ta Toniebox.", "retrievingMac": "Récupération de l'adresse MAC...", "titleESP32FirmwareFlashed": "ESP32 flashé", "titleFlashESP32": "Flasher l'ESP32", @@ -1442,15 +1447,20 @@ }, "tapEditor": { "addFile": "Ajouter un fichier", + "audioId": "ID audio", + "audioIdTooltip": "Définit l'ID audio si le fichier est mis en cache. Définissez-le à 0 pour forcer la recréation du fichier mis en cache", "cancel": "Annuler", "create": "Créer", "fileNameContentFile": "Description", "filePath": "Chemin du fichier Playlist", "filePathContentFile": "Chemin du fichier", "filePathContentFileRequired": "Le chemin du fichier doit être défini", + "filePathContentFileTooltip": "Définit le chemin vers la ressource audio (doit être compatible avec ffmpeg)", "filePathRequired": "Le chemin du fichier Playlist doit être défini", + "filePathTooltip": "Définit un chemin pour le fichier TAF, qui sera généré par ffmpeg", "name": "Nom TAP", "nameRequired": "Le nom TAP doit être défini", + "nameTooltip": "Définit le nom de la playlist", "save": "Enregistrer", "titleCreate": "Créer un nouveau TAP", "titleEdit": "Modifier le TAP" diff --git a/contrib/data/www/web/web_version.json b/contrib/data/www/web/web_version.json index 38491e6a..642c7d18 100644 --- a/contrib/data/www/web/web_version.json +++ b/contrib/data/www/web/web_version.json @@ -2,9 +2,9 @@ "web_version": "vX.X.X", "web_gitDirty": "0", "web_gitTag": "undefined", - "web_gitDateTime": "2024-11-26 10:36:29 +0100", - "web_gitSha": "805cc0678c1c669f4227b65b899a683245064855", + "web_gitDateTime": "2024-12-25 11:41:35 +0100", + "web_gitSha": "dfb0cc78e734259302f075ce8f0d38c4cf62f504", "web_gitTagPrefix": "undefined", - "web_gitShortSha": "805cc06", + "web_gitShortSha": "dfb0cc7", "_eof":"" } diff --git a/teddycloud_web b/teddycloud_web index 805cc067..dfb0cc78 160000 --- a/teddycloud_web +++ b/teddycloud_web @@ -1 +1 @@ -Subproject commit 805cc0678c1c669f4227b65b899a683245064855 +Subproject commit dfb0cc78e734259302f075ce8f0d38c4cf62f504