var _Z=Object.defineProperty;var W3=t=>{throw TypeError(t)};var bZ=(t,e,n)=>e in t?_Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var In=(t,e,n)=>bZ(t,typeof e!="symbol"?e+"":e,n),hC=(t,e,n)=>e.has(t)||W3("Cannot "+n);var $=(t,e,n)=>(hC(t,e,"read from private field"),n?n.call(t):e.get(t)),Je=(t,e,n)=>e.has(t)?W3("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Pe=(t,e,n,r)=>(hC(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),$e=(t,e,n)=>(hC(t,e,"access private method"),n);var Jd=(t,e,n,r)=>({set _(i){Pe(t,e,i,n)},get _(){return $(t,e,r)}});function vZ(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function nl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function T5(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var pC={exports:{}},yg={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Q3;function SZ(){if(Q3)return yg;Q3=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var o in i)o!=="key"&&(a[o]=i[o])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:s,ref:i!==void 0?i:null,props:a}}return yg.Fragment=e,yg.jsx=n,yg.jsxs=n,yg}var K3;function EZ(){return K3||(K3=1,pC.exports=SZ()),pC.exports}var l=EZ(),mC={exports:{}},Yt={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var X3;function yZ(){if(X3)return Yt;X3=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function m(U){return U===null||typeof U!="object"?null:(U=p&&U[p]||U["@@iterator"],typeof U=="function"?U:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function y(U,Q,X){this.props=U,this.context=Q,this.refs=S,this.updater=X||g}y.prototype.isReactComponent={},y.prototype.setState=function(U,Q){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,Q,"setState")},y.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function E(){}E.prototype=y.prototype;function x(U,Q,X){this.props=U,this.context=Q,this.refs=S,this.updater=X||g}var C=x.prototype=new E;C.constructor=x,b(C,y.prototype),C.isPureReactComponent=!0;var R=Array.isArray,T={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function w(U,Q,X,te,ie,fe){return X=fe.ref,{$$typeof:t,type:U,key:Q,ref:X!==void 0?X:null,props:fe}}function D(U,Q){return w(U.type,Q,void 0,void 0,void 0,U.props)}function L(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function k(U){var Q={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(X){return Q[X]})}var M=/\/+/g;function P(U,Q){return typeof U=="object"&&U!==null&&U.key!=null?k(""+U.key):Q.toString(36)}function V(){}function Y(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(V,V):(U.status="pending",U.then(function(Q){U.status==="pending"&&(U.status="fulfilled",U.value=Q)},function(Q){U.status==="pending"&&(U.status="rejected",U.reason=Q)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function G(U,Q,X,te,ie){var fe=typeof U;(fe==="undefined"||fe==="boolean")&&(U=null);var Ce=!1;if(U===null)Ce=!0;else switch(fe){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(U.$$typeof){case t:case e:Ce=!0;break;case f:return Ce=U._init,G(Ce(U._payload),Q,X,te,ie)}}if(Ce)return ie=ie(U),Ce=te===""?"."+P(U,0):te,R(ie)?(X="",Ce!=null&&(X=Ce.replace(M,"$&/")+"/"),G(ie,Q,X,"",function(Ie){return Ie})):ie!=null&&(L(ie)&&(ie=D(ie,X+(ie.key==null||U&&U.key===ie.key?"":(""+ie.key).replace(M,"$&/")+"/")+Ce)),Q.push(ie)),1;Ce=0;var Re=te===""?".":te+":";if(R(U))for(var _e=0;_e<U.length;_e++)te=U[_e],fe=Re+P(te,_e),Ce+=G(te,Q,X,fe,ie);else if(_e=m(U),typeof _e=="function")for(U=_e.call(U),_e=0;!(te=U.next()).done;)te=te.value,fe=Re+P(te,_e++),Ce+=G(te,Q,X,fe,ie);else if(fe==="object"){if(typeof U.then=="function")return G(Y(U),Q,X,te,ie);throw Q=String(U),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function F(U,Q,X){if(U==null)return U;var te=[],ie=0;return G(U,te,"","",function(fe){return Q.call(X,fe,ie++)}),te}function q(U){if(U._status===-1){var Q=U._result;Q=Q(),Q.then(function(X){(U._status===0||U._status===-1)&&(U._status=1,U._result=X)},function(X){(U._status===0||U._status===-1)&&(U._status=2,U._result=X)}),U._status===-1&&(U._status=0,U._result=Q)}if(U._status===1)return U._result.default;throw U._result}var z=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)};function H(){}return Yt.Children={map:F,forEach:function(U,Q,X){F(U,function(){Q.apply(this,arguments)},X)},count:function(U){var Q=0;return F(U,function(){Q++}),Q},toArray:function(U){return F(U,function(Q){return Q})||[]},only:function(U){if(!L(U))throw Error("React.Children.only expected to receive a single React element child.");return U}},Yt.Component=y,Yt.Fragment=n,Yt.Profiler=i,Yt.PureComponent=x,Yt.StrictMode=r,Yt.Suspense=c,Yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Yt.act=function(){throw Error("act(...) is not supported in production builds of React.")},Yt.cache=function(U){return function(){return U.apply(null,arguments)}},Yt.cloneElement=function(U,Q,X){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var te=b({},U.props),ie=U.key,fe=void 0;if(Q!=null)for(Ce in Q.ref!==void 0&&(fe=void 0),Q.key!==void 0&&(ie=""+Q.key),Q)!N.call(Q,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&Q.ref===void 0||(te[Ce]=Q[Ce]);var Ce=arguments.length-2;if(Ce===1)te.children=X;else if(1<Ce){for(var Re=Array(Ce),_e=0;_e<Ce;_e++)Re[_e]=arguments[_e+2];te.children=Re}return w(U.type,ie,void 0,void 0,fe,te)},Yt.createContext=function(U){return U={$$typeof:s,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:a,_context:U},U},Yt.createElement=function(U,Q,X){var te,ie={},fe=null;if(Q!=null)for(te in Q.key!==void 0&&(fe=""+Q.key),Q)N.call(Q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ie[te]=Q[te]);var Ce=arguments.length-2;if(Ce===1)ie.children=X;else if(1<Ce){for(var Re=Array(Ce),_e=0;_e<Ce;_e++)Re[_e]=arguments[_e+2];ie.children=Re}if(U&&U.defaultProps)for(te in Ce=U.defaultProps,Ce)ie[te]===void 0&&(ie[te]=Ce[te]);return w(U,fe,void 0,void 0,null,ie)},Yt.createRef=function(){return{current:null}},Yt.forwardRef=function(U){return{$$typeof:o,render:U}},Yt.isValidElement=L,Yt.lazy=function(U){return{$$typeof:f,_payload:{_status:-1,_result:U},_init:q}},Yt.memo=function(U,Q){return{$$typeof:d,type:U,compare:Q===void 0?null:Q}},Yt.startTransition=function(U){var Q=T.T,X={};T.T=X;try{var te=U(),ie=T.S;ie!==null&&ie(X,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(H,z)}catch(fe){z(fe)}finally{T.T=Q}},Yt.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Yt.use=function(U){return T.H.use(U)},Yt.useActionState=function(U,Q,X){return T.H.useActionState(U,Q,X)},Yt.useCallback=function(U,Q){return T.H.useCallback(U,Q)},Yt.useContext=function(U){return T.H.useContext(U)},Yt.useDebugValue=function(){},Yt.useDeferredValue=function(U,Q){return T.H.useDeferredValue(U,Q)},Yt.useEffect=function(U,Q){return T.H.useEffect(U,Q)},Yt.useId=function(){return T.H.useId()},Yt.useImperativeHandle=function(U,Q,X){return T.H.useImperativeHandle(U,Q,X)},Yt.useInsertionEffect=function(U,Q){return T.H.useInsertionEffect(U,Q)},Yt.useLayoutEffect=function(U,Q){return T.H.useLayoutEffect(U,Q)},Yt.useMemo=function(U,Q){return T.H.useMemo(U,Q)},Yt.useOptimistic=function(U,Q){return T.H.useOptimistic(U,Q)},Yt.useReducer=function(U,Q,X){return T.H.useReducer(U,Q,X)},Yt.useRef=function(U){return T.H.useRef(U)},Yt.useState=function(U){return T.H.useState(U)},Yt.useSyncExternalStore=function(U,Q,X){return T.H.useSyncExternalStore(U,Q,X)},Yt.useTransition=function(){return T.H.useTransition()},Yt.version="19.0.0",Yt}var Z3;function l0(){return Z3||(Z3=1,mC.exports=yZ()),mC.exports}var I=l0();const xn=nl(I),TZ=vZ({__proto__:null,default:xn},[I]);var gC={exports:{}},Tg={},_C={exports:{}},bC={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var J3;function xZ(){return J3||(J3=1,function(t){function e(F,q){var z=F.length;F.push(q);e:for(;0<z;){var H=z-1>>>1,U=F[H];if(0<i(U,q))F[H]=q,F[z]=U,z=H;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var q=F[0],z=F.pop();if(z!==q){F[0]=z;e:for(var H=0,U=F.length,Q=U>>>1;H<Q;){var X=2*(H+1)-1,te=F[X],ie=X+1,fe=F[ie];if(0>i(te,z))ie<U&&0>i(fe,te)?(F[H]=fe,F[ie]=z,H=ie):(F[H]=te,F[X]=z,H=X);else if(ie<U&&0>i(fe,z))F[H]=fe,F[ie]=z,H=ie;else break e}}return q}function i(F,q){var z=F.sortIndex-q.sortIndex;return z!==0?z:F.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var c=[],d=[],f=1,p=null,m=3,g=!1,b=!1,S=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function C(F){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=F)r(d),q.sortIndex=q.expirationTime,e(c,q);else break;q=n(d)}}function R(F){if(S=!1,C(F),!b)if(n(c)!==null)b=!0,Y();else{var q=n(d);q!==null&&G(R,q.startTime-F)}}var T=!1,N=-1,w=5,D=-1;function L(){return!(t.unstable_now()-D<w)}function k(){if(T){var F=t.unstable_now();D=F;var q=!0;try{e:{b=!1,S&&(S=!1,E(N),N=-1),g=!0;var z=m;try{t:{for(C(F),p=n(c);p!==null&&!(p.expirationTime>F&&L());){var H=p.callback;if(typeof H=="function"){p.callback=null,m=p.priorityLevel;var U=H(p.expirationTime<=F);if(F=t.unstable_now(),typeof U=="function"){p.callback=U,C(F),q=!0;break t}p===n(c)&&r(c),C(F)}else r(c);p=n(c)}if(p!==null)q=!0;else{var Q=n(d);Q!==null&&G(R,Q.startTime-F),q=!1}}break e}finally{p=null,m=z,g=!1}q=void 0}}finally{q?M():T=!1}}}var M;if(typeof x=="function")M=function(){x(k)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,V=P.port2;P.port1.onmessage=k,M=function(){V.postMessage(null)}}else M=function(){y(k,0)};function Y(){T||(T=!0,M())}function G(F,q){N=y(function(){F(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(F){F.callback=null},t.unstable_continueExecution=function(){b||g||(b=!0,Y())},t.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<F?Math.floor(1e3/F):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(F){switch(m){case 1:case 2:case 3:var q=3;break;default:q=m}var z=m;m=q;try{return F()}finally{m=z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(F,q){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var z=m;m=F;try{return q()}finally{m=z}},t.unstable_scheduleCallback=function(F,q,z){var H=t.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?H+z:H):z=H,F){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=z+U,F={id:f++,callback:q,priorityLevel:F,startTime:z,expirationTime:U,sortIndex:-1},z>H?(F.sortIndex=z,e(d,F),n(c)===null&&F===n(d)&&(S?(E(N),N=-1):S=!0,G(R,z-H))):(F.sortIndex=U,e(c,F),b||g||(b=!0,Y())),F},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(F){var q=m;return function(){var z=m;m=q;try{return F.apply(this,arguments)}finally{m=z}}}}(bC)),bC}var eB;function CZ(){return eB||(eB=1,_C.exports=xZ()),_C.exports}var vC={exports:{}},ga={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tB;function OZ(){if(tB)return ga;tB=1;var t=l0();function e(c){var d="https://react.dev/errors/"+c;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)d+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(c,d,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:c,containerInfo:d,implementation:f}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return ga.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ga.createPortal=function(c,d){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(e(299));return a(c,d,null,f)},ga.flushSync=function(c){var d=s.T,f=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=d,r.p=f,r.d.f()}},ga.preconnect=function(c,d){typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(c,d))},ga.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},ga.preinit=function(c,d){if(typeof c=="string"&&d&&typeof d.as=="string"){var f=d.as,p=o(f,d.crossOrigin),m=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;f==="style"?r.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:m,fetchPriority:g}):f==="script"&&r.d.X(c,{crossOrigin:p,integrity:m,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ga.preinitModule=function(c,d){if(typeof c=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var f=o(d.as,d.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(c)},ga.preload=function(c,d){if(typeof c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var f=d.as,p=o(f,d.crossOrigin);r.d.L(c,f,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ga.preloadModule=function(c,d){if(typeof c=="string")if(d){var f=o(d.as,d.crossOrigin);r.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(c)},ga.requestFormReset=function(c){r.d.r(c)},ga.unstable_batchedUpdates=function(c,d){return c(d)},ga.useFormState=function(c,d,f){return s.H.useFormState(c,d,f)},ga.useFormStatus=function(){return s.H.useHostTransitionStatus()},ga.version="19.0.0",ga}var nB;function x5(){if(nB)return vC.exports;nB=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),vC.exports=OZ(),vC.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rB;function RZ(){if(rB)return Tg;rB=1;var t=CZ(),e=l0(),n=x5();function r(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)h+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}var a=Symbol.for("react.element"),s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),R=Symbol.for("react.memo_cache_sentinel"),T=Symbol.iterator;function N(u){return u===null||typeof u!="object"?null:(u=T&&u[T]||u["@@iterator"],typeof u=="function"?u:null)}var w=Symbol.for("react.client.reference");function D(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===w?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case c:return"Fragment";case o:return"Portal";case f:return"Profiler";case d:return"StrictMode";case S:return"Suspense";case y:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case g:return(u.displayName||"Context")+".Provider";case m:return(u._context.displayName||"Context")+".Consumer";case b:var h=u.render;return u=u.displayName,u||(u=h.displayName||h.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case E:return h=u.displayName||null,h!==null?h:D(u.type)||"Memo";case x:h=u._payload,u=u._init;try{return D(u(h))}catch{}}return null}var L=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=Object.assign,M,P;function V(u){if(M===void 0)try{throw Error()}catch(_){var h=_.stack.trim().match(/\n( *(at )?)/);M=h&&h[1]||"",P=-1<_.stack.indexOf(`
    at`)?" (<anonymous>)":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return`
`+M+u+P}var Y=!1;function G(u,h){if(!u||Y)return"";Y=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(h){var Ge=function(){throw Error()};if(Object.defineProperty(Ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ge,[])}catch(we){var ye=we}Reflect.construct(u,[],Ge)}else{try{Ge.call()}catch(we){ye=we}u.call(Ge.prototype)}}else{try{throw Error()}catch(we){ye=we}(Ge=u())&&typeof Ge.catch=="function"&&Ge.catch(function(){})}}catch(we){if(we&&ye&&typeof we.stack=="string")return[we.stack,ye.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=v.DetermineComponentFrameRoot(),j=A[0],K=A[1];if(j&&K){var ee=j.split(`
`),de=K.split(`
`);for(O=v=0;v<ee.length&&!ee[v].includes("DetermineComponentFrameRoot");)v++;for(;O<de.length&&!de[O].includes("DetermineComponentFrameRoot");)O++;if(v===ee.length||O===de.length)for(v=ee.length-1,O=de.length-1;1<=v&&0<=O&&ee[v]!==de[O];)O--;for(;1<=v&&0<=O;v--,O--)if(ee[v]!==de[O]){if(v!==1||O!==1)do if(v--,O--,0>O||ee[v]!==de[O]){var De=`
`+ee[v].replace(" at new "," at ");return u.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",u.displayName)),De}while(1<=v&&0<=O);break}}}finally{Y=!1,Error.prepareStackTrace=_}return(_=u?u.displayName||u.name:"")?V(_):""}function F(u){switch(u.tag){case 26:case 27:case 5:return V(u.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 15:return u=G(u.type,!1),u;case 11:return u=G(u.type.render,!1),u;case 1:return u=G(u.type,!0),u;default:return""}}function q(u){try{var h="";do h+=F(u),u=u.return;while(u);return h}catch(_){return`
Error generating stack: `+_.message+`
`+_.stack}}function z(u){var h=u,_=u;if(u.alternate)for(;h.return;)h=h.return;else{u=h;do h=u,(h.flags&4098)!==0&&(_=h.return),u=h.return;while(u)}return h.tag===3?_:null}function H(u){if(u.tag===13){var h=u.memoizedState;if(h===null&&(u=u.alternate,u!==null&&(h=u.memoizedState)),h!==null)return h.dehydrated}return null}function U(u){if(z(u)!==u)throw Error(r(188))}function Q(u){var h=u.alternate;if(!h){if(h=z(u),h===null)throw Error(r(188));return h!==u?null:u}for(var _=u,v=h;;){var O=_.return;if(O===null)break;var A=O.alternate;if(A===null){if(v=O.return,v!==null){_=v;continue}break}if(O.child===A.child){for(A=O.child;A;){if(A===_)return U(O),u;if(A===v)return U(O),h;A=A.sibling}throw Error(r(188))}if(_.return!==v.return)_=O,v=A;else{for(var j=!1,K=O.child;K;){if(K===_){j=!0,_=O,v=A;break}if(K===v){j=!0,v=O,_=A;break}K=K.sibling}if(!j){for(K=A.child;K;){if(K===_){j=!0,_=A,v=O;break}if(K===v){j=!0,v=A,_=O;break}K=K.sibling}if(!j)throw Error(r(189))}}if(_.alternate!==v)throw Error(r(190))}if(_.tag!==3)throw Error(r(188));return _.stateNode.current===_?u:h}function X(u){var h=u.tag;if(h===5||h===26||h===27||h===6)return u;for(u=u.child;u!==null;){if(h=X(u),h!==null)return h;u=u.sibling}return null}var te=Array.isArray,ie=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},Ce=[],Re=-1;function _e(u){return{current:u}}function Ie(u){0>Re||(u.current=Ce[Re],Ce[Re]=null,Re--)}function Oe(u,h){Re++,Ce[Re]=u.current,u.current=h}var se=_e(null),xe=_e(null),ce=_e(null),je=_e(null);function rt(u,h){switch(Oe(ce,h),Oe(xe,u),Oe(se,null),u=h.nodeType,u){case 9:case 11:h=(h=h.documentElement)&&(h=h.namespaceURI)?T3(h):0;break;default:if(u=u===8?h.parentNode:h,h=u.tagName,u=u.namespaceURI)u=T3(u),h=x3(u,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}Ie(se),Oe(se,h)}function _t(){Ie(se),Ie(xe),Ie(ce)}function Te(u){u.memoizedState!==null&&Oe(je,u);var h=se.current,_=x3(h,u.type);h!==_&&(Oe(xe,u),Oe(se,_))}function Ne(u){xe.current===u&&(Ie(se),Ie(xe)),je.current===u&&(Ie(je),_g._currentValue=fe)}var at=Object.prototype.hasOwnProperty,ze=t.unstable_scheduleCallback,Ze=t.unstable_cancelCallback,Ye=t.unstable_shouldYield,ve=t.unstable_requestPaint,Ue=t.unstable_now,Ke=t.unstable_getCurrentPriorityLevel,yt=t.unstable_ImmediatePriority,Ut=t.unstable_UserBlockingPriority,Nt=t.unstable_NormalPriority,Qt=t.unstable_LowPriority,sn=t.unstable_IdlePriority,wr=t.log,Wn=t.unstable_setDisableYieldValue,er=null,Kt=null;function ci(u){if(Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(er,u,void 0,(u.current.flags&128)===128)}catch{}}function Dr(u){if(typeof wr=="function"&&Wn(u),Kt&&typeof Kt.setStrictMode=="function")try{Kt.setStrictMode(er,u)}catch{}}var mn=Math.clz32?Math.clz32:nr,qt=Math.log,tr=Math.LN2;function nr(u){return u>>>=0,u===0?32:31-(qt(u)/tr|0)|0}var za=128,Ps=4194304;function ui(u){var h=u&42;if(h!==0)return h;switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function ne(u,h){var _=u.pendingLanes;if(_===0)return 0;var v=0,O=u.suspendedLanes,A=u.pingedLanes,j=u.warmLanes;u=u.finishedLanes!==0;var K=_&134217727;return K!==0?(_=K&~O,_!==0?v=ui(_):(A&=K,A!==0?v=ui(A):u||(j=K&~j,j!==0&&(v=ui(j))))):(K=_&~O,K!==0?v=ui(K):A!==0?v=ui(A):u||(j=_&~j,j!==0&&(v=ui(j)))),v===0?0:h!==0&&h!==v&&(h&O)===0&&(O=v&-v,j=h&-h,O>=j||O===32&&(j&4194176)!==0)?h:v}function Ae(u,h){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&h)===0}function Xe(u,h){switch(u){case 1:case 2:case 4:case 8:return h+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Me(){var u=za;return za<<=1,(za&4194176)===0&&(za=128),u}function Xt(){var u=Ps;return Ps<<=1,(Ps&62914560)===0&&(Ps=4194304),u}function jt(u){for(var h=[],_=0;31>_;_++)h.push(u);return h}function it(u,h){u.pendingLanes|=h,h!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function st(u,h,_,v,O,A){var j=u.pendingLanes;u.pendingLanes=_,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=_,u.entangledLanes&=_,u.errorRecoveryDisabledLanes&=_,u.shellSuspendCounter=0;var K=u.entanglements,ee=u.expirationTimes,de=u.hiddenUpdates;for(_=j&~_;0<_;){var De=31-mn(_),Ge=1<<De;K[De]=0,ee[De]=-1;var ye=de[De];if(ye!==null)for(de[De]=null,De=0;De<ye.length;De++){var we=ye[De];we!==null&&(we.lane&=-536870913)}_&=~Ge}v!==0&&xt(u,v,0),A!==0&&O===0&&u.tag!==0&&(u.suspendedLanes|=A&~(j&~h))}function xt(u,h,_){u.pendingLanes|=h,u.suspendedLanes&=~h;var v=31-mn(h);u.entangledLanes|=h,u.entanglements[v]=u.entanglements[v]|1073741824|_&4194218}function un(u,h){var _=u.entangledLanes|=h;for(u=u.entanglements;_;){var v=31-mn(_),O=1<<v;O&h|u[v]&h&&(u[v]|=h),_&=~O}}function En(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function ia(){var u=ie.p;return u!==0?u:(u=window.event,u===void 0?32:q3(u.type))}function Jl(u,h){var _=ie.p;try{return ie.p=u,h()}finally{ie.p=_}}var aa=Math.random().toString(36).slice(2),qr="__reactFiber$"+aa,$r="__reactProps$"+aa,Gi="__reactContainer$"+aa,Jc="__reactEvents$"+aa,al="__reactListeners$"+aa,eu="__reactHandles$"+aa,qi="__reactResources$"+aa,Qn="__reactMarker$"+aa;function rr(u){delete u[qr],delete u[$r],delete u[Jc],delete u[al],delete u[eu]}function wn(u){var h=u[qr];if(h)return h;for(var _=u.parentNode;_;){if(h=_[Gi]||_[qr]){if(_=h.alternate,h.child!==null||_!==null&&_.child!==null)for(u=R3(u);u!==null;){if(_=u[qr])return _;u=R3(u)}return h}u=_,_=u.parentNode}return null}function Ya(u){if(u=u[qr]||u[Gi]){var h=u.tag;if(h===5||h===6||h===13||h===26||h===27||h===3)return u}return null}function Bn(u){var h=u.tag;if(h===5||h===26||h===27||h===6)return u.stateNode;throw Error(r(33))}function sa(u){var h=u[qi];return h||(h=u[qi]={hoistableStyles:new Map,hoistableScripts:new Map}),h}function ir(u){u[Qn]=!0}var ec=new Set,sl={};function $i(u,h){oa(u,h),oa(u+"Capture",h)}function oa(u,h){for(sl[u]=h,u=0;u<h.length;u++)ec.add(h[u])}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),He=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Et={},Gt={};function gn(u){return at.call(Gt,u)?!0:at.call(Et,u)?!1:He.test(u)?Gt[u]=!0:(Et[u]=!0,!1)}function Dn(u,h,_){if(gn(h))if(_===null)u.removeAttribute(h);else{switch(typeof _){case"undefined":case"function":case"symbol":u.removeAttribute(h);return;case"boolean":var v=h.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){u.removeAttribute(h);return}}u.setAttribute(h,""+_)}}function Fn(u,h,_){if(_===null)u.removeAttribute(h);else{switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(h);return}u.setAttribute(h,""+_)}}function Ir(u,h,_,v){if(v===null)u.removeAttribute(_);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(_);return}u.setAttributeNS(h,_,""+v)}}function zr(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Yr(u){var h=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function ca(u){var h=Yr(u)?"checked":"value",_=Object.getOwnPropertyDescriptor(u.constructor.prototype,h),v=""+u[h];if(!u.hasOwnProperty(h)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var O=_.get,A=_.set;return Object.defineProperty(u,h,{configurable:!0,get:function(){return O.call(this)},set:function(j){v=""+j,A.call(this,j)}}),Object.defineProperty(u,h,{enumerable:_.enumerable}),{getValue:function(){return v},setValue:function(j){v=""+j},stopTracking:function(){u._valueTracker=null,delete u[h]}}}}function ol(u){u._valueTracker||(u._valueTracker=ca(u))}function tu(u){if(!u)return!1;var h=u._valueTracker;if(!h)return!0;var _=h.getValue(),v="";return u&&(v=Yr(u)?u.checked?"true":"false":u.value),u=v,u!==_?(h.setValue(u),!0):!1}function ll(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Ad=/[\n"\\]/g;function Ci(u){return u.replace(Ad,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function nu(u,h,_,v,O,A,j,K){u.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?u.type=j:u.removeAttribute("type"),h!=null?j==="number"?(h===0&&u.value===""||u.value!=h)&&(u.value=""+zr(h)):u.value!==""+zr(h)&&(u.value=""+zr(h)):j!=="submit"&&j!=="reset"||u.removeAttribute("value"),h!=null?Ha(u,j,zr(h)):_!=null?Ha(u,j,zr(_)):v!=null&&u.removeAttribute("value"),O==null&&A!=null&&(u.defaultChecked=!!A),O!=null&&(u.checked=O&&typeof O!="function"&&typeof O!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?u.name=""+zr(K):u.removeAttribute("name")}function ru(u,h,_,v,O,A,j,K){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(u.type=A),h!=null||_!=null){if(!(A!=="submit"&&A!=="reset"||h!=null))return;_=_!=null?""+zr(_):"",h=h!=null?""+zr(h):_,K||h===u.value||(u.value=h),u.defaultValue=h}v=v??O,v=typeof v!="function"&&typeof v!="symbol"&&!!v,u.checked=K?u.checked:!!v,u.defaultChecked=!!v,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(u.name=j)}function Ha(u,h,_){h==="number"&&ll(u.ownerDocument)===u||u.defaultValue===""+_||(u.defaultValue=""+_)}function ua(u,h,_,v){if(u=u.options,h){h={};for(var O=0;O<_.length;O++)h["$"+_[O]]=!0;for(_=0;_<u.length;_++)O=h.hasOwnProperty("$"+u[_].value),u[_].selected!==O&&(u[_].selected=O),O&&v&&(u[_].defaultSelected=!0)}else{for(_=""+zr(_),h=null,O=0;O<u.length;O++){if(u[O].value===_){u[O].selected=!0,v&&(u[O].defaultSelected=!0);return}h!==null||u[O].disabled||(h=u[O])}h!==null&&(h.selected=!0)}}function Zr(u,h,_){if(h!=null&&(h=""+zr(h),h!==u.value&&(u.value=h),_==null)){u.defaultValue!==h&&(u.defaultValue=h);return}u.defaultValue=_!=null?""+zr(_):""}function iu(u,h,_,v){if(h==null){if(v!=null){if(_!=null)throw Error(r(92));if(te(v)){if(1<v.length)throw Error(r(93));v=v[0]}_=v}_==null&&(_=""),h=_}_=zr(h),u.defaultValue=_,v=u.textContent,v===_&&v!==""&&v!==null&&(u.value=v)}function da(u,h){if(h){var _=u.firstChild;if(_&&_===u.lastChild&&_.nodeType===3){_.nodeValue=h;return}}u.textContent=h}var Dt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tc(u,h,_){var v=h.indexOf("--")===0;_==null||typeof _=="boolean"||_===""?v?u.setProperty(h,""):h==="float"?u.cssFloat="":u[h]="":v?u.setProperty(h,_):typeof _!="number"||_===0||Dt.has(h)?h==="float"?u.cssFloat=_:u[h]=(""+_).trim():u[h]=_+"px"}function ar(u,h,_){if(h!=null&&typeof h!="object")throw Error(r(62));if(u=u.style,_!=null){for(var v in _)!_.hasOwnProperty(v)||h!=null&&h.hasOwnProperty(v)||(v.indexOf("--")===0?u.setProperty(v,""):v==="float"?u.cssFloat="":u[v]="");for(var O in h)v=h[O],h.hasOwnProperty(O)&&_[O]!==v&&tc(u,O,v)}else for(var A in h)h.hasOwnProperty(A)&&tc(u,A,h[A])}function Zt(u){if(u.indexOf("-")===-1)return!1;switch(u){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 Va=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ra=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fa(u){return Ra.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Bs=null;function We(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var dt=null,At=null;function Jt(u){var h=Ya(u);if(h&&(u=h.stateNode)){var _=u[$r]||null;e:switch(u=h.stateNode,h.type){case"input":if(nu(u,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name),h=_.name,_.type==="radio"&&h!=null){for(_=u;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll('input[name="'+Ci(""+h)+'"][type="radio"]'),h=0;h<_.length;h++){var v=_[h];if(v!==u&&v.form===u.form){var O=v[$r]||null;if(!O)throw Error(r(90));nu(v,O.value,O.defaultValue,O.defaultValue,O.checked,O.defaultChecked,O.type,O.name)}}for(h=0;h<_.length;h++)v=_[h],v.form===u.form&&tu(v)}break e;case"textarea":Zr(u,_.value,_.defaultValue);break e;case"select":h=_.value,h!=null&&ua(u,!!_.multiple,h,!1)}}}var Un=!1;function zi(u,h,_){if(Un)return u(h,_);Un=!0;try{var v=u(h);return v}finally{if(Un=!1,(dt!==null||At!==null)&&(Nb(),dt&&(h=dt,u=At,At=dt=null,Jt(h),u)))for(h=0;h<u.length;h++)Jt(u[h])}}function Na(u,h){var _=u.stateNode;if(_===null)return null;var v=_[$r]||null;if(v===null)return null;_=v[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(u=u.type,v=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!v;break e;default:u=!1}if(u)return null;if(_&&typeof _!="function")throw Error(r(231,h,typeof _));return _}var Fs=!1;if(la)try{var au={};Object.defineProperty(au,"passive",{get:function(){Fs=!0}}),window.addEventListener("test",au,au),window.removeEventListener("test",au,au)}catch{Fs=!1}var bo=null,cl=null,vo=null;function Im(){if(vo)return vo;var u,h=cl,_=h.length,v,O="value"in bo?bo.value:bo.textContent,A=O.length;for(u=0;u<_&&h[u]===O[u];u++);var j=_-u;for(v=1;v<=j&&h[_-v]===O[A-v];v++);return vo=O.slice(u,1<v?1-v:void 0)}function wd(u){var h=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&h===13&&(u=13)):u=h,u===10&&(u=13),32<=u||u===13?u:0}function Cn(){return!0}function jn(){return!1}function xr(u){function h(_,v,O,A,j){this._reactName=_,this._targetInst=O,this.type=v,this.nativeEvent=A,this.target=j,this.currentTarget=null;for(var K in u)u.hasOwnProperty(K)&&(_=u[K],this[K]=_?_(A):A[K]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?Cn:jn,this.isPropagationStopped=jn,this}return k(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _=this.nativeEvent;_&&(_.preventDefault?_.preventDefault():typeof _.returnValue!="unknown"&&(_.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var _=this.nativeEvent;_&&(_.stopPropagation?_.stopPropagation():typeof _.cancelBubble!="unknown"&&(_.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),h}var sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cr=xr(sr),vr=k({},sr,{view:0,detail:0}),Gn=xr(vr),ul,su,Dd,us=k({},vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rc,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Dd&&(Dd&&u.type==="mousemove"?(ul=u.screenX-Dd.screenX,su=u.screenY-Dd.screenY):su=ul=0,Dd=u),ul)},movementY:function(u){return"movementY"in u?u.movementY:su}}),ds=xr(us),TT=k({},us,{dataTransfer:0}),xT=xr(TT),CT=k({},vr,{relatedTarget:0}),Mm=xr(CT),So=k({},sr,{animationName:0,elapsedTime:0,pseudoElement:0}),dl=xr(So),nc=k({},sr,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),ou=xr(nc),OT=k({},sr,{data:0}),fs=xr(OT),RT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Id(u){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(u):(u=$0[u])?!!h[u]:!1}function rc(){return Id}var NT=k({},vr,{key:function(u){if(u.key){var h=RT[u.key]||u.key;if(h!=="Unidentified")return h}return u.type==="keypress"?(u=wd(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?q0[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rc,charCode:function(u){return u.type==="keypress"?wd(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?wd(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),Lm=xr(NT),AT=k({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fl=xr(AT),hl=k({},vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rc}),Md=xr(hl),z0=k({},sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),km=xr(z0),Pm=k({},us,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),oh=xr(Pm),Y0=k({},sr,{newState:0,oldState:0}),H0=xr(Y0),V0=[9,13,27,32],lh=la&&"CompositionEvent"in window,lu=null;la&&"documentMode"in document&&(lu=document.documentMode);var W0=la&&"TextEvent"in window&&!lu,Q0=la&&(!lh||lu&&8<lu&&11>=lu),Bm=" ",Fm=!1;function ic(u,h){switch(u){case"keyup":return V0.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ld(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var or=!1;function K0(u,h){switch(u){case"compositionend":return Ld(h);case"keypress":return h.which!==32?null:(Fm=!0,Bm);case"textInput":return u=h.data,u===Bm&&Fm?null:u;default:return null}}function Mr(u,h){if(or)return u==="compositionend"||!lh&&ic(u,h)?(u=Im(),vo=cl=bo=null,or=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return Q0&&h.locale!=="ko"?null:h.data;default:return null}}var X0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ch(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h==="input"?!!X0[u.type]:h==="textarea"}function cu(u,h,_,v){dt?At?At.push(v):At=[v]:dt=v,h=Mb(h,"onChange"),0<h.length&&(_=new Cr("onChange","change",null,_,v),u.push({event:_,listeners:h}))}var kd=null,Pd=null;function Um(u){b3(u,0)}function B(u){var h=Bn(u);if(tu(h))return u}function W(u,h){if(u==="change")return h}var Z=!1;if(la){var J;if(la){var oe="oninput"in document;if(!oe){var be=document.createElement("div");be.setAttribute("oninput","return;"),oe=typeof be.oninput=="function"}J=oe}else J=!1;Z=J&&(!document.documentMode||9<document.documentMode)}function ke(){kd&&(kd.detachEvent("onpropertychange",qe),Pd=kd=null)}function qe(u){if(u.propertyName==="value"&&B(Pd)){var h=[];cu(h,Pd,u,We(u)),zi(Um,h)}}function Qe(u,h,_){u==="focusin"?(ke(),kd=h,Pd=_,kd.attachEvent("onpropertychange",qe)):u==="focusout"&&ke()}function ot(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return B(Pd)}function lt(u,h){if(u==="click")return B(h)}function gt(u,h){if(u==="input"||u==="change")return B(h)}function It(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var $t=typeof Object.is=="function"?Object.is:It;function zt(u,h){if($t(u,h))return!0;if(typeof u!="object"||u===null||typeof h!="object"||h===null)return!1;var _=Object.keys(u),v=Object.keys(h);if(_.length!==v.length)return!1;for(v=0;v<_.length;v++){var O=_[v];if(!at.call(h,O)||!$t(u[O],h[O]))return!1}return!0}function Wt(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function Mt(u,h){var _=Wt(u);u=0;for(var v;_;){if(_.nodeType===3){if(v=u+_.textContent.length,u<=h&&v>=h)return{node:_,offset:h-u};u=v}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=Wt(_)}}function St(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?St(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function yn(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var h=ll(u.document);h instanceof u.HTMLIFrameElement;){try{var _=typeof h.contentWindow.location.href=="string"}catch{_=!1}if(_)u=h.contentWindow;else break;h=ll(u.document)}return h}function lr(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}function Sr(u,h){var _=yn(h);h=u.focusedElem;var v=u.selectionRange;if(_!==h&&h&&h.ownerDocument&&St(h.ownerDocument.documentElement,h)){if(v!==null&&lr(h)){if(u=v.start,_=v.end,_===void 0&&(_=u),"selectionStart"in h)h.selectionStart=u,h.selectionEnd=Math.min(_,h.value.length);else if(_=(u=h.ownerDocument||document)&&u.defaultView||window,_.getSelection){_=_.getSelection();var O=h.textContent.length,A=Math.min(v.start,O);v=v.end===void 0?A:Math.min(v.end,O),!_.extend&&A>v&&(O=v,v=A,A=O),O=Mt(h,A);var j=Mt(h,v);O&&j&&(_.rangeCount!==1||_.anchorNode!==O.node||_.anchorOffset!==O.offset||_.focusNode!==j.node||_.focusOffset!==j.offset)&&(u=u.createRange(),u.setStart(O.node,O.offset),_.removeAllRanges(),A>v?(_.addRange(u),_.extend(j.node,j.offset)):(u.setEnd(j.node,j.offset),_.addRange(u)))}}for(u=[],_=h;_=_.parentNode;)_.nodeType===1&&u.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<u.length;h++)_=u[h],_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}var qn=la&&"documentMode"in document&&11>=document.documentMode,$n=null,Oi=null,Jr=null,ha=!1;function Wa(u,h,_){var v=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;ha||$n==null||$n!==ll(v)||(v=$n,"selectionStart"in v&&lr(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Jr&&zt(Jr,v)||(Jr=v,v=Mb(Oi,"onSelect"),0<v.length&&(h=new Cr("onSelect","select",null,h,_),u.push({event:h,listeners:v}),h.target=$n)))}function di(u,h){var _={};return _[u.toLowerCase()]=h.toLowerCase(),_["Webkit"+u]="webkit"+h,_["Moz"+u]="moz"+h,_}var Lr={animationend:di("Animation","AnimationEnd"),animationiteration:di("Animation","AnimationIteration"),animationstart:di("Animation","AnimationStart"),transitionrun:di("Transition","TransitionRun"),transitionstart:di("Transition","TransitionStart"),transitioncancel:di("Transition","TransitionCancel"),transitionend:di("Transition","TransitionEnd")},Qa={},Ri={};la&&(Ri=document.createElement("div").style,"AnimationEvent"in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),"TransitionEvent"in window||delete Lr.transitionend.transition);function Or(u){if(Qa[u])return Qa[u];if(!Lr[u])return u;var h=Lr[u],_;for(_ in h)if(h.hasOwnProperty(_)&&_ in Ri)return Qa[u]=h[_];return u}var pa=Or("animationend"),ac=Or("animationiteration"),Eo=Or("animationstart"),Ka=Or("transitionrun"),tX=Or("transitionstart"),nX=Or("transitioncancel"),oP=Or("transitionend"),lP=new Map,cP="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function yo(u,h){lP.set(u,h),$i(h,[u])}var Us=[],uh=0,wT=0;function Z0(){for(var u=uh,h=wT=uh=0;h<u;){var _=Us[h];Us[h++]=null;var v=Us[h];Us[h++]=null;var O=Us[h];Us[h++]=null;var A=Us[h];if(Us[h++]=null,v!==null&&O!==null){var j=v.pending;j===null?O.next=O:(O.next=j.next,j.next=O),v.pending=O}A!==0&&uP(_,O,A)}}function J0(u,h,_,v){Us[uh++]=u,Us[uh++]=h,Us[uh++]=_,Us[uh++]=v,wT|=v,u.lanes|=v,u=u.alternate,u!==null&&(u.lanes|=v)}function DT(u,h,_,v){return J0(u,h,_,v),eb(u)}function uu(u,h){return J0(u,null,null,h),eb(u)}function uP(u,h,_){u.lanes|=_;var v=u.alternate;v!==null&&(v.lanes|=_);for(var O=!1,A=u.return;A!==null;)A.childLanes|=_,v=A.alternate,v!==null&&(v.childLanes|=_),A.tag===22&&(u=A.stateNode,u===null||u._visibility&1||(O=!0)),u=A,A=A.return;O&&h!==null&&u.tag===3&&(A=u.stateNode,O=31-mn(_),A=A.hiddenUpdates,u=A[O],u===null?A[O]=[h]:u.push(h),h.lane=_|536870912)}function eb(u){if(50<ug)throw ug=0,Bx=null,Error(r(185));for(var h=u.return;h!==null;)u=h,h=u.return;return u.tag===3?u.stateNode:null}var dh={},dP=new WeakMap;function js(u,h){if(typeof u=="object"&&u!==null){var _=dP.get(u);return _!==void 0?_:(h={value:u,source:h,stack:q(h)},dP.set(u,h),h)}return{value:u,source:h,stack:q(h)}}var fh=[],hh=0,tb=null,nb=0,Gs=[],qs=0,Bd=null,sc=1,oc="";function Fd(u,h){fh[hh++]=nb,fh[hh++]=tb,tb=u,nb=h}function fP(u,h,_){Gs[qs++]=sc,Gs[qs++]=oc,Gs[qs++]=Bd,Bd=u;var v=sc;u=oc;var O=32-mn(v)-1;v&=~(1<<O),_+=1;var A=32-mn(h)+O;if(30<A){var j=O-O%5;A=(v&(1<<j)-1).toString(32),v>>=j,O-=j,sc=1<<32-mn(h)+O|_<<O|v,oc=A+u}else sc=1<<A|_<<O|v,oc=u}function IT(u){u.return!==null&&(Fd(u,1),fP(u,1,0))}function MT(u){for(;u===tb;)tb=fh[--hh],fh[hh]=null,nb=fh[--hh],fh[hh]=null;for(;u===Bd;)Bd=Gs[--qs],Gs[qs]=null,oc=Gs[--qs],Gs[qs]=null,sc=Gs[--qs],Gs[qs]=null}var Aa=null,Yi=null,bn=!1,To=null,pl=!1,LT=Error(r(519));function Ud(u){var h=Error(r(418,""));throw qm(js(h,u)),LT}function hP(u){var h=u.stateNode,_=u.type,v=u.memoizedProps;switch(h[qr]=u,h[$r]=v,_){case"dialog":dn("cancel",h),dn("close",h);break;case"iframe":case"object":case"embed":dn("load",h);break;case"video":case"audio":for(_=0;_<fg.length;_++)dn(fg[_],h);break;case"source":dn("error",h);break;case"img":case"image":case"link":dn("error",h),dn("load",h);break;case"details":dn("toggle",h);break;case"input":dn("invalid",h),ru(h,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),ol(h);break;case"select":dn("invalid",h);break;case"textarea":dn("invalid",h),iu(h,v.value,v.defaultValue,v.children),ol(h)}_=v.children,typeof _!="string"&&typeof _!="number"&&typeof _!="bigint"||h.textContent===""+_||v.suppressHydrationWarning===!0||y3(h.textContent,_)?(v.popover!=null&&(dn("beforetoggle",h),dn("toggle",h)),v.onScroll!=null&&dn("scroll",h),v.onScrollEnd!=null&&dn("scrollend",h),v.onClick!=null&&(h.onclick=Lb),h=!0):h=!1,h||Ud(u)}function pP(u){for(Aa=u.return;Aa;)switch(Aa.tag){case 3:case 27:pl=!0;return;case 5:case 13:pl=!1;return;default:Aa=Aa.return}}function jm(u){if(u!==Aa)return!1;if(!bn)return pP(u),bn=!0,!1;var h=!1,_;if((_=u.tag!==3&&u.tag!==27)&&((_=u.tag===5)&&(_=u.type,_=!(_!=="form"&&_!=="button")||eC(u.type,u.memoizedProps)),_=!_),_&&(h=!0),h&&Yi&&Ud(u),pP(u),u.tag===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,h=0;u;){if(u.nodeType===8)if(_=u.data,_==="/$"){if(h===0){Yi=Co(u.nextSibling);break e}h--}else _!=="$"&&_!=="$!"&&_!=="$?"||h++;u=u.nextSibling}Yi=null}}else Yi=Aa?Co(u.stateNode.nextSibling):null;return!0}function Gm(){Yi=Aa=null,bn=!1}function qm(u){To===null?To=[u]:To.push(u)}var $m=Error(r(460)),mP=Error(r(474)),kT={then:function(){}};function gP(u){return u=u.status,u==="fulfilled"||u==="rejected"}function rb(){}function _P(u,h,_){switch(_=u[_],_===void 0?u.push(h):_!==h&&(h.then(rb,rb),h=_),h.status){case"fulfilled":return h.value;case"rejected":throw u=h.reason,u===$m?Error(r(483)):u;default:if(typeof h.status=="string")h.then(rb,rb);else{if(u=Kn,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=h,u.status="pending",u.then(function(v){if(h.status==="pending"){var O=h;O.status="fulfilled",O.value=v}},function(v){if(h.status==="pending"){var O=h;O.status="rejected",O.reason=v}})}switch(h.status){case"fulfilled":return h.value;case"rejected":throw u=h.reason,u===$m?Error(r(483)):u}throw zm=h,$m}}var zm=null;function bP(){if(zm===null)throw Error(r(459));var u=zm;return zm=null,u}var ph=null,Ym=0;function ib(u){var h=Ym;return Ym+=1,ph===null&&(ph=[]),_P(ph,u,h)}function Hm(u,h){h=h.props.ref,u.ref=h!==void 0?h:null}function ab(u,h){throw h.$$typeof===a?Error(r(525)):(u=Object.prototype.toString.call(h),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":u)))}function vP(u){var h=u._init;return h(u._payload)}function SP(u){function h(he,le){if(u){var ge=he.deletions;ge===null?(he.deletions=[le],he.flags|=16):ge.push(le)}}function _(he,le){if(!u)return null;for(;le!==null;)h(he,le),le=le.sibling;return null}function v(he){for(var le=new Map;he!==null;)he.key!==null?le.set(he.key,he):le.set(he.index,he),he=he.sibling;return le}function O(he,le){return he=yu(he,le),he.index=0,he.sibling=null,he}function A(he,le,ge){return he.index=ge,u?(ge=he.alternate,ge!==null?(ge=ge.index,ge<le?(he.flags|=33554434,le):ge):(he.flags|=33554434,le)):(he.flags|=1048576,le)}function j(he){return u&&he.alternate===null&&(he.flags|=33554434),he}function K(he,le,ge,Fe){return le===null||le.tag!==6?(le=Ax(ge,he.mode,Fe),le.return=he,le):(le=O(le,ge),le.return=he,le)}function ee(he,le,ge,Fe){var vt=ge.type;return vt===c?De(he,le,ge.props.children,Fe,ge.key):le!==null&&(le.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===x&&vP(vt)===le.type)?(le=O(le,ge.props),Hm(le,ge),le.return=he,le):(le=Tb(ge.type,ge.key,ge.props,null,he.mode,Fe),Hm(le,ge),le.return=he,le)}function de(he,le,ge,Fe){return le===null||le.tag!==4||le.stateNode.containerInfo!==ge.containerInfo||le.stateNode.implementation!==ge.implementation?(le=wx(ge,he.mode,Fe),le.return=he,le):(le=O(le,ge.children||[]),le.return=he,le)}function De(he,le,ge,Fe,vt){return le===null||le.tag!==7?(le=Qd(ge,he.mode,Fe,vt),le.return=he,le):(le=O(le,ge),le.return=he,le)}function Ge(he,le,ge){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return le=Ax(""+le,he.mode,ge),le.return=he,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case s:return ge=Tb(le.type,le.key,le.props,null,he.mode,ge),Hm(ge,le),ge.return=he,ge;case o:return le=wx(le,he.mode,ge),le.return=he,le;case x:var Fe=le._init;return le=Fe(le._payload),Ge(he,le,ge)}if(te(le)||N(le))return le=Qd(le,he.mode,ge,null),le.return=he,le;if(typeof le.then=="function")return Ge(he,ib(le),ge);if(le.$$typeof===g)return Ge(he,Sb(he,le),ge);ab(he,le)}return null}function ye(he,le,ge,Fe){var vt=le!==null?le.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return vt!==null?null:K(he,le,""+ge,Fe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case s:return ge.key===vt?ee(he,le,ge,Fe):null;case o:return ge.key===vt?de(he,le,ge,Fe):null;case x:return vt=ge._init,ge=vt(ge._payload),ye(he,le,ge,Fe)}if(te(ge)||N(ge))return vt!==null?null:De(he,le,ge,Fe,null);if(typeof ge.then=="function")return ye(he,le,ib(ge),Fe);if(ge.$$typeof===g)return ye(he,le,Sb(he,ge),Fe);ab(he,ge)}return null}function we(he,le,ge,Fe,vt){if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint")return he=he.get(ge)||null,K(le,he,""+Fe,vt);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case s:return he=he.get(Fe.key===null?ge:Fe.key)||null,ee(le,he,Fe,vt);case o:return he=he.get(Fe.key===null?ge:Fe.key)||null,de(le,he,Fe,vt);case x:var tn=Fe._init;return Fe=tn(Fe._payload),we(he,le,ge,Fe,vt)}if(te(Fe)||N(Fe))return he=he.get(ge)||null,De(le,he,Fe,vt,null);if(typeof Fe.then=="function")return we(he,le,ge,ib(Fe),vt);if(Fe.$$typeof===g)return we(he,le,ge,Sb(le,Fe),vt);ab(le,Fe)}return null}function Tt(he,le,ge,Fe){for(var vt=null,tn=null,Ot=le,wt=le=0,wi=null;Ot!==null&&wt<ge.length;wt++){Ot.index>wt?(wi=Ot,Ot=null):wi=Ot.sibling;var vn=ye(he,Ot,ge[wt],Fe);if(vn===null){Ot===null&&(Ot=wi);break}u&&Ot&&vn.alternate===null&&h(he,Ot),le=A(vn,le,wt),tn===null?vt=vn:tn.sibling=vn,tn=vn,Ot=wi}if(wt===ge.length)return _(he,Ot),bn&&Fd(he,wt),vt;if(Ot===null){for(;wt<ge.length;wt++)Ot=Ge(he,ge[wt],Fe),Ot!==null&&(le=A(Ot,le,wt),tn===null?vt=Ot:tn.sibling=Ot,tn=Ot);return bn&&Fd(he,wt),vt}for(Ot=v(Ot);wt<ge.length;wt++)wi=we(Ot,he,wt,ge[wt],Fe),wi!==null&&(u&&wi.alternate!==null&&Ot.delete(wi.key===null?wt:wi.key),le=A(wi,le,wt),tn===null?vt=wi:tn.sibling=wi,tn=wi);return u&&Ot.forEach(function(Au){return h(he,Au)}),bn&&Fd(he,wt),vt}function Bt(he,le,ge,Fe){if(ge==null)throw Error(r(151));for(var vt=null,tn=null,Ot=le,wt=le=0,wi=null,vn=ge.next();Ot!==null&&!vn.done;wt++,vn=ge.next()){Ot.index>wt?(wi=Ot,Ot=null):wi=Ot.sibling;var Au=ye(he,Ot,vn.value,Fe);if(Au===null){Ot===null&&(Ot=wi);break}u&&Ot&&Au.alternate===null&&h(he,Ot),le=A(Au,le,wt),tn===null?vt=Au:tn.sibling=Au,tn=Au,Ot=wi}if(vn.done)return _(he,Ot),bn&&Fd(he,wt),vt;if(Ot===null){for(;!vn.done;wt++,vn=ge.next())vn=Ge(he,vn.value,Fe),vn!==null&&(le=A(vn,le,wt),tn===null?vt=vn:tn.sibling=vn,tn=vn);return bn&&Fd(he,wt),vt}for(Ot=v(Ot);!vn.done;wt++,vn=ge.next())vn=we(Ot,he,wt,vn.value,Fe),vn!==null&&(u&&vn.alternate!==null&&Ot.delete(vn.key===null?wt:vn.key),le=A(vn,le,wt),tn===null?vt=vn:tn.sibling=vn,tn=vn);return u&&Ot.forEach(function(gZ){return h(he,gZ)}),bn&&Fd(he,wt),vt}function Br(he,le,ge,Fe){if(typeof ge=="object"&&ge!==null&&ge.type===c&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case s:e:{for(var vt=ge.key;le!==null;){if(le.key===vt){if(vt=ge.type,vt===c){if(le.tag===7){_(he,le.sibling),Fe=O(le,ge.props.children),Fe.return=he,he=Fe;break e}}else if(le.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===x&&vP(vt)===le.type){_(he,le.sibling),Fe=O(le,ge.props),Hm(Fe,ge),Fe.return=he,he=Fe;break e}_(he,le);break}else h(he,le);le=le.sibling}ge.type===c?(Fe=Qd(ge.props.children,he.mode,Fe,ge.key),Fe.return=he,he=Fe):(Fe=Tb(ge.type,ge.key,ge.props,null,he.mode,Fe),Hm(Fe,ge),Fe.return=he,he=Fe)}return j(he);case o:e:{for(vt=ge.key;le!==null;){if(le.key===vt)if(le.tag===4&&le.stateNode.containerInfo===ge.containerInfo&&le.stateNode.implementation===ge.implementation){_(he,le.sibling),Fe=O(le,ge.children||[]),Fe.return=he,he=Fe;break e}else{_(he,le);break}else h(he,le);le=le.sibling}Fe=wx(ge,he.mode,Fe),Fe.return=he,he=Fe}return j(he);case x:return vt=ge._init,ge=vt(ge._payload),Br(he,le,ge,Fe)}if(te(ge))return Tt(he,le,ge,Fe);if(N(ge)){if(vt=N(ge),typeof vt!="function")throw Error(r(150));return ge=vt.call(ge),Bt(he,le,ge,Fe)}if(typeof ge.then=="function")return Br(he,le,ib(ge),Fe);if(ge.$$typeof===g)return Br(he,le,Sb(he,ge),Fe);ab(he,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint"?(ge=""+ge,le!==null&&le.tag===6?(_(he,le.sibling),Fe=O(le,ge),Fe.return=he,he=Fe):(_(he,le),Fe=Ax(ge,he.mode,Fe),Fe.return=he,he=Fe),j(he)):_(he,le)}return function(he,le,ge,Fe){try{Ym=0;var vt=Br(he,le,ge,Fe);return ph=null,vt}catch(Ot){if(Ot===$m)throw Ot;var tn=Hs(29,Ot,null,he.mode);return tn.lanes=Fe,tn.return=he,tn}finally{}}}var jd=SP(!0),EP=SP(!1),mh=_e(null),sb=_e(0);function yP(u,h){u=bc,Oe(sb,u),Oe(mh,h),bc=u|h.baseLanes}function PT(){Oe(sb,bc),Oe(mh,mh.current)}function BT(){bc=sb.current,Ie(mh),Ie(sb)}var $s=_e(null),ml=null;function du(u){var h=u.alternate;Oe(fi,fi.current&1),Oe($s,u),ml===null&&(h===null||mh.current!==null||h.memoizedState!==null)&&(ml=u)}function TP(u){if(u.tag===22){if(Oe(fi,fi.current),Oe($s,u),ml===null){var h=u.alternate;h!==null&&h.memoizedState!==null&&(ml=u)}}else fu()}function fu(){Oe(fi,fi.current),Oe($s,$s.current)}function lc(u){Ie($s),ml===u&&(ml=null),Ie(fi)}var fi=_e(0);function ob(u){for(var h=u;h!==null;){if(h.tag===13){var _=h.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||_.data==="$!"))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var rX=typeof AbortController<"u"?AbortController:function(){var u=[],h=this.signal={aborted:!1,addEventListener:function(_,v){u.push(v)}};this.abort=function(){h.aborted=!0,u.forEach(function(_){return _()})}},iX=t.unstable_scheduleCallback,aX=t.unstable_NormalPriority,hi={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function FT(){return{controller:new rX,data:new Map,refCount:0}}function Vm(u){u.refCount--,u.refCount===0&&iX(aX,function(){u.controller.abort()})}var Wm=null,UT=0,gh=0,_h=null;function sX(u,h){if(Wm===null){var _=Wm=[];UT=0,gh=Yx(),_h={status:"pending",value:void 0,then:function(v){_.push(v)}}}return UT++,h.then(xP,xP),h}function xP(){if(--UT===0&&Wm!==null){_h!==null&&(_h.status="fulfilled");var u=Wm;Wm=null,gh=0,_h=null;for(var h=0;h<u.length;h++)(0,u[h])()}}function oX(u,h){var _=[],v={status:"pending",value:null,reason:null,then:function(O){_.push(O)}};return u.then(function(){v.status="fulfilled",v.value=h;for(var O=0;O<_.length;O++)(0,_[O])(h)},function(O){for(v.status="rejected",v.reason=O,O=0;O<_.length;O++)(0,_[O])(void 0)}),v}var CP=L.S;L.S=function(u,h){typeof h=="object"&&h!==null&&typeof h.then=="function"&&sX(u,h),CP!==null&&CP(u,h)};var Gd=_e(null);function jT(){var u=Gd.current;return u!==null?u:Kn.pooledCache}function lb(u,h){h===null?Oe(Gd,Gd.current):Oe(Gd,h.pool)}function OP(){var u=jT();return u===null?null:{parent:hi._currentValue,pool:u}}var hu=0,en=null,Ln=null,ei=null,cb=!1,bh=!1,qd=!1,ub=0,Qm=0,vh=null,lX=0;function Hr(){throw Error(r(321))}function GT(u,h){if(h===null)return!1;for(var _=0;_<h.length&&_<u.length;_++)if(!$t(u[_],h[_]))return!1;return!0}function qT(u,h,_,v,O,A){return hu=A,en=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,L.H=u===null||u.memoizedState===null?$d:pu,qd=!1,A=_(v,O),qd=!1,bh&&(A=NP(h,_,v,O)),RP(u),A}function RP(u){L.H=gl;var h=Ln!==null&&Ln.next!==null;if(hu=0,ei=Ln=en=null,cb=!1,Qm=0,vh=null,h)throw Error(r(300));u===null||Ni||(u=u.dependencies,u!==null&&vb(u)&&(Ni=!0))}function NP(u,h,_,v){en=u;var O=0;do{if(bh&&(vh=null),Qm=0,bh=!1,25<=O)throw Error(r(301));if(O+=1,ei=Ln=null,u.updateQueue!=null){var A=u.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}L.H=zd,A=h(_,v)}while(bh);return A}function cX(){var u=L.H,h=u.useState()[0];return h=typeof h.then=="function"?Km(h):h,u=u.useState()[0],(Ln!==null?Ln.memoizedState:null)!==u&&(en.flags|=1024),h}function $T(){var u=ub!==0;return ub=0,u}function zT(u,h,_){h.updateQueue=u.updateQueue,h.flags&=-2053,u.lanes&=~_}function YT(u){if(cb){for(u=u.memoizedState;u!==null;){var h=u.queue;h!==null&&(h.pending=null),u=u.next}cb=!1}hu=0,ei=Ln=en=null,bh=!1,Qm=ub=0,vh=null}function Xa(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ei===null?en.memoizedState=ei=u:ei=ei.next=u,ei}function ti(){if(Ln===null){var u=en.alternate;u=u!==null?u.memoizedState:null}else u=Ln.next;var h=ei===null?en.memoizedState:ei.next;if(h!==null)ei=h,Ln=u;else{if(u===null)throw en.alternate===null?Error(r(467)):Error(r(310));Ln=u,u={memoizedState:Ln.memoizedState,baseState:Ln.baseState,baseQueue:Ln.baseQueue,queue:Ln.queue,next:null},ei===null?en.memoizedState=ei=u:ei=ei.next=u}return ei}var db;db=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Km(u){var h=Qm;return Qm+=1,vh===null&&(vh=[]),u=_P(vh,u,h),h=en,(ei===null?h.memoizedState:ei.next)===null&&(h=h.alternate,L.H=h===null||h.memoizedState===null?$d:pu),u}function fb(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return Km(u);if(u.$$typeof===g)return ma(u)}throw Error(r(438,String(u)))}function HT(u){var h=null,_=en.updateQueue;if(_!==null&&(h=_.memoCache),h==null){var v=en.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(h={data:v.data.map(function(O){return O.slice()}),index:0})))}if(h==null&&(h={data:[],index:0}),_===null&&(_=db(),en.updateQueue=_),_.memoCache=h,_=h.data[h.index],_===void 0)for(_=h.data[h.index]=Array(u),v=0;v<u;v++)_[v]=R;return h.index++,_}function cc(u,h){return typeof h=="function"?h(u):h}function hb(u){var h=ti();return VT(h,Ln,u)}function VT(u,h,_){var v=u.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=_;var O=u.baseQueue,A=v.pending;if(A!==null){if(O!==null){var j=O.next;O.next=A.next,A.next=j}h.baseQueue=O=A,v.pending=null}if(A=u.baseState,O===null)u.memoizedState=A;else{h=O.next;var K=j=null,ee=null,de=h,De=!1;do{var Ge=de.lane&-536870913;if(Ge!==de.lane?(hn&Ge)===Ge:(hu&Ge)===Ge){var ye=de.revertLane;if(ye===0)ee!==null&&(ee=ee.next={lane:0,revertLane:0,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Ge===gh&&(De=!0);else if((hu&ye)===ye){de=de.next,ye===gh&&(De=!0);continue}else Ge={lane:0,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},ee===null?(K=ee=Ge,j=A):ee=ee.next=Ge,en.lanes|=ye,Tu|=ye;Ge=de.action,qd&&_(A,Ge),A=de.hasEagerState?de.eagerState:_(A,Ge)}else ye={lane:Ge,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},ee===null?(K=ee=ye,j=A):ee=ee.next=ye,en.lanes|=Ge,Tu|=Ge;de=de.next}while(de!==null&&de!==h);if(ee===null?j=A:ee.next=K,!$t(A,u.memoizedState)&&(Ni=!0,De&&(_=_h,_!==null)))throw _;u.memoizedState=A,u.baseState=j,u.baseQueue=ee,v.lastRenderedState=A}return O===null&&(v.lanes=0),[u.memoizedState,v.dispatch]}function WT(u){var h=ti(),_=h.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=u;var v=_.dispatch,O=_.pending,A=h.memoizedState;if(O!==null){_.pending=null;var j=O=O.next;do A=u(A,j.action),j=j.next;while(j!==O);$t(A,h.memoizedState)||(Ni=!0),h.memoizedState=A,h.baseQueue===null&&(h.baseState=A),_.lastRenderedState=A}return[A,v]}function AP(u,h,_){var v=en,O=ti(),A=bn;if(A){if(_===void 0)throw Error(r(407));_=_()}else _=h();var j=!$t((Ln||O).memoizedState,_);if(j&&(O.memoizedState=_,Ni=!0),O=O.queue,XT(IP.bind(null,v,O,u),[u]),O.getSnapshot!==h||j||ei!==null&&ei.memoizedState.tag&1){if(v.flags|=2048,Sh(9,DP.bind(null,v,O,_,h),{destroy:void 0},null),Kn===null)throw Error(r(349));A||(hu&60)!==0||wP(v,h,_)}return _}function wP(u,h,_){u.flags|=16384,u={getSnapshot:h,value:_},h=en.updateQueue,h===null?(h=db(),en.updateQueue=h,h.stores=[u]):(_=h.stores,_===null?h.stores=[u]:_.push(u))}function DP(u,h,_,v){h.value=_,h.getSnapshot=v,MP(h)&&LP(u)}function IP(u,h,_){return _(function(){MP(h)&&LP(u)})}function MP(u){var h=u.getSnapshot;u=u.value;try{var _=h();return!$t(u,_)}catch{return!0}}function LP(u){var h=uu(u,2);h!==null&&wa(h,u,2)}function QT(u){var h=Xa();if(typeof u=="function"){var _=u;if(u=_(),qd){Dr(!0);try{_()}finally{Dr(!1)}}}return h.memoizedState=h.baseState=u,h.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cc,lastRenderedState:u},h}function kP(u,h,_,v){return u.baseState=_,VT(u,Ln,typeof v=="function"?v:cc)}function uX(u,h,_,v,O){if(gb(u))throw Error(r(485));if(u=h.action,u!==null){var A={payload:O,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){A.listeners.push(j)}};L.T!==null?_(!0):A.isTransition=!1,v(A),_=h.pending,_===null?(A.next=h.pending=A,PP(h,A)):(A.next=_.next,h.pending=_.next=A)}}function PP(u,h){var _=h.action,v=h.payload,O=u.state;if(h.isTransition){var A=L.T,j={};L.T=j;try{var K=_(O,v),ee=L.S;ee!==null&&ee(j,K),BP(u,h,K)}catch(de){KT(u,h,de)}finally{L.T=A}}else try{A=_(O,v),BP(u,h,A)}catch(de){KT(u,h,de)}}function BP(u,h,_){_!==null&&typeof _=="object"&&typeof _.then=="function"?_.then(function(v){FP(u,h,v)},function(v){return KT(u,h,v)}):FP(u,h,_)}function FP(u,h,_){h.status="fulfilled",h.value=_,UP(h),u.state=_,h=u.pending,h!==null&&(_=h.next,_===h?u.pending=null:(_=_.next,h.next=_,PP(u,_)))}function KT(u,h,_){var v=u.pending;if(u.pending=null,v!==null){v=v.next;do h.status="rejected",h.reason=_,UP(h),h=h.next;while(h!==v)}u.action=null}function UP(u){u=u.listeners;for(var h=0;h<u.length;h++)(0,u[h])()}function jP(u,h){return h}function GP(u,h){if(bn){var _=Kn.formState;if(_!==null){e:{var v=en;if(bn){if(Yi){t:{for(var O=Yi,A=pl;O.nodeType!==8;){if(!A){O=null;break t}if(O=Co(O.nextSibling),O===null){O=null;break t}}A=O.data,O=A==="F!"||A==="F"?O:null}if(O){Yi=Co(O.nextSibling),v=O.data==="F!";break e}}Ud(v)}v=!1}v&&(h=_[0])}}return _=Xa(),_.memoizedState=_.baseState=h,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jP,lastRenderedState:h},_.queue=v,_=a2.bind(null,en,v),v.dispatch=_,v=QT(!1),A=nx.bind(null,en,!1,v.queue),v=Xa(),O={state:h,dispatch:null,action:u,pending:null},v.queue=O,_=uX.bind(null,en,O,A,_),O.dispatch=_,v.memoizedState=u,[h,_,!1]}function qP(u){var h=ti();return $P(h,Ln,u)}function $P(u,h,_){h=VT(u,h,jP)[0],u=hb(cc)[0],h=typeof h=="object"&&h!==null&&typeof h.then=="function"?Km(h):h;var v=ti(),O=v.queue,A=O.dispatch;return _!==v.memoizedState&&(en.flags|=2048,Sh(9,dX.bind(null,O,_),{destroy:void 0},null)),[h,A,u]}function dX(u,h){u.action=h}function zP(u){var h=ti(),_=Ln;if(_!==null)return $P(h,_,u);ti(),h=h.memoizedState,_=ti();var v=_.queue.dispatch;return _.memoizedState=u,[h,v,!1]}function Sh(u,h,_,v){return u={tag:u,create:h,inst:_,deps:v,next:null},h=en.updateQueue,h===null&&(h=db(),en.updateQueue=h),_=h.lastEffect,_===null?h.lastEffect=u.next=u:(v=_.next,_.next=u,u.next=v,h.lastEffect=u),u}function YP(){return ti().memoizedState}function pb(u,h,_,v){var O=Xa();en.flags|=u,O.memoizedState=Sh(1|h,_,{destroy:void 0},v===void 0?null:v)}function mb(u,h,_,v){var O=ti();v=v===void 0?null:v;var A=O.memoizedState.inst;Ln!==null&&v!==null&&GT(v,Ln.memoizedState.deps)?O.memoizedState=Sh(h,_,A,v):(en.flags|=u,O.memoizedState=Sh(1|h,_,A,v))}function HP(u,h){pb(8390656,8,u,h)}function XT(u,h){mb(2048,8,u,h)}function VP(u,h){return mb(4,2,u,h)}function WP(u,h){return mb(4,4,u,h)}function QP(u,h){if(typeof h=="function"){u=u();var _=h(u);return function(){typeof _=="function"?_():h(null)}}if(h!=null)return u=u(),h.current=u,function(){h.current=null}}function KP(u,h,_){_=_!=null?_.concat([u]):null,mb(4,4,QP.bind(null,h,u),_)}function ZT(){}function XP(u,h){var _=ti();h=h===void 0?null:h;var v=_.memoizedState;return h!==null&&GT(h,v[1])?v[0]:(_.memoizedState=[u,h],u)}function ZP(u,h){var _=ti();h=h===void 0?null:h;var v=_.memoizedState;if(h!==null&&GT(h,v[1]))return v[0];if(v=u(),qd){Dr(!0);try{u()}finally{Dr(!1)}}return _.memoizedState=[v,h],v}function JT(u,h,_){return _===void 0||(hu&1073741824)!==0?u.memoizedState=h:(u.memoizedState=_,u=e3(),en.lanes|=u,Tu|=u,_)}function JP(u,h,_,v){return $t(_,h)?_:mh.current!==null?(u=JT(u,_,v),$t(u,h)||(Ni=!0),u):(hu&42)===0?(Ni=!0,u.memoizedState=_):(u=e3(),en.lanes|=u,Tu|=u,h)}function e2(u,h,_,v,O){var A=ie.p;ie.p=A!==0&&8>A?A:8;var j=L.T,K={};L.T=K,nx(u,!1,h,_);try{var ee=O(),de=L.S;if(de!==null&&de(K,ee),ee!==null&&typeof ee=="object"&&typeof ee.then=="function"){var De=oX(ee,v);Xm(u,h,De,gs(u))}else Xm(u,h,v,gs(u))}catch(Ge){Xm(u,h,{then:function(){},status:"rejected",reason:Ge},gs())}finally{ie.p=A,L.T=j}}function fX(){}function ex(u,h,_,v){if(u.tag!==5)throw Error(r(476));var O=t2(u).queue;e2(u,O,h,fe,_===null?fX:function(){return n2(u),_(v)})}function t2(u){var h=u.memoizedState;if(h!==null)return h;h={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cc,lastRenderedState:fe},next:null};var _={};return h.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cc,lastRenderedState:_},next:null},u.memoizedState=h,u=u.alternate,u!==null&&(u.memoizedState=h),h}function n2(u){var h=t2(u).next.queue;Xm(u,h,{},gs())}function tx(){return ma(_g)}function r2(){return ti().memoizedState}function i2(){return ti().memoizedState}function hX(u){for(var h=u.return;h!==null;){switch(h.tag){case 24:case 3:var _=gs();u=_u(_);var v=bu(h,u,_);v!==null&&(wa(v,h,_),eg(v,h,_)),h={cache:FT()},u.payload=h;return}h=h.return}}function pX(u,h,_){var v=gs();_={lane:v,revertLane:0,action:_,hasEagerState:!1,eagerState:null,next:null},gb(u)?s2(h,_):(_=DT(u,h,_,v),_!==null&&(wa(_,u,v),o2(_,h,v)))}function a2(u,h,_){var v=gs();Xm(u,h,_,v)}function Xm(u,h,_,v){var O={lane:v,revertLane:0,action:_,hasEagerState:!1,eagerState:null,next:null};if(gb(u))s2(h,O);else{var A=u.alternate;if(u.lanes===0&&(A===null||A.lanes===0)&&(A=h.lastRenderedReducer,A!==null))try{var j=h.lastRenderedState,K=A(j,_);if(O.hasEagerState=!0,O.eagerState=K,$t(K,j))return J0(u,h,O,0),Kn===null&&Z0(),!1}catch{}finally{}if(_=DT(u,h,O,v),_!==null)return wa(_,u,v),o2(_,h,v),!0}return!1}function nx(u,h,_,v){if(v={lane:2,revertLane:Yx(),action:v,hasEagerState:!1,eagerState:null,next:null},gb(u)){if(h)throw Error(r(479))}else h=DT(u,_,v,2),h!==null&&wa(h,u,2)}function gb(u){var h=u.alternate;return u===en||h!==null&&h===en}function s2(u,h){bh=cb=!0;var _=u.pending;_===null?h.next=h:(h.next=_.next,_.next=h),u.pending=h}function o2(u,h,_){if((_&4194176)!==0){var v=h.lanes;v&=u.pendingLanes,_|=v,h.lanes=_,un(u,_)}}var gl={readContext:ma,use:fb,useCallback:Hr,useContext:Hr,useEffect:Hr,useImperativeHandle:Hr,useLayoutEffect:Hr,useInsertionEffect:Hr,useMemo:Hr,useReducer:Hr,useRef:Hr,useState:Hr,useDebugValue:Hr,useDeferredValue:Hr,useTransition:Hr,useSyncExternalStore:Hr,useId:Hr};gl.useCacheRefresh=Hr,gl.useMemoCache=Hr,gl.useHostTransitionStatus=Hr,gl.useFormState=Hr,gl.useActionState=Hr,gl.useOptimistic=Hr;var $d={readContext:ma,use:fb,useCallback:function(u,h){return Xa().memoizedState=[u,h===void 0?null:h],u},useContext:ma,useEffect:HP,useImperativeHandle:function(u,h,_){_=_!=null?_.concat([u]):null,pb(4194308,4,QP.bind(null,h,u),_)},useLayoutEffect:function(u,h){return pb(4194308,4,u,h)},useInsertionEffect:function(u,h){pb(4,2,u,h)},useMemo:function(u,h){var _=Xa();h=h===void 0?null:h;var v=u();if(qd){Dr(!0);try{u()}finally{Dr(!1)}}return _.memoizedState=[v,h],v},useReducer:function(u,h,_){var v=Xa();if(_!==void 0){var O=_(h);if(qd){Dr(!0);try{_(h)}finally{Dr(!1)}}}else O=h;return v.memoizedState=v.baseState=O,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:O},v.queue=u,u=u.dispatch=pX.bind(null,en,u),[v.memoizedState,u]},useRef:function(u){var h=Xa();return u={current:u},h.memoizedState=u},useState:function(u){u=QT(u);var h=u.queue,_=a2.bind(null,en,h);return h.dispatch=_,[u.memoizedState,_]},useDebugValue:ZT,useDeferredValue:function(u,h){var _=Xa();return JT(_,u,h)},useTransition:function(){var u=QT(!1);return u=e2.bind(null,en,u.queue,!0,!1),Xa().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,h,_){var v=en,O=Xa();if(bn){if(_===void 0)throw Error(r(407));_=_()}else{if(_=h(),Kn===null)throw Error(r(349));(hn&60)!==0||wP(v,h,_)}O.memoizedState=_;var A={value:_,getSnapshot:h};return O.queue=A,HP(IP.bind(null,v,A,u),[u]),v.flags|=2048,Sh(9,DP.bind(null,v,A,_,h),{destroy:void 0},null),_},useId:function(){var u=Xa(),h=Kn.identifierPrefix;if(bn){var _=oc,v=sc;_=(v&~(1<<32-mn(v)-1)).toString(32)+_,h=":"+h+"R"+_,_=ub++,0<_&&(h+="H"+_.toString(32)),h+=":"}else _=lX++,h=":"+h+"r"+_.toString(32)+":";return u.memoizedState=h},useCacheRefresh:function(){return Xa().memoizedState=hX.bind(null,en)}};$d.useMemoCache=HT,$d.useHostTransitionStatus=tx,$d.useFormState=GP,$d.useActionState=GP,$d.useOptimistic=function(u){var h=Xa();h.memoizedState=h.baseState=u;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return h.queue=_,h=nx.bind(null,en,!0,_),_.dispatch=h,[u,h]};var pu={readContext:ma,use:fb,useCallback:XP,useContext:ma,useEffect:XT,useImperativeHandle:KP,useInsertionEffect:VP,useLayoutEffect:WP,useMemo:ZP,useReducer:hb,useRef:YP,useState:function(){return hb(cc)},useDebugValue:ZT,useDeferredValue:function(u,h){var _=ti();return JP(_,Ln.memoizedState,u,h)},useTransition:function(){var u=hb(cc)[0],h=ti().memoizedState;return[typeof u=="boolean"?u:Km(u),h]},useSyncExternalStore:AP,useId:r2};pu.useCacheRefresh=i2,pu.useMemoCache=HT,pu.useHostTransitionStatus=tx,pu.useFormState=qP,pu.useActionState=qP,pu.useOptimistic=function(u,h){var _=ti();return kP(_,Ln,u,h)};var zd={readContext:ma,use:fb,useCallback:XP,useContext:ma,useEffect:XT,useImperativeHandle:KP,useInsertionEffect:VP,useLayoutEffect:WP,useMemo:ZP,useReducer:WT,useRef:YP,useState:function(){return WT(cc)},useDebugValue:ZT,useDeferredValue:function(u,h){var _=ti();return Ln===null?JT(_,u,h):JP(_,Ln.memoizedState,u,h)},useTransition:function(){var u=WT(cc)[0],h=ti().memoizedState;return[typeof u=="boolean"?u:Km(u),h]},useSyncExternalStore:AP,useId:r2};zd.useCacheRefresh=i2,zd.useMemoCache=HT,zd.useHostTransitionStatus=tx,zd.useFormState=zP,zd.useActionState=zP,zd.useOptimistic=function(u,h){var _=ti();return Ln!==null?kP(_,Ln,u,h):(_.baseState=u,[u,_.queue.dispatch])};function rx(u,h,_,v){h=u.memoizedState,_=_(v,h),_=_==null?h:k({},h,_),u.memoizedState=_,u.lanes===0&&(u.updateQueue.baseState=_)}var ix={isMounted:function(u){return(u=u._reactInternals)?z(u)===u:!1},enqueueSetState:function(u,h,_){u=u._reactInternals;var v=gs(),O=_u(v);O.payload=h,_!=null&&(O.callback=_),h=bu(u,O,v),h!==null&&(wa(h,u,v),eg(h,u,v))},enqueueReplaceState:function(u,h,_){u=u._reactInternals;var v=gs(),O=_u(v);O.tag=1,O.payload=h,_!=null&&(O.callback=_),h=bu(u,O,v),h!==null&&(wa(h,u,v),eg(h,u,v))},enqueueForceUpdate:function(u,h){u=u._reactInternals;var _=gs(),v=_u(_);v.tag=2,h!=null&&(v.callback=h),h=bu(u,v,_),h!==null&&(wa(h,u,_),eg(h,u,_))}};function l2(u,h,_,v,O,A,j){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(v,A,j):h.prototype&&h.prototype.isPureReactComponent?!zt(_,v)||!zt(O,A):!0}function c2(u,h,_,v){u=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(_,v),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(_,v),h.state!==u&&ix.enqueueReplaceState(h,h.state,null)}function Yd(u,h){var _=h;if("ref"in h){_={};for(var v in h)v!=="ref"&&(_[v]=h[v])}if(u=u.defaultProps){_===h&&(_=k({},_));for(var O in u)_[O]===void 0&&(_[O]=u[O])}return _}var _b=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function u2(u){_b(u)}function d2(u){console.error(u)}function f2(u){_b(u)}function bb(u,h){try{var _=u.onUncaughtError;_(h.value,{componentStack:h.stack})}catch(v){setTimeout(function(){throw v})}}function h2(u,h,_){try{var v=u.onCaughtError;v(_.value,{componentStack:_.stack,errorBoundary:h.tag===1?h.stateNode:null})}catch(O){setTimeout(function(){throw O})}}function ax(u,h,_){return _=_u(_),_.tag=3,_.payload={element:null},_.callback=function(){bb(u,h)},_}function p2(u){return u=_u(u),u.tag=3,u}function m2(u,h,_,v){var O=_.type.getDerivedStateFromError;if(typeof O=="function"){var A=v.value;u.payload=function(){return O(A)},u.callback=function(){h2(h,_,v)}}var j=_.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(u.callback=function(){h2(h,_,v),typeof O!="function"&&(xu===null?xu=new Set([this]):xu.add(this));var K=v.stack;this.componentDidCatch(v.value,{componentStack:K!==null?K:""})})}function mX(u,h,_,v,O){if(_.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(h=_.alternate,h!==null&&Jm(h,_,O,!0),_=$s.current,_!==null){switch(_.tag){case 13:return ml===null?jx():_.alternate===null&&Pr===0&&(Pr=3),_.flags&=-257,_.flags|=65536,_.lanes=O,v===kT?_.flags|=16384:(h=_.updateQueue,h===null?_.updateQueue=new Set([v]):h.add(v),qx(u,v,O)),!1;case 22:return _.flags|=65536,v===kT?_.flags|=16384:(h=_.updateQueue,h===null?(h={transitions:null,markerInstances:null,retryQueue:new Set([v])},_.updateQueue=h):(_=h.retryQueue,_===null?h.retryQueue=new Set([v]):_.add(v)),qx(u,v,O)),!1}throw Error(r(435,_.tag))}return qx(u,v,O),jx(),!1}if(bn)return h=$s.current,h!==null?((h.flags&65536)===0&&(h.flags|=256),h.flags|=65536,h.lanes=O,v!==LT&&(u=Error(r(422),{cause:v}),qm(js(u,_)))):(v!==LT&&(h=Error(r(423),{cause:v}),qm(js(h,_))),u=u.current.alternate,u.flags|=65536,O&=-O,u.lanes|=O,v=js(v,_),O=ax(u.stateNode,v,O),Sx(u,O),Pr!==4&&(Pr=2)),!1;var A=Error(r(520),{cause:v});if(A=js(A,_),lg===null?lg=[A]:lg.push(A),Pr!==4&&(Pr=2),h===null)return!0;v=js(v,_),_=h;do{switch(_.tag){case 3:return _.flags|=65536,u=O&-O,_.lanes|=u,u=ax(_.stateNode,v,u),Sx(_,u),!1;case 1:if(h=_.type,A=_.stateNode,(_.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(xu===null||!xu.has(A))))return _.flags|=65536,O&=-O,_.lanes|=O,O=p2(O),m2(O,u,_,v),Sx(_,O),!1}_=_.return}while(_!==null);return!1}var g2=Error(r(461)),Ni=!1;function Hi(u,h,_,v){h.child=u===null?EP(h,null,_,v):jd(h,u.child,_,v)}function _2(u,h,_,v,O){_=_.render;var A=h.ref;if("ref"in v){var j={};for(var K in v)K!=="ref"&&(j[K]=v[K])}else j=v;return Vd(h),v=qT(u,h,_,j,A,O),K=$T(),u!==null&&!Ni?(zT(u,h,O),uc(u,h,O)):(bn&&K&&IT(h),h.flags|=1,Hi(u,h,v,O),h.child)}function b2(u,h,_,v,O){if(u===null){var A=_.type;return typeof A=="function"&&!Nx(A)&&A.defaultProps===void 0&&_.compare===null?(h.tag=15,h.type=A,v2(u,h,A,v,O)):(u=Tb(_.type,null,v,h,h.mode,O),u.ref=h.ref,u.return=h,h.child=u)}if(A=u.child,!px(u,O)){var j=A.memoizedProps;if(_=_.compare,_=_!==null?_:zt,_(j,v)&&u.ref===h.ref)return uc(u,h,O)}return h.flags|=1,u=yu(A,v),u.ref=h.ref,u.return=h,h.child=u}function v2(u,h,_,v,O){if(u!==null){var A=u.memoizedProps;if(zt(A,v)&&u.ref===h.ref)if(Ni=!1,h.pendingProps=v=A,px(u,O))(u.flags&131072)!==0&&(Ni=!0);else return h.lanes=u.lanes,uc(u,h,O)}return sx(u,h,_,v,O)}function S2(u,h,_){var v=h.pendingProps,O=v.children,A=(h.stateNode._pendingVisibility&2)!==0,j=u!==null?u.memoizedState:null;if(Zm(u,h),v.mode==="hidden"||A){if((h.flags&128)!==0){if(v=j!==null?j.baseLanes|_:_,u!==null){for(O=h.child=u.child,A=0;O!==null;)A=A|O.lanes|O.childLanes,O=O.sibling;h.childLanes=A&~v}else h.childLanes=0,h.child=null;return E2(u,h,v,_)}if((_&536870912)!==0)h.memoizedState={baseLanes:0,cachePool:null},u!==null&&lb(h,j!==null?j.cachePool:null),j!==null?yP(h,j):PT(),TP(h);else return h.lanes=h.childLanes=536870912,E2(u,h,j!==null?j.baseLanes|_:_,_)}else j!==null?(lb(h,j.cachePool),yP(h,j),fu(),h.memoizedState=null):(u!==null&&lb(h,null),PT(),fu());return Hi(u,h,O,_),h.child}function E2(u,h,_,v){var O=jT();return O=O===null?null:{parent:hi._currentValue,pool:O},h.memoizedState={baseLanes:_,cachePool:O},u!==null&&lb(h,null),PT(),TP(h),u!==null&&Jm(u,h,v,!0),null}function Zm(u,h){var _=h.ref;if(_===null)u!==null&&u.ref!==null&&(h.flags|=2097664);else{if(typeof _!="function"&&typeof _!="object")throw Error(r(284));(u===null||u.ref!==_)&&(h.flags|=2097664)}}function sx(u,h,_,v,O){return Vd(h),_=qT(u,h,_,v,void 0,O),v=$T(),u!==null&&!Ni?(zT(u,h,O),uc(u,h,O)):(bn&&v&&IT(h),h.flags|=1,Hi(u,h,_,O),h.child)}function y2(u,h,_,v,O,A){return Vd(h),h.updateQueue=null,_=NP(h,v,_,O),RP(u),v=$T(),u!==null&&!Ni?(zT(u,h,A),uc(u,h,A)):(bn&&v&&IT(h),h.flags|=1,Hi(u,h,_,A),h.child)}function T2(u,h,_,v,O){if(Vd(h),h.stateNode===null){var A=dh,j=_.contextType;typeof j=="object"&&j!==null&&(A=ma(j)),A=new _(v,A),h.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=ix,h.stateNode=A,A._reactInternals=h,A=h.stateNode,A.props=v,A.state=h.memoizedState,A.refs={},bx(h),j=_.contextType,A.context=typeof j=="object"&&j!==null?ma(j):dh,A.state=h.memoizedState,j=_.getDerivedStateFromProps,typeof j=="function"&&(rx(h,_,j,v),A.state=h.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(j=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),j!==A.state&&ix.enqueueReplaceState(A,A.state,null),ng(h,v,A,O),tg(),A.state=h.memoizedState),typeof A.componentDidMount=="function"&&(h.flags|=4194308),v=!0}else if(u===null){A=h.stateNode;var K=h.memoizedProps,ee=Yd(_,K);A.props=ee;var de=A.context,De=_.contextType;j=dh,typeof De=="object"&&De!==null&&(j=ma(De));var Ge=_.getDerivedStateFromProps;De=typeof Ge=="function"||typeof A.getSnapshotBeforeUpdate=="function",K=h.pendingProps!==K,De||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(K||de!==j)&&c2(h,A,v,j),gu=!1;var ye=h.memoizedState;A.state=ye,ng(h,v,A,O),tg(),de=h.memoizedState,K||ye!==de||gu?(typeof Ge=="function"&&(rx(h,_,Ge,v),de=h.memoizedState),(ee=gu||l2(h,_,ee,v,ye,de,j))?(De||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(h.flags|=4194308)):(typeof A.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=v,h.memoizedState=de),A.props=v,A.state=de,A.context=j,v=ee):(typeof A.componentDidMount=="function"&&(h.flags|=4194308),v=!1)}else{A=h.stateNode,vx(u,h),j=h.memoizedProps,De=Yd(_,j),A.props=De,Ge=h.pendingProps,ye=A.context,de=_.contextType,ee=dh,typeof de=="object"&&de!==null&&(ee=ma(de)),K=_.getDerivedStateFromProps,(de=typeof K=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(j!==Ge||ye!==ee)&&c2(h,A,v,ee),gu=!1,ye=h.memoizedState,A.state=ye,ng(h,v,A,O),tg();var we=h.memoizedState;j!==Ge||ye!==we||gu||u!==null&&u.dependencies!==null&&vb(u.dependencies)?(typeof K=="function"&&(rx(h,_,K,v),we=h.memoizedState),(De=gu||l2(h,_,De,v,ye,we,ee)||u!==null&&u.dependencies!==null&&vb(u.dependencies))?(de||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(v,we,ee),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(v,we,ee)),typeof A.componentDidUpdate=="function"&&(h.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof A.componentDidUpdate!="function"||j===u.memoizedProps&&ye===u.memoizedState||(h.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||j===u.memoizedProps&&ye===u.memoizedState||(h.flags|=1024),h.memoizedProps=v,h.memoizedState=we),A.props=v,A.state=we,A.context=ee,v=De):(typeof A.componentDidUpdate!="function"||j===u.memoizedProps&&ye===u.memoizedState||(h.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||j===u.memoizedProps&&ye===u.memoizedState||(h.flags|=1024),v=!1)}return A=v,Zm(u,h),v=(h.flags&128)!==0,A||v?(A=h.stateNode,_=v&&typeof _.getDerivedStateFromError!="function"?null:A.render(),h.flags|=1,u!==null&&v?(h.child=jd(h,u.child,null,O),h.child=jd(h,null,_,O)):Hi(u,h,_,O),h.memoizedState=A.state,u=h.child):u=uc(u,h,O),u}function x2(u,h,_,v){return Gm(),h.flags|=256,Hi(u,h,_,v),h.child}var ox={dehydrated:null,treeContext:null,retryLane:0};function lx(u){return{baseLanes:u,cachePool:OP()}}function cx(u,h,_){return u=u!==null?u.childLanes&~_:0,h&&(u|=Vs),u}function C2(u,h,_){var v=h.pendingProps,O=!1,A=(h.flags&128)!==0,j;if((j=A)||(j=u!==null&&u.memoizedState===null?!1:(fi.current&2)!==0),j&&(O=!0,h.flags&=-129),j=(h.flags&32)!==0,h.flags&=-33,u===null){if(bn){if(O?du(h):fu(),bn){var K=Yi,ee;if(ee=K){e:{for(ee=K,K=pl;ee.nodeType!==8;){if(!K){K=null;break e}if(ee=Co(ee.nextSibling),ee===null){K=null;break e}}K=ee}K!==null?(h.memoizedState={dehydrated:K,treeContext:Bd!==null?{id:sc,overflow:oc}:null,retryLane:536870912},ee=Hs(18,null,null,0),ee.stateNode=K,ee.return=h,h.child=ee,Aa=h,Yi=null,ee=!0):ee=!1}ee||Ud(h)}if(K=h.memoizedState,K!==null&&(K=K.dehydrated,K!==null))return K.data==="$!"?h.lanes=16:h.lanes=536870912,null;lc(h)}return K=v.children,v=v.fallback,O?(fu(),O=h.mode,K=dx({mode:"hidden",children:K},O),v=Qd(v,O,_,null),K.return=h,v.return=h,K.sibling=v,h.child=K,O=h.child,O.memoizedState=lx(_),O.childLanes=cx(u,j,_),h.memoizedState=ox,v):(du(h),ux(h,K))}if(ee=u.memoizedState,ee!==null&&(K=ee.dehydrated,K!==null)){if(A)h.flags&256?(du(h),h.flags&=-257,h=fx(u,h,_)):h.memoizedState!==null?(fu(),h.child=u.child,h.flags|=128,h=null):(fu(),O=v.fallback,K=h.mode,v=dx({mode:"visible",children:v.children},K),O=Qd(O,K,_,null),O.flags|=2,v.return=h,O.return=h,v.sibling=O,h.child=v,jd(h,u.child,null,_),v=h.child,v.memoizedState=lx(_),v.childLanes=cx(u,j,_),h.memoizedState=ox,h=O);else if(du(h),K.data==="$!"){if(j=K.nextSibling&&K.nextSibling.dataset,j)var de=j.dgst;j=de,v=Error(r(419)),v.stack="",v.digest=j,qm({value:v,source:null,stack:null}),h=fx(u,h,_)}else if(Ni||Jm(u,h,_,!1),j=(_&u.childLanes)!==0,Ni||j){if(j=Kn,j!==null){if(v=_&-_,(v&42)!==0)v=1;else switch(v){case 2:v=1;break;case 8:v=4;break;case 32:v=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:v=64;break;case 268435456:v=134217728;break;default:v=0}if(v=(v&(j.suspendedLanes|_))!==0?0:v,v!==0&&v!==ee.retryLane)throw ee.retryLane=v,uu(u,v),wa(j,u,v),g2}K.data==="$?"||jx(),h=fx(u,h,_)}else K.data==="$?"?(h.flags|=128,h.child=u.child,h=wX.bind(null,u),K._reactRetry=h,h=null):(u=ee.treeContext,Yi=Co(K.nextSibling),Aa=h,bn=!0,To=null,pl=!1,u!==null&&(Gs[qs++]=sc,Gs[qs++]=oc,Gs[qs++]=Bd,sc=u.id,oc=u.overflow,Bd=h),h=ux(h,v.children),h.flags|=4096);return h}return O?(fu(),O=v.fallback,K=h.mode,ee=u.child,de=ee.sibling,v=yu(ee,{mode:"hidden",children:v.children}),v.subtreeFlags=ee.subtreeFlags&31457280,de!==null?O=yu(de,O):(O=Qd(O,K,_,null),O.flags|=2),O.return=h,v.return=h,v.sibling=O,h.child=v,v=O,O=h.child,K=u.child.memoizedState,K===null?K=lx(_):(ee=K.cachePool,ee!==null?(de=hi._currentValue,ee=ee.parent!==de?{parent:de,pool:de}:ee):ee=OP(),K={baseLanes:K.baseLanes|_,cachePool:ee}),O.memoizedState=K,O.childLanes=cx(u,j,_),h.memoizedState=ox,v):(du(h),_=u.child,u=_.sibling,_=yu(_,{mode:"visible",children:v.children}),_.return=h,_.sibling=null,u!==null&&(j=h.deletions,j===null?(h.deletions=[u],h.flags|=16):j.push(u)),h.child=_,h.memoizedState=null,_)}function ux(u,h){return h=dx({mode:"visible",children:h},u.mode),h.return=u,u.child=h}function dx(u,h){return X2(u,h,0,null)}function fx(u,h,_){return jd(h,u.child,null,_),u=ux(h,h.pendingProps.children),u.flags|=2,h.memoizedState=null,u}function O2(u,h,_){u.lanes|=h;var v=u.alternate;v!==null&&(v.lanes|=h),gx(u.return,h,_)}function hx(u,h,_,v,O){var A=u.memoizedState;A===null?u.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:v,tail:_,tailMode:O}:(A.isBackwards=h,A.rendering=null,A.renderingStartTime=0,A.last=v,A.tail=_,A.tailMode=O)}function R2(u,h,_){var v=h.pendingProps,O=v.revealOrder,A=v.tail;if(Hi(u,h,v.children,_),v=fi.current,(v&2)!==0)v=v&1|2,h.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=h.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&O2(u,_,h);else if(u.tag===19)O2(u,_,h);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===h)break e;for(;u.sibling===null;){if(u.return===null||u.return===h)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}v&=1}switch(Oe(fi,v),O){case"forwards":for(_=h.child,O=null;_!==null;)u=_.alternate,u!==null&&ob(u)===null&&(O=_),_=_.sibling;_=O,_===null?(O=h.child,h.child=null):(O=_.sibling,_.sibling=null),hx(h,!1,O,_,A);break;case"backwards":for(_=null,O=h.child,h.child=null;O!==null;){if(u=O.alternate,u!==null&&ob(u)===null){h.child=O;break}u=O.sibling,O.sibling=_,_=O,O=u}hx(h,!0,_,null,A);break;case"together":hx(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function uc(u,h,_){if(u!==null&&(h.dependencies=u.dependencies),Tu|=h.lanes,(_&h.childLanes)===0)if(u!==null){if(Jm(u,h,_,!1),(_&h.childLanes)===0)return null}else return null;if(u!==null&&h.child!==u.child)throw Error(r(153));if(h.child!==null){for(u=h.child,_=yu(u,u.pendingProps),h.child=_,_.return=h;u.sibling!==null;)u=u.sibling,_=_.sibling=yu(u,u.pendingProps),_.return=h;_.sibling=null}return h.child}function px(u,h){return(u.lanes&h)!==0?!0:(u=u.dependencies,!!(u!==null&&vb(u)))}function gX(u,h,_){switch(h.tag){case 3:rt(h,h.stateNode.containerInfo),mu(h,hi,u.memoizedState.cache),Gm();break;case 27:case 5:Te(h);break;case 4:rt(h,h.stateNode.containerInfo);break;case 10:mu(h,h.type,h.memoizedProps.value);break;case 13:var v=h.memoizedState;if(v!==null)return v.dehydrated!==null?(du(h),h.flags|=128,null):(_&h.child.childLanes)!==0?C2(u,h,_):(du(h),u=uc(u,h,_),u!==null?u.sibling:null);du(h);break;case 19:var O=(u.flags&128)!==0;if(v=(_&h.childLanes)!==0,v||(Jm(u,h,_,!1),v=(_&h.childLanes)!==0),O){if(v)return R2(u,h,_);h.flags|=128}if(O=h.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),Oe(fi,fi.current),v)break;return null;case 22:case 23:return h.lanes=0,S2(u,h,_);case 24:mu(h,hi,u.memoizedState.cache)}return uc(u,h,_)}function N2(u,h,_){if(u!==null)if(u.memoizedProps!==h.pendingProps)Ni=!0;else{if(!px(u,_)&&(h.flags&128)===0)return Ni=!1,gX(u,h,_);Ni=(u.flags&131072)!==0}else Ni=!1,bn&&(h.flags&1048576)!==0&&fP(h,nb,h.index);switch(h.lanes=0,h.tag){case 16:e:{u=h.pendingProps;var v=h.elementType,O=v._init;if(v=O(v._payload),h.type=v,typeof v=="function")Nx(v)?(u=Yd(v,u),h.tag=1,h=T2(null,h,v,u,_)):(h.tag=0,h=sx(null,h,v,u,_));else{if(v!=null){if(O=v.$$typeof,O===b){h.tag=11,h=_2(null,h,v,u,_);break e}else if(O===E){h.tag=14,h=b2(null,h,v,u,_);break e}}throw h=D(v)||v,Error(r(306,h,""))}}return h;case 0:return sx(u,h,h.type,h.pendingProps,_);case 1:return v=h.type,O=Yd(v,h.pendingProps),T2(u,h,v,O,_);case 3:e:{if(rt(h,h.stateNode.containerInfo),u===null)throw Error(r(387));var A=h.pendingProps;O=h.memoizedState,v=O.element,vx(u,h),ng(h,A,null,_);var j=h.memoizedState;if(A=j.cache,mu(h,hi,A),A!==O.cache&&_x(h,[hi],_,!0),tg(),A=j.element,O.isDehydrated)if(O={element:A,isDehydrated:!1,cache:j.cache},h.updateQueue.baseState=O,h.memoizedState=O,h.flags&256){h=x2(u,h,A,_);break e}else if(A!==v){v=js(Error(r(424)),h),qm(v),h=x2(u,h,A,_);break e}else for(Yi=Co(h.stateNode.containerInfo.firstChild),Aa=h,bn=!0,To=null,pl=!0,_=EP(h,null,A,_),h.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(Gm(),A===v){h=uc(u,h,_);break e}Hi(u,h,A,_)}h=h.child}return h;case 26:return Zm(u,h),u===null?(_=D3(h.type,null,h.pendingProps,null))?h.memoizedState=_:bn||(_=h.type,u=h.pendingProps,v=kb(ce.current).createElement(_),v[qr]=h,v[$r]=u,Vi(v,_,u),ir(v),h.stateNode=v):h.memoizedState=D3(h.type,u.memoizedProps,h.pendingProps,u.memoizedState),null;case 27:return Te(h),u===null&&bn&&(v=h.stateNode=N3(h.type,h.pendingProps,ce.current),Aa=h,pl=!0,Yi=Co(v.firstChild)),v=h.pendingProps.children,u!==null||bn?Hi(u,h,v,_):h.child=jd(h,null,v,_),Zm(u,h),h.child;case 5:return u===null&&bn&&((O=v=Yi)&&(v=HX(v,h.type,h.pendingProps,pl),v!==null?(h.stateNode=v,Aa=h,Yi=Co(v.firstChild),pl=!1,O=!0):O=!1),O||Ud(h)),Te(h),O=h.type,A=h.pendingProps,j=u!==null?u.memoizedProps:null,v=A.children,eC(O,A)?v=null:j!==null&&eC(O,j)&&(h.flags|=32),h.memoizedState!==null&&(O=qT(u,h,cX,null,null,_),_g._currentValue=O),Zm(u,h),Hi(u,h,v,_),h.child;case 6:return u===null&&bn&&((u=_=Yi)&&(_=VX(_,h.pendingProps,pl),_!==null?(h.stateNode=_,Aa=h,Yi=null,u=!0):u=!1),u||Ud(h)),null;case 13:return C2(u,h,_);case 4:return rt(h,h.stateNode.containerInfo),v=h.pendingProps,u===null?h.child=jd(h,null,v,_):Hi(u,h,v,_),h.child;case 11:return _2(u,h,h.type,h.pendingProps,_);case 7:return Hi(u,h,h.pendingProps,_),h.child;case 8:return Hi(u,h,h.pendingProps.children,_),h.child;case 12:return Hi(u,h,h.pendingProps.children,_),h.child;case 10:return v=h.pendingProps,mu(h,h.type,v.value),Hi(u,h,v.children,_),h.child;case 9:return O=h.type._context,v=h.pendingProps.children,Vd(h),O=ma(O),v=v(O),h.flags|=1,Hi(u,h,v,_),h.child;case 14:return b2(u,h,h.type,h.pendingProps,_);case 15:return v2(u,h,h.type,h.pendingProps,_);case 19:return R2(u,h,_);case 22:return S2(u,h,_);case 24:return Vd(h),v=ma(hi),u===null?(O=jT(),O===null&&(O=Kn,A=FT(),O.pooledCache=A,A.refCount++,A!==null&&(O.pooledCacheLanes|=_),O=A),h.memoizedState={parent:v,cache:O},bx(h),mu(h,hi,O)):((u.lanes&_)!==0&&(vx(u,h),ng(h,null,null,_),tg()),O=u.memoizedState,A=h.memoizedState,O.parent!==v?(O={parent:v,cache:v},h.memoizedState=O,h.lanes===0&&(h.memoizedState=h.updateQueue.baseState=O),mu(h,hi,v)):(v=A.cache,mu(h,hi,v),v!==O.cache&&_x(h,[hi],_,!0))),Hi(u,h,h.pendingProps.children,_),h.child;case 29:throw h.pendingProps}throw Error(r(156,h.tag))}var mx=_e(null),Hd=null,dc=null;function mu(u,h,_){Oe(mx,h._currentValue),h._currentValue=_}function fc(u){u._currentValue=mx.current,Ie(mx)}function gx(u,h,_){for(;u!==null;){var v=u.alternate;if((u.childLanes&h)!==h?(u.childLanes|=h,v!==null&&(v.childLanes|=h)):v!==null&&(v.childLanes&h)!==h&&(v.childLanes|=h),u===_)break;u=u.return}}function _x(u,h,_,v){var O=u.child;for(O!==null&&(O.return=u);O!==null;){var A=O.dependencies;if(A!==null){var j=O.child;A=A.firstContext;e:for(;A!==null;){var K=A;A=O;for(var ee=0;ee<h.length;ee++)if(K.context===h[ee]){A.lanes|=_,K=A.alternate,K!==null&&(K.lanes|=_),gx(A.return,_,u),v||(j=null);break e}A=K.next}}else if(O.tag===18){if(j=O.return,j===null)throw Error(r(341));j.lanes|=_,A=j.alternate,A!==null&&(A.lanes|=_),gx(j,_,u),j=null}else j=O.child;if(j!==null)j.return=O;else for(j=O;j!==null;){if(j===u){j=null;break}if(O=j.sibling,O!==null){O.return=j.return,j=O;break}j=j.return}O=j}}function Jm(u,h,_,v){u=null;for(var O=h,A=!1;O!==null;){if(!A){if((O.flags&524288)!==0)A=!0;else if((O.flags&262144)!==0)break}if(O.tag===10){var j=O.alternate;if(j===null)throw Error(r(387));if(j=j.memoizedProps,j!==null){var K=O.type;$t(O.pendingProps.value,j.value)||(u!==null?u.push(K):u=[K])}}else if(O===je.current){if(j=O.alternate,j===null)throw Error(r(387));j.memoizedState.memoizedState!==O.memoizedState.memoizedState&&(u!==null?u.push(_g):u=[_g])}O=O.return}u!==null&&_x(h,u,_,v),h.flags|=262144}function vb(u){for(u=u.firstContext;u!==null;){if(!$t(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function Vd(u){Hd=u,dc=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function ma(u){return A2(Hd,u)}function Sb(u,h){return Hd===null&&Vd(u),A2(u,h)}function A2(u,h){var _=h._currentValue;if(h={context:h,memoizedValue:_,next:null},dc===null){if(u===null)throw Error(r(308));dc=h,u.dependencies={lanes:0,firstContext:h},u.flags|=524288}else dc=dc.next=h;return _}var gu=!1;function bx(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vx(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function _u(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function bu(u,h,_){var v=u.updateQueue;if(v===null)return null;if(v=v.shared,(Nr&2)!==0){var O=v.pending;return O===null?h.next=h:(h.next=O.next,O.next=h),v.pending=h,h=eb(u),uP(u,null,_),h}return J0(u,v,h,_),eb(u)}function eg(u,h,_){if(h=h.updateQueue,h!==null&&(h=h.shared,(_&4194176)!==0)){var v=h.lanes;v&=u.pendingLanes,_|=v,h.lanes=_,un(u,_)}}function Sx(u,h){var _=u.updateQueue,v=u.alternate;if(v!==null&&(v=v.updateQueue,_===v)){var O=null,A=null;if(_=_.firstBaseUpdate,_!==null){do{var j={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};A===null?O=A=j:A=A.next=j,_=_.next}while(_!==null);A===null?O=A=h:A=A.next=h}else O=A=h;_={baseState:v.baseState,firstBaseUpdate:O,lastBaseUpdate:A,shared:v.shared,callbacks:v.callbacks},u.updateQueue=_;return}u=_.lastBaseUpdate,u===null?_.firstBaseUpdate=h:u.next=h,_.lastBaseUpdate=h}var Ex=!1;function tg(){if(Ex){var u=_h;if(u!==null)throw u}}function ng(u,h,_,v){Ex=!1;var O=u.updateQueue;gu=!1;var A=O.firstBaseUpdate,j=O.lastBaseUpdate,K=O.shared.pending;if(K!==null){O.shared.pending=null;var ee=K,de=ee.next;ee.next=null,j===null?A=de:j.next=de,j=ee;var De=u.alternate;De!==null&&(De=De.updateQueue,K=De.lastBaseUpdate,K!==j&&(K===null?De.firstBaseUpdate=de:K.next=de,De.lastBaseUpdate=ee))}if(A!==null){var Ge=O.baseState;j=0,De=de=ee=null,K=A;do{var ye=K.lane&-536870913,we=ye!==K.lane;if(we?(hn&ye)===ye:(v&ye)===ye){ye!==0&&ye===gh&&(Ex=!0),De!==null&&(De=De.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var Tt=u,Bt=K;ye=h;var Br=_;switch(Bt.tag){case 1:if(Tt=Bt.payload,typeof Tt=="function"){Ge=Tt.call(Br,Ge,ye);break e}Ge=Tt;break e;case 3:Tt.flags=Tt.flags&-65537|128;case 0:if(Tt=Bt.payload,ye=typeof Tt=="function"?Tt.call(Br,Ge,ye):Tt,ye==null)break e;Ge=k({},Ge,ye);break e;case 2:gu=!0}}ye=K.callback,ye!==null&&(u.flags|=64,we&&(u.flags|=8192),we=O.callbacks,we===null?O.callbacks=[ye]:we.push(ye))}else we={lane:ye,tag:K.tag,payload:K.payload,callback:K.callback,next:null},De===null?(de=De=we,ee=Ge):De=De.next=we,j|=ye;if(K=K.next,K===null){if(K=O.shared.pending,K===null)break;we=K,K=we.next,we.next=null,O.lastBaseUpdate=we,O.shared.pending=null}}while(!0);De===null&&(ee=Ge),O.baseState=ee,O.firstBaseUpdate=de,O.lastBaseUpdate=De,A===null&&(O.shared.lanes=0),Tu|=j,u.lanes=j,u.memoizedState=Ge}}function w2(u,h){if(typeof u!="function")throw Error(r(191,u));u.call(h)}function D2(u,h){var _=u.callbacks;if(_!==null)for(u.callbacks=null,u=0;u<_.length;u++)w2(_[u],h)}function rg(u,h){try{var _=h.updateQueue,v=_!==null?_.lastEffect:null;if(v!==null){var O=v.next;_=O;do{if((_.tag&u)===u){v=void 0;var A=_.create,j=_.inst;v=A(),j.destroy=v}_=_.next}while(_!==O)}}catch(K){zn(h,h.return,K)}}function vu(u,h,_){try{var v=h.updateQueue,O=v!==null?v.lastEffect:null;if(O!==null){var A=O.next;v=A;do{if((v.tag&u)===u){var j=v.inst,K=j.destroy;if(K!==void 0){j.destroy=void 0,O=h;var ee=_;try{K()}catch(de){zn(O,ee,de)}}}v=v.next}while(v!==A)}}catch(de){zn(h,h.return,de)}}function I2(u){var h=u.updateQueue;if(h!==null){var _=u.stateNode;try{D2(h,_)}catch(v){zn(u,u.return,v)}}}function M2(u,h,_){_.props=Yd(u.type,u.memoizedProps),_.state=u.memoizedState;try{_.componentWillUnmount()}catch(v){zn(u,h,v)}}function Wd(u,h){try{var _=u.ref;if(_!==null){var v=u.stateNode;switch(u.tag){case 26:case 27:case 5:var O=v;break;default:O=v}typeof _=="function"?u.refCleanup=_(O):_.current=O}}catch(A){zn(u,h,A)}}function hs(u,h){var _=u.ref,v=u.refCleanup;if(_!==null)if(typeof v=="function")try{v()}catch(O){zn(u,h,O)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof _=="function")try{_(null)}catch(O){zn(u,h,O)}else _.current=null}function L2(u){var h=u.type,_=u.memoizedProps,v=u.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":_.autoFocus&&v.focus();break e;case"img":_.src?v.src=_.src:_.srcSet&&(v.srcset=_.srcSet)}}catch(O){zn(u,u.return,O)}}function k2(u,h,_){try{var v=u.stateNode;GX(v,u.type,_,h),v[$r]=h}catch(O){zn(u,u.return,O)}}function P2(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27||u.tag===4}function yx(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||P2(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==27&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Tx(u,h,_){var v=u.tag;if(v===5||v===6)u=u.stateNode,h?_.nodeType===8?_.parentNode.insertBefore(u,h):_.insertBefore(u,h):(_.nodeType===8?(h=_.parentNode,h.insertBefore(u,_)):(h=_,h.appendChild(u)),_=_._reactRootContainer,_!=null||h.onclick!==null||(h.onclick=Lb));else if(v!==4&&v!==27&&(u=u.child,u!==null))for(Tx(u,h,_),u=u.sibling;u!==null;)Tx(u,h,_),u=u.sibling}function Eb(u,h,_){var v=u.tag;if(v===5||v===6)u=u.stateNode,h?_.insertBefore(u,h):_.appendChild(u);else if(v!==4&&v!==27&&(u=u.child,u!==null))for(Eb(u,h,_),u=u.sibling;u!==null;)Eb(u,h,_),u=u.sibling}var hc=!1,kr=!1,xx=!1,B2=typeof WeakSet=="function"?WeakSet:Set,Ai=null,F2=!1;function _X(u,h){if(u=u.containerInfo,Zx=Gb,u=yn(u),lr(u)){if("selectionStart"in u)var _={start:u.selectionStart,end:u.selectionEnd};else e:{_=(_=u.ownerDocument)&&_.defaultView||window;var v=_.getSelection&&_.getSelection();if(v&&v.rangeCount!==0){_=v.anchorNode;var O=v.anchorOffset,A=v.focusNode;v=v.focusOffset;try{_.nodeType,A.nodeType}catch{_=null;break e}var j=0,K=-1,ee=-1,de=0,De=0,Ge=u,ye=null;t:for(;;){for(var we;Ge!==_||O!==0&&Ge.nodeType!==3||(K=j+O),Ge!==A||v!==0&&Ge.nodeType!==3||(ee=j+v),Ge.nodeType===3&&(j+=Ge.nodeValue.length),(we=Ge.firstChild)!==null;)ye=Ge,Ge=we;for(;;){if(Ge===u)break t;if(ye===_&&++de===O&&(K=j),ye===A&&++De===v&&(ee=j),(we=Ge.nextSibling)!==null)break;Ge=ye,ye=Ge.parentNode}Ge=we}_=K===-1||ee===-1?null:{start:K,end:ee}}else _=null}_=_||{start:0,end:0}}else _=null;for(Jx={focusedElem:u,selectionRange:_},Gb=!1,Ai=h;Ai!==null;)if(h=Ai,u=h.child,(h.subtreeFlags&1028)!==0&&u!==null)u.return=h,Ai=u;else for(;Ai!==null;){switch(h=Ai,A=h.alternate,u=h.flags,h.tag){case 0:break;case 11:case 15:break;case 1:if((u&1024)!==0&&A!==null){u=void 0,_=h,O=A.memoizedProps,A=A.memoizedState,v=_.stateNode;try{var Tt=Yd(_.type,O,_.elementType===_.type);u=v.getSnapshotBeforeUpdate(Tt,A),v.__reactInternalSnapshotBeforeUpdate=u}catch(Bt){zn(_,_.return,Bt)}}break;case 3:if((u&1024)!==0){if(u=h.stateNode.containerInfo,_=u.nodeType,_===9)rC(u);else if(_===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":rC(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(r(163))}if(u=h.sibling,u!==null){u.return=h.return,Ai=u;break}Ai=h.return}return Tt=F2,F2=!1,Tt}function U2(u,h,_){var v=_.flags;switch(_.tag){case 0:case 11:case 15:mc(u,_),v&4&&rg(5,_);break;case 1:if(mc(u,_),v&4)if(u=_.stateNode,h===null)try{u.componentDidMount()}catch(K){zn(_,_.return,K)}else{var O=Yd(_.type,h.memoizedProps);h=h.memoizedState;try{u.componentDidUpdate(O,h,u.__reactInternalSnapshotBeforeUpdate)}catch(K){zn(_,_.return,K)}}v&64&&I2(_),v&512&&Wd(_,_.return);break;case 3:if(mc(u,_),v&64&&(v=_.updateQueue,v!==null)){if(u=null,_.child!==null)switch(_.child.tag){case 27:case 5:u=_.child.stateNode;break;case 1:u=_.child.stateNode}try{D2(v,u)}catch(K){zn(_,_.return,K)}}break;case 26:mc(u,_),v&512&&Wd(_,_.return);break;case 27:case 5:mc(u,_),h===null&&v&4&&L2(_),v&512&&Wd(_,_.return);break;case 12:mc(u,_);break;case 13:mc(u,_),v&4&&q2(u,_);break;case 22:if(O=_.memoizedState!==null||hc,!O){h=h!==null&&h.memoizedState!==null||kr;var A=hc,j=kr;hc=O,(kr=h)&&!j?Su(u,_,(_.subtreeFlags&8772)!==0):mc(u,_),hc=A,kr=j}v&512&&(_.memoizedProps.mode==="manual"?Wd(_,_.return):hs(_,_.return));break;default:mc(u,_)}}function j2(u){var h=u.alternate;h!==null&&(u.alternate=null,j2(h)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(h=u.stateNode,h!==null&&rr(h)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var ni=null,ps=!1;function pc(u,h,_){for(_=_.child;_!==null;)G2(u,h,_),_=_.sibling}function G2(u,h,_){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(er,_)}catch{}switch(_.tag){case 26:kr||hs(_,h),pc(u,h,_),_.memoizedState?_.memoizedState.count--:_.stateNode&&(_=_.stateNode,_.parentNode.removeChild(_));break;case 27:kr||hs(_,h);var v=ni,O=ps;for(ni=_.stateNode,pc(u,h,_),_=_.stateNode,h=_.attributes;h.length;)_.removeAttributeNode(h[0]);rr(_),ni=v,ps=O;break;case 5:kr||hs(_,h);case 6:O=ni;var A=ps;if(ni=null,pc(u,h,_),ni=O,ps=A,ni!==null)if(ps)try{u=ni,v=_.stateNode,u.nodeType===8?u.parentNode.removeChild(v):u.removeChild(v)}catch(j){zn(_,h,j)}else try{ni.removeChild(_.stateNode)}catch(j){zn(_,h,j)}break;case 18:ni!==null&&(ps?(h=ni,_=_.stateNode,h.nodeType===8?nC(h.parentNode,_):h.nodeType===1&&nC(h,_),Eg(h)):nC(ni,_.stateNode));break;case 4:v=ni,O=ps,ni=_.stateNode.containerInfo,ps=!0,pc(u,h,_),ni=v,ps=O;break;case 0:case 11:case 14:case 15:kr||vu(2,_,h),kr||vu(4,_,h),pc(u,h,_);break;case 1:kr||(hs(_,h),v=_.stateNode,typeof v.componentWillUnmount=="function"&&M2(_,h,v)),pc(u,h,_);break;case 21:pc(u,h,_);break;case 22:kr||hs(_,h),kr=(v=kr)||_.memoizedState!==null,pc(u,h,_),kr=v;break;default:pc(u,h,_)}}function q2(u,h){if(h.memoizedState===null&&(u=h.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Eg(u)}catch(_){zn(h,h.return,_)}}function bX(u){switch(u.tag){case 13:case 19:var h=u.stateNode;return h===null&&(h=u.stateNode=new B2),h;case 22:return u=u.stateNode,h=u._retryCache,h===null&&(h=u._retryCache=new B2),h;default:throw Error(r(435,u.tag))}}function Cx(u,h){var _=bX(u);h.forEach(function(v){var O=DX.bind(null,u,v);_.has(v)||(_.add(v),v.then(O,O))})}function zs(u,h){var _=h.deletions;if(_!==null)for(var v=0;v<_.length;v++){var O=_[v],A=u,j=h,K=j;e:for(;K!==null;){switch(K.tag){case 27:case 5:ni=K.stateNode,ps=!1;break e;case 3:ni=K.stateNode.containerInfo,ps=!0;break e;case 4:ni=K.stateNode.containerInfo,ps=!0;break e}K=K.return}if(ni===null)throw Error(r(160));G2(A,j,O),ni=null,ps=!1,A=O.alternate,A!==null&&(A.return=null),O.return=null}if(h.subtreeFlags&13878)for(h=h.child;h!==null;)$2(h,u),h=h.sibling}var xo=null;function $2(u,h){var _=u.alternate,v=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:zs(h,u),Ys(u),v&4&&(vu(3,u,u.return),rg(3,u),vu(5,u,u.return));break;case 1:zs(h,u),Ys(u),v&512&&(kr||_===null||hs(_,_.return)),v&64&&hc&&(u=u.updateQueue,u!==null&&(v=u.callbacks,v!==null&&(_=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=_===null?v:_.concat(v))));break;case 26:var O=xo;if(zs(h,u),Ys(u),v&512&&(kr||_===null||hs(_,_.return)),v&4){var A=_!==null?_.memoizedState:null;if(v=u.memoizedState,_===null)if(v===null)if(u.stateNode===null){e:{v=u.type,_=u.memoizedProps,O=O.ownerDocument||O;t:switch(v){case"title":A=O.getElementsByTagName("title")[0],(!A||A[Qn]||A[qr]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=O.createElement(v),O.head.insertBefore(A,O.querySelector("head > title"))),Vi(A,v,_),A[qr]=u,ir(A),v=A;break e;case"link":var j=L3("link","href",O).get(v+(_.href||""));if(j){for(var K=0;K<j.length;K++)if(A=j[K],A.getAttribute("href")===(_.href==null?null:_.href)&&A.getAttribute("rel")===(_.rel==null?null:_.rel)&&A.getAttribute("title")===(_.title==null?null:_.title)&&A.getAttribute("crossorigin")===(_.crossOrigin==null?null:_.crossOrigin)){j.splice(K,1);break t}}A=O.createElement(v),Vi(A,v,_),O.head.appendChild(A);break;case"meta":if(j=L3("meta","content",O).get(v+(_.content||""))){for(K=0;K<j.length;K++)if(A=j[K],A.getAttribute("content")===(_.content==null?null:""+_.content)&&A.getAttribute("name")===(_.name==null?null:_.name)&&A.getAttribute("property")===(_.property==null?null:_.property)&&A.getAttribute("http-equiv")===(_.httpEquiv==null?null:_.httpEquiv)&&A.getAttribute("charset")===(_.charSet==null?null:_.charSet)){j.splice(K,1);break t}}A=O.createElement(v),Vi(A,v,_),O.head.appendChild(A);break;default:throw Error(r(468,v))}A[qr]=u,ir(A),v=A}u.stateNode=v}else k3(O,u.type,u.stateNode);else u.stateNode=M3(O,v,u.memoizedProps);else A!==v?(A===null?_.stateNode!==null&&(_=_.stateNode,_.parentNode.removeChild(_)):A.count--,v===null?k3(O,u.type,u.stateNode):M3(O,v,u.memoizedProps)):v===null&&u.stateNode!==null&&k2(u,u.memoizedProps,_.memoizedProps)}break;case 27:if(v&4&&u.alternate===null){O=u.stateNode,A=u.memoizedProps;try{for(var ee=O.firstChild;ee;){var de=ee.nextSibling,De=ee.nodeName;ee[Qn]||De==="HEAD"||De==="BODY"||De==="SCRIPT"||De==="STYLE"||De==="LINK"&&ee.rel.toLowerCase()==="stylesheet"||O.removeChild(ee),ee=de}for(var Ge=u.type,ye=O.attributes;ye.length;)O.removeAttributeNode(ye[0]);Vi(O,Ge,A),O[qr]=u,O[$r]=A}catch(Tt){zn(u,u.return,Tt)}}case 5:if(zs(h,u),Ys(u),v&512&&(kr||_===null||hs(_,_.return)),u.flags&32){O=u.stateNode;try{da(O,"")}catch(Tt){zn(u,u.return,Tt)}}v&4&&u.stateNode!=null&&(O=u.memoizedProps,k2(u,O,_!==null?_.memoizedProps:O)),v&1024&&(xx=!0);break;case 6:if(zs(h,u),Ys(u),v&4){if(u.stateNode===null)throw Error(r(162));v=u.memoizedProps,_=u.stateNode;try{_.nodeValue=v}catch(Tt){zn(u,u.return,Tt)}}break;case 3:if(Fb=null,O=xo,xo=Pb(h.containerInfo),zs(h,u),xo=O,Ys(u),v&4&&_!==null&&_.memoizedState.isDehydrated)try{Eg(h.containerInfo)}catch(Tt){zn(u,u.return,Tt)}xx&&(xx=!1,z2(u));break;case 4:v=xo,xo=Pb(u.stateNode.containerInfo),zs(h,u),Ys(u),xo=v;break;case 12:zs(h,u),Ys(u);break;case 13:zs(h,u),Ys(u),u.child.flags&8192&&u.memoizedState!==null!=(_!==null&&_.memoizedState!==null)&&(Lx=Ue()),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,Cx(u,v)));break;case 22:if(v&512&&(kr||_===null||hs(_,_.return)),ee=u.memoizedState!==null,de=_!==null&&_.memoizedState!==null,De=hc,Ge=kr,hc=De||ee,kr=Ge||de,zs(h,u),kr=Ge,hc=De,Ys(u),h=u.stateNode,h._current=u,h._visibility&=-3,h._visibility|=h._pendingVisibility&2,v&8192&&(h._visibility=ee?h._visibility&-2:h._visibility|1,ee&&(h=hc||kr,_===null||de||h||Eh(u)),u.memoizedProps===null||u.memoizedProps.mode!=="manual"))e:for(_=null,h=u;;){if(h.tag===5||h.tag===26||h.tag===27){if(_===null){de=_=h;try{if(O=de.stateNode,ee)A=O.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{j=de.stateNode,K=de.memoizedProps.style;var we=K!=null&&K.hasOwnProperty("display")?K.display:null;j.style.display=we==null||typeof we=="boolean"?"":(""+we).trim()}}catch(Tt){zn(de,de.return,Tt)}}}else if(h.tag===6){if(_===null){de=h;try{de.stateNode.nodeValue=ee?"":de.memoizedProps}catch(Tt){zn(de,de.return,Tt)}}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===u)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break e;for(;h.sibling===null;){if(h.return===null||h.return===u)break e;_===h&&(_=null),h=h.return}_===h&&(_=null),h.sibling.return=h.return,h=h.sibling}v&4&&(v=u.updateQueue,v!==null&&(_=v.retryQueue,_!==null&&(v.retryQueue=null,Cx(u,_))));break;case 19:zs(h,u),Ys(u),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,Cx(u,v)));break;case 21:break;default:zs(h,u),Ys(u)}}function Ys(u){var h=u.flags;if(h&2){try{if(u.tag!==27){e:{for(var _=u.return;_!==null;){if(P2(_)){var v=_;break e}_=_.return}throw Error(r(160))}switch(v.tag){case 27:var O=v.stateNode,A=yx(u);Eb(u,A,O);break;case 5:var j=v.stateNode;v.flags&32&&(da(j,""),v.flags&=-33);var K=yx(u);Eb(u,K,j);break;case 3:case 4:var ee=v.stateNode.containerInfo,de=yx(u);Tx(u,de,ee);break;default:throw Error(r(161))}}}catch(De){zn(u,u.return,De)}u.flags&=-3}h&4096&&(u.flags&=-4097)}function z2(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var h=u;z2(h),h.tag===5&&h.flags&1024&&h.stateNode.reset(),u=u.sibling}}function mc(u,h){if(h.subtreeFlags&8772)for(h=h.child;h!==null;)U2(u,h.alternate,h),h=h.sibling}function Eh(u){for(u=u.child;u!==null;){var h=u;switch(h.tag){case 0:case 11:case 14:case 15:vu(4,h,h.return),Eh(h);break;case 1:hs(h,h.return);var _=h.stateNode;typeof _.componentWillUnmount=="function"&&M2(h,h.return,_),Eh(h);break;case 26:case 27:case 5:hs(h,h.return),Eh(h);break;case 22:hs(h,h.return),h.memoizedState===null&&Eh(h);break;default:Eh(h)}u=u.sibling}}function Su(u,h,_){for(_=_&&(h.subtreeFlags&8772)!==0,h=h.child;h!==null;){var v=h.alternate,O=u,A=h,j=A.flags;switch(A.tag){case 0:case 11:case 15:Su(O,A,_),rg(4,A);break;case 1:if(Su(O,A,_),v=A,O=v.stateNode,typeof O.componentDidMount=="function")try{O.componentDidMount()}catch(de){zn(v,v.return,de)}if(v=A,O=v.updateQueue,O!==null){var K=v.stateNode;try{var ee=O.shared.hiddenCallbacks;if(ee!==null)for(O.shared.hiddenCallbacks=null,O=0;O<ee.length;O++)w2(ee[O],K)}catch(de){zn(v,v.return,de)}}_&&j&64&&I2(A),Wd(A,A.return);break;case 26:case 27:case 5:Su(O,A,_),_&&v===null&&j&4&&L2(A),Wd(A,A.return);break;case 12:Su(O,A,_);break;case 13:Su(O,A,_),_&&j&4&&q2(O,A);break;case 22:A.memoizedState===null&&Su(O,A,_),Wd(A,A.return);break;default:Su(O,A,_)}h=h.sibling}}function Ox(u,h){var _=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(_=u.memoizedState.cachePool.pool),u=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(u=h.memoizedState.cachePool.pool),u!==_&&(u!=null&&u.refCount++,_!=null&&Vm(_))}function Rx(u,h){u=null,h.alternate!==null&&(u=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==u&&(h.refCount++,u!=null&&Vm(u))}function Eu(u,h,_,v){if(h.subtreeFlags&10256)for(h=h.child;h!==null;)Y2(u,h,_,v),h=h.sibling}function Y2(u,h,_,v){var O=h.flags;switch(h.tag){case 0:case 11:case 15:Eu(u,h,_,v),O&2048&&rg(9,h);break;case 3:Eu(u,h,_,v),O&2048&&(u=null,h.alternate!==null&&(u=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==u&&(h.refCount++,u!=null&&Vm(u)));break;case 12:if(O&2048){Eu(u,h,_,v),u=h.stateNode;try{var A=h.memoizedProps,j=A.id,K=A.onPostCommit;typeof K=="function"&&K(j,h.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(ee){zn(h,h.return,ee)}}else Eu(u,h,_,v);break;case 23:break;case 22:A=h.stateNode,h.memoizedState!==null?A._visibility&4?Eu(u,h,_,v):ig(u,h):A._visibility&4?Eu(u,h,_,v):(A._visibility|=4,yh(u,h,_,v,(h.subtreeFlags&10256)!==0)),O&2048&&Ox(h.alternate,h);break;case 24:Eu(u,h,_,v),O&2048&&Rx(h.alternate,h);break;default:Eu(u,h,_,v)}}function yh(u,h,_,v,O){for(O=O&&(h.subtreeFlags&10256)!==0,h=h.child;h!==null;){var A=u,j=h,K=_,ee=v,de=j.flags;switch(j.tag){case 0:case 11:case 15:yh(A,j,K,ee,O),rg(8,j);break;case 23:break;case 22:var De=j.stateNode;j.memoizedState!==null?De._visibility&4?yh(A,j,K,ee,O):ig(A,j):(De._visibility|=4,yh(A,j,K,ee,O)),O&&de&2048&&Ox(j.alternate,j);break;case 24:yh(A,j,K,ee,O),O&&de&2048&&Rx(j.alternate,j);break;default:yh(A,j,K,ee,O)}h=h.sibling}}function ig(u,h){if(h.subtreeFlags&10256)for(h=h.child;h!==null;){var _=u,v=h,O=v.flags;switch(v.tag){case 22:ig(_,v),O&2048&&Ox(v.alternate,v);break;case 24:ig(_,v),O&2048&&Rx(v.alternate,v);break;default:ig(_,v)}h=h.sibling}}var ag=8192;function Th(u){if(u.subtreeFlags&ag)for(u=u.child;u!==null;)H2(u),u=u.sibling}function H2(u){switch(u.tag){case 26:Th(u),u.flags&ag&&u.memoizedState!==null&&sZ(xo,u.memoizedState,u.memoizedProps);break;case 5:Th(u);break;case 3:case 4:var h=xo;xo=Pb(u.stateNode.containerInfo),Th(u),xo=h;break;case 22:u.memoizedState===null&&(h=u.alternate,h!==null&&h.memoizedState!==null?(h=ag,ag=16777216,Th(u),ag=h):Th(u));break;default:Th(u)}}function V2(u){var h=u.alternate;if(h!==null&&(u=h.child,u!==null)){h.child=null;do h=u.sibling,u.sibling=null,u=h;while(u!==null)}}function sg(u){var h=u.deletions;if((u.flags&16)!==0){if(h!==null)for(var _=0;_<h.length;_++){var v=h[_];Ai=v,Q2(v,u)}V2(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)W2(u),u=u.sibling}function W2(u){switch(u.tag){case 0:case 11:case 15:sg(u),u.flags&2048&&vu(9,u,u.return);break;case 3:sg(u);break;case 12:sg(u);break;case 22:var h=u.stateNode;u.memoizedState!==null&&h._visibility&4&&(u.return===null||u.return.tag!==13)?(h._visibility&=-5,yb(u)):sg(u);break;default:sg(u)}}function yb(u){var h=u.deletions;if((u.flags&16)!==0){if(h!==null)for(var _=0;_<h.length;_++){var v=h[_];Ai=v,Q2(v,u)}V2(u)}for(u=u.child;u!==null;){switch(h=u,h.tag){case 0:case 11:case 15:vu(8,h,h.return),yb(h);break;case 22:_=h.stateNode,_._visibility&4&&(_._visibility&=-5,yb(h));break;default:yb(h)}u=u.sibling}}function Q2(u,h){for(;Ai!==null;){var _=Ai;switch(_.tag){case 0:case 11:case 15:vu(8,_,h);break;case 23:case 22:if(_.memoizedState!==null&&_.memoizedState.cachePool!==null){var v=_.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Vm(_.memoizedState.cache)}if(v=_.child,v!==null)v.return=_,Ai=v;else e:for(_=u;Ai!==null;){v=Ai;var O=v.sibling,A=v.return;if(j2(v),v===_){Ai=null;break e}if(O!==null){O.return=A,Ai=O;break e}Ai=A}}}function vX(u,h,_,v){this.tag=u,this.key=_,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hs(u,h,_,v){return new vX(u,h,_,v)}function Nx(u){return u=u.prototype,!(!u||!u.isReactComponent)}function yu(u,h){var _=u.alternate;return _===null?(_=Hs(u.tag,h,u.key,u.mode),_.elementType=u.elementType,_.type=u.type,_.stateNode=u.stateNode,_.alternate=u,u.alternate=_):(_.pendingProps=h,_.type=u.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=u.flags&31457280,_.childLanes=u.childLanes,_.lanes=u.lanes,_.child=u.child,_.memoizedProps=u.memoizedProps,_.memoizedState=u.memoizedState,_.updateQueue=u.updateQueue,h=u.dependencies,_.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},_.sibling=u.sibling,_.index=u.index,_.ref=u.ref,_.refCleanup=u.refCleanup,_}function K2(u,h){u.flags&=31457282;var _=u.alternate;return _===null?(u.childLanes=0,u.lanes=h,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=_.childLanes,u.lanes=_.lanes,u.child=_.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=_.memoizedProps,u.memoizedState=_.memoizedState,u.updateQueue=_.updateQueue,u.type=_.type,h=_.dependencies,u.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),u}function Tb(u,h,_,v,O,A){var j=0;if(v=u,typeof u=="function")Nx(u)&&(j=1);else if(typeof u=="string")j=iZ(u,_,se.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case c:return Qd(_.children,O,A,h);case d:j=8,O|=24;break;case f:return u=Hs(12,_,h,O|2),u.elementType=f,u.lanes=A,u;case S:return u=Hs(13,_,h,O),u.elementType=S,u.lanes=A,u;case y:return u=Hs(19,_,h,O),u.elementType=y,u.lanes=A,u;case C:return X2(_,O,A,h);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case p:case g:j=10;break e;case m:j=9;break e;case b:j=11;break e;case E:j=14;break e;case x:j=16,v=null;break e}j=29,_=Error(r(130,u===null?"null":typeof u,"")),v=null}return h=Hs(j,_,h,O),h.elementType=u,h.type=v,h.lanes=A,h}function Qd(u,h,_,v){return u=Hs(7,u,v,h),u.lanes=_,u}function X2(u,h,_,v){u=Hs(22,u,v,h),u.elementType=C,u.lanes=_;var O={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var A=O._current;if(A===null)throw Error(r(456));if((O._pendingVisibility&2)===0){var j=uu(A,2);j!==null&&(O._pendingVisibility|=2,wa(j,A,2))}},attach:function(){var A=O._current;if(A===null)throw Error(r(456));if((O._pendingVisibility&2)!==0){var j=uu(A,2);j!==null&&(O._pendingVisibility&=-3,wa(j,A,2))}}};return u.stateNode=O,u}function Ax(u,h,_){return u=Hs(6,u,null,h),u.lanes=_,u}function wx(u,h,_){return h=Hs(4,u.children!==null?u.children:[],u.key,h),h.lanes=_,h.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},h}function gc(u){u.flags|=4}function Z2(u,h){if(h.type!=="stylesheet"||(h.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!P3(h)){if(h=$s.current,h!==null&&((hn&4194176)===hn?ml!==null:(hn&62914560)!==hn&&(hn&536870912)===0||h!==ml))throw zm=kT,mP;u.flags|=8192}}function xb(u,h){h!==null&&(u.flags|=4),u.flags&16384&&(h=u.tag!==22?Xt():536870912,u.lanes|=h,Ch|=h)}function og(u,h){if(!bn)switch(u.tailMode){case"hidden":h=u.tail;for(var _=null;h!==null;)h.alternate!==null&&(_=h),h=h.sibling;_===null?u.tail=null:_.sibling=null;break;case"collapsed":_=u.tail;for(var v=null;_!==null;)_.alternate!==null&&(v=_),_=_.sibling;v===null?h||u.tail===null?u.tail=null:u.tail.sibling=null:v.sibling=null}}function Rr(u){var h=u.alternate!==null&&u.alternate.child===u.child,_=0,v=0;if(h)for(var O=u.child;O!==null;)_|=O.lanes|O.childLanes,v|=O.subtreeFlags&31457280,v|=O.flags&31457280,O.return=u,O=O.sibling;else for(O=u.child;O!==null;)_|=O.lanes|O.childLanes,v|=O.subtreeFlags,v|=O.flags,O.return=u,O=O.sibling;return u.subtreeFlags|=v,u.childLanes=_,h}function SX(u,h,_){var v=h.pendingProps;switch(MT(h),h.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rr(h),null;case 1:return Rr(h),null;case 3:return _=h.stateNode,v=null,u!==null&&(v=u.memoizedState.cache),h.memoizedState.cache!==v&&(h.flags|=2048),fc(hi),_t(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(u===null||u.child===null)&&(jm(h)?gc(h):u===null||u.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,To!==null&&(Fx(To),To=null))),Rr(h),null;case 26:return _=h.memoizedState,u===null?(gc(h),_!==null?(Rr(h),Z2(h,_)):(Rr(h),h.flags&=-16777217)):_?_!==u.memoizedState?(gc(h),Rr(h),Z2(h,_)):(Rr(h),h.flags&=-16777217):(u.memoizedProps!==v&&gc(h),Rr(h),h.flags&=-16777217),null;case 27:Ne(h),_=ce.current;var O=h.type;if(u!==null&&h.stateNode!=null)u.memoizedProps!==v&&gc(h);else{if(!v){if(h.stateNode===null)throw Error(r(166));return Rr(h),null}u=se.current,jm(h)?hP(h):(u=N3(O,v,_),h.stateNode=u,gc(h))}return Rr(h),null;case 5:if(Ne(h),_=h.type,u!==null&&h.stateNode!=null)u.memoizedProps!==v&&gc(h);else{if(!v){if(h.stateNode===null)throw Error(r(166));return Rr(h),null}if(u=se.current,jm(h))hP(h);else{switch(O=kb(ce.current),u){case 1:u=O.createElementNS("http://www.w3.org/2000/svg",_);break;case 2:u=O.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;default:switch(_){case"svg":u=O.createElementNS("http://www.w3.org/2000/svg",_);break;case"math":u=O.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;case"script":u=O.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof v.is=="string"?O.createElement("select",{is:v.is}):O.createElement("select"),v.multiple?u.multiple=!0:v.size&&(u.size=v.size);break;default:u=typeof v.is=="string"?O.createElement(_,{is:v.is}):O.createElement(_)}}u[qr]=h,u[$r]=v;e:for(O=h.child;O!==null;){if(O.tag===5||O.tag===6)u.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===h)break e;for(;O.sibling===null;){if(O.return===null||O.return===h)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}h.stateNode=u;e:switch(Vi(u,_,v),_){case"button":case"input":case"select":case"textarea":u=!!v.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&gc(h)}}return Rr(h),h.flags&=-16777217,null;case 6:if(u&&h.stateNode!=null)u.memoizedProps!==v&&gc(h);else{if(typeof v!="string"&&h.stateNode===null)throw Error(r(166));if(u=ce.current,jm(h)){if(u=h.stateNode,_=h.memoizedProps,v=null,O=Aa,O!==null)switch(O.tag){case 27:case 5:v=O.memoizedProps}u[qr]=h,u=!!(u.nodeValue===_||v!==null&&v.suppressHydrationWarning===!0||y3(u.nodeValue,_)),u||Ud(h)}else u=kb(u).createTextNode(v),u[qr]=h,h.stateNode=u}return Rr(h),null;case 13:if(v=h.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(O=jm(h),v!==null&&v.dehydrated!==null){if(u===null){if(!O)throw Error(r(318));if(O=h.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(r(317));O[qr]=h}else Gm(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Rr(h),O=!1}else To!==null&&(Fx(To),To=null),O=!0;if(!O)return h.flags&256?(lc(h),h):(lc(h),null)}if(lc(h),(h.flags&128)!==0)return h.lanes=_,h;if(_=v!==null,u=u!==null&&u.memoizedState!==null,_){v=h.child,O=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(O=v.alternate.memoizedState.cachePool.pool);var A=null;v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(A=v.memoizedState.cachePool.pool),A!==O&&(v.flags|=2048)}return _!==u&&_&&(h.child.flags|=8192),xb(h,h.updateQueue),Rr(h),null;case 4:return _t(),u===null&&Qx(h.stateNode.containerInfo),Rr(h),null;case 10:return fc(h.type),Rr(h),null;case 19:if(Ie(fi),O=h.memoizedState,O===null)return Rr(h),null;if(v=(h.flags&128)!==0,A=O.rendering,A===null)if(v)og(O,!1);else{if(Pr!==0||u!==null&&(u.flags&128)!==0)for(u=h.child;u!==null;){if(A=ob(u),A!==null){for(h.flags|=128,og(O,!1),u=A.updateQueue,h.updateQueue=u,xb(h,u),h.subtreeFlags=0,u=_,_=h.child;_!==null;)K2(_,u),_=_.sibling;return Oe(fi,fi.current&1|2),h.child}u=u.sibling}O.tail!==null&&Ue()>Cb&&(h.flags|=128,v=!0,og(O,!1),h.lanes=4194304)}else{if(!v)if(u=ob(A),u!==null){if(h.flags|=128,v=!0,u=u.updateQueue,h.updateQueue=u,xb(h,u),og(O,!0),O.tail===null&&O.tailMode==="hidden"&&!A.alternate&&!bn)return Rr(h),null}else 2*Ue()-O.renderingStartTime>Cb&&_!==536870912&&(h.flags|=128,v=!0,og(O,!1),h.lanes=4194304);O.isBackwards?(A.sibling=h.child,h.child=A):(u=O.last,u!==null?u.sibling=A:h.child=A,O.last=A)}return O.tail!==null?(h=O.tail,O.rendering=h,O.tail=h.sibling,O.renderingStartTime=Ue(),h.sibling=null,u=fi.current,Oe(fi,v?u&1|2:u&1),h):(Rr(h),null);case 22:case 23:return lc(h),BT(),v=h.memoizedState!==null,u!==null?u.memoizedState!==null!==v&&(h.flags|=8192):v&&(h.flags|=8192),v?(_&536870912)!==0&&(h.flags&128)===0&&(Rr(h),h.subtreeFlags&6&&(h.flags|=8192)):Rr(h),_=h.updateQueue,_!==null&&xb(h,_.retryQueue),_=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(_=u.memoizedState.cachePool.pool),v=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==_&&(h.flags|=2048),u!==null&&Ie(Gd),null;case 24:return _=null,u!==null&&(_=u.memoizedState.cache),h.memoizedState.cache!==_&&(h.flags|=2048),fc(hi),Rr(h),null;case 25:return null}throw Error(r(156,h.tag))}function EX(u,h){switch(MT(h),h.tag){case 1:return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 3:return fc(hi),_t(),u=h.flags,(u&65536)!==0&&(u&128)===0?(h.flags=u&-65537|128,h):null;case 26:case 27:case 5:return Ne(h),null;case 13:if(lc(h),u=h.memoizedState,u!==null&&u.dehydrated!==null){if(h.alternate===null)throw Error(r(340));Gm()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 19:return Ie(fi),null;case 4:return _t(),null;case 10:return fc(h.type),null;case 22:case 23:return lc(h),BT(),u!==null&&Ie(Gd),u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 24:return fc(hi),null;case 25:return null;default:return null}}function J2(u,h){switch(MT(h),h.tag){case 3:fc(hi),_t();break;case 26:case 27:case 5:Ne(h);break;case 4:_t();break;case 13:lc(h);break;case 19:Ie(fi);break;case 10:fc(h.type);break;case 22:case 23:lc(h),BT(),u!==null&&Ie(Gd);break;case 24:fc(hi)}}var yX={getCacheForType:function(u){var h=ma(hi),_=h.data.get(u);return _===void 0&&(_=u(),h.data.set(u,_)),_}},TX=typeof WeakMap=="function"?WeakMap:Map,Nr=0,Kn=null,rn=null,hn=0,Xn=0,ms=null,_c=!1,xh=!1,Dx=!1,bc=0,Pr=0,Tu=0,Kd=0,Ix=0,Vs=0,Ch=0,lg=null,_l=null,Mx=!1,Lx=0,Cb=1/0,Ob=null,xu=null,Rb=!1,Xd=null,cg=0,kx=0,Px=null,ug=0,Bx=null;function gs(){if((Nr&2)!==0&&hn!==0)return hn&-hn;if(L.T!==null){var u=gh;return u!==0?u:Yx()}return ia()}function e3(){Vs===0&&(Vs=(hn&536870912)===0||bn?Me():536870912);var u=$s.current;return u!==null&&(u.flags|=32),Vs}function wa(u,h,_){(u===Kn&&Xn===2||u.cancelPendingCommit!==null)&&(Oh(u,0),vc(u,hn,Vs,!1)),it(u,_),((Nr&2)===0||u!==Kn)&&(u===Kn&&((Nr&2)===0&&(Kd|=_),Pr===4&&vc(u,hn,Vs,!1)),bl(u))}function t3(u,h,_){if((Nr&6)!==0)throw Error(r(327));var v=!_&&(h&60)===0&&(h&u.expiredLanes)===0||Ae(u,h),O=v?OX(u,h):Gx(u,h,!0),A=v;do{if(O===0){xh&&!v&&vc(u,h,0,!1);break}else if(O===6)vc(u,h,0,!_c);else{if(_=u.current.alternate,A&&!xX(_)){O=Gx(u,h,!1),A=!1;continue}if(O===2){if(A=h,u.errorRecoveryDisabledLanes&A)var j=0;else j=u.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){h=j;e:{var K=u;O=lg;var ee=K.current.memoizedState.isDehydrated;if(ee&&(Oh(K,j).flags|=256),j=Gx(K,j,!1),j!==2){if(Dx&&!ee){K.errorRecoveryDisabledLanes|=A,Kd|=A,O=4;break e}A=_l,_l=O,A!==null&&Fx(A)}O=j}if(A=!1,O!==2)continue}}if(O===1){Oh(u,0),vc(u,h,0,!0);break}e:{switch(v=u,O){case 0:case 1:throw Error(r(345));case 4:if((h&4194176)===h){vc(v,h,Vs,!_c);break e}break;case 2:_l=null;break;case 3:case 5:break;default:throw Error(r(329))}if(v.finishedWork=_,v.finishedLanes=h,(h&62914560)===h&&(A=Lx+300-Ue(),10<A)){if(vc(v,h,Vs,!_c),ne(v,0)!==0)break e;v.timeoutHandle=C3(n3.bind(null,v,_,_l,Ob,Mx,h,Vs,Kd,Ch,_c,2,-0,0),A);break e}n3(v,_,_l,Ob,Mx,h,Vs,Kd,Ch,_c,0,-0,0)}}break}while(!0);bl(u)}function Fx(u){_l===null?_l=u:_l.push.apply(_l,u)}function n3(u,h,_,v,O,A,j,K,ee,de,De,Ge,ye){var we=h.subtreeFlags;if((we&8192||(we&16785408)===16785408)&&(gg={stylesheets:null,count:0,unsuspend:aZ},H2(h),h=oZ(),h!==null)){u.cancelPendingCommit=h(c3.bind(null,u,_,v,O,j,K,ee,1,Ge,ye)),vc(u,A,j,!de);return}c3(u,_,v,O,j,K,ee,De,Ge,ye)}function xX(u){for(var h=u;;){var _=h.tag;if((_===0||_===11||_===15)&&h.flags&16384&&(_=h.updateQueue,_!==null&&(_=_.stores,_!==null)))for(var v=0;v<_.length;v++){var O=_[v],A=O.getSnapshot;O=O.value;try{if(!$t(A(),O))return!1}catch{return!1}}if(_=h.child,h.subtreeFlags&16384&&_!==null)_.return=h,h=_;else{if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function vc(u,h,_,v){h&=~Ix,h&=~Kd,u.suspendedLanes|=h,u.pingedLanes&=~h,v&&(u.warmLanes|=h),v=u.expirationTimes;for(var O=h;0<O;){var A=31-mn(O),j=1<<A;v[A]=-1,O&=~j}_!==0&&xt(u,_,h)}function Nb(){return(Nr&6)===0?(dg(0),!1):!0}function Ux(){if(rn!==null){if(Xn===0)var u=rn.return;else u=rn,dc=Hd=null,YT(u),ph=null,Ym=0,u=rn;for(;u!==null;)J2(u.alternate,u),u=u.return;rn=null}}function Oh(u,h){u.finishedWork=null,u.finishedLanes=0;var _=u.timeoutHandle;_!==-1&&(u.timeoutHandle=-1,$X(_)),_=u.cancelPendingCommit,_!==null&&(u.cancelPendingCommit=null,_()),Ux(),Kn=u,rn=_=yu(u.current,null),hn=h,Xn=0,ms=null,_c=!1,xh=Ae(u,h),Dx=!1,Ch=Vs=Ix=Kd=Tu=Pr=0,_l=lg=null,Mx=!1,(h&8)!==0&&(h|=h&32);var v=u.entangledLanes;if(v!==0)for(u=u.entanglements,v&=h;0<v;){var O=31-mn(v),A=1<<O;h|=u[O],v&=~A}return bc=h,Z0(),_}function r3(u,h){en=null,L.H=gl,h===$m?(h=bP(),Xn=3):h===mP?(h=bP(),Xn=4):Xn=h===g2?8:h!==null&&typeof h=="object"&&typeof h.then=="function"?6:1,ms=h,rn===null&&(Pr=1,bb(u,js(h,u.current)))}function i3(){var u=L.H;return L.H=gl,u===null?gl:u}function a3(){var u=L.A;return L.A=yX,u}function jx(){Pr=4,_c||(hn&4194176)!==hn&&$s.current!==null||(xh=!0),(Tu&134217727)===0&&(Kd&134217727)===0||Kn===null||vc(Kn,hn,Vs,!1)}function Gx(u,h,_){var v=Nr;Nr|=2;var O=i3(),A=a3();(Kn!==u||hn!==h)&&(Ob=null,Oh(u,h)),h=!1;var j=Pr;e:do try{if(Xn!==0&&rn!==null){var K=rn,ee=ms;switch(Xn){case 8:Ux(),j=6;break e;case 3:case 2:case 6:$s.current===null&&(h=!0);var de=Xn;if(Xn=0,ms=null,Rh(u,K,ee,de),_&&xh){j=0;break e}break;default:de=Xn,Xn=0,ms=null,Rh(u,K,ee,de)}}CX(),j=Pr;break}catch(De){r3(u,De)}while(!0);return h&&u.shellSuspendCounter++,dc=Hd=null,Nr=v,L.H=O,L.A=A,rn===null&&(Kn=null,hn=0,Z0()),j}function CX(){for(;rn!==null;)s3(rn)}function OX(u,h){var _=Nr;Nr|=2;var v=i3(),O=a3();Kn!==u||hn!==h?(Ob=null,Cb=Ue()+500,Oh(u,h)):xh=Ae(u,h);e:do try{if(Xn!==0&&rn!==null){h=rn;var A=ms;t:switch(Xn){case 1:Xn=0,ms=null,Rh(u,h,A,1);break;case 2:if(gP(A)){Xn=0,ms=null,o3(h);break}h=function(){Xn===2&&Kn===u&&(Xn=7),bl(u)},A.then(h,h);break e;case 3:Xn=7;break e;case 4:Xn=5;break e;case 7:gP(A)?(Xn=0,ms=null,o3(h)):(Xn=0,ms=null,Rh(u,h,A,7));break;case 5:var j=null;switch(rn.tag){case 26:j=rn.memoizedState;case 5:case 27:var K=rn;if(!j||P3(j)){Xn=0,ms=null;var ee=K.sibling;if(ee!==null)rn=ee;else{var de=K.return;de!==null?(rn=de,Ab(de)):rn=null}break t}}Xn=0,ms=null,Rh(u,h,A,5);break;case 6:Xn=0,ms=null,Rh(u,h,A,6);break;case 8:Ux(),Pr=6;break e;default:throw Error(r(462))}}RX();break}catch(De){r3(u,De)}while(!0);return dc=Hd=null,L.H=v,L.A=O,Nr=_,rn!==null?0:(Kn=null,hn=0,Z0(),Pr)}function RX(){for(;rn!==null&&!Ye();)s3(rn)}function s3(u){var h=N2(u.alternate,u,bc);u.memoizedProps=u.pendingProps,h===null?Ab(u):rn=h}function o3(u){var h=u,_=h.alternate;switch(h.tag){case 15:case 0:h=y2(_,h,h.pendingProps,h.type,void 0,hn);break;case 11:h=y2(_,h,h.pendingProps,h.type.render,h.ref,hn);break;case 5:YT(h);default:J2(_,h),h=rn=K2(h,bc),h=N2(_,h,bc)}u.memoizedProps=u.pendingProps,h===null?Ab(u):rn=h}function Rh(u,h,_,v){dc=Hd=null,YT(h),ph=null,Ym=0;var O=h.return;try{if(mX(u,O,h,_,hn)){Pr=1,bb(u,js(_,u.current)),rn=null;return}}catch(A){if(O!==null)throw rn=O,A;Pr=1,bb(u,js(_,u.current)),rn=null;return}h.flags&32768?(bn||v===1?u=!0:xh||(hn&536870912)!==0?u=!1:(_c=u=!0,(v===2||v===3||v===6)&&(v=$s.current,v!==null&&v.tag===13&&(v.flags|=16384))),l3(h,u)):Ab(h)}function Ab(u){var h=u;do{if((h.flags&32768)!==0){l3(h,_c);return}u=h.return;var _=SX(h.alternate,h,bc);if(_!==null){rn=_;return}if(h=h.sibling,h!==null){rn=h;return}rn=h=u}while(h!==null);Pr===0&&(Pr=5)}function l3(u,h){do{var _=EX(u.alternate,u);if(_!==null){_.flags&=32767,rn=_;return}if(_=u.return,_!==null&&(_.flags|=32768,_.subtreeFlags=0,_.deletions=null),!h&&(u=u.sibling,u!==null)){rn=u;return}rn=u=_}while(u!==null);Pr=6,rn=null}function c3(u,h,_,v,O,A,j,K,ee,de){var De=L.T,Ge=ie.p;try{ie.p=2,L.T=null,NX(u,h,_,v,Ge,O,A,j,K,ee,de)}finally{L.T=De,ie.p=Ge}}function NX(u,h,_,v,O,A,j,K){do Nh();while(Xd!==null);if((Nr&6)!==0)throw Error(r(327));var ee=u.finishedWork;if(v=u.finishedLanes,ee===null)return null;if(u.finishedWork=null,u.finishedLanes=0,ee===u.current)throw Error(r(177));u.callbackNode=null,u.callbackPriority=0,u.cancelPendingCommit=null;var de=ee.lanes|ee.childLanes;if(de|=wT,st(u,v,de,A,j,K),u===Kn&&(rn=Kn=null,hn=0),(ee.subtreeFlags&10256)===0&&(ee.flags&10256)===0||Rb||(Rb=!0,kx=de,Px=_,IX(Nt,function(){return Nh(),null})),_=(ee.flags&15990)!==0,(ee.subtreeFlags&15990)!==0||_?(_=L.T,L.T=null,A=ie.p,ie.p=2,j=Nr,Nr|=4,_X(u,ee),$2(ee,u),Sr(Jx,u.containerInfo),Gb=!!Zx,Jx=Zx=null,u.current=ee,U2(u,ee.alternate,ee),ve(),Nr=j,ie.p=A,L.T=_):u.current=ee,Rb?(Rb=!1,Xd=u,cg=v):u3(u,de),de=u.pendingLanes,de===0&&(xu=null),ci(ee.stateNode),bl(u),h!==null)for(O=u.onRecoverableError,ee=0;ee<h.length;ee++)de=h[ee],O(de.value,{componentStack:de.stack});return(cg&3)!==0&&Nh(),de=u.pendingLanes,(v&4194218)!==0&&(de&42)!==0?u===Bx?ug++:(ug=0,Bx=u):ug=0,dg(0),null}function u3(u,h){(u.pooledCacheLanes&=h)===0&&(h=u.pooledCache,h!=null&&(u.pooledCache=null,Vm(h)))}function Nh(){if(Xd!==null){var u=Xd,h=kx;kx=0;var _=En(cg),v=L.T,O=ie.p;try{if(ie.p=32>_?32:_,L.T=null,Xd===null)var A=!1;else{_=Px,Px=null;var j=Xd,K=cg;if(Xd=null,cg=0,(Nr&6)!==0)throw Error(r(331));var ee=Nr;if(Nr|=4,W2(j.current),Y2(j,j.current,K,_),Nr=ee,dg(0,!1),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(er,j)}catch{}A=!0}return A}finally{ie.p=O,L.T=v,u3(u,h)}}return!1}function d3(u,h,_){h=js(_,h),h=ax(u.stateNode,h,2),u=bu(u,h,2),u!==null&&(it(u,2),bl(u))}function zn(u,h,_){if(u.tag===3)d3(u,u,_);else for(;h!==null;){if(h.tag===3){d3(h,u,_);break}else if(h.tag===1){var v=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(xu===null||!xu.has(v))){u=js(_,u),_=p2(2),v=bu(h,_,2),v!==null&&(m2(_,v,h,u),it(v,2),bl(v));break}}h=h.return}}function qx(u,h,_){var v=u.pingCache;if(v===null){v=u.pingCache=new TX;var O=new Set;v.set(h,O)}else O=v.get(h),O===void 0&&(O=new Set,v.set(h,O));O.has(_)||(Dx=!0,O.add(_),u=AX.bind(null,u,h,_),h.then(u,u))}function AX(u,h,_){var v=u.pingCache;v!==null&&v.delete(h),u.pingedLanes|=u.suspendedLanes&_,u.warmLanes&=~_,Kn===u&&(hn&_)===_&&(Pr===4||Pr===3&&(hn&62914560)===hn&&300>Ue()-Lx?(Nr&2)===0&&Oh(u,0):Ix|=_,Ch===hn&&(Ch=0)),bl(u)}function f3(u,h){h===0&&(h=Xt()),u=uu(u,h),u!==null&&(it(u,h),bl(u))}function wX(u){var h=u.memoizedState,_=0;h!==null&&(_=h.retryLane),f3(u,_)}function DX(u,h){var _=0;switch(u.tag){case 13:var v=u.stateNode,O=u.memoizedState;O!==null&&(_=O.retryLane);break;case 19:v=u.stateNode;break;case 22:v=u.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(h),f3(u,_)}function IX(u,h){return ze(u,h)}var wb=null,Ah=null,$x=!1,Db=!1,zx=!1,Zd=0;function bl(u){u!==Ah&&u.next===null&&(Ah===null?wb=Ah=u:Ah=Ah.next=u),Db=!0,$x||($x=!0,LX(MX))}function dg(u,h){if(!zx&&Db){zx=!0;do for(var _=!1,v=wb;v!==null;){if(u!==0){var O=v.pendingLanes;if(O===0)var A=0;else{var j=v.suspendedLanes,K=v.pingedLanes;A=(1<<31-mn(42|u)+1)-1,A&=O&~(j&~K),A=A&201326677?A&201326677|1:A?A|2:0}A!==0&&(_=!0,m3(v,A))}else A=hn,A=ne(v,v===Kn?A:0),(A&3)===0||Ae(v,A)||(_=!0,m3(v,A));v=v.next}while(_);zx=!1}}function MX(){Db=$x=!1;var u=0;Zd!==0&&(qX()&&(u=Zd),Zd=0);for(var h=Ue(),_=null,v=wb;v!==null;){var O=v.next,A=h3(v,h);A===0?(v.next=null,_===null?wb=O:_.next=O,O===null&&(Ah=_)):(_=v,(u!==0||(A&3)!==0)&&(Db=!0)),v=O}dg(u)}function h3(u,h){for(var _=u.suspendedLanes,v=u.pingedLanes,O=u.expirationTimes,A=u.pendingLanes&-62914561;0<A;){var j=31-mn(A),K=1<<j,ee=O[j];ee===-1?((K&_)===0||(K&v)!==0)&&(O[j]=Xe(K,h)):ee<=h&&(u.expiredLanes|=K),A&=~K}if(h=Kn,_=hn,_=ne(u,u===h?_:0),v=u.callbackNode,_===0||u===h&&Xn===2||u.cancelPendingCommit!==null)return v!==null&&v!==null&&Ze(v),u.callbackNode=null,u.callbackPriority=0;if((_&3)===0||Ae(u,_)){if(h=_&-_,h===u.callbackPriority)return h;switch(v!==null&&Ze(v),En(_)){case 2:case 8:_=Ut;break;case 32:_=Nt;break;case 268435456:_=sn;break;default:_=Nt}return v=p3.bind(null,u),_=ze(_,v),u.callbackPriority=h,u.callbackNode=_,h}return v!==null&&v!==null&&Ze(v),u.callbackPriority=2,u.callbackNode=null,2}function p3(u,h){var _=u.callbackNode;if(Nh()&&u.callbackNode!==_)return null;var v=hn;return v=ne(u,u===Kn?v:0),v===0?null:(t3(u,v,h),h3(u,Ue()),u.callbackNode!=null&&u.callbackNode===_?p3.bind(null,u):null)}function m3(u,h){if(Nh())return null;t3(u,h,!0)}function LX(u){zX(function(){(Nr&6)!==0?ze(yt,u):u()})}function Yx(){return Zd===0&&(Zd=Me()),Zd}function g3(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:fa(""+u)}function _3(u,h){var _=h.ownerDocument.createElement("input");return _.name=h.name,_.value=h.value,u.id&&_.setAttribute("form",u.id),h.parentNode.insertBefore(_,h),u=new FormData(u),_.parentNode.removeChild(_),u}function kX(u,h,_,v,O){if(h==="submit"&&_&&_.stateNode===O){var A=g3((O[$r]||null).action),j=v.submitter;j&&(h=(h=j[$r]||null)?g3(h.formAction):j.getAttribute("formAction"),h!==null&&(A=h,j=null));var K=new Cr("action","action",null,v,O);u.push({event:K,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Zd!==0){var ee=j?_3(O,j):new FormData(O);ex(_,{pending:!0,data:ee,method:O.method,action:A},null,ee)}}else typeof A=="function"&&(K.preventDefault(),ee=j?_3(O,j):new FormData(O),ex(_,{pending:!0,data:ee,method:O.method,action:A},A,ee))},currentTarget:O}]})}}for(var Hx=0;Hx<cP.length;Hx++){var Vx=cP[Hx],PX=Vx.toLowerCase(),BX=Vx[0].toUpperCase()+Vx.slice(1);yo(PX,"on"+BX)}yo(pa,"onAnimationEnd"),yo(ac,"onAnimationIteration"),yo(Eo,"onAnimationStart"),yo("dblclick","onDoubleClick"),yo("focusin","onFocus"),yo("focusout","onBlur"),yo(Ka,"onTransitionRun"),yo(tX,"onTransitionStart"),yo(nX,"onTransitionCancel"),yo(oP,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),$i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$i("onBeforeInput",["compositionend","keypress","textInput","paste"]),$i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),FX=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fg));function b3(u,h){h=(h&4)!==0;for(var _=0;_<u.length;_++){var v=u[_],O=v.event;v=v.listeners;e:{var A=void 0;if(h)for(var j=v.length-1;0<=j;j--){var K=v[j],ee=K.instance,de=K.currentTarget;if(K=K.listener,ee!==A&&O.isPropagationStopped())break e;A=K,O.currentTarget=de;try{A(O)}catch(De){_b(De)}O.currentTarget=null,A=ee}else for(j=0;j<v.length;j++){if(K=v[j],ee=K.instance,de=K.currentTarget,K=K.listener,ee!==A&&O.isPropagationStopped())break e;A=K,O.currentTarget=de;try{A(O)}catch(De){_b(De)}O.currentTarget=null,A=ee}}}}function dn(u,h){var _=h[Jc];_===void 0&&(_=h[Jc]=new Set);var v=u+"__bubble";_.has(v)||(v3(h,u,2,!1),_.add(v))}function Wx(u,h,_){var v=0;h&&(v|=4),v3(_,u,v,h)}var Ib="_reactListening"+Math.random().toString(36).slice(2);function Qx(u){if(!u[Ib]){u[Ib]=!0,ec.forEach(function(_){_!=="selectionchange"&&(FX.has(_)||Wx(_,!1,u),Wx(_,!0,u))});var h=u.nodeType===9?u:u.ownerDocument;h===null||h[Ib]||(h[Ib]=!0,Wx("selectionchange",!1,h))}}function v3(u,h,_,v){switch(q3(h)){case 2:var O=uZ;break;case 8:O=dZ;break;default:O=lC}_=O.bind(null,h,_,u),O=void 0,!Fs||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(O=!0),v?O!==void 0?u.addEventListener(h,_,{capture:!0,passive:O}):u.addEventListener(h,_,!0):O!==void 0?u.addEventListener(h,_,{passive:O}):u.addEventListener(h,_,!1)}function Kx(u,h,_,v,O){var A=v;if((h&1)===0&&(h&2)===0&&v!==null)e:for(;;){if(v===null)return;var j=v.tag;if(j===3||j===4){var K=v.stateNode.containerInfo;if(K===O||K.nodeType===8&&K.parentNode===O)break;if(j===4)for(j=v.return;j!==null;){var ee=j.tag;if((ee===3||ee===4)&&(ee=j.stateNode.containerInfo,ee===O||ee.nodeType===8&&ee.parentNode===O))return;j=j.return}for(;K!==null;){if(j=wn(K),j===null)return;if(ee=j.tag,ee===5||ee===6||ee===26||ee===27){v=A=j;continue e}K=K.parentNode}}v=v.return}zi(function(){var de=A,De=We(_),Ge=[];e:{var ye=lP.get(u);if(ye!==void 0){var we=Cr,Tt=u;switch(u){case"keypress":if(wd(_)===0)break e;case"keydown":case"keyup":we=Lm;break;case"focusin":Tt="focus",we=Mm;break;case"focusout":Tt="blur",we=Mm;break;case"beforeblur":case"afterblur":we=Mm;break;case"click":if(_.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=ds;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=xT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=Md;break;case pa:case ac:case Eo:we=dl;break;case oP:we=km;break;case"scroll":case"scrollend":we=Gn;break;case"wheel":we=oh;break;case"copy":case"cut":case"paste":we=ou;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=fl;break;case"toggle":case"beforetoggle":we=H0}var Bt=(h&4)!==0,Br=!Bt&&(u==="scroll"||u==="scrollend"),he=Bt?ye!==null?ye+"Capture":null:ye;Bt=[];for(var le=de,ge;le!==null;){var Fe=le;if(ge=Fe.stateNode,Fe=Fe.tag,Fe!==5&&Fe!==26&&Fe!==27||ge===null||he===null||(Fe=Na(le,he),Fe!=null&&Bt.push(hg(le,Fe,ge))),Br)break;le=le.return}0<Bt.length&&(ye=new we(ye,Tt,null,_,De),Ge.push({event:ye,listeners:Bt}))}}if((h&7)===0){e:{if(ye=u==="mouseover"||u==="pointerover",we=u==="mouseout"||u==="pointerout",ye&&_!==Bs&&(Tt=_.relatedTarget||_.fromElement)&&(wn(Tt)||Tt[Gi]))break e;if((we||ye)&&(ye=De.window===De?De:(ye=De.ownerDocument)?ye.defaultView||ye.parentWindow:window,we?(Tt=_.relatedTarget||_.toElement,we=de,Tt=Tt?wn(Tt):null,Tt!==null&&(Br=z(Tt),Bt=Tt.tag,Tt!==Br||Bt!==5&&Bt!==27&&Bt!==6)&&(Tt=null)):(we=null,Tt=de),we!==Tt)){if(Bt=ds,Fe="onMouseLeave",he="onMouseEnter",le="mouse",(u==="pointerout"||u==="pointerover")&&(Bt=fl,Fe="onPointerLeave",he="onPointerEnter",le="pointer"),Br=we==null?ye:Bn(we),ge=Tt==null?ye:Bn(Tt),ye=new Bt(Fe,le+"leave",we,_,De),ye.target=Br,ye.relatedTarget=ge,Fe=null,wn(De)===de&&(Bt=new Bt(he,le+"enter",Tt,_,De),Bt.target=ge,Bt.relatedTarget=Br,Fe=Bt),Br=Fe,we&&Tt)t:{for(Bt=we,he=Tt,le=0,ge=Bt;ge;ge=wh(ge))le++;for(ge=0,Fe=he;Fe;Fe=wh(Fe))ge++;for(;0<le-ge;)Bt=wh(Bt),le--;for(;0<ge-le;)he=wh(he),ge--;for(;le--;){if(Bt===he||he!==null&&Bt===he.alternate)break t;Bt=wh(Bt),he=wh(he)}Bt=null}else Bt=null;we!==null&&S3(Ge,ye,we,Bt,!1),Tt!==null&&Br!==null&&S3(Ge,Br,Tt,Bt,!0)}}e:{if(ye=de?Bn(de):window,we=ye.nodeName&&ye.nodeName.toLowerCase(),we==="select"||we==="input"&&ye.type==="file")var vt=W;else if(ch(ye))if(Z)vt=gt;else{vt=ot;var tn=Qe}else we=ye.nodeName,!we||we.toLowerCase()!=="input"||ye.type!=="checkbox"&&ye.type!=="radio"?de&&Zt(de.elementType)&&(vt=W):vt=lt;if(vt&&(vt=vt(u,de))){cu(Ge,vt,_,De);break e}tn&&tn(u,ye,de),u==="focusout"&&de&&ye.type==="number"&&de.memoizedProps.value!=null&&Ha(ye,"number",ye.value)}switch(tn=de?Bn(de):window,u){case"focusin":(ch(tn)||tn.contentEditable==="true")&&($n=tn,Oi=de,Jr=null);break;case"focusout":Jr=Oi=$n=null;break;case"mousedown":ha=!0;break;case"contextmenu":case"mouseup":case"dragend":ha=!1,Wa(Ge,_,De);break;case"selectionchange":if(qn)break;case"keydown":case"keyup":Wa(Ge,_,De)}var Ot;if(lh)e:{switch(u){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else or?ic(u,_)&&(wt="onCompositionEnd"):u==="keydown"&&_.keyCode===229&&(wt="onCompositionStart");wt&&(Q0&&_.locale!=="ko"&&(or||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&or&&(Ot=Im()):(bo=De,cl="value"in bo?bo.value:bo.textContent,or=!0)),tn=Mb(de,wt),0<tn.length&&(wt=new fs(wt,u,null,_,De),Ge.push({event:wt,listeners:tn}),Ot?wt.data=Ot:(Ot=Ld(_),Ot!==null&&(wt.data=Ot)))),(Ot=W0?K0(u,_):Mr(u,_))&&(wt=Mb(de,"onBeforeInput"),0<wt.length&&(tn=new fs("onBeforeInput","beforeinput",null,_,De),Ge.push({event:tn,listeners:wt}),tn.data=Ot)),kX(Ge,u,de,_,De)}b3(Ge,h)})}function hg(u,h,_){return{instance:u,listener:h,currentTarget:_}}function Mb(u,h){for(var _=h+"Capture",v=[];u!==null;){var O=u,A=O.stateNode;O=O.tag,O!==5&&O!==26&&O!==27||A===null||(O=Na(u,_),O!=null&&v.unshift(hg(u,O,A)),O=Na(u,h),O!=null&&v.push(hg(u,O,A))),u=u.return}return v}function wh(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function S3(u,h,_,v,O){for(var A=h._reactName,j=[];_!==null&&_!==v;){var K=_,ee=K.alternate,de=K.stateNode;if(K=K.tag,ee!==null&&ee===v)break;K!==5&&K!==26&&K!==27||de===null||(ee=de,O?(de=Na(_,A),de!=null&&j.unshift(hg(_,de,ee))):O||(de=Na(_,A),de!=null&&j.push(hg(_,de,ee)))),_=_.return}j.length!==0&&u.push({event:h,listeners:j})}var UX=/\r\n?/g,jX=/\u0000|\uFFFD/g;function E3(u){return(typeof u=="string"?u:""+u).replace(UX,`
`).replace(jX,"")}function y3(u,h){return h=E3(h),E3(u)===h}function Lb(){}function kn(u,h,_,v,O,A){switch(_){case"children":typeof v=="string"?h==="body"||h==="textarea"&&v===""||da(u,v):(typeof v=="number"||typeof v=="bigint")&&h!=="body"&&da(u,""+v);break;case"className":Fn(u,"class",v);break;case"tabIndex":Fn(u,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(u,_,v);break;case"style":ar(u,v,A);break;case"data":if(h!=="object"){Fn(u,"data",v);break}case"src":case"href":if(v===""&&(h!=="a"||_!=="href")){u.removeAttribute(_);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(_);break}v=fa(""+v),u.setAttribute(_,v);break;case"action":case"formAction":if(typeof v=="function"){u.setAttribute(_,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(_==="formAction"?(h!=="input"&&kn(u,h,"name",O.name,O,null),kn(u,h,"formEncType",O.formEncType,O,null),kn(u,h,"formMethod",O.formMethod,O,null),kn(u,h,"formTarget",O.formTarget,O,null)):(kn(u,h,"encType",O.encType,O,null),kn(u,h,"method",O.method,O,null),kn(u,h,"target",O.target,O,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(_);break}v=fa(""+v),u.setAttribute(_,v);break;case"onClick":v!=null&&(u.onclick=Lb);break;case"onScroll":v!=null&&dn("scroll",u);break;case"onScrollEnd":v!=null&&dn("scrollend",u);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(_=v.__html,_!=null){if(O.children!=null)throw Error(r(60));u.innerHTML=_}}break;case"multiple":u.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":u.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){u.removeAttribute("xlink:href");break}_=fa(""+v),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",_);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(_,""+v):u.removeAttribute(_);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(_,""):u.removeAttribute(_);break;case"capture":case"download":v===!0?u.setAttribute(_,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(_,v):u.removeAttribute(_);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?u.setAttribute(_,v):u.removeAttribute(_);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?u.removeAttribute(_):u.setAttribute(_,v);break;case"popover":dn("beforetoggle",u),dn("toggle",u),Dn(u,"popover",v);break;case"xlinkActuate":Ir(u,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Ir(u,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Ir(u,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Ir(u,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Ir(u,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Ir(u,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Ir(u,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Ir(u,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Ir(u,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":Dn(u,"is",v);break;case"innerText":case"textContent":break;default:(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N")&&(_=Va.get(_)||_,Dn(u,_,v))}}function Xx(u,h,_,v,O,A){switch(_){case"style":ar(u,v,A);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(_=v.__html,_!=null){if(O.children!=null)throw Error(r(60));u.innerHTML=_}}break;case"children":typeof v=="string"?da(u,v):(typeof v=="number"||typeof v=="bigint")&&da(u,""+v);break;case"onScroll":v!=null&&dn("scroll",u);break;case"onScrollEnd":v!=null&&dn("scrollend",u);break;case"onClick":v!=null&&(u.onclick=Lb);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sl.hasOwnProperty(_))e:{if(_[0]==="o"&&_[1]==="n"&&(O=_.endsWith("Capture"),h=_.slice(2,O?_.length-7:void 0),A=u[$r]||null,A=A!=null?A[_]:null,typeof A=="function"&&u.removeEventListener(h,A,O),typeof v=="function")){typeof A!="function"&&A!==null&&(_ in u?u[_]=null:u.hasAttribute(_)&&u.removeAttribute(_)),u.addEventListener(h,v,O);break e}_ in u?u[_]=v:v===!0?u.setAttribute(_,""):Dn(u,_,v)}}}function Vi(u,h,_){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dn("error",u),dn("load",u);var v=!1,O=!1,A;for(A in _)if(_.hasOwnProperty(A)){var j=_[A];if(j!=null)switch(A){case"src":v=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:kn(u,h,A,j,_,null)}}O&&kn(u,h,"srcSet",_.srcSet,_,null),v&&kn(u,h,"src",_.src,_,null);return;case"input":dn("invalid",u);var K=A=j=O=null,ee=null,de=null;for(v in _)if(_.hasOwnProperty(v)){var De=_[v];if(De!=null)switch(v){case"name":O=De;break;case"type":j=De;break;case"checked":ee=De;break;case"defaultChecked":de=De;break;case"value":A=De;break;case"defaultValue":K=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(r(137,h));break;default:kn(u,h,v,De,_,null)}}ru(u,A,K,ee,de,j,O,!1),ol(u);return;case"select":dn("invalid",u),v=j=A=null;for(O in _)if(_.hasOwnProperty(O)&&(K=_[O],K!=null))switch(O){case"value":A=K;break;case"defaultValue":j=K;break;case"multiple":v=K;default:kn(u,h,O,K,_,null)}h=A,_=j,u.multiple=!!v,h!=null?ua(u,!!v,h,!1):_!=null&&ua(u,!!v,_,!0);return;case"textarea":dn("invalid",u),A=O=v=null;for(j in _)if(_.hasOwnProperty(j)&&(K=_[j],K!=null))switch(j){case"value":v=K;break;case"defaultValue":O=K;break;case"children":A=K;break;case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(91));break;default:kn(u,h,j,K,_,null)}iu(u,v,O,A),ol(u);return;case"option":for(ee in _)if(_.hasOwnProperty(ee)&&(v=_[ee],v!=null))switch(ee){case"selected":u.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:kn(u,h,ee,v,_,null)}return;case"dialog":dn("cancel",u),dn("close",u);break;case"iframe":case"object":dn("load",u);break;case"video":case"audio":for(v=0;v<fg.length;v++)dn(fg[v],u);break;case"image":dn("error",u),dn("load",u);break;case"details":dn("toggle",u);break;case"embed":case"source":case"link":dn("error",u),dn("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in _)if(_.hasOwnProperty(de)&&(v=_[de],v!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:kn(u,h,de,v,_,null)}return;default:if(Zt(h)){for(De in _)_.hasOwnProperty(De)&&(v=_[De],v!==void 0&&Xx(u,h,De,v,_,void 0));return}}for(K in _)_.hasOwnProperty(K)&&(v=_[K],v!=null&&kn(u,h,K,v,_,null))}function GX(u,h,_,v){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,A=null,j=null,K=null,ee=null,de=null,De=null;for(we in _){var Ge=_[we];if(_.hasOwnProperty(we)&&Ge!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":ee=Ge;default:v.hasOwnProperty(we)||kn(u,h,we,null,v,Ge)}}for(var ye in v){var we=v[ye];if(Ge=_[ye],v.hasOwnProperty(ye)&&(we!=null||Ge!=null))switch(ye){case"type":A=we;break;case"name":O=we;break;case"checked":de=we;break;case"defaultChecked":De=we;break;case"value":j=we;break;case"defaultValue":K=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,h));break;default:we!==Ge&&kn(u,h,ye,we,v,Ge)}}nu(u,j,K,ee,de,De,A,O);return;case"select":we=j=K=ye=null;for(A in _)if(ee=_[A],_.hasOwnProperty(A)&&ee!=null)switch(A){case"value":break;case"multiple":we=ee;default:v.hasOwnProperty(A)||kn(u,h,A,null,v,ee)}for(O in v)if(A=v[O],ee=_[O],v.hasOwnProperty(O)&&(A!=null||ee!=null))switch(O){case"value":ye=A;break;case"defaultValue":K=A;break;case"multiple":j=A;default:A!==ee&&kn(u,h,O,A,v,ee)}h=K,_=j,v=we,ye!=null?ua(u,!!_,ye,!1):!!v!=!!_&&(h!=null?ua(u,!!_,h,!0):ua(u,!!_,_?[]:"",!1));return;case"textarea":we=ye=null;for(K in _)if(O=_[K],_.hasOwnProperty(K)&&O!=null&&!v.hasOwnProperty(K))switch(K){case"value":break;case"children":break;default:kn(u,h,K,null,v,O)}for(j in v)if(O=v[j],A=_[j],v.hasOwnProperty(j)&&(O!=null||A!=null))switch(j){case"value":ye=O;break;case"defaultValue":we=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:O!==A&&kn(u,h,j,O,v,A)}Zr(u,ye,we);return;case"option":for(var Tt in _)if(ye=_[Tt],_.hasOwnProperty(Tt)&&ye!=null&&!v.hasOwnProperty(Tt))switch(Tt){case"selected":u.selected=!1;break;default:kn(u,h,Tt,null,v,ye)}for(ee in v)if(ye=v[ee],we=_[ee],v.hasOwnProperty(ee)&&ye!==we&&(ye!=null||we!=null))switch(ee){case"selected":u.selected=ye&&typeof ye!="function"&&typeof ye!="symbol";break;default:kn(u,h,ee,ye,v,we)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Bt in _)ye=_[Bt],_.hasOwnProperty(Bt)&&ye!=null&&!v.hasOwnProperty(Bt)&&kn(u,h,Bt,null,v,ye);for(de in v)if(ye=v[de],we=_[de],v.hasOwnProperty(de)&&ye!==we&&(ye!=null||we!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(r(137,h));break;default:kn(u,h,de,ye,v,we)}return;default:if(Zt(h)){for(var Br in _)ye=_[Br],_.hasOwnProperty(Br)&&ye!==void 0&&!v.hasOwnProperty(Br)&&Xx(u,h,Br,void 0,v,ye);for(De in v)ye=v[De],we=_[De],!v.hasOwnProperty(De)||ye===we||ye===void 0&&we===void 0||Xx(u,h,De,ye,v,we);return}}for(var he in _)ye=_[he],_.hasOwnProperty(he)&&ye!=null&&!v.hasOwnProperty(he)&&kn(u,h,he,null,v,ye);for(Ge in v)ye=v[Ge],we=_[Ge],!v.hasOwnProperty(Ge)||ye===we||ye==null&&we==null||kn(u,h,Ge,ye,v,we)}var Zx=null,Jx=null;function kb(u){return u.nodeType===9?u:u.ownerDocument}function T3(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function x3(u,h){if(u===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&h==="foreignObject"?0:u}function eC(u,h){return u==="textarea"||u==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var tC=null;function qX(){var u=window.event;return u&&u.type==="popstate"?u===tC?!1:(tC=u,!0):(tC=null,!1)}var C3=typeof setTimeout=="function"?setTimeout:void 0,$X=typeof clearTimeout=="function"?clearTimeout:void 0,O3=typeof Promise=="function"?Promise:void 0,zX=typeof queueMicrotask=="function"?queueMicrotask:typeof O3<"u"?function(u){return O3.resolve(null).then(u).catch(YX)}:C3;function YX(u){setTimeout(function(){throw u})}function nC(u,h){var _=h,v=0;do{var O=_.nextSibling;if(u.removeChild(_),O&&O.nodeType===8)if(_=O.data,_==="/$"){if(v===0){u.removeChild(O),Eg(h);return}v--}else _!=="$"&&_!=="$?"&&_!=="$!"||v++;_=O}while(_);Eg(h)}function rC(u){var h=u.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var _=h;switch(h=h.nextSibling,_.nodeName){case"HTML":case"HEAD":case"BODY":rC(_),rr(_);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(_.rel.toLowerCase()==="stylesheet")continue}u.removeChild(_)}}function HX(u,h,_,v){for(;u.nodeType===1;){var O=_;if(u.nodeName.toLowerCase()!==h.toLowerCase()){if(!v&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(v){if(!u[Qn])switch(h){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(A=u.getAttribute("rel"),A==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(A!==O.rel||u.getAttribute("href")!==(O.href==null?null:O.href)||u.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||u.getAttribute("title")!==(O.title==null?null:O.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(A=u.getAttribute("src"),(A!==(O.src==null?null:O.src)||u.getAttribute("type")!==(O.type==null?null:O.type)||u.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&A&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(h==="input"&&u.type==="hidden"){var A=O.name==null?null:""+O.name;if(O.type==="hidden"&&u.getAttribute("name")===A)return u}else return u;if(u=Co(u.nextSibling),u===null)break}return null}function VX(u,h,_){if(h==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!_||(u=Co(u.nextSibling),u===null))return null;return u}function Co(u){for(;u!=null;u=u.nextSibling){var h=u.nodeType;if(h===1||h===3)break;if(h===8){if(h=u.data,h==="$"||h==="$!"||h==="$?"||h==="F!"||h==="F")break;if(h==="/$")return null}}return u}function R3(u){u=u.previousSibling;for(var h=0;u;){if(u.nodeType===8){var _=u.data;if(_==="$"||_==="$!"||_==="$?"){if(h===0)return u;h--}else _==="/$"&&h++}u=u.previousSibling}return null}function N3(u,h,_){switch(h=kb(_),u){case"html":if(u=h.documentElement,!u)throw Error(r(452));return u;case"head":if(u=h.head,!u)throw Error(r(453));return u;case"body":if(u=h.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}var Ws=new Map,A3=new Set;function Pb(u){return typeof u.getRootNode=="function"?u.getRootNode():u.ownerDocument}var Sc=ie.d;ie.d={f:WX,r:QX,D:KX,C:XX,L:ZX,m:JX,X:tZ,S:eZ,M:nZ};function WX(){var u=Sc.f(),h=Nb();return u||h}function QX(u){var h=Ya(u);h!==null&&h.tag===5&&h.type==="form"?n2(h):Sc.r(u)}var Dh=typeof document>"u"?null:document;function w3(u,h,_){var v=Dh;if(v&&typeof h=="string"&&h){var O=Ci(h);O='link[rel="'+u+'"][href="'+O+'"]',typeof _=="string"&&(O+='[crossorigin="'+_+'"]'),A3.has(O)||(A3.add(O),u={rel:u,crossOrigin:_,href:h},v.querySelector(O)===null&&(h=v.createElement("link"),Vi(h,"link",u),ir(h),v.head.appendChild(h)))}}function KX(u){Sc.D(u),w3("dns-prefetch",u,null)}function XX(u,h){Sc.C(u,h),w3("preconnect",u,h)}function ZX(u,h,_){Sc.L(u,h,_);var v=Dh;if(v&&u&&h){var O='link[rel="preload"][as="'+Ci(h)+'"]';h==="image"&&_&&_.imageSrcSet?(O+='[imagesrcset="'+Ci(_.imageSrcSet)+'"]',typeof _.imageSizes=="string"&&(O+='[imagesizes="'+Ci(_.imageSizes)+'"]')):O+='[href="'+Ci(u)+'"]';var A=O;switch(h){case"style":A=Ih(u);break;case"script":A=Mh(u)}Ws.has(A)||(u=k({rel:"preload",href:h==="image"&&_&&_.imageSrcSet?void 0:u,as:h},_),Ws.set(A,u),v.querySelector(O)!==null||h==="style"&&v.querySelector(pg(A))||h==="script"&&v.querySelector(mg(A))||(h=v.createElement("link"),Vi(h,"link",u),ir(h),v.head.appendChild(h)))}}function JX(u,h){Sc.m(u,h);var _=Dh;if(_&&u){var v=h&&typeof h.as=="string"?h.as:"script",O='link[rel="modulepreload"][as="'+Ci(v)+'"][href="'+Ci(u)+'"]',A=O;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=Mh(u)}if(!Ws.has(A)&&(u=k({rel:"modulepreload",href:u},h),Ws.set(A,u),_.querySelector(O)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(_.querySelector(mg(A)))return}v=_.createElement("link"),Vi(v,"link",u),ir(v),_.head.appendChild(v)}}}function eZ(u,h,_){Sc.S(u,h,_);var v=Dh;if(v&&u){var O=sa(v).hoistableStyles,A=Ih(u);h=h||"default";var j=O.get(A);if(!j){var K={loading:0,preload:null};if(j=v.querySelector(pg(A)))K.loading=5;else{u=k({rel:"stylesheet",href:u,"data-precedence":h},_),(_=Ws.get(A))&&iC(u,_);var ee=j=v.createElement("link");ir(ee),Vi(ee,"link",u),ee._p=new Promise(function(de,De){ee.onload=de,ee.onerror=De}),ee.addEventListener("load",function(){K.loading|=1}),ee.addEventListener("error",function(){K.loading|=2}),K.loading|=4,Bb(j,h,v)}j={type:"stylesheet",instance:j,count:1,state:K},O.set(A,j)}}}function tZ(u,h){Sc.X(u,h);var _=Dh;if(_&&u){var v=sa(_).hoistableScripts,O=Mh(u),A=v.get(O);A||(A=_.querySelector(mg(O)),A||(u=k({src:u,async:!0},h),(h=Ws.get(O))&&aC(u,h),A=_.createElement("script"),ir(A),Vi(A,"link",u),_.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},v.set(O,A))}}function nZ(u,h){Sc.M(u,h);var _=Dh;if(_&&u){var v=sa(_).hoistableScripts,O=Mh(u),A=v.get(O);A||(A=_.querySelector(mg(O)),A||(u=k({src:u,async:!0,type:"module"},h),(h=Ws.get(O))&&aC(u,h),A=_.createElement("script"),ir(A),Vi(A,"link",u),_.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},v.set(O,A))}}function D3(u,h,_,v){var O=(O=ce.current)?Pb(O):null;if(!O)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof _.precedence=="string"&&typeof _.href=="string"?(h=Ih(_.href),_=sa(O).hoistableStyles,v=_.get(h),v||(v={type:"style",instance:null,count:0,state:null},_.set(h,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(_.rel==="stylesheet"&&typeof _.href=="string"&&typeof _.precedence=="string"){u=Ih(_.href);var A=sa(O).hoistableStyles,j=A.get(u);if(j||(O=O.ownerDocument||O,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(u,j),(A=O.querySelector(pg(u)))&&!A._p&&(j.instance=A,j.state.loading=5),Ws.has(u)||(_={rel:"preload",as:"style",href:_.href,crossOrigin:_.crossOrigin,integrity:_.integrity,media:_.media,hrefLang:_.hrefLang,referrerPolicy:_.referrerPolicy},Ws.set(u,_),A||rZ(O,u,_,j.state))),h&&v===null)throw Error(r(528,""));return j}if(h&&v!==null)throw Error(r(529,""));return null;case"script":return h=_.async,_=_.src,typeof _=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=Mh(_),_=sa(O).hoistableScripts,v=_.get(h),v||(v={type:"script",instance:null,count:0,state:null},_.set(h,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function Ih(u){return'href="'+Ci(u)+'"'}function pg(u){return'link[rel="stylesheet"]['+u+"]"}function I3(u){return k({},u,{"data-precedence":u.precedence,precedence:null})}function rZ(u,h,_,v){u.querySelector('link[rel="preload"][as="style"]['+h+"]")?v.loading=1:(h=u.createElement("link"),v.preload=h,h.addEventListener("load",function(){return v.loading|=1}),h.addEventListener("error",function(){return v.loading|=2}),Vi(h,"link",_),ir(h),u.head.appendChild(h))}function Mh(u){return'[src="'+Ci(u)+'"]'}function mg(u){return"script[async]"+u}function M3(u,h,_){if(h.count++,h.instance===null)switch(h.type){case"style":var v=u.querySelector('style[data-href~="'+Ci(_.href)+'"]');if(v)return h.instance=v,ir(v),v;var O=k({},_,{"data-href":_.href,"data-precedence":_.precedence,href:null,precedence:null});return v=(u.ownerDocument||u).createElement("style"),ir(v),Vi(v,"style",O),Bb(v,_.precedence,u),h.instance=v;case"stylesheet":O=Ih(_.href);var A=u.querySelector(pg(O));if(A)return h.state.loading|=4,h.instance=A,ir(A),A;v=I3(_),(O=Ws.get(O))&&iC(v,O),A=(u.ownerDocument||u).createElement("link"),ir(A);var j=A;return j._p=new Promise(function(K,ee){j.onload=K,j.onerror=ee}),Vi(A,"link",v),h.state.loading|=4,Bb(A,_.precedence,u),h.instance=A;case"script":return A=Mh(_.src),(O=u.querySelector(mg(A)))?(h.instance=O,ir(O),O):(v=_,(O=Ws.get(A))&&(v=k({},_),aC(v,O)),u=u.ownerDocument||u,O=u.createElement("script"),ir(O),Vi(O,"link",v),u.head.appendChild(O),h.instance=O);case"void":return null;default:throw Error(r(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(v=h.instance,h.state.loading|=4,Bb(v,_.precedence,u));return h.instance}function Bb(u,h,_){for(var v=_.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=v.length?v[v.length-1]:null,A=O,j=0;j<v.length;j++){var K=v[j];if(K.dataset.precedence===h)A=K;else if(A!==O)break}A?A.parentNode.insertBefore(u,A.nextSibling):(h=_.nodeType===9?_.head:_,h.insertBefore(u,h.firstChild))}function iC(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.title==null&&(u.title=h.title)}function aC(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.integrity==null&&(u.integrity=h.integrity)}var Fb=null;function L3(u,h,_){if(Fb===null){var v=new Map,O=Fb=new Map;O.set(_,v)}else O=Fb,v=O.get(_),v||(v=new Map,O.set(_,v));if(v.has(u))return v;for(v.set(u,null),_=_.getElementsByTagName(u),O=0;O<_.length;O++){var A=_[O];if(!(A[Qn]||A[qr]||u==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var j=A.getAttribute(h)||"";j=u+j;var K=v.get(j);K?K.push(A):v.set(j,[A])}}return v}function k3(u,h,_){u=u.ownerDocument||u,u.head.insertBefore(_,h==="title"?u.querySelector("head > title"):null)}function iZ(u,h,_){if(_===1||h.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return u=h.disabled,typeof h.precedence=="string"&&u==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function P3(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var gg=null;function aZ(){}function sZ(u,h,_){if(gg===null)throw Error(r(475));var v=gg;if(h.type==="stylesheet"&&(typeof _.media!="string"||matchMedia(_.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var O=Ih(_.href),A=u.querySelector(pg(O));if(A){u=A._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(v.count++,v=Ub.bind(v),u.then(v,v)),h.state.loading|=4,h.instance=A,ir(A);return}A=u.ownerDocument||u,_=I3(_),(O=Ws.get(O))&&iC(_,O),A=A.createElement("link"),ir(A);var j=A;j._p=new Promise(function(K,ee){j.onload=K,j.onerror=ee}),Vi(A,"link",_),h.instance=A}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(h,u),(u=h.state.preload)&&(h.state.loading&3)===0&&(v.count++,h=Ub.bind(v),u.addEventListener("load",h),u.addEventListener("error",h))}}function oZ(){if(gg===null)throw Error(r(475));var u=gg;return u.stylesheets&&u.count===0&&sC(u,u.stylesheets),0<u.count?function(h){var _=setTimeout(function(){if(u.stylesheets&&sC(u,u.stylesheets),u.unsuspend){var v=u.unsuspend;u.unsuspend=null,v()}},6e4);return u.unsuspend=h,function(){u.unsuspend=null,clearTimeout(_)}}:null}function Ub(){if(this.count--,this.count===0){if(this.stylesheets)sC(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var jb=null;function sC(u,h){u.stylesheets=null,u.unsuspend!==null&&(u.count++,jb=new Map,h.forEach(lZ,u),jb=null,Ub.call(u))}function lZ(u,h){if(!(h.state.loading&4)){var _=jb.get(u);if(_)var v=_.get(null);else{_=new Map,jb.set(u,_);for(var O=u.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<O.length;A++){var j=O[A];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(_.set(j.dataset.precedence,j),v=j)}v&&_.set(null,v)}O=h.instance,j=O.getAttribute("data-precedence"),A=_.get(j)||v,A===v&&_.set(null,O),_.set(j,O),this.count++,v=Ub.bind(this),O.addEventListener("load",v),O.addEventListener("error",v),A?A.parentNode.insertBefore(O,A.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(O,u.firstChild)),h.state.loading|=4}}var _g={$$typeof:g,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function cZ(u,h,_,v,O,A,j,K){this.tag=1,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=jt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jt(0),this.hiddenUpdates=jt(null),this.identifierPrefix=v,this.onUncaughtError=O,this.onCaughtError=A,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function B3(u,h,_,v,O,A,j,K,ee,de,De,Ge){return u=new cZ(u,h,_,j,K,ee,de,Ge),h=1,A===!0&&(h|=24),A=Hs(3,null,null,h),u.current=A,A.stateNode=u,h=FT(),h.refCount++,u.pooledCache=h,h.refCount++,A.memoizedState={element:v,isDehydrated:_,cache:h},bx(A),u}function F3(u){return u?(u=dh,u):dh}function U3(u,h,_,v,O,A){O=F3(O),v.context===null?v.context=O:v.pendingContext=O,v=_u(h),v.payload={element:_},A=A===void 0?null:A,A!==null&&(v.callback=A),_=bu(u,v,h),_!==null&&(wa(_,u,h),eg(_,u,h))}function j3(u,h){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var _=u.retryLane;u.retryLane=_!==0&&_<h?_:h}}function oC(u,h){j3(u,h),(u=u.alternate)&&j3(u,h)}function G3(u){if(u.tag===13){var h=uu(u,67108864);h!==null&&wa(h,u,67108864),oC(u,67108864)}}var Gb=!0;function uZ(u,h,_,v){var O=L.T;L.T=null;var A=ie.p;try{ie.p=2,lC(u,h,_,v)}finally{ie.p=A,L.T=O}}function dZ(u,h,_,v){var O=L.T;L.T=null;var A=ie.p;try{ie.p=8,lC(u,h,_,v)}finally{ie.p=A,L.T=O}}function lC(u,h,_,v){if(Gb){var O=cC(v);if(O===null)Kx(u,h,v,qb,_),$3(u,v);else if(hZ(O,u,h,_,v))v.stopPropagation();else if($3(u,v),h&4&&-1<fZ.indexOf(u)){for(;O!==null;){var A=Ya(O);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var j=ui(A.pendingLanes);if(j!==0){var K=A;for(K.pendingLanes|=2,K.entangledLanes|=2;j;){var ee=1<<31-mn(j);K.entanglements[1]|=ee,j&=~ee}bl(A),(Nr&6)===0&&(Cb=Ue()+500,dg(0))}}break;case 13:K=uu(A,2),K!==null&&wa(K,A,2),Nb(),oC(A,2)}if(A=cC(v),A===null&&Kx(u,h,v,qb,_),A===O)break;O=A}O!==null&&v.stopPropagation()}else Kx(u,h,v,null,_)}}function cC(u){return u=We(u),uC(u)}var qb=null;function uC(u){if(qb=null,u=wn(u),u!==null){var h=z(u);if(h===null)u=null;else{var _=h.tag;if(_===13){if(u=H(h),u!==null)return u;u=null}else if(_===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;u=null}else h!==u&&(u=null)}}return qb=u,null}function q3(u){switch(u){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ke()){case yt:return 2;case Ut:return 8;case Nt:case Qt:return 32;case sn:return 268435456;default:return 32}default:return 32}}var dC=!1,Cu=null,Ou=null,Ru=null,bg=new Map,vg=new Map,Nu=[],fZ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $3(u,h){switch(u){case"focusin":case"focusout":Cu=null;break;case"dragenter":case"dragleave":Ou=null;break;case"mouseover":case"mouseout":Ru=null;break;case"pointerover":case"pointerout":bg.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":vg.delete(h.pointerId)}}function Sg(u,h,_,v,O,A){return u===null||u.nativeEvent!==A?(u={blockedOn:h,domEventName:_,eventSystemFlags:v,nativeEvent:A,targetContainers:[O]},h!==null&&(h=Ya(h),h!==null&&G3(h)),u):(u.eventSystemFlags|=v,h=u.targetContainers,O!==null&&h.indexOf(O)===-1&&h.push(O),u)}function hZ(u,h,_,v,O){switch(h){case"focusin":return Cu=Sg(Cu,u,h,_,v,O),!0;case"dragenter":return Ou=Sg(Ou,u,h,_,v,O),!0;case"mouseover":return Ru=Sg(Ru,u,h,_,v,O),!0;case"pointerover":var A=O.pointerId;return bg.set(A,Sg(bg.get(A)||null,u,h,_,v,O)),!0;case"gotpointercapture":return A=O.pointerId,vg.set(A,Sg(vg.get(A)||null,u,h,_,v,O)),!0}return!1}function z3(u){var h=wn(u.target);if(h!==null){var _=z(h);if(_!==null){if(h=_.tag,h===13){if(h=H(_),h!==null){u.blockedOn=h,Jl(u.priority,function(){if(_.tag===13){var v=gs(),O=uu(_,v);O!==null&&wa(O,_,v),oC(_,v)}});return}}else if(h===3&&_.stateNode.current.memoizedState.isDehydrated){u.blockedOn=_.tag===3?_.stateNode.containerInfo:null;return}}}u.blockedOn=null}function $b(u){if(u.blockedOn!==null)return!1;for(var h=u.targetContainers;0<h.length;){var _=cC(u.nativeEvent);if(_===null){_=u.nativeEvent;var v=new _.constructor(_.type,_);Bs=v,_.target.dispatchEvent(v),Bs=null}else return h=Ya(_),h!==null&&G3(h),u.blockedOn=_,!1;h.shift()}return!0}function Y3(u,h,_){$b(u)&&_.delete(h)}function pZ(){dC=!1,Cu!==null&&$b(Cu)&&(Cu=null),Ou!==null&&$b(Ou)&&(Ou=null),Ru!==null&&$b(Ru)&&(Ru=null),bg.forEach(Y3),vg.forEach(Y3)}function zb(u,h){u.blockedOn===h&&(u.blockedOn=null,dC||(dC=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,pZ)))}var Yb=null;function H3(u){Yb!==u&&(Yb=u,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Yb===u&&(Yb=null);for(var h=0;h<u.length;h+=3){var _=u[h],v=u[h+1],O=u[h+2];if(typeof v!="function"){if(uC(v||_)===null)continue;break}var A=Ya(_);A!==null&&(u.splice(h,3),h-=3,ex(A,{pending:!0,data:O,method:_.method,action:v},v,O))}}))}function Eg(u){function h(ee){return zb(ee,u)}Cu!==null&&zb(Cu,u),Ou!==null&&zb(Ou,u),Ru!==null&&zb(Ru,u),bg.forEach(h),vg.forEach(h);for(var _=0;_<Nu.length;_++){var v=Nu[_];v.blockedOn===u&&(v.blockedOn=null)}for(;0<Nu.length&&(_=Nu[0],_.blockedOn===null);)z3(_),_.blockedOn===null&&Nu.shift();if(_=(u.ownerDocument||u).$$reactFormReplay,_!=null)for(v=0;v<_.length;v+=3){var O=_[v],A=_[v+1],j=O[$r]||null;if(typeof A=="function")j||H3(_);else if(j){var K=null;if(A&&A.hasAttribute("formAction")){if(O=A,j=A[$r]||null)K=j.formAction;else if(uC(O)!==null)continue}else K=j.action;typeof K=="function"?_[v+1]=K:(_.splice(v,3),v-=3),H3(_)}}}function fC(u){this._internalRoot=u}Hb.prototype.render=fC.prototype.render=function(u){var h=this._internalRoot;if(h===null)throw Error(r(409));var _=h.current,v=gs();U3(_,v,u,h,null,null)},Hb.prototype.unmount=fC.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var h=u.containerInfo;u.tag===0&&Nh(),U3(u.current,2,null,u,null,null),Nb(),h[Gi]=null}};function Hb(u){this._internalRoot=u}Hb.prototype.unstable_scheduleHydration=function(u){if(u){var h=ia();u={blockedOn:null,target:u,priority:h};for(var _=0;_<Nu.length&&h!==0&&h<Nu[_].priority;_++);Nu.splice(_,0,u),_===0&&z3(u)}};var V3=e.version;if(V3!=="19.0.0")throw Error(r(527,V3,"19.0.0"));ie.findDOMNode=function(u){var h=u._reactInternals;if(h===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=Q(h),u=u!==null?X(u):null,u=u===null?null:u.stateNode,u};var mZ={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:L,findFiberByHostInstance:wn,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vb=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vb.isDisabled&&Vb.supportsFiber)try{er=Vb.inject(mZ),Kt=Vb}catch{}}return Tg.createRoot=function(u,h){if(!i(u))throw Error(r(299));var _=!1,v="",O=u2,A=d2,j=f2,K=null;return h!=null&&(h.unstable_strictMode===!0&&(_=!0),h.identifierPrefix!==void 0&&(v=h.identifierPrefix),h.onUncaughtError!==void 0&&(O=h.onUncaughtError),h.onCaughtError!==void 0&&(A=h.onCaughtError),h.onRecoverableError!==void 0&&(j=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(K=h.unstable_transitionCallbacks)),h=B3(u,1,!1,null,null,_,v,O,A,j,K,null),u[Gi]=h.current,Qx(u.nodeType===8?u.parentNode:u),new fC(h)},Tg.hydrateRoot=function(u,h,_){if(!i(u))throw Error(r(299));var v=!1,O="",A=u2,j=d2,K=f2,ee=null,de=null;return _!=null&&(_.unstable_strictMode===!0&&(v=!0),_.identifierPrefix!==void 0&&(O=_.identifierPrefix),_.onUncaughtError!==void 0&&(A=_.onUncaughtError),_.onCaughtError!==void 0&&(j=_.onCaughtError),_.onRecoverableError!==void 0&&(K=_.onRecoverableError),_.unstable_transitionCallbacks!==void 0&&(ee=_.unstable_transitionCallbacks),_.formState!==void 0&&(de=_.formState)),h=B3(u,1,!0,h,_??null,v,O,A,j,K,ee,de),h.context=F3(null),_=h.current,v=gs(),O=_u(v),O.callback=null,bu(_,O,v),h.current.lanes=v,it(h,v),bl(h),u[Gi]=h.current,Qx(u),new Hb(h)},Tg.version="19.0.0",Tg}var iB;function NZ(){if(iB)return gC.exports;iB=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),gC.exports=RZ(),gC.exports}var AZ=NZ();const wZ=nl(AZ),DZ="_link_88ik9_12",Wb={link:DZ},IZ="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='115.333px'%20height='114px'%20viewBox='0%200%20115.333%20114'%20enable-background='new%200%200%20115.333%20114'%20xml:space='preserve'%3e%3cg%20id='Layer_2'%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23EEEEEE'%20d='M56.667,0.667C25.372,0.667,0,26.036,0,57.332c0,31.295,25.372,56.666,56.667,56.666%20s56.666-25.371,56.666-56.666C113.333,26.036,87.961,0.667,56.667,0.667z%20M56.667,106.722c-8.904,0-16.123-5.948-16.123-13.283%20H72.79C72.79,100.773,65.571,106.722,56.667,106.722z%20M83.297,89.04H30.034v-9.658h53.264V89.04z%20M83.106,74.411h-52.92%20c-0.176-0.203-0.356-0.403-0.526-0.609c-5.452-6.62-6.736-10.076-7.983-13.598c-0.021-0.116,6.611,1.355,11.314,2.413%20c0,0,2.42,0.56,5.958,1.205c-3.397-3.982-5.414-9.044-5.414-14.218c0-11.359,8.712-21.285,5.569-29.308%20c3.059,0.249,6.331,6.456,6.552,16.161c3.252-4.494,4.613-12.701,4.613-17.733c0-5.21,3.433-11.262,6.867-11.469%20c-3.061,5.045,0.793,9.37,4.219,20.099c1.285,4.03,1.121,10.812,2.113,15.113C63.797,33.534,65.333,20.5,71,16%20c-2.5,5.667,0.37,12.758,2.333,16.167c3.167,5.5,5.087,9.667,5.087,17.548c0,5.284-1.951,10.259-5.242,14.148%20c3.742-0.702,6.326-1.335,6.326-1.335l12.152-2.371C91.657,60.156,89.891,67.418,83.106,74.411z'/%3e%3c/g%3e%3c/svg%3e";var wl=function(){return wl=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},wl.apply(this,arguments)};function C5(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function MZ(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}var zv="right-scroll-bar-position",Yv="width-before-scroll-bar",LZ="with-scroll-bars-hidden",kZ="--removed-body-scroll-bar-size";function SC(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function PZ(t,e){var n=I.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var BZ=typeof window<"u"?I.useLayoutEffect:I.useEffect,aB=new WeakMap;function FZ(t,e){var n=PZ(null,function(r){return t.forEach(function(i){return SC(i,r)})});return BZ(function(){var r=aB.get(n);if(r){var i=new Set(r),a=new Set(t),s=n.current;i.forEach(function(o){a.has(o)||SC(o,null)}),a.forEach(function(o){i.has(o)||SC(o,s)})}aB.set(n,t)},[t]),n}function UZ(t){return t}function jZ(t,e){e===void 0&&(e=UZ);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(a){var s=e(a,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(o){return a(o)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(a),s=n}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return i}function GZ(t){t===void 0&&(t={});var e=jZ(null);return e.options=wl({async:!0,ssr:!1},t),e}var O5=function(t){var e=t.sideCar,n=C5(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return I.createElement(r,wl({},n))};O5.isSideCarExport=!0;function qZ(t,e){return t.useMedium(e),O5}var R5=GZ(),EC=function(){},PE=I.forwardRef(function(t,e){var n=I.useRef(null),r=I.useState({onScrollCapture:EC,onWheelCapture:EC,onTouchMoveCapture:EC}),i=r[0],a=r[1],s=t.forwardProps,o=t.children,c=t.className,d=t.removeScrollBar,f=t.enabled,p=t.shards,m=t.sideCar,g=t.noIsolation,b=t.inert,S=t.allowPinchZoom,y=t.as,E=y===void 0?"div":y,x=t.gapMode,C=C5(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=m,T=FZ([n,e]),N=wl(wl({},C),i);return I.createElement(I.Fragment,null,f&&I.createElement(R,{sideCar:R5,removeScrollBar:d,shards:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!S,lockRef:n,gapMode:x}),s?I.cloneElement(I.Children.only(o),wl(wl({},N),{ref:T})):I.createElement(E,wl({},N,{className:c,ref:T}),o))});PE.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};PE.classNames={fullWidth:Yv,zeroRight:zv};var $Z=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zZ(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=$Z();return e&&t.setAttribute("nonce",e),t}function YZ(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function HZ(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var VZ=function(){var t=0,e=null;return{add:function(n){t==0&&(e=zZ())&&(YZ(e,n),HZ(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},WZ=function(){var t=VZ();return function(e,n){I.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},N5=function(){var t=WZ(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},QZ={left:0,top:0,right:0,gap:0},yC=function(t){return parseInt(t||"",10)||0},KZ=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[yC(n),yC(r),yC(i)]},XZ=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return QZ;var e=KZ(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},ZZ=N5(),np="data-scroll-locked",JZ=function(t,e,n,r){var i=t.left,a=t.top,s=t.right,o=t.gap;return n===void 0&&(n="margin"),`
  .`.concat(LZ,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(o,"px ").concat(r,`;
  }
  body[`).concat(np,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(i,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(s,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(o,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(zv,` {
    right: `).concat(o,"px ").concat(r,`;
  }
  
  .`).concat(Yv,` {
    margin-right: `).concat(o,"px ").concat(r,`;
  }
  
  .`).concat(zv," .").concat(zv,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(Yv," .").concat(Yv,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(np,`] {
    `).concat(kZ,": ").concat(o,`px;
  }
`)},sB=function(){var t=parseInt(document.body.getAttribute(np)||"0",10);return isFinite(t)?t:0},eJ=function(){I.useEffect(function(){return document.body.setAttribute(np,(sB()+1).toString()),function(){var t=sB()-1;t<=0?document.body.removeAttribute(np):document.body.setAttribute(np,t.toString())}},[])},tJ=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;eJ();var a=I.useMemo(function(){return XZ(i)},[i]);return I.createElement(ZZ,{styles:JZ(a,!e,i,n?"":"!important")})},rw=!1;if(typeof window<"u")try{var Qb=Object.defineProperty({},"passive",{get:function(){return rw=!0,!0}});window.addEventListener("test",Qb,Qb),window.removeEventListener("test",Qb,Qb)}catch{rw=!1}var Lh=rw?{passive:!1}:!1,nJ=function(t){return t.tagName==="TEXTAREA"},A5=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!nJ(t)&&n[e]==="visible")},rJ=function(t){return A5(t,"overflowY")},iJ=function(t){return A5(t,"overflowX")},oB=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=w5(t,r);if(i){var a=D5(t,r),s=a[1],o=a[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},aJ=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},sJ=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},w5=function(t,e){return t==="v"?rJ(e):iJ(e)},D5=function(t,e){return t==="v"?aJ(e):sJ(e)},oJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},lJ=function(t,e,n,r,i){var a=oJ(t,window.getComputedStyle(e).direction),s=a*r,o=n.target,c=e.contains(o),d=!1,f=s>0,p=0,m=0;do{var g=D5(t,o),b=g[0],S=g[1],y=g[2],E=S-y-a*b;(b||E)&&w5(t,o)&&(p+=E,m+=b),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!c&&o!==document.body||c&&(e.contains(o)||e===o));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(d=!0),d},Kb=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},lB=function(t){return[t.deltaX,t.deltaY]},cB=function(t){return t&&"current"in t?t.current:t},cJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},uJ=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},dJ=0,kh=[];function fJ(t){var e=I.useRef([]),n=I.useRef([0,0]),r=I.useRef(),i=I.useState(dJ++)[0],a=I.useState(N5)[0],s=I.useRef(t);I.useEffect(function(){s.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var S=MZ([t.lockRef.current],(t.shards||[]).map(cB),!0).filter(Boolean);return S.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var o=I.useCallback(function(S,y){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!s.current.allowPinchZoom;var E=Kb(S),x=n.current,C="deltaX"in S?S.deltaX:x[0]-E[0],R="deltaY"in S?S.deltaY:x[1]-E[1],T,N=S.target,w=Math.abs(C)>Math.abs(R)?"h":"v";if("touches"in S&&w==="h"&&N.type==="range")return!1;var D=oB(w,N);if(!D)return!0;if(D?T=w:(T=w==="v"?"h":"v",D=oB(w,N)),!D)return!1;if(!r.current&&"changedTouches"in S&&(C||R)&&(r.current=T),!T)return!0;var L=r.current||T;return lJ(L,y,S,L==="h"?C:R)},[]),c=I.useCallback(function(S){var y=S;if(!(!kh.length||kh[kh.length-1]!==a)){var E="deltaY"in y?lB(y):Kb(y),x=e.current.filter(function(T){return T.name===y.type&&(T.target===y.target||y.target===T.shadowParent)&&cJ(T.delta,E)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var C=(s.current.shards||[]).map(cB).filter(Boolean).filter(function(T){return T.contains(y.target)}),R=C.length>0?o(y,C[0]):!s.current.noIsolation;R&&y.cancelable&&y.preventDefault()}}},[]),d=I.useCallback(function(S,y,E,x){var C={name:S,delta:y,target:E,should:x,shadowParent:hJ(E)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(R){return R!==C})},1)},[]),f=I.useCallback(function(S){n.current=Kb(S),r.current=void 0},[]),p=I.useCallback(function(S){d(S.type,lB(S),S.target,o(S,t.lockRef.current))},[]),m=I.useCallback(function(S){d(S.type,Kb(S),S.target,o(S,t.lockRef.current))},[]);I.useEffect(function(){return kh.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Lh),document.addEventListener("touchmove",c,Lh),document.addEventListener("touchstart",f,Lh),function(){kh=kh.filter(function(S){return S!==a}),document.removeEventListener("wheel",c,Lh),document.removeEventListener("touchmove",c,Lh),document.removeEventListener("touchstart",f,Lh)}},[]);var g=t.removeScrollBar,b=t.inert;return I.createElement(I.Fragment,null,b?I.createElement(a,{styles:uJ(i)}):null,g?I.createElement(tJ,{gapMode:t.gapMode}):null)}function hJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const pJ=qZ(R5,fJ);var Pp=I.forwardRef(function(t,e){return I.createElement(PE,wl({},t,{ref:e,sideCar:pJ}))});Pp.classNames=PE.classNames;function Pi(t){return Object.keys(t)}function TC(t){return t&&typeof t=="object"&&!Array.isArray(t)}function EI(t,e){const n={...t},r=e;return TC(t)&&TC(e)&&Object.keys(e).forEach(i=>{TC(r[i])&&i in t?n[i]=EI(n[i],r[i]):n[i]=r[i]}),n}function mJ(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function gJ(t){var e;return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:(e=t.match(/^calc\((.*?)\)$/))==null?void 0:e[1].split("*")[0].trim()}function iw(t){const e=gJ(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}function xC(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function I5(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const i=`${r/16}${t}`;return e?xC(i):i}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(a=>n(a)).join(",");if(r.includes(" "))return r.split(" ").map(a=>n(a)).join(" ");if(r.includes(t))return e?xC(r):r;const i=r.replace("px","");if(!Number.isNaN(Number(i))){const a=`${Number(i)/16}${t}`;return e?xC(a):a}}return r}return n}const me=I5("rem",{shouldScale:!0}),ss=I5("em");function yI(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function M5(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}function Sd(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==I.Fragment:!1}function xa(t){const e=I.createContext(null);return[({children:i,value:a})=>l.jsx(e.Provider,{value:a,children:i}),()=>{const i=I.useContext(e);if(i===null)throw new Error(t);return i}]}function c0(t=null){const e=I.createContext(t);return[({children:i,value:a})=>l.jsx(e.Provider,{value:a,children:i}),()=>I.useContext(e)]}function xS(t,e){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(e);return`${t}-${n}`}}function CS(t,e){let n=t;for(;(n=n.parentElement)&&!n.matches(e););return n}function _J(t,e,n){for(let r=t-1;r>=0;r-=1)if(!e[r].disabled)return r;if(n){for(let r=e.length-1;r>-1;r-=1)if(!e[r].disabled)return r}return t}function bJ(t,e,n){for(let r=t+1;r<e.length;r+=1)if(!e[r].disabled)return r;if(n){for(let r=0;r<e.length;r+=1)if(!e[r].disabled)return r}return t}function vJ(t,e,n){return CS(t,n)===CS(e,n)}function TI({parentSelector:t,siblingSelector:e,onKeyDown:n,loop:r=!0,activateOnFocus:i=!1,dir:a="rtl",orientation:s}){return o=>{var b;n==null||n(o);const c=Array.from(((b=CS(o.currentTarget,t))==null?void 0:b.querySelectorAll(e))||[]).filter(S=>vJ(o.currentTarget,S,t)),d=c.findIndex(S=>o.currentTarget===S),f=bJ(d,c,r),p=_J(d,c,r),m=a==="rtl"?p:f,g=a==="rtl"?f:p;switch(o.key){case"ArrowRight":{s==="horizontal"&&(o.stopPropagation(),o.preventDefault(),c[m].focus(),i&&c[m].click());break}case"ArrowLeft":{s==="horizontal"&&(o.stopPropagation(),o.preventDefault(),c[g].focus(),i&&c[g].click());break}case"ArrowUp":{s==="vertical"&&(o.stopPropagation(),o.preventDefault(),c[p].focus(),i&&c[p].click());break}case"ArrowDown":{s==="vertical"&&(o.stopPropagation(),o.preventDefault(),c[f].focus(),i&&c[f].click());break}case"Home":{o.stopPropagation(),o.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{o.stopPropagation(),o.preventDefault();const S=c.length-1;!c[S].disabled&&c[S].focus();break}}}}const SJ={app:100,modal:200,popover:300,overlay:400,max:9999};function co(t){return SJ[t]}const OS=()=>{};function EJ(t,e={active:!0}){return typeof t!="function"||!e.active?e.onKeyDown||OS:n=>{var r;n.key==="Escape"&&(t(n),(r=e.onTrigger)==null||r.call(e))}}function kt(t,e="size",n=!0){if(t!==void 0)return M5(t)?n?me(t):t:`var(--${e}-${t})`}function Gl(t){return kt(t,"mantine-spacing")}function Pn(t){return t===void 0?"var(--mantine-radius-default)":kt(t,"mantine-radius")}function Ar(t){return kt(t,"mantine-font-size")}function L5(t){return kt(t,"mantine-line-height",!1)}function xI(t){if(t)return kt(t,"mantine-shadow",!1)}function rs(t,e){return n=>{t==null||t(n),e==null||e(n)}}function CI(t,e){return t in e?iw(e[t]):iw(t)}function uB(t,e){const n=t.map(r=>({value:r,px:CI(r,e)}));return n.sort((r,i)=>r.px-i.px),n}function yJ(t,e,n){var r;return n?Array.from(((r=CS(n,e))==null?void 0:r.querySelectorAll(t))||[]).findIndex(i=>i===n):null}function TJ(){const[t,e]=I.useState(-1);return[t,{setHovered:e,resetHovered:()=>e(-1)}]}function zh(t,e,n){return e===void 0&&n===void 0?t:e!==void 0&&n===void 0?Math.max(t,e):Math.min(e===void 0&&n!==void 0?t:Math.max(t,e),n)}function OI(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function ff(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t}),I.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])}const xJ=()=>{};function BE(t,e){const n=typeof e=="number"?e:e.delay,r=typeof e=="number"?!1:e.flushOnUnmount,i=ff(t),a=I.useRef(0),s=Object.assign(I.useCallback((...o)=>{window.clearTimeout(a.current);const c=()=>{a.current!==0&&(a.current=0,i(...o))};s.flush=c,a.current=window.setTimeout(c,n)},[i,n]),{flush:xJ});return I.useEffect(()=>()=>{window.clearTimeout(a.current),r&&s.flush()},[s,r]),s}const dB=["mousedown","touchstart"];function CJ(t,e,n){const r=I.useRef(null);return I.useEffect(()=>{const i=a=>{const{target:s}=a??{};if(Array.isArray(n)){const o=(s==null?void 0:s.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(s)&&s.tagName!=="HTML";n.every(d=>!!d&&!a.composedPath().includes(d))&&!o&&t()}else r.current&&!r.current.contains(s)&&t()};return(e||dB).forEach(a=>document.addEventListener(a,i)),()=>{(e||dB).forEach(a=>document.removeEventListener(a,i))}},[r,t,n]),r}function OJ({timeout:t=2e3}={}){const[e,n]=I.useState(null),[r,i]=I.useState(!1),[a,s]=I.useState(null),o=f=>{window.clearTimeout(a),s(window.setTimeout(()=>i(!1),t)),i(f)};return{copy:f=>{"clipboard"in navigator?navigator.clipboard.writeText(f).then(()=>o(!0)).catch(p=>n(p)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),n(null),window.clearTimeout(a)},error:e,copied:r}}function RJ(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch{return t.addListener(e),()=>t.removeListener(e)}}function NJ(t,e){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function k5(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=I.useState(n?e:NJ(t)),a=I.useRef(null);return I.useEffect(()=>{if("matchMedia"in window)return a.current=window.matchMedia(t),i(a.current.matches),RJ(a.current,s=>i(s.matches))},[t]),r}function P5(t,e){return k5("(prefers-color-scheme: dark)",t==="dark",e)?"dark":"light"}function FE(t,e,n={leading:!1}){const[r,i]=I.useState(t),a=I.useRef(!1),s=I.useRef(null),o=I.useRef(!1),c=()=>window.clearTimeout(s.current);return I.useEffect(()=>{a.current&&(!o.current&&n.leading?(o.current=!0,i(t)):(c(),s.current=window.setTimeout(()=>{o.current=!1,i(t)},e)))},[t,n.leading,e]),I.useEffect(()=>(a.current=!0,c),[]),[r,c]}const sm=typeof document<"u"?I.useLayoutEffect:I.useEffect;function so(t,e){const n=I.useRef(!1);I.useEffect(()=>()=>{n.current=!1},[]),I.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function B5({opened:t,shouldReturnFocus:e=!0}){const n=I.useRef(null),r=()=>{var i;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((i=n.current)==null||i.focus({preventScroll:!0}))};return so(()=>{let i=-1;const a=s=>{s.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",a),t?n.current=document.activeElement:e&&(i=window.setTimeout(r,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a)}},[t,e]),r}const AJ=/input|select|textarea|button|object/,F5="a, input, select, textarea, button, object, [tabindex]";function wJ(t){return t.style.display==="none"}function DJ(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let n=t;for(;n&&!(n===document.body||n.nodeType===11);){if(wJ(n))return!1;n=n.parentNode}return!0}function U5(t){let e=t.getAttribute("tabindex");return e===null&&(e=void 0),parseInt(e,10)}function aw(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(U5(t));return(AJ.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&DJ(t)}function j5(t){const e=U5(t);return(Number.isNaN(e)||e>=0)&&aw(t)}function IJ(t){return Array.from(t.querySelectorAll(F5)).filter(j5)}function MJ(t,e){const n=IJ(t);if(!n.length){e.preventDefault();return}const r=n[e.shiftKey?0:n.length-1],i=t.getRootNode();let a=r===i.activeElement||t===i.activeElement;const s=i.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(a=n.filter(f=>f.getAttribute("type")==="radio"&&f.getAttribute("name")===s.getAttribute("name")).includes(r)),!a)return;e.preventDefault();const c=n[e.shiftKey?n.length-1:0];c&&c.focus()}function LJ(t=!0){const e=I.useRef(null),n=i=>{let a=i.querySelector("[data-autofocus]");if(!a){const s=Array.from(i.querySelectorAll(F5));a=s.find(j5)||s.find(aw)||null,!a&&aw(i)&&(a=i)}a&&a.focus({preventScroll:!0})},r=I.useCallback(i=>{t&&i!==null&&e.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&n(i)}),e.current=i):e.current=null)},[t]);return I.useEffect(()=>{if(!t)return;e.current&&setTimeout(()=>n(e.current));const i=a=>{a.key==="Tab"&&e.current&&MJ(e.current,a)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[t]),r}const kJ=t=>(t+1)%1e6;function PJ(){const[,t]=I.useReducer(kJ,0);return t}const BJ=xn.useId||(()=>{});function FJ(){const t=BJ();return t?`mantine-${t.replace(/:/g,"")}`:""}function $a(t){const e=FJ(),[n,r]=I.useState(e);return sm(()=>{r(OI())},[]),typeof t=="string"?t:typeof window>"u"?e:n}function RS(t,e,n){I.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}function UJ(t,e="use-local-storage"){try{return JSON.stringify(t)}catch{throw new Error(`@mantine/hooks ${e}: Failed to serialize the value`)}}function jJ(t){try{return t&&JSON.parse(t)}catch{return t}}function GJ(t){return{getItem:i=>{try{return window[t].getItem(i)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(i,a)=>{try{window[t].setItem(i,a)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:i=>{try{window[t].removeItem(i)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function qJ(t,e){const n="mantine-local-storage",{getItem:r,setItem:i,removeItem:a}=GJ(t);return function({key:o,defaultValue:c,getInitialValueInEffect:d=!0,deserialize:f=jJ,serialize:p=m=>UJ(m,e)}){const m=I.useCallback(E=>{let x;try{x=typeof window>"u"||!(t in window)||window[t]===null||!!E}catch{x=!0}if(x)return c;const C=r(o);return C!==null?f(C):c},[o,c]),[g,b]=I.useState(m(d)),S=I.useCallback(E=>{E instanceof Function?b(x=>{const C=E(x);return i(o,p(C)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:E(x)}})),C}):(i(o,p(E)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:E}})),b(E))},[o]),y=I.useCallback(()=>{a(o),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:c}}))},[]);return RS("storage",E=>{E.storageArea===window[t]&&E.key===o&&b(f(E.newValue??void 0))}),RS(n,E=>{E.detail.key===o&&b(E.detail.value)}),I.useEffect(()=>{c!==void 0&&g===void 0&&S(c)},[c,g,S]),I.useEffect(()=>{const E=m();E!==void 0&&S(E)},[o]),[g===void 0?c:g,S,y]}}function RI(t){return qJ("localStorage","use-local-storage")(t)}function NS(t,e){if(typeof t=="function")return t(e);typeof t=="object"&&t!==null&&"current"in t&&(t.current=e)}function G5(...t){const e=new Map;return n=>{if(t.forEach(r=>{const i=NS(r,n);i&&e.set(r,i)}),e.size>0)return()=>{t.forEach(r=>{const i=e.get(r);i?i():NS(r,null)}),e.clear()}}}function Xr(...t){return I.useCallback(G5(...t),t)}function ra({value:t,defaultValue:e,finalValue:n,onChange:r=()=>{}}){const[i,a]=I.useState(e!==void 0?e:n),s=(o,...c)=>{a(o),r==null||r(o,...c)};return t!==void 0?[t,r,!0]:[i,s,!1]}function wu(t,e){const n=e-t+1;return Array.from({length:n},(r,i)=>i+t)}const Xb="dots";function $J({total:t,siblings:e=1,boundaries:n=1,page:r,initialPage:i=1,onChange:a}){const s=Math.max(Math.trunc(t),0),[o,c]=ra({value:r,onChange:a,defaultValue:i,finalValue:i}),d=S=>{S<=0?c(1):S>s?c(s):c(S)},f=()=>d(o+1),p=()=>d(o-1),m=()=>d(1),g=()=>d(s);return{range:I.useMemo(()=>{if(e*2+3+n*2>=s)return wu(1,s);const y=Math.max(o-e,n),E=Math.min(o+e,s-n),x=y>n+2,C=E<s-(n+1);if(!x&&C){const R=e*2+n+2;return[...wu(1,R),Xb,...wu(s-(n-1),s)]}if(x&&!C){const R=n+1+2*e;return[...wu(1,n),Xb,...wu(s-R,s)]}return[...wu(1,n),Xb,...wu(y,E),Xb,...wu(s-n+1,s)]},[s,e,o]),active:o,setPage:d,next:f,previous:p,first:m,last:g}}function UE(t,e){return k5("(prefers-reduced-motion: reduce)",t,e)}const zJ={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function YJ(t){const e=I.useRef(0),n=I.useRef(null),[r,i]=I.useState(zJ),a=I.useMemo(()=>typeof window<"u"?new ResizeObserver(s=>{const o=s[0];o&&(cancelAnimationFrame(e.current),e.current=requestAnimationFrame(()=>{n.current&&i(o.contentRect)}))}):null,[]);return I.useEffect(()=>(n.current&&(a==null||a.observe(n.current,t)),()=>{a==null||a.disconnect(),e.current&&cancelAnimationFrame(e.current)}),[n.current]),[n,r]}function HJ(t){const[e,{width:n,height:r}]=YJ(t);return{ref:e,width:n,height:r}}function NI(t=!1,e){const{onOpen:n,onClose:r}={},[i,a]=I.useState(t),s=I.useCallback(()=>{a(d=>d||(n==null||n(),!0))},[n]),o=I.useCallback(()=>{a(d=>d&&(r==null||r(),!1))},[r]),c=I.useCallback(()=>{i?o():s()},[o,s,i]);return[i,{open:s,close:o,toggle:c}]}function VJ(t,e,n={autoInvoke:!1}){const r=I.useRef(null),i=I.useCallback((...s)=>{r.current||(r.current=window.setTimeout(()=>{t(s),r.current=null},e))},[e]),a=I.useCallback(()=>{r.current&&(window.clearTimeout(r.current),r.current=null)},[]);return I.useEffect(()=>(n.autoInvoke&&i(),a),[a,i]),{start:i,clear:a}}function WJ(t){const e=I.useRef(void 0);return I.useEffect(()=>{e.current=t},[t]),e.current}function QJ(t,e,n){const r=I.useRef(null),i=I.useRef(null);return I.useEffect(()=>{const a=typeof n=="function"?n():n;return(a||i.current)&&(r.current=new MutationObserver(t),r.current.observe(a||i.current,e)),()=>{var s;(s=r.current)==null||s.disconnect()}},[t,e]),i}function KJ(){const[t,e]=I.useState(!1);return I.useEffect(()=>e(!0),[]),t}var XJ={};function ZJ(){return typeof process<"u"&&XJ?"production":"development"}function jE(t){var n;const e=xn.version;return typeof xn.version!="string"||e.startsWith("18.")?t==null?void 0:t.ref:(n=t==null?void 0:t.props)==null?void 0:n.ref}function q5(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=q5(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Tr(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=q5(t))&&(r&&(r+=" "),r+=e);return r}const JJ={};function eee(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,i])=>{e[r]?e[r]=Tr(e[r],i):e[r]=i})}),e}function GE({theme:t,classNames:e,props:n,stylesCtx:r}){const a=(Array.isArray(e)?e:[e]).map(s=>typeof s=="function"?s(t,n,r):s||JJ);return eee(a)}function AS({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((a,s)=>typeof s=="function"?{...a,...s(t,n,r)}:{...a,...s},{})}const AI=I.createContext(null);function Ed(){const t=I.useContext(AI);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function tee(){return Ed().cssVariablesResolver}function nee(){return Ed().classNamesPrefix}function qE(){return Ed().getStyleNonce}function ree(){return Ed().withStaticClasses}function iee(){return Ed().headless}function aee(){var t;return(t=Ed().stylesTransform)==null?void 0:t.sx}function see(){var t;return(t=Ed().stylesTransform)==null?void 0:t.styles}function oee(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function lee(t){let e=t.replace("#","");if(e.length===3){const s=e.split("");e=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(e.length===8){const s=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:s}}const n=parseInt(e,16),r=n>>16&255,i=n>>8&255,a=n&255;return{r,g:i,b:a,a:1}}function cee(t){const[e,n,r,i]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:i||1}}function uee(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),i=parseInt(n[2],10)/100,a=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,o=(1-Math.abs(2*a-1))*i,c=r/60,d=o*(1-Math.abs(c%2-1)),f=a-o/2;let p,m,g;return c>=0&&c<1?(p=o,m=d,g=0):c>=1&&c<2?(p=d,m=o,g=0):c>=2&&c<3?(p=0,m=o,g=d):c>=3&&c<4?(p=0,m=d,g=o):c>=4&&c<5?(p=d,m=0,g=o):(p=o,m=0,g=d),{r:Math.round((p+f)*255),g:Math.round((m+f)*255),b:Math.round((g+f)*255),a:s||1}}function $E(t){return oee(t)?lee(t):t.startsWith("rgb")?cee(t):t.startsWith("hsl")?uee(t):{r:0,g:0,b:0,a:1}}function Zb(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:i,a}=$E(t),s=1-e,o=c=>Math.round(c*s);return`rgba(${o(n)}, ${o(r)}, ${o(i)}, ${a})`}function v_(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function CC(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function dee(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function fee(t){if(t.startsWith("oklch("))return(dee(t)||0)/100;const{r:e,g:n,b:r}=$E(t),i=e/255,a=n/255,s=r/255,o=CC(i),c=CC(a),d=CC(s);return .2126*o+.7152*c+.0722*d}function xg(t,e=.179){return t.startsWith("var(")?!1:fee(t)>e}function yd({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:xg(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:xg(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:xg(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,i]=t.split("."),a=i?Number(i):void 0,s=r in e.colors;if(s){const o=a!==void 0?e.colors[r][a]:e.colors[r][v_(e,n||"light")];return{color:r,value:o,shade:a,isThemeColor:s,isLight:xg(o,e.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:s,isLight:xg(t,e.luminanceThreshold),shade:a,variable:void 0}}function Jn(t,e){const n=yd({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function sw(t,e){const n={from:(t==null?void 0:t.from)||e.defaultGradient.from,to:(t==null?void 0:t.to)||e.defaultGradient.to,deg:(t==null?void 0:t.deg)||e.defaultGradient.deg||0},r=Jn(n.from,e),i=Jn(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function xl(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const a=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${a}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:i}=$E(t);return`rgba(${n}, ${r}, ${i}, ${e})`}const Ph=xl,hee=({color:t,theme:e,variant:n,gradient:r,autoContrast:i})=>{const a=yd({color:t,theme:e}),s=typeof i=="boolean"?i:e.autoContrast;if(n==="filled"){const o=s&&a.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:o,border:`${me(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:o,border:`${me(1)} solid transparent`}:{background:t,hover:Zb(t,.1),color:o,border:`${me(1)} solid transparent`}}if(n==="light"){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${me(1)} solid transparent`};const o=e.colors[a.color][a.shade];return{background:xl(o,.1),hover:xl(o,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${me(1)} solid transparent`}}return{background:xl(t,.1),hover:xl(t,.12),color:t,border:`${me(1)} solid transparent`}}if(n==="outline")return a.isThemeColor?a.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${me(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:xl(e.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${me(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:"transparent",hover:xl(t,.05),color:t,border:`${me(1)} solid ${t}`};if(n==="subtle"){if(a.isThemeColor){if(a.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${me(1)} solid transparent`};const o=e.colors[a.color][a.shade];return{background:"transparent",hover:xl(o,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${me(1)} solid transparent`}}return{background:"transparent",hover:xl(t,.12),color:t,border:`${me(1)} solid transparent`}}return n==="transparent"?a.isThemeColor?a.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${me(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${me(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${me(1)} solid transparent`}:n==="white"?a.isThemeColor?a.shade===void 0?{background:"var(--mantine-color-white)",hover:Zb(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${me(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Zb(e.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${me(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Zb(e.white,.01),color:t,border:`${me(1)} solid transparent`}:n==="gradient"?{background:sw(r,e),hover:sw(r,e),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${me(1)} solid var(--mantine-color-default-border)`}:{}},pee={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},fB="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",wI={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:pee,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:hee,autoContrast:!1,luminanceThreshold:.3,fontFamily:fB,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:fB,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:me(34),lineHeight:"1.3"},h2:{fontSize:me(26),lineHeight:"1.35"},h3:{fontSize:me(22),lineHeight:"1.4"},h4:{fontSize:me(18),lineHeight:"1.45"},h5:{fontSize:me(16),lineHeight:"1.5"},h6:{fontSize:me(14),lineHeight:"1.5"}}},fontSizes:{xs:me(12),sm:me(14),md:me(16),lg:me(18),xl:me(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:me(2),sm:me(4),md:me(8),lg:me(16),xl:me(32)},spacing:{xs:me(10),sm:me(12),md:me(16),lg:me(20),xl:me(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${me(1)} ${me(3)} rgba(0, 0, 0, 0.05), 0 ${me(1)} ${me(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${me(1)} ${me(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${me(10)} ${me(15)} ${me(-5)}, rgba(0, 0, 0, 0.04) 0 ${me(7)} ${me(7)} ${me(-5)}`,md:`0 ${me(1)} ${me(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${me(20)} ${me(25)} ${me(-5)}, rgba(0, 0, 0, 0.04) 0 ${me(10)} ${me(10)} ${me(-5)}`,lg:`0 ${me(1)} ${me(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${me(28)} ${me(23)} ${me(-7)}, rgba(0, 0, 0, 0.04) 0 ${me(12)} ${me(12)} ${me(-7)}`,xl:`0 ${me(1)} ${me(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${me(36)} ${me(28)} ${me(-7)}, rgba(0, 0, 0, 0.04) 0 ${me(17)} ${me(17)} ${me(-7)}`},other:{},components:{}};function hB(t){return t==="auto"||t==="dark"||t==="light"}function mee({key:t="mantine-color-scheme-value"}={}){let e;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(t);return hB(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{e=r=>{r.storageArea===window.localStorage&&r.key===t&&hB(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const gee="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",pB="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function OC(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function mB(t){if(!(t.primaryColor in t.colors))throw new Error(gee);if(typeof t.primaryShade=="object"&&(!OC(t.primaryShade.dark)||!OC(t.primaryShade.light)))throw new Error(pB);if(typeof t.primaryShade=="number"&&!OC(t.primaryShade))throw new Error(pB)}function _ee(t,e){var r;if(!e)return mB(t),t;const n=EI(t,e);return e.fontFamily&&!((r=e.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=e.fontFamily),mB(n),n}const DI=I.createContext(null),bee=()=>I.useContext(DI)||wI;function Ui(){const t=I.useContext(DI);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function $5({theme:t,children:e,inherit:n=!0}){const r=bee(),i=I.useMemo(()=>_ee(n?r:wI,t),[t,r,n]);return l.jsx(DI.Provider,{value:i,children:e})}$5.displayName="@mantine/core/MantineThemeProvider";function vee(){const t=Ui(),e=qE(),n=Pi(t.breakpoints).reduce((r,i)=>{const a=t.breakpoints[i].includes("px"),s=iw(t.breakpoints[i]),o=a?`${s-.1}px`:ss(s-.1),c=a?`${s}px`:ss(s);return`${r}@media (max-width: ${o}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return l.jsx("style",{"data-mantine-styles":"classes",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:n}})}function RC(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function Cg(t,e){return(Array.isArray(t)?t:[t]).reduce((r,i)=>`${i}{${r}}`,e)}function See(t,e){const n=RC(t.variables),r=n?Cg(e,n):"",i=RC(t.dark),a=RC(t.light),s=i?Cg(e===":host"?`${e}([data-mantine-color-scheme="dark"])`:`${e}[data-mantine-color-scheme="dark"]`,i):"",o=a?Cg(e===":host"?`${e}([data-mantine-color-scheme="light"])`:`${e}[data-mantine-color-scheme="light"]`,a):"";return`${r}${s}${o}`}function Td({color:t,theme:e,autoContrast:n}){return(typeof n=="boolean"?n:e.autoContrast)&&yd({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function gB(t,e){return Td({color:t.colors[t.primaryColor][v_(t,e)],theme:t,autoContrast:null})}function Jb({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:i=!0}){if(!t.colors[e])return{};if(n==="light"){const o=v_(t,"light"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${o===9?8:o+1})`,[`--mantine-color-${r}-light`]:Ph(t.colors[e][o],.1),[`--mantine-color-${r}-light-hover`]:Ph(t.colors[e][o],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-outline-hover`]:Ph(t.colors[e][o],.05)};return i?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...c}:c}const a=v_(t,"dark"),s={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Ph(t.colors[e][Math.max(0,a-2)],.15),[`--mantine-color-${r}-light-hover`]:Ph(t.colors[e][Math.max(0,a-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(a-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Ph(t.colors[e][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9],...s}:s}function Eee(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function Bh(t,e,n){Pi(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}const z5=t=>{const e=v_(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:me(t.defaultRadius),r={variables:{"--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":gB(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":gB(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};Bh(r.variables,t.breakpoints,"breakpoint"),Bh(r.variables,t.spacing,"spacing"),Bh(r.variables,t.fontSizes,"font-size"),Bh(r.variables,t.lineHeights,"line-height"),Bh(r.variables,t.shadows,"shadow"),Bh(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((a,s)=>{r.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${t.primaryColor}-${s})`}),Pi(t.colors).forEach(a=>{const s=t.colors[a];if(Eee(s)){Object.assign(r.light,Jb({theme:t,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Jb({theme:t,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((o,c)=>{r.variables[`--mantine-color-${a}-${c}`]=o}),Object.assign(r.light,Jb({theme:t,color:a,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Jb({theme:t,color:a,colorScheme:"dark",withColorValues:!1}))});const i=t.headings.sizes;return Pi(i).forEach(a=>{r.variables[`--mantine-${a}-font-size`]=i[a].fontSize,r.variables[`--mantine-${a}-line-height`]=i[a].lineHeight,r.variables[`--mantine-${a}-font-weight`]=i[a].fontWeight||t.headings.fontWeight}),r};function yee({theme:t,generator:e}){const n=z5(t),r=e==null?void 0:e(t);return r?EI(n,r):n}const NC=z5(wI);function Tee(t){const e={variables:{},light:{},dark:{}};return Pi(t.variables).forEach(n=>{NC.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),Pi(t.light).forEach(n=>{NC.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),Pi(t.dark).forEach(n=>{NC.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function xee(t){return`
  ${t}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
  ${t}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
`}function Y5({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Ui(),r=qE(),i=tee(),a=yee({theme:n,generator:i}),s=t===":root"&&e,o=s?Tee(a):a,c=See(o,t);return c?l.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${c}${s?"":xee(t)}`}}):null}Y5.displayName="@mantine/CssVariables";function Cee(){const t=console.error;console.error=(...e)=>{e.length>1&&typeof e[0]=="string"&&e[0].toLowerCase().includes("extra attributes from the server")&&typeof e[1]=="string"&&e[1].toLowerCase().includes("data-mantine-color-scheme")||t(...e)}}function Fh(t,e){var i;const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)").matches,r=t!=="auto"?t:n?"dark":"light";(i=e())==null||i.setAttribute("data-mantine-color-scheme",r)}function Oee({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const i=I.useRef(null),[a,s]=I.useState(()=>t.get(e)),o=r||a,c=I.useCallback(f=>{r||(Fh(f,n),s(f),t.set(f))},[t.set,o,r]),d=I.useCallback(()=>{s(e),Fh(e,n),t.clear()},[t.clear,e]);return I.useEffect(()=>(t.subscribe(c),t.unsubscribe),[t.subscribe,t.unsubscribe]),sm(()=>{Fh(t.get(e),n)},[]),I.useEffect(()=>{var p;if(r)return Fh(r,n),()=>{};r===void 0&&Fh(a,n),typeof window<"u"&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const f=m=>{a==="auto"&&Fh(m.matches?"dark":"light",n)};return(p=i.current)==null||p.addEventListener("change",f),()=>{var m;return(m=i.current)==null?void 0:m.removeEventListener("change",f)}},[a,r]),{colorScheme:o,setColorScheme:c,clearColorScheme:d}}function Ree({respectReducedMotion:t,getRootElement:e}){sm(()=>{var n;t&&((n=e())==null||n.setAttribute("data-respect-reduced-motion","true"))},[t])}Cee();function H5({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:s=!0,cssVariablesSelector:o=":root",classNamesPrefix:c="mantine",colorSchemeManager:d=mee(),defaultColorScheme:f="light",getRootElement:p=()=>document.documentElement,cssVariablesResolver:m,forceColorScheme:g,stylesTransform:b}){const{colorScheme:S,setColorScheme:y,clearColorScheme:E}=Oee({defaultColorScheme:f,forceColorScheme:g,manager:d,getRootElement:p});return Ree({respectReducedMotion:(t==null?void 0:t.respectReducedMotion)||!1,getRootElement:p}),l.jsx(AI.Provider,{value:{colorScheme:S,setColorScheme:y,clearColorScheme:E,getRootElement:p,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:m,cssVariablesSelector:o,withStaticClasses:r,stylesTransform:b},children:l.jsxs($5,{theme:t,children:[s&&l.jsx(Y5,{cssVariablesSelector:o,deduplicateCssVariables:a}),i&&l.jsx(vee,{}),e]})})}H5.displayName="@mantine/core/MantineProvider";function rl({classNames:t,styles:e,props:n,stylesCtx:r}){const i=Ui();return{resolvedClassNames:GE({theme:i,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:AS({theme:i,styles:e,props:n,stylesCtx:r||void 0})}}const Nee={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function Aee({theme:t,options:e,unstyled:n}){return Tr((e==null?void 0:e.focusable)&&!n&&(t.focusClassName||Nee[t.focusRing]),(e==null?void 0:e.active)&&!n&&t.activeClassName)}function wee({selector:t,stylesCtx:e,options:n,props:r,theme:i}){return GE({theme:i,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:e})[t]}function _B({selector:t,stylesCtx:e,theme:n,classNames:r,props:i}){return GE({theme:n,classNames:r,props:i,stylesCtx:e})[t]}function Dee({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function Iee({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function Mee({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(i=>`${e}-${i}-${n}`)}function Lee({themeName:t,theme:e,selector:n,props:r,stylesCtx:i}){return t.map(a=>{var s,o;return(o=GE({theme:e,classNames:(s=e.components[a])==null?void 0:s.classNames,props:r,stylesCtx:i}))==null?void 0:o[n]})}function kee({options:t,classes:e,selector:n,unstyled:r}){return t!=null&&t.variant&&!r?e[`${n}--${t.variant}`]:void 0}function Pee({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:i,classNames:a,classes:s,unstyled:o,className:c,rootSelector:d,props:f,stylesCtx:p,withStaticClasses:m,headless:g,transformedStyles:b}){return Tr(Aee({theme:t,options:e,unstyled:o||g}),Lee({theme:t,themeName:n,selector:r,props:f,stylesCtx:p}),kee({options:e,classes:s,selector:r,unstyled:o}),_B({selector:r,stylesCtx:p,theme:t,classNames:a,props:f}),_B({selector:r,stylesCtx:p,theme:t,classNames:b,props:f}),wee({selector:r,stylesCtx:p,options:e,props:f,theme:t}),Dee({rootSelector:d,selector:r,className:c}),Iee({selector:r,classes:s,unstyled:o||g}),m&&!g&&Mee({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:e==null?void 0:e.withStaticClass}),e==null?void 0:e.className)}function Bee({theme:t,themeName:e,props:n,stylesCtx:r,selector:i}){return e.map(a=>{var s;return AS({theme:t,styles:(s=t.components[a])==null?void 0:s.styles,props:n,stylesCtx:r})[i]}).reduce((a,s)=>({...a,...s}),{})}function ow({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...ow({style:r,theme:e})}),{}):typeof t=="function"?t(e):t??{}}function Fee(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]={...e[r],...yI(n[r])}}),e),{})}function Uee({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:i,selector:a,themeName:s,headless:o}){var c;return(c=Fee([o?{}:e==null?void 0:e(n,r,i),...s.map(d=>{var f,p,m;return(m=(p=(f=n.components)==null?void 0:f[d])==null?void 0:p.vars)==null?void 0:m.call(p,n,r,i)}),t==null?void 0:t(n,r,i)]))==null?void 0:c[a]}function jee({theme:t,themeName:e,selector:n,options:r,props:i,stylesCtx:a,rootSelector:s,styles:o,style:c,vars:d,varsResolver:f,headless:p,withStylesTransform:m}){return{...!m&&Bee({theme:t,themeName:e,props:i,stylesCtx:a,selector:n}),...!m&&AS({theme:t,styles:o,props:i,stylesCtx:a})[n],...!m&&AS({theme:t,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||i,stylesCtx:a})[n],...Uee({theme:t,props:i,stylesCtx:a,vars:d,varsResolver:f,selector:n,themeName:e,headless:p}),...s===n?ow({style:c,theme:t}):null,...ow({style:r==null?void 0:r.style,theme:t})}}function Gee({props:t,stylesCtx:e,themeName:n}){var s;const r=Ui(),i=(s=see())==null?void 0:s();return{getTransformedStyles:o=>i?[...o.map(d=>i(d,{props:t,theme:r,ctx:e})),...n.map(d=>{var f;return i((f=r.components[d])==null?void 0:f.styles,{props:t,theme:r,ctx:e})})].filter(Boolean):[],withStylesTransform:!!i}}function ct({name:t,classes:e,props:n,stylesCtx:r,className:i,style:a,rootSelector:s="root",unstyled:o,classNames:c,styles:d,vars:f,varsResolver:p}){const m=Ui(),g=nee(),b=ree(),S=iee(),y=(Array.isArray(t)?t:[t]).filter(C=>C),{withStylesTransform:E,getTransformedStyles:x}=Gee({props:n,stylesCtx:r,themeName:y});return(C,R)=>({className:Pee({theme:m,options:R,themeName:y,selector:C,classNamesPrefix:g,classNames:c,classes:e,unstyled:o,className:i,rootSelector:s,props:n,stylesCtx:r,withStaticClasses:b,headless:S,transformedStyles:x([R==null?void 0:R.styles,d])}),style:jee({theme:m,themeName:y,selector:C,options:R,props:n,stylesCtx:r,rootSelector:s,styles:d,style:a,vars:f,varsResolver:p,headless:S,withStylesTransform:E})})}function V5(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, white ${e*100}%)`;const{r:n,g:r,b:i,a}=$E(t),s=o=>Math.round(o+(255-o)*e);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function om(t,e){return typeof t=="boolean"?t:e.autoContrast}function bB(t){const e=document.createElement("style");return e.setAttribute("data-mantine-styles","inline"),e.innerHTML="*, *::before, *::after {transition: none !important;}",e.setAttribute("data-mantine-disable-transition","true"),t&&e.setAttribute("nonce",t),document.head.appendChild(e),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function W5({keepTransitions:t}={}){const e=I.useRef(OS),n=I.useRef(-1),r=I.useContext(AI),i=qE(),a=I.useRef(i==null?void 0:i());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const s=p=>{r.setColorScheme(p),e.current=t?()=>{}:bB(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var m;(m=e.current)==null||m.call(e)},10)},o=()=>{r.clearColorScheme(),e.current=t?()=>{}:bB(a.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var p;(p=e.current)==null||p.call(e)},10)},c=P5("light",{getInitialValueInEffect:!1}),d=r.colorScheme==="auto"?c:r.colorScheme,f=I.useCallback(()=>s(d==="light"?"dark":"light"),[s,d]);return I.useEffect(()=>()=>{var p;(p=e.current)==null||p.call(e),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:s,clearColorScheme:o,toggleColorScheme:f}}function II(t,e={getInitialValueInEffect:!0}){const n=P5(t,e),{colorScheme:r}=W5();return r==="auto"?n:r}function Ee(t,e,n){var s;const r=Ui(),i=(s=r.components[t])==null?void 0:s.defaultProps,a=typeof i=="function"?i(r):i;return{...e,...a,...yI(n)}}function AC(t){return Pi(t).reduce((e,n)=>t[n]!==void 0?`${e}${mJ(n)}:${t[n]};`:e,"").trim()}function qee({selector:t,styles:e,media:n,container:r}){const i=e?AC(e):"",a=Array.isArray(n)?n.map(o=>`@media${o.query}{${t}{${AC(o.styles)}}}`):[],s=Array.isArray(r)?r.map(o=>`@container ${o.query}{${t}{${AC(o.styles)}}}`):[];return`${i?`${t}{${i}}`:""}${a.join("")}${s.join("")}`.trim()}function Q5(t){const e=qE();return l.jsx("style",{"data-mantine-styles":"inline",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:qee(t)}})}function u0(t){const{m:e,mx:n,my:r,mt:i,mb:a,ml:s,mr:o,me:c,ms:d,p:f,px:p,py:m,pt:g,pb:b,pl:S,pr:y,pe:E,ps:x,bd:C,bg:R,c:T,opacity:N,ff:w,fz:D,fw:L,lts:k,ta:M,lh:P,fs:V,tt:Y,td:G,w:F,miw:q,maw:z,h:H,mih:U,mah:Q,bgsz:X,bgp:te,bgr:ie,bga:fe,pos:Ce,top:Re,left:_e,bottom:Ie,right:Oe,inset:se,display:xe,flex:ce,hiddenFrom:je,visibleFrom:rt,lightHidden:_t,darkHidden:Te,sx:Ne,...at}=t;return{styleProps:yI({m:e,mx:n,my:r,mt:i,mb:a,ml:s,mr:o,me:c,ms:d,p:f,px:p,py:m,pt:g,pb:b,pl:S,pr:y,pe:E,ps:x,bd:C,bg:R,c:T,opacity:N,ff:w,fz:D,fw:L,lts:k,ta:M,lh:P,fs:V,tt:Y,td:G,w:F,miw:q,maw:z,h:H,mih:U,mah:Q,bgsz:X,bgp:te,bgr:ie,bga:fe,pos:Ce,top:Re,left:_e,bottom:Ie,right:Oe,inset:se,display:xe,flex:ce,hiddenFrom:je,visibleFrom:rt,lightHidden:_t,darkHidden:Te,sx:Ne}),rest:at}}const $ee={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function MI(t,e){const n=yd({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function zee(t,e){const n=yd({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:MI(t,e)}function Yee(t,e){if(typeof t=="number")return me(t);if(typeof t=="string"){const[n,r,...i]=t.split(" ").filter(s=>s.trim()!=="");let a=`${me(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${MI(i.join(" "),e)}`),a.trim()}return t}const vB={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function Hee(t){return typeof t=="string"&&t in vB?vB[t]:t}const Vee=["h1","h2","h3","h4","h5","h6"];function Wee(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&Vee.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?me(t):t}function Qee(t){return t}const Kee=["h1","h2","h3","h4","h5","h6"];function Xee(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&Kee.includes(t)?`var(--mantine-${t}-line-height)`:t}function Zee(t){return typeof t=="number"?me(t):t}function Jee(t,e){if(typeof t=="number")return me(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return me(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const wC={color:MI,textColor:zee,fontSize:Wee,spacing:Jee,identity:Qee,size:Zee,lineHeight:Xee,fontFamily:Hee,border:Yee};function SB(t){return t.replace("(min-width: ","").replace("em)","")}function ete({media:t,...e}){const r=Object.keys(t).sort((i,a)=>Number(SB(i))-Number(SB(a))).map(i=>({query:i,styles:t[i]}));return{...e,media:r}}function tte(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function nte(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function rte(t){return typeof t=="object"&&t!==null?Pi(t).filter(e=>e!=="base"):[]}function ite(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function ate({styleProps:t,data:e,theme:n}){return ete(Pi(t).reduce((r,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return r;const a=e[i],s=Array.isArray(a.property)?a.property:[a.property],o=nte(t[i]);if(!tte(t[i]))return s.forEach(d=>{r.inlineStyles[d]=wC[a.type](o,n)}),r;r.hasResponsiveStyles=!0;const c=rte(t[i]);return s.forEach(d=>{o&&(r.styles[d]=wC[a.type](o,n)),c.forEach(f=>{const p=`(min-width: ${n.breakpoints[f]})`;r.media[p]={...r.media[p],[d]:wC[a.type](ite(t[i],f),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function ste(){return`__m__-${I.useId().replace(/:/g,"")}`}function LI(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...LI(r,e)}),{}):typeof t=="function"?t(e):t??{}}function K5(t){return t.startsWith("data-")?t:`data-${t}`}function ote(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[K5(n)]=t[n]),e},{})}function X5(t){return t?typeof t=="string"?{[K5(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>({...e,...X5(n)}),{}):ote(t):null}function lw(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>({...n,...lw(r,e)}),{}):typeof t=="function"?t(e):t??{}}function lte({theme:t,style:e,vars:n,styleProps:r}){const i=lw(e,t),a=lw(n,t);return{...i,...a,...r}}const Z5=I.forwardRef(({component:t,style:e,__vars:n,className:r,variant:i,mod:a,size:s,hiddenFrom:o,visibleFrom:c,lightHidden:d,darkHidden:f,renderRoot:p,__size:m,...g},b)=>{var D;const S=Ui(),y=t||"div",{styleProps:E,rest:x}=u0(g),C=aee(),R=(D=C==null?void 0:C())==null?void 0:D(E.sx),T=ste(),N=ate({styleProps:E,theme:S,data:$ee}),w={ref:b,style:lte({theme:S,style:e,vars:n,styleProps:N.inlineStyles}),className:Tr(r,R,{[T]:N.hasResponsiveStyles,"mantine-light-hidden":d,"mantine-dark-hidden":f,[`mantine-hidden-from-${o}`]:o,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":M5(s)?void 0:s||void 0,size:m,...X5(a),...x};return l.jsxs(l.Fragment,{children:[N.hasResponsiveStyles&&l.jsx(Q5,{selector:`.${T}`,styles:N.styles,media:N.media}),typeof p=="function"?p(w):l.jsx(y,{...w})]})});Z5.displayName="@mantine/core/Box";const Se=Z5;function J5(t){return t}function cte(t){const e=t;return n=>{const r=I.forwardRef((i,a)=>l.jsx(e,{...n,...i,ref:a}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r}}function Le(t){const e=I.forwardRef(t);return e.extend=J5,e.withProps=n=>{const r=I.forwardRef((i,a)=>l.jsx(e,{...n,...i,ref:a}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}function Ca(t){const e=I.forwardRef(t);return e.withProps=n=>{const r=I.forwardRef((i,a)=>l.jsx(e,{...n,...i,ref:a}));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=J5,e}const ute=I.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function lm(){return I.useContext(ute)}var zE=x5();const Yg=nl(zE);function dte(t){if(!t||typeof t=="string")return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function DC(t){return t!=null&&t.current?t.current.scrollHeight:"auto"}const Og=typeof window<"u"&&window.requestAnimationFrame;function fte({transitionDuration:t,transitionTimingFunction:e="ease",onTransitionEnd:n=()=>{},opened:r}){const i=I.useRef(null),a=0,s={display:"none",height:0,overflow:"hidden"},[o,c]=I.useState(r?{}:s),d=b=>{zE.flushSync(()=>c(b))},f=b=>{d(S=>({...S,...b}))};function p(b){const S=t||dte(b);return{transition:`height ${S}ms ${e}, opacity ${S}ms ${e}`}}so(()=>{typeof Og=="function"&&Og(r?()=>{f({willChange:"height",display:"block",overflow:"hidden"}),Og(()=>{const b=DC(i);f({...p(b),height:b})})}:()=>{const b=DC(i);f({...p(b),willChange:"height",height:b}),Og(()=>f({height:a,overflow:"hidden"}))})},[r]);const m=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(r){const S=DC(i);S===o.height?d({}):f({height:S}),n()}else o.height===a&&(d(s),n())};function g({style:b={},refKey:S="ref",...y}={}){const E=y[S];return{"aria-hidden":!r,...y,[S]:G5(i,E),onTransitionEnd:m,style:{boxSizing:"border-box",...b,...o}}}return g}const hte={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},kI=Le((t,e)=>{const{children:n,in:r,transitionDuration:i,transitionTimingFunction:a,style:s,onTransitionEnd:o,animateOpacity:c,...d}=Ee("Collapse",hte,t),f=Ui(),p=UE(),g=(f.respectReducedMotion?p:!1)?0:i,b=fte({opened:r,transitionDuration:g,transitionTimingFunction:a,onTransitionEnd:o});return g===0?r?l.jsx(Se,{...d,children:n}):null:l.jsx(Se,{...b({style:{opacity:r||!c?1:0,transition:c?`opacity ${g}ms ${a}`:"none",...LI(s,f)},ref:e,...d}),children:n})});kI.displayName="@mantine/core/Collapse";const[pte,uo]=xa("ScrollArea.Root component was not found in tree");function Bp(t,e){const n=ff(e);sm(()=>{let r=0;if(t){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(t),()=>{window.cancelAnimationFrame(r),i.unobserve(t)}}},[t,n])}const mte=I.forwardRef((t,e)=>{const{style:n,...r}=t,i=uo(),[a,s]=I.useState(0),[o,c]=I.useState(0),d=!!(a&&o);return Bp(i.scrollbarX,()=>{var p;const f=((p=i.scrollbarX)==null?void 0:p.offsetHeight)||0;i.onCornerHeightChange(f),c(f)}),Bp(i.scrollbarY,()=>{var p;const f=((p=i.scrollbarY)==null?void 0:p.offsetWidth)||0;i.onCornerWidthChange(f),s(f)}),d?l.jsx("div",{...r,ref:e,style:{...n,width:a,height:o}}):null}),gte=I.forwardRef((t,e)=>{const n=uo(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?l.jsx(mte,{...t,ref:e}):null}),_te={scrollHideDelay:1e3,type:"hover"},ez=I.forwardRef((t,e)=>{const n=Ee("ScrollAreaRoot",_te,t),{type:r,scrollHideDelay:i,scrollbars:a,...s}=n,[o,c]=I.useState(null),[d,f]=I.useState(null),[p,m]=I.useState(null),[g,b]=I.useState(null),[S,y]=I.useState(null),[E,x]=I.useState(0),[C,R]=I.useState(0),[T,N]=I.useState(!1),[w,D]=I.useState(!1),L=Xr(e,k=>c(k));return l.jsx(pte,{value:{type:r,scrollHideDelay:i,scrollArea:o,viewport:d,onViewportChange:f,content:p,onContentChange:m,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:T,onScrollbarXEnabledChange:N,scrollbarY:S,onScrollbarYChange:y,scrollbarYEnabled:w,onScrollbarYEnabledChange:D,onCornerWidthChange:x,onCornerHeightChange:R},children:l.jsx(Se,{...s,ref:L,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${E}px`,"--sa-corner-height":a!=="xy"?"0px":`${C}px`}})})});ez.displayName="@mantine/core/ScrollAreaRoot";function tz(t,e){const n=t/e;return Number.isNaN(n)?0:n}function YE(t){const e=tz(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function nz(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function bte(t,[e,n]){return Math.min(n,Math.max(e,t))}function EB(t,e,n="ltr"){const r=YE(e),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-i,s=e.content-e.viewport,o=a-r,c=n==="ltr"?[0,s]:[s*-1,0],d=bte(t,c);return nz([0,s],[0,o])(d)}function vte(t,e,n,r="ltr"){const i=YE(n),a=i/2,s=e||a,o=i-s,c=n.scrollbar.paddingStart+s,d=n.scrollbar.size-n.scrollbar.paddingEnd-o,f=n.content-n.viewport,p=r==="ltr"?[0,f]:[f*-1,0];return nz([c,d],p)(t)}function rz(t,e){return t>0&&t<e}function Xu(t){return t?parseInt(t,10):0}function Lf(t,e,{checkForDefaultPrevented:n=!0}={}){return r=>{t==null||t(r),(n===!1||!r.defaultPrevented)&&(e==null||e(r))}}const[Ste,iz]=xa("ScrollAreaScrollbar was not found in tree"),az=I.forwardRef((t,e)=>{const{sizes:n,hasThumb:r,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:o,onDragScroll:c,onWheelScroll:d,onResize:f,...p}=t,m=uo(),[g,b]=I.useState(null),S=Xr(e,D=>b(D)),y=I.useRef(null),E=I.useRef(""),{viewport:x}=m,C=n.content-n.viewport,R=ff(d),T=ff(o),N=BE(f,10),w=D=>{if(y.current){const L=D.clientX-y.current.left,k=D.clientY-y.current.top;c({x:L,y:k})}};return I.useEffect(()=>{const D=L=>{const k=L.target;(g==null?void 0:g.contains(k))&&R(L,C)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[x,g,C,R]),I.useEffect(T,[n,T]),Bp(g,N),Bp(m.content,N),l.jsx(Ste,{value:{scrollbar:g,hasThumb:r,onThumbChange:ff(i),onThumbPointerUp:ff(a),onThumbPositionChange:T,onThumbPointerDown:ff(s)},children:l.jsx("div",{...p,ref:S,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:Lf(t.onPointerDown,D=>{D.preventDefault(),D.button===0&&(D.target.setPointerCapture(D.pointerId),y.current=g.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w(D))}),onPointerMove:Lf(t.onPointerMove,w),onPointerUp:Lf(t.onPointerUp,D=>{D.preventDefault();const L=D.target;L.hasPointerCapture(D.pointerId)&&L.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=E.current,y.current=null})})})}),sz=I.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:i,...a}=t,s=uo(),[o,c]=I.useState(),d=I.useRef(null),f=Xr(e,d,s.onScrollbarXChange);return I.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),l.jsx(az,{"data-orientation":"horizontal",...a,ref:f,sizes:n,style:{...i,"--sa-thumb-width":`${YE(n)}px`},onThumbPointerDown:p=>t.onThumbPointerDown(p.x),onDragScroll:p=>t.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(s.viewport){const g=s.viewport.scrollLeft+p.deltaX;t.onWheelScroll(g),rz(g,m)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&o&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:Xu(o.paddingLeft),paddingEnd:Xu(o.paddingRight)}})}})});sz.displayName="@mantine/core/ScrollAreaScrollbarX";const oz=I.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,style:i,...a}=t,s=uo(),[o,c]=I.useState(),d=I.useRef(null),f=Xr(e,d,s.onScrollbarYChange);return I.useEffect(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),l.jsx(az,{...a,"data-orientation":"vertical",ref:f,sizes:n,style:{"--sa-thumb-height":`${YE(n)}px`,...i},onThumbPointerDown:p=>t.onThumbPointerDown(p.y),onDragScroll:p=>t.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(s.viewport){const g=s.viewport.scrollTop+p.deltaY;t.onWheelScroll(g),rz(g,m)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&o&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:Xu(o.paddingTop),paddingEnd:Xu(o.paddingBottom)}})}})});oz.displayName="@mantine/core/ScrollAreaScrollbarY";const HE=I.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:i}=lm(),a=uo(),s=I.useRef(null),o=I.useRef(0),[c,d]=I.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=tz(c.viewport,c.content),p={...r,sizes:c,onSizesChange:d,hasThumb:f>0&&f<1,onThumbChange:g=>{s.current=g},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:g=>{o.current=g}},m=(g,b)=>vte(g,o.current,c,b);return n==="horizontal"?l.jsx(sz,{...p,ref:e,onThumbPositionChange:()=>{if(a.viewport&&s.current){const g=a.viewport.scrollLeft,b=EB(g,c,i);s.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollLeft=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollLeft=m(g,i))}}):n==="vertical"?l.jsx(oz,{...p,ref:e,onThumbPositionChange:()=>{if(a.viewport&&s.current){const g=a.viewport.scrollTop,b=EB(g,c);c.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollTop=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollTop=m(g))}}):null});HE.displayName="@mantine/core/ScrollAreaScrollbarVisible";const PI=I.forwardRef((t,e)=>{const n=uo(),{forceMount:r,...i}=t,[a,s]=I.useState(!1),o=t.orientation==="horizontal",c=BE(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,f=n.viewport.offsetHeight<n.viewport.scrollHeight;s(o?d:f)}},10);return Bp(n.viewport,c),Bp(n.content,c),r||a?l.jsx(HE,{"data-state":a?"visible":"hidden",...i,ref:e}):null});PI.displayName="@mantine/core/ScrollAreaScrollbarAuto";const lz=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=uo(),[a,s]=I.useState(!1);return I.useEffect(()=>{const{scrollArea:o}=i;let c=0;if(o){const d=()=>{window.clearTimeout(c),s(!0)},f=()=>{c=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return o.addEventListener("pointerenter",d),o.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),o.removeEventListener("pointerenter",d),o.removeEventListener("pointerleave",f)}}},[i.scrollArea,i.scrollHideDelay]),n||a?l.jsx(PI,{"data-state":a?"visible":"hidden",...r,ref:e}):null});lz.displayName="@mantine/core/ScrollAreaScrollbarHover";const Ete=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=uo(),a=t.orientation==="horizontal",[s,o]=I.useState("hidden"),c=BE(()=>o("idle"),100);return I.useEffect(()=>{if(s==="idle"){const d=window.setTimeout(()=>o("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(d)}},[s,i.scrollHideDelay]),I.useEffect(()=>{const{viewport:d}=i,f=a?"scrollLeft":"scrollTop";if(d){let p=d[f];const m=()=>{const g=d[f];p!==g&&(o("scrolling"),c()),p=g};return d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}},[i.viewport,a,c]),n||s!=="hidden"?l.jsx(HE,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:Lf(t.onPointerEnter,()=>o("interacting")),onPointerLeave:Lf(t.onPointerLeave,()=>o("idle"))}):null}),cw=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=uo(),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=i,o=t.orientation==="horizontal";return I.useEffect(()=>(o?a(!0):s(!0),()=>{o?a(!1):s(!1)}),[o,a,s]),i.type==="hover"?l.jsx(lz,{...r,ref:e,forceMount:n}):i.type==="scroll"?l.jsx(Ete,{...r,ref:e,forceMount:n}):i.type==="auto"?l.jsx(PI,{...r,ref:e,forceMount:n}):i.type==="always"?l.jsx(HE,{...r,ref:e}):null});cw.displayName="@mantine/core/ScrollAreaScrollbar";function yte(t,e=()=>{}){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return function i(){const a={left:t.scrollLeft,top:t.scrollTop},s=n.left!==a.left,o=n.top!==a.top;(s||o)&&e(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)}const cz=I.forwardRef((t,e)=>{const{style:n,...r}=t,i=uo(),a=iz(),{onThumbPositionChange:s}=a,o=Xr(e,f=>a.onThumbChange(f)),c=I.useRef(void 0),d=BE(()=>{c.current&&(c.current(),c.current=void 0)},100);return I.useEffect(()=>{const{viewport:f}=i;if(f){const p=()=>{if(d(),!c.current){const m=yte(f,s);c.current=m,s()}};return s(),f.addEventListener("scroll",p),()=>f.removeEventListener("scroll",p)}},[i.viewport,d,s]),l.jsx("div",{"data-state":a.hasThumb?"visible":"hidden",...r,ref:o,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Lf(t.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),g=f.clientX-m.left,b=f.clientY-m.top;a.onThumbPointerDown({x:g,y:b})}),onPointerUp:Lf(t.onPointerUp,a.onThumbPointerUp)})});cz.displayName="@mantine/core/ScrollAreaThumb";const uw=I.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=iz();return n||i.hasThumb?l.jsx(cz,{ref:e,...r}):null});uw.displayName="@mantine/core/ScrollAreaThumb";const uz=I.forwardRef(({children:t,style:e,...n},r)=>{const i=uo(),a=Xr(r,i.onViewportChange);return l.jsx(Se,{...n,ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e},children:l.jsx("div",{style:{minWidth:"100%",display:"table"},ref:i.onContentChange,children:t})})});uz.displayName="@mantine/core/ScrollAreaViewport";var BI={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const dz={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Tte=(t,{scrollbarSize:e})=>({root:{"--scrollarea-scrollbar-size":me(e)}}),Yc=Le((t,e)=>{const n=Ee("ScrollArea",dz,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,scrollbarSize:c,vars:d,type:f,scrollHideDelay:p,viewportProps:m,viewportRef:g,onScrollPositionChange:b,children:S,offsetScrollbars:y,scrollbars:E,onBottomReached:x,onTopReached:C,...R}=n,[T,N]=I.useState(!1),w=ct({name:"ScrollArea",props:n,classes:BI,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:d,varsResolver:Tte});return l.jsxs(ez,{type:f==="never"?"always":f,scrollHideDelay:p,ref:e,scrollbars:E,...w("root"),...R,children:[l.jsx(uz,{...m,...w("viewport",{style:m==null?void 0:m.style}),ref:g,"data-offset-scrollbars":y===!0?"xy":y||void 0,"data-scrollbars":E||void 0,onScroll:D=>{var P;(P=m==null?void 0:m.onScroll)==null||P.call(m,D),b==null||b({x:D.currentTarget.scrollLeft,y:D.currentTarget.scrollTop});const{scrollTop:L,scrollHeight:k,clientHeight:M}=D.currentTarget;L-(k-M)>=0&&(x==null||x()),L===0&&(C==null||C())},children:S}),(E==="xy"||E==="x")&&l.jsx(cw,{...w("scrollbar"),orientation:"horizontal","data-hidden":f==="never"||void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:l.jsx(uw,{...w("thumb")})}),(E==="xy"||E==="y")&&l.jsx(cw,{...w("scrollbar"),orientation:"vertical","data-hidden":f==="never"||void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:l.jsx(uw,{...w("thumb")})}),l.jsx(gte,{...w("corner"),"data-hovered":T||void 0,"data-hidden":f==="never"||void 0})]})});Yc.displayName="@mantine/core/ScrollArea";const FI=Le((t,e)=>{const{children:n,classNames:r,styles:i,scrollbarSize:a,scrollHideDelay:s,type:o,dir:c,offsetScrollbars:d,viewportRef:f,onScrollPositionChange:p,unstyled:m,variant:g,viewportProps:b,scrollbars:S,style:y,vars:E,onBottomReached:x,onTopReached:C,...R}=Ee("ScrollAreaAutosize",dz,t);return l.jsx(Se,{...R,ref:e,style:[{display:"flex",overflow:"auto"},y],children:l.jsx(Se,{style:{display:"flex",flexDirection:"column",flex:1},children:l.jsx(Yc,{classNames:r,styles:i,scrollHideDelay:s,scrollbarSize:a,type:o,dir:c,offsetScrollbars:d,viewportRef:f,onScrollPositionChange:p,unstyled:m,variant:g,viewportProps:b,vars:E,scrollbars:S,onBottomReached:x,onTopReached:C,children:n})})})});Yc.classes=BI;FI.displayName="@mantine/core/ScrollAreaAutosize";FI.classes=BI;Yc.Autosize=FI;var fz={root:"m_87cf2631"};const xte={__staticSelector:"UnstyledButton"},Si=Ca((t,e)=>{const n=Ee("UnstyledButton",xte,t),{className:r,component:i="button",__staticSelector:a,unstyled:s,classNames:o,styles:c,style:d,...f}=n,p=ct({name:a,props:n,classes:fz,className:r,style:d,classNames:o,styles:c,unstyled:s});return l.jsx(Se,{...p("root",{focusable:!0}),component:i,ref:e,type:i==="button"?"button":void 0,...f})});Si.classes=fz;Si.displayName="@mantine/core/UnstyledButton";var hz={root:"m_515a97f8"};const Cte={},UI=Le((t,e)=>{const n=Ee("VisuallyHidden",Cte,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,...d}=n,f=ct({name:"VisuallyHidden",classes:hz,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o});return l.jsx(Se,{component:"span",ref:e,...f("root"),...d})});UI.classes=hz;UI.displayName="@mantine/core/VisuallyHidden";var pz={root:"m_1b7284a3"};const Ote={},Rte=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Pn(e),"--paper-shadow":xI(n)}}),VE=Ca((t,e)=>{const n=Ee("Paper",Ote,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,withBorder:c,vars:d,radius:f,shadow:p,variant:m,mod:g,...b}=n,S=ct({name:"Paper",props:n,classes:pz,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:d,varsResolver:Rte});return l.jsx(Se,{ref:e,mod:[{"data-with-border":c},g],...S("root"),variant:m,...b})});VE.classes=pz;VE.displayName="@mantine/core/Paper";function WE(){return typeof window<"u"}function cm(t){return mz(t)?(t.nodeName||"").toLowerCase():"#document"}function as(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function zl(t){var e;return(e=(mz(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mz(t){return WE()?t instanceof Node||t instanceof as(t).Node:!1}function pr(t){return WE()?t instanceof Element||t instanceof as(t).Element:!1}function Ds(t){return WE()?t instanceof HTMLElement||t instanceof as(t).HTMLElement:!1}function dw(t){return!WE()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof as(t).ShadowRoot}function d0(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=oo(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function Nte(t){return["table","td","th"].includes(cm(t))}function QE(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function jI(t){const e=KE(),n=pr(t)?oo(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ate(t){let e=Fc(t);for(;Ds(e)&&!sd(e);){if(jI(e))return e;if(QE(e))return null;e=Fc(e)}return null}function KE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function sd(t){return["html","body","#document"].includes(cm(t))}function oo(t){return as(t).getComputedStyle(t)}function XE(t){return pr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Fc(t){if(cm(t)==="html")return t;const e=t.assignedSlot||t.parentNode||dw(t)&&t.host||zl(t);return dw(e)?e.host:e}function gz(t){const e=Fc(t);return sd(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ds(e)&&d0(e)?e:gz(e)}function Dc(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=gz(t),a=i===((r=t.ownerDocument)==null?void 0:r.body),s=as(i);if(a){const o=fw(s);return e.concat(s,s.visualViewport||[],d0(i)?i:[],o&&n?Dc(o):[])}return e.concat(i,Dc(i,[],n))}function fw(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yB(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function S_(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&dw(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function _z(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function bz(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function wte(t){return Mte()?!1:!TB()&&t.width===0&&t.height===0||TB()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function Dte(){return/apple/i.test(navigator.vendor)}function TB(){const t=/android/i;return t.test(_z())||t.test(bz())}function Ite(){return _z().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Mte(){return bz().includes("jsdom/")}function hw(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}function Lte(t){return"nativeEvent"in t}function kte(t){return t.matches("html,body")}function bf(t){return(t==null?void 0:t.ownerDocument)||document}function IC(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function Yh(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Pte="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Bte(t){return Ds(t)&&t.matches(Pte)}const Rs=Math.min,Sa=Math.max,wS=Math.round,ev=Math.floor,Fl=t=>({x:t,y:t}),Fte={left:"right",right:"left",bottom:"top",top:"bottom"},Ute={start:"end",end:"start"};function pw(t,e,n){return Sa(t,Rs(e,n))}function Uc(t,e){return typeof t=="function"?t(e):t}function Xo(t){return t.split("-")[0]}function um(t){return t.split("-")[1]}function GI(t){return t==="x"?"y":"x"}function qI(t){return t==="y"?"height":"width"}function jc(t){return["top","bottom"].includes(Xo(t))?"y":"x"}function $I(t){return GI(jc(t))}function jte(t,e,n){n===void 0&&(n=!1);const r=um(t),i=$I(t),a=qI(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=DS(s)),[s,DS(s)]}function Gte(t){const e=DS(t);return[mw(t),e,mw(e)]}function mw(t){return t.replace(/start|end/g,e=>Ute[e])}function qte(t,e,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?a:s;default:return[]}}function $te(t,e,n,r){const i=um(t);let a=qte(Xo(t),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(mw)))),a}function DS(t){return t.replace(/left|right|bottom|top/g,e=>Fte[e])}function zte(t){return{top:0,right:0,bottom:0,left:0,...t}}function zI(t){return typeof t!="number"?zte(t):{top:t,right:t,bottom:t,left:t}}function Fp(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function xB(t,e,n){let{reference:r,floating:i}=t;const a=jc(e),s=$I(e),o=qI(s),c=Xo(e),d=a==="y",f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,m=r[o]/2-i[o]/2;let g;switch(c){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-i.width,y:p};break;default:g={x:r.x,y:r.y}}switch(um(e)){case"start":g[s]-=m*(n&&d?-1:1);break;case"end":g[s]+=m*(n&&d?-1:1);break}return g}const Yte=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:p}=xB(d,r,c),m=r,g={},b=0;for(let S=0;S<o.length;S++){const{name:y,fn:E}=o[S],{x,y:C,data:R,reset:T}=await E({x:f,y:p,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:s,elements:{reference:t,floating:e}});f=x??f,p=C??p,g={...g,[y]:{...g[y],...R}},T&&b<=50&&(b++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(d=T.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):T.rects),{x:f,y:p}=xB(d,m,c)),S=-1)}return{x:f,y:p,placement:m,strategy:i,middlewareData:g}};async function YI(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Uc(e,t),b=zI(g),y=o[m?p==="floating"?"reference":"floating":p],E=Fp(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:d,rootBoundary:f,strategy:c})),x=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),R=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},T=Fp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:x,offsetParent:C,strategy:c}):x);return{top:(E.top-T.top+b.top)/R.y,bottom:(T.bottom-E.bottom+b.bottom)/R.y,left:(E.left-T.left+b.left)/R.x,right:(T.right-E.right+b.right)/R.x}}const Hte=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:c}=e,{element:d,padding:f=0}=Uc(t,e)||{};if(d==null)return{};const p=zI(f),m={x:n,y:r},g=$I(i),b=qI(g),S=await s.getDimensions(d),y=g==="y",E=y?"top":"left",x=y?"bottom":"right",C=y?"clientHeight":"clientWidth",R=a.reference[b]+a.reference[g]-m[g]-a.floating[b],T=m[g]-a.reference[g],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let w=N?N[C]:0;(!w||!await(s.isElement==null?void 0:s.isElement(N)))&&(w=o.floating[C]||a.floating[b]);const D=R/2-T/2,L=w/2-S[b]/2-1,k=Rs(p[E],L),M=Rs(p[x],L),P=k,V=w-S[b]-M,Y=w/2-S[b]/2+D,G=pw(P,Y,V),F=!c.arrow&&um(i)!=null&&Y!==G&&a.reference[b]/2-(Y<P?k:M)-S[b]/2<0,q=F?Y<P?Y-P:Y-V:0;return{[g]:m[g]+q,data:{[g]:G,centerOffset:Y-G-q,...F&&{alignmentOffset:q}},reset:F}}}),Vte=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:c,elements:d}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:S=!0,...y}=Uc(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const E=Xo(i),x=jc(o),C=Xo(o)===o,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=m||(C||!S?[DS(o)]:Gte(o)),N=b!=="none";!m&&N&&T.push(...$te(o,S,b,R));const w=[o,...T],D=await YI(e,y),L=[];let k=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&L.push(D[E]),p){const Y=jte(i,s,R);L.push(D[Y[0]],D[Y[1]])}if(k=[...k,{placement:i,overflows:L}],!L.every(Y=>Y<=0)){var M,P;const Y=(((M=a.flip)==null?void 0:M.index)||0)+1,G=w[Y];if(G)return{data:{index:Y,overflows:k},reset:{placement:G}};let F=(P=k.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:P.placement;if(!F)switch(g){case"bestFit":{var V;const q=(V=k.filter(z=>{if(N){const H=jc(z.placement);return H===x||H==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((z,H)=>z[1]-H[1])[0])==null?void 0:V[0];q&&(F=q);break}case"initialPlacement":F=o;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function vz(t){const e=Rs(...t.map(a=>a.left)),n=Rs(...t.map(a=>a.top)),r=Sa(...t.map(a=>a.right)),i=Sa(...t.map(a=>a.bottom));return{x:e,y:n,width:r-e,height:i-n}}function Wte(t){const e=t.slice().sort((i,a)=>i.y-a.y),n=[];let r=null;for(let i=0;i<e.length;i++){const a=e[i];!r||a.y-r.y>r.height/2?n.push([a]):n[n.length-1].push(a),r=a}return n.map(i=>Fp(vz(i)))}const Qte=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:i,platform:a,strategy:s}=e,{padding:o=2,x:c,y:d}=Uc(t,e),f=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),p=Wte(f),m=Fp(vz(f)),g=zI(o);function b(){if(p.length===2&&p[0].left>p[1].right&&c!=null&&d!=null)return p.find(y=>c>y.left-g.left&&c<y.right+g.right&&d>y.top-g.top&&d<y.bottom+g.bottom)||m;if(p.length>=2){if(jc(n)==="y"){const k=p[0],M=p[p.length-1],P=Xo(n)==="top",V=k.top,Y=M.bottom,G=P?k.left:M.left,F=P?k.right:M.right,q=F-G,z=Y-V;return{top:V,bottom:Y,left:G,right:F,width:q,height:z,x:G,y:V}}const y=Xo(n)==="left",E=Sa(...p.map(k=>k.right)),x=Rs(...p.map(k=>k.left)),C=p.filter(k=>y?k.left===x:k.right===E),R=C[0].top,T=C[C.length-1].bottom,N=x,w=E,D=w-N,L=T-R;return{top:R,bottom:T,left:N,right:w,width:D,height:L,x:N,y:R}}return m}const S=await a.getElementRects({reference:{getBoundingClientRect:b},floating:r.floating,strategy:s});return i.reference.x!==S.reference.x||i.reference.y!==S.reference.y||i.reference.width!==S.reference.width||i.reference.height!==S.reference.height?{reset:{rects:S}}:{}}}};async function Kte(t,e){const{placement:n,platform:r,elements:i}=t,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Xo(n),o=um(n),c=jc(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&c?-1:1,p=Uc(e,t);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return o&&typeof b=="number"&&(g=o==="end"?b*-1:b),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const Xte=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=e,c=await Kte(e,t);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:s}}}}},Zte=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:y=>{let{x:E,y:x}=y;return{x:E,y:x}}},...c}=Uc(t,e),d={x:n,y:r},f=await YI(e,c),p=jc(Xo(i)),m=GI(p);let g=d[m],b=d[p];if(a){const y=m==="y"?"top":"left",E=m==="y"?"bottom":"right",x=g+f[y],C=g-f[E];g=pw(x,g,C)}if(s){const y=p==="y"?"top":"left",E=p==="y"?"bottom":"right",x=b+f[y],C=b-f[E];b=pw(x,b,C)}const S=o.fn({...e,[m]:g,[p]:b});return{...S,data:{x:S.x-n,y:S.y-r}}}}},Jte=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=e,{offset:o=0,mainAxis:c=!0,crossAxis:d=!0}=Uc(t,e),f={x:n,y:r},p=jc(i),m=GI(p);let g=f[m],b=f[p];const S=Uc(o,e),y=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(c){const C=m==="y"?"height":"width",R=a.reference[m]-a.floating[C]+y.mainAxis,T=a.reference[m]+a.reference[C]-y.mainAxis;g<R?g=R:g>T&&(g=T)}if(d){var E,x;const C=m==="y"?"width":"height",R=["top","left"].includes(Xo(i)),T=a.reference[p]-a.floating[C]+(R&&((E=s.offset)==null?void 0:E[p])||0)+(R?0:y.crossAxis),N=a.reference[p]+a.reference[C]+(R?0:((x=s.offset)==null?void 0:x[p])||0)-(R?y.crossAxis:0);b<T?b=T:b>N&&(b=N)}return{[m]:g,[p]:b}}}},ene=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:r,platform:i,elements:a}=e,{apply:s=()=>{},...o}=Uc(t,e),c=await YI(e,o),d=Xo(n),f=um(n),p=jc(n)==="y",{width:m,height:g}=r.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=f==="end"?"top":"bottom");const y=g-c.top-c.bottom,E=m-c.left-c.right,x=Rs(g-c[b],y),C=Rs(m-c[S],E),R=!e.middlewareData.shift;let T=x,N=C;if(p?N=f||R?Rs(C,E):E:T=f||R?Rs(x,y):y,R&&!f){const D=Sa(c.left,0),L=Sa(c.right,0),k=Sa(c.top,0),M=Sa(c.bottom,0);p?N=m-2*(D!==0||L!==0?D+L:Sa(c.left,c.right)):T=g-2*(k!==0||M!==0?k+M:Sa(c.top,c.bottom))}await s({...e,availableWidth:N,availableHeight:T});const w=await i.getDimensions(a.floating);return m!==w.width||g!==w.height?{reset:{rects:!0}}:{}}}};function Sz(t){const e=oo(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Ds(t),a=i?t.offsetWidth:n,s=i?t.offsetHeight:r,o=wS(n)!==a||wS(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function HI(t){return pr(t)?t:t.contextElement}function rp(t){const e=HI(t);if(!Ds(e))return Fl(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:a}=Sz(e);let s=(a?wS(n.width):n.width)/r,o=(a?wS(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const tne=Fl(0);function Ez(t){const e=as(t);return!KE()||!e.visualViewport?tne:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function nne(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==as(t)?!1:e}function qf(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),a=HI(t);let s=Fl(1);e&&(r?pr(r)&&(s=rp(r)):s=rp(t));const o=nne(a,n,r)?Ez(a):Fl(0);let c=(i.left+o.x)/s.x,d=(i.top+o.y)/s.y,f=i.width/s.x,p=i.height/s.y;if(a){const m=as(a),g=r&&pr(r)?as(r):r;let b=m,S=fw(b);for(;S&&r&&g!==b;){const y=rp(S),E=S.getBoundingClientRect(),x=oo(S),C=E.left+(S.clientLeft+parseFloat(x.paddingLeft))*y.x,R=E.top+(S.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,p*=y.y,c+=C,d+=R,b=as(S),S=fw(b)}}return Fp({width:f,height:p,x:c,y:d})}function VI(t,e){const n=XE(t).scrollLeft;return e?e.left+n:qf(zl(t)).left+n}function yz(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:VI(t,r)),a=r.top+e.scrollTop;return{x:i,y:a}}function rne(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const a=i==="fixed",s=zl(r),o=e?QE(e.floating):!1;if(r===s||o&&a)return n;let c={scrollLeft:0,scrollTop:0},d=Fl(1);const f=Fl(0),p=Ds(r);if((p||!p&&!a)&&((cm(r)!=="body"||d0(s))&&(c=XE(r)),Ds(r))){const g=qf(r);d=rp(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=s&&!p&&!a?yz(s,c,!0):Fl(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function ine(t){return Array.from(t.getClientRects())}function ane(t){const e=zl(t),n=XE(t),r=t.ownerDocument.body,i=Sa(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Sa(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+VI(t);const o=-n.scrollTop;return oo(r).direction==="rtl"&&(s+=Sa(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function sne(t,e){const n=as(t),r=zl(t),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,c=0;if(i){a=i.width,s=i.height;const d=KE();(!d||d&&e==="fixed")&&(o=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:o,y:c}}function one(t,e){const n=qf(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,a=Ds(t)?rp(t):Fl(1),s=t.clientWidth*a.x,o=t.clientHeight*a.y,c=i*a.x,d=r*a.y;return{width:s,height:o,x:c,y:d}}function CB(t,e,n){let r;if(e==="viewport")r=sne(t,n);else if(e==="document")r=ane(zl(t));else if(pr(e))r=one(e,n);else{const i=Ez(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Fp(r)}function Tz(t,e){const n=Fc(t);return n===e||!pr(n)||sd(n)?!1:oo(n).position==="fixed"||Tz(n,e)}function lne(t,e){const n=e.get(t);if(n)return n;let r=Dc(t,[],!1).filter(o=>pr(o)&&cm(o)!=="body"),i=null;const a=oo(t).position==="fixed";let s=a?Fc(t):t;for(;pr(s)&&!sd(s);){const o=oo(s),c=jI(s);!c&&o.position==="fixed"&&(i=null),(a?!c&&!i:!c&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||d0(s)&&!c&&Tz(t,s))?r=r.filter(f=>f!==s):i=o,s=Fc(s)}return e.set(t,r),r}function cne(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?QE(e)?[]:lne(e,this._c):[].concat(n),r],o=s[0],c=s.reduce((d,f)=>{const p=CB(e,f,i);return d.top=Sa(p.top,d.top),d.right=Rs(p.right,d.right),d.bottom=Rs(p.bottom,d.bottom),d.left=Sa(p.left,d.left),d},CB(e,o,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function une(t){const{width:e,height:n}=Sz(t);return{width:e,height:n}}function dne(t,e,n){const r=Ds(e),i=zl(e),a=n==="fixed",s=qf(t,!0,a,e);let o={scrollLeft:0,scrollTop:0};const c=Fl(0);if(r||!r&&!a)if((cm(e)!=="body"||d0(i))&&(o=XE(e)),r){const m=qf(e,!0,a,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=VI(i));const d=i&&!r&&!a?yz(i,o):Fl(0),f=s.left+o.scrollLeft-c.x-d.x,p=s.top+o.scrollTop-c.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function MC(t){return oo(t).position==="static"}function OB(t,e){if(!Ds(t)||oo(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return zl(t)===n&&(n=n.ownerDocument.body),n}function xz(t,e){const n=as(t);if(QE(t))return n;if(!Ds(t)){let i=Fc(t);for(;i&&!sd(i);){if(pr(i)&&!MC(i))return i;i=Fc(i)}return n}let r=OB(t,e);for(;r&&Nte(r)&&MC(r);)r=OB(r,e);return r&&sd(r)&&MC(r)&&!jI(r)?n:r||Ate(t)||n}const fne=async function(t){const e=this.getOffsetParent||xz,n=this.getDimensions,r=await n(t.floating);return{reference:dne(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hne(t){return oo(t).direction==="rtl"}const pne={convertOffsetParentRelativeRectToViewportRelativeRect:rne,getDocumentElement:zl,getClippingRect:cne,getOffsetParent:xz,getElementRects:fne,getClientRects:ine,getDimensions:une,getScale:rp,isElement:pr,isRTL:hne};function mne(t,e){let n=null,r;const i=zl(t);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),a();const{left:d,top:f,width:p,height:m}=t.getBoundingClientRect();if(o||e(),!p||!m)return;const g=ev(f),b=ev(i.clientWidth-(d+p)),S=ev(i.clientHeight-(f+m)),y=ev(d),x={rootMargin:-g+"px "+-b+"px "+-S+"px "+-y+"px",threshold:Sa(0,Rs(1,c))||1};let C=!0;function R(T){const N=T[0].intersectionRatio;if(N!==c){if(!C)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(R,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(R,x)}n.observe(t)}return s(!0),a}function gne(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=HI(t),f=i||a?[...d?Dc(d):[],...Dc(e)]:[];f.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),a&&E.addEventListener("resize",n)});const p=d&&o?mne(d,n):null;let m=-1,g=null;s&&(g=new ResizeObserver(E=>{let[x]=E;x&&x.target===d&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(e)})),n()}),d&&!c&&g.observe(d),g.observe(e));let b,S=c?qf(t):null;c&&y();function y(){const E=qf(t);S&&(E.x!==S.x||E.y!==S.y||E.width!==S.width||E.height!==S.height)&&n(),S=E,b=requestAnimationFrame(y)}return n(),()=>{var E;f.forEach(x=>{i&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),p==null||p(),(E=g)==null||E.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Cz=Xte,Oz=Zte,Rz=Vte,_ne=ene,RB=Hte,bne=Qte,vne=Jte,Nz=(t,e,n)=>{const r=new Map,i={platform:pne,...n},a={...i.platform,_c:r};return Yte(t,e,{...i,platform:a})};var Hv=typeof document<"u"?I.useLayoutEffect:I.useEffect;function IS(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!IS(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&t.$$typeof)&&!IS(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Az(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function NB(t,e){const n=Az(t);return Math.round(e*n)/n}function LC(t){const e=I.useRef(t);return Hv(()=>{e.current=t}),e}function Sne(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:c,open:d}=t,[f,p]=I.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,g]=I.useState(r);IS(m,r)||g(r);const[b,S]=I.useState(null),[y,E]=I.useState(null),x=I.useCallback(z=>{z!==N.current&&(N.current=z,S(z))},[]),C=I.useCallback(z=>{z!==w.current&&(w.current=z,E(z))},[]),R=a||b,T=s||y,N=I.useRef(null),w=I.useRef(null),D=I.useRef(f),L=c!=null,k=LC(c),M=LC(i),P=LC(d),V=I.useCallback(()=>{if(!N.current||!w.current)return;const z={placement:e,strategy:n,middleware:m};M.current&&(z.platform=M.current),Nz(N.current,w.current,z).then(H=>{const U={...H,isPositioned:P.current!==!1};Y.current&&!IS(D.current,U)&&(D.current=U,zE.flushSync(()=>{p(U)}))})},[m,e,n,M,P]);Hv(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(z=>({...z,isPositioned:!1})))},[d]);const Y=I.useRef(!1);Hv(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Hv(()=>{if(R&&(N.current=R),T&&(w.current=T),R&&T){if(k.current)return k.current(R,T,V);V()}},[R,T,V,k,L]);const G=I.useMemo(()=>({reference:N,floating:w,setReference:x,setFloating:C}),[x,C]),F=I.useMemo(()=>({reference:R,floating:T}),[R,T]),q=I.useMemo(()=>{const z={position:n,left:0,top:0};if(!F.floating)return z;const H=NB(F.floating,f.x),U=NB(F.floating,f.y);return o?{...z,transform:"translate("+H+"px, "+U+"px)",...Az(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,o,F.floating,f.x,f.y]);return I.useMemo(()=>({...f,update:V,refs:G,elements:F,floatingStyles:q}),[f,V,G,F,q])}const Ene=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?RB({element:r.current,padding:i}).fn(n):{}:r?RB({element:r,padding:i}).fn(n):{}}}},wz=(t,e)=>({...Cz(t),options:[t,e]}),WI=(t,e)=>({...Oz(t),options:[t,e]}),AB=(t,e)=>({...vne(t),options:[t,e]}),MS=(t,e)=>({...Rz(t),options:[t,e]}),yne=(t,e)=>({..._ne(t),options:[t,e]}),o_=(t,e)=>({...bne(t),options:[t,e]}),Dz=(t,e)=>({...Ene(t),options:[t,e]}),Iz={...TZ},Tne=Iz.useInsertionEffect,xne=Tne||(t=>t());function Rc(t){const e=I.useRef(()=>{});return xne(()=>{e.current=t}),I.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}var Ul=typeof document<"u"?I.useLayoutEffect:I.useEffect;let wB=!1,Cne=0;const DB=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Cne++;function One(){const[t,e]=I.useState(()=>wB?DB():void 0);return Ul(()=>{t==null&&e(DB())},[]),I.useEffect(()=>{wB=!0},[]),t}const Rne=Iz.useId,Mz=Rne||One;function Nne(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(i=>i!==n))||[])}}}const Ane=I.createContext(null),wne=I.createContext(null),QI=()=>{var t;return((t=I.useContext(Ane))==null?void 0:t.id)||null},KI=()=>I.useContext(wne);function XI(t){return"data-floating-ui-"+t}function kC(t){const e=I.useRef(t);return Ul(()=>{e.current=t}),e}const IB=XI("safe-polygon");function Vv(t,e,n){return n&&!hw(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function Dne(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:s}=t,{enabled:o=!0,delay:c=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:m=!0}=e,g=KI(),b=QI(),S=kC(d),y=kC(c),E=kC(n),x=I.useRef(),C=I.useRef(-1),R=I.useRef(),T=I.useRef(-1),N=I.useRef(!0),w=I.useRef(!1),D=I.useRef(()=>{}),L=I.useRef(!1),k=I.useCallback(()=>{var q;const z=(q=i.current.openEvent)==null?void 0:q.type;return(z==null?void 0:z.includes("mouse"))&&z!=="mousedown"},[i]);I.useEffect(()=>{if(!o)return;function q(z){let{open:H}=z;H||(clearTimeout(C.current),clearTimeout(T.current),N.current=!0,L.current=!1)}return a.on("openchange",q),()=>{a.off("openchange",q)}},[o,a]),I.useEffect(()=>{if(!o||!S.current||!n)return;function q(H){k()&&r(!1,H,"hover")}const z=bf(s.floating).documentElement;return z.addEventListener("mouseleave",q),()=>{z.removeEventListener("mouseleave",q)}},[s.floating,n,r,o,S,k]);const M=I.useCallback(function(q,z,H){z===void 0&&(z=!0),H===void 0&&(H="hover");const U=Vv(y.current,"close",x.current);U&&!R.current?(clearTimeout(C.current),C.current=window.setTimeout(()=>r(!1,q,H),U)):z&&(clearTimeout(C.current),r(!1,q,H))},[y,r]),P=Rc(()=>{D.current(),R.current=void 0}),V=Rc(()=>{if(w.current){const q=bf(s.floating).body;q.style.pointerEvents="",q.removeAttribute(IB),w.current=!1}}),Y=Rc(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);I.useEffect(()=>{if(!o)return;function q(Q){if(clearTimeout(C.current),N.current=!1,f&&!hw(x.current)||p>0&&!Vv(y.current,"open"))return;const X=Vv(y.current,"open",x.current);X?C.current=window.setTimeout(()=>{E.current||r(!0,Q,"hover")},X):n||r(!0,Q,"hover")}function z(Q){if(Y())return;D.current();const X=bf(s.floating);if(clearTimeout(T.current),L.current=!1,S.current&&i.current.floatingContext){n||clearTimeout(C.current),R.current=S.current({...i.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){V(),P(),Y()||M(Q,!0,"safe-polygon")}});const ie=R.current;X.addEventListener("mousemove",ie),D.current=()=>{X.removeEventListener("mousemove",ie)};return}(x.current==="touch"?!S_(s.floating,Q.relatedTarget):!0)&&M(Q)}function H(Q){Y()||i.current.floatingContext&&(S.current==null||S.current({...i.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){V(),P(),Y()||M(Q)}})(Q))}if(pr(s.domReference)){var U;const Q=s.domReference;return n&&Q.addEventListener("mouseleave",H),(U=s.floating)==null||U.addEventListener("mouseleave",H),m&&Q.addEventListener("mousemove",q,{once:!0}),Q.addEventListener("mouseenter",q),Q.addEventListener("mouseleave",z),()=>{var X;n&&Q.removeEventListener("mouseleave",H),(X=s.floating)==null||X.removeEventListener("mouseleave",H),m&&Q.removeEventListener("mousemove",q),Q.removeEventListener("mouseenter",q),Q.removeEventListener("mouseleave",z)}}},[s,o,t,f,p,m,M,P,V,r,n,E,g,y,S,i,Y]),Ul(()=>{var q;if(o&&n&&(q=S.current)!=null&&q.__options.blockPointerEvents&&k()){w.current=!0;const H=s.floating;if(pr(s.domReference)&&H){var z;const U=bf(s.floating).body;U.setAttribute(IB,"");const Q=s.domReference,X=g==null||(z=g.nodesRef.current.find(te=>te.id===b))==null||(z=z.context)==null?void 0:z.elements.floating;return X&&(X.style.pointerEvents=""),U.style.pointerEvents="none",Q.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{U.style.pointerEvents="",Q.style.pointerEvents="",H.style.pointerEvents=""}}}},[o,n,b,s,g,S,k]),Ul(()=>{n||(x.current=void 0,L.current=!1,P(),V())},[n,P,V]),I.useEffect(()=>()=>{P(),clearTimeout(C.current),clearTimeout(T.current),V()},[o,s.domReference,P,V]);const G=I.useMemo(()=>{function q(z){x.current=z.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(z){const{nativeEvent:H}=z;function U(){!N.current&&!E.current&&r(!0,H,"hover")}f&&!hw(x.current)||n||p===0||L.current&&z.movementX**2+z.movementY**2<2||(clearTimeout(T.current),x.current==="touch"?U():(L.current=!0,T.current=window.setTimeout(U,p)))}}},[f,r,n,E,p]),F=I.useMemo(()=>({onMouseEnter(){clearTimeout(C.current)},onMouseLeave(q){Y()||M(q.nativeEvent,!1)}}),[M,Y]);return I.useMemo(()=>o?{reference:G,floating:F}:{},[o,G,F])}const gw=()=>{},Lz=I.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:gw,setState:gw,isInstantPhase:!1}),kz=()=>I.useContext(Lz);function Ine(t){const{children:e,delay:n,timeoutMs:r=0}=t,[i,a]=I.useReducer((c,d)=>({...c,...d}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=I.useRef(null),o=I.useCallback(c=>{a({currentId:c})},[]);return Ul(()=>{i.currentId?s.current===null?s.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),I.createElement(Lz.Provider,{value:I.useMemo(()=>({...i,setState:a,setCurrentId:o}),[i,o])},e)}function Mne(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,floatingId:i}=t,{id:a,enabled:s=!0}=e,o=a??i,c=kz(),{currentId:d,setCurrentId:f,initialDelay:p,setState:m,timeoutMs:g}=c;return Ul(()=>{s&&d&&(m({delay:{open:1,close:Vv(p,"close")}}),d!==o&&r(!1))},[s,o,r,m,d,p]),Ul(()=>{function b(){r(!1),m({delay:p,currentId:null})}if(s&&d&&!n&&d===o){if(g){const S=window.setTimeout(b,g);return()=>{clearTimeout(S)}}b()}},[s,n,m,d,o,r,p,g]),Ul(()=>{s&&(f===gw||!n||f(o))},[s,n,f,o]),c}function PC(t,e){let n=t.filter(i=>{var a;return i.parentId===e&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(i=>{var a;return(a=r)==null?void 0:a.some(s=>{var o;return i.parentId===s.id&&((o=i.context)==null?void 0:o.open)})}),n=n.concat(r);return n}const Lne="data-floating-ui-focusable",kne={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Pne={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},MB=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function Bne(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=t,{enabled:s=!0,escapeKey:o=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:b}=e,S=KI(),y=Rc(typeof c=="function"?c:()=>!1),E=typeof c=="function"?y:c,x=I.useRef(!1),C=I.useRef(!1),{escapeKey:R,outsidePress:T}=MB(g),{escapeKey:N,outsidePress:w}=MB(b),D=I.useRef(!1),L=Rc(G=>{var F;if(!n||!s||!o||G.key!=="Escape"||D.current)return;const q=(F=a.current.floatingContext)==null?void 0:F.nodeId,z=S?PC(S.nodesRef.current,q):[];if(!R&&(G.stopPropagation(),z.length>0)){let H=!0;if(z.forEach(U=>{var Q;if((Q=U.context)!=null&&Q.open&&!U.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,Lte(G)?G.nativeEvent:G,"escape-key")}),k=Rc(G=>{var F;const q=()=>{var z;L(G),(z=Yh(G))==null||z.removeEventListener("keydown",q)};(F=Yh(G))==null||F.addEventListener("keydown",q)}),M=Rc(G=>{var F;const q=x.current;x.current=!1;const z=C.current;if(C.current=!1,d==="click"&&z||q||typeof E=="function"&&!E(G))return;const H=Yh(G),U="["+XI("inert")+"]",Q=bf(i.floating).querySelectorAll(U);let X=pr(H)?H:null;for(;X&&!sd(X);){const Ce=Fc(X);if(sd(Ce)||!pr(Ce))break;X=Ce}if(Q.length&&pr(H)&&!kte(H)&&!S_(H,i.floating)&&Array.from(Q).every(Ce=>!S_(X,Ce)))return;if(Ds(H)&&Y){const Ce=H.clientWidth>0&&H.scrollWidth>H.clientWidth,Re=H.clientHeight>0&&H.scrollHeight>H.clientHeight;let _e=Re&&G.offsetX>H.clientWidth;if(Re&&oo(H).direction==="rtl"&&(_e=G.offsetX<=H.offsetWidth-H.clientWidth),_e||Ce&&G.offsetY>H.clientHeight)return}const te=(F=a.current.floatingContext)==null?void 0:F.nodeId,ie=S&&PC(S.nodesRef.current,te).some(Ce=>{var Re;return IC(G,(Re=Ce.context)==null?void 0:Re.elements.floating)});if(IC(G,i.floating)||IC(G,i.domReference)||ie)return;const fe=S?PC(S.nodesRef.current,te):[];if(fe.length>0){let Ce=!0;if(fe.forEach(Re=>{var _e;if((_e=Re.context)!=null&&_e.open&&!Re.context.dataRef.current.__outsidePressBubbles){Ce=!1;return}}),!Ce)return}r(!1,G,"outside-press")}),P=Rc(G=>{var F;const q=()=>{var z;M(G),(z=Yh(G))==null||z.removeEventListener(d,q)};(F=Yh(G))==null||F.addEventListener(d,q)});I.useEffect(()=>{if(!n||!s)return;a.current.__escapeKeyBubbles=R,a.current.__outsidePressBubbles=T;let G=-1;function F(Q){r(!1,Q,"ancestor-scroll")}function q(){window.clearTimeout(G),D.current=!0}function z(){G=window.setTimeout(()=>{D.current=!1},KE()?5:0)}const H=bf(i.floating);o&&(H.addEventListener("keydown",N?k:L,N),H.addEventListener("compositionstart",q),H.addEventListener("compositionend",z)),E&&H.addEventListener(d,w?P:M,w);let U=[];return m&&(pr(i.domReference)&&(U=Dc(i.domReference)),pr(i.floating)&&(U=U.concat(Dc(i.floating))),!pr(i.reference)&&i.reference&&i.reference.contextElement&&(U=U.concat(Dc(i.reference.contextElement)))),U=U.filter(Q=>{var X;return Q!==((X=H.defaultView)==null?void 0:X.visualViewport)}),U.forEach(Q=>{Q.addEventListener("scroll",F,{passive:!0})}),()=>{o&&(H.removeEventListener("keydown",N?k:L,N),H.removeEventListener("compositionstart",q),H.removeEventListener("compositionend",z)),E&&H.removeEventListener(d,w?P:M,w),U.forEach(Q=>{Q.removeEventListener("scroll",F)}),window.clearTimeout(G)}},[a,i,o,E,d,n,r,m,s,R,T,L,N,k,M,w,P]),I.useEffect(()=>{x.current=!1},[E,d]);const V=I.useMemo(()=>({onKeyDown:L,[kne[p]]:G=>{f&&r(!1,G.nativeEvent,"reference-press")}}),[L,r,f,p]),Y=I.useMemo(()=>({onKeyDown:L,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Pne[d]]:()=>{x.current=!0}}),[L,d]);return I.useMemo(()=>s?{reference:V,floating:Y}:{},[s,V,Y])}function Fne(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Mz(),a=I.useRef({}),[s]=I.useState(()=>Nne()),o=QI()!=null,[c,d]=I.useState(r.reference),f=Rc((g,b,S)=>{a.current.openEvent=g?b:void 0,s.emit("openchange",{open:g,event:b,reason:S,nested:o}),n==null||n(g,b,S)}),p=I.useMemo(()=>({setPositionReference:d}),[]),m=I.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return I.useMemo(()=>({dataRef:a,open:e,onOpenChange:f,elements:m,events:s,floatingId:i,refs:p}),[e,f,m,s,i,p])}function ZI(t){t===void 0&&(t={});const{nodeId:e}=t,n=Fne({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[a,s]=I.useState(null),[o,c]=I.useState(null),f=(i==null?void 0:i.domReference)||a,p=I.useRef(null),m=KI();Ul(()=>{f&&(p.current=f)},[f]);const g=Sne({...t,elements:{...i,...o&&{reference:o}}}),b=I.useCallback(C=>{const R=pr(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;c(R),g.refs.setReference(R)},[g.refs]),S=I.useCallback(C=>{(pr(C)||C===null)&&(p.current=C,s(C)),(pr(g.refs.reference.current)||g.refs.reference.current===null||C!==null&&!pr(C))&&g.refs.setReference(C)},[g.refs]),y=I.useMemo(()=>({...g.refs,setReference:S,setPositionReference:b,domReference:p}),[g.refs,S,b]),E=I.useMemo(()=>({...g.elements,domReference:f}),[g.elements,f]),x=I.useMemo(()=>({...g,...r,refs:y,elements:E,nodeId:e}),[g,y,E,e,r]);return Ul(()=>{r.dataRef.current.floatingContext=x;const C=m==null?void 0:m.nodesRef.current.find(R=>R.id===e);C&&(C.context=x)}),I.useMemo(()=>({...g,context:x,refs:y,elements:E}),[g,y,E,x])}function Une(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:s}=t,{enabled:o=!0,visibleOnly:c=!0}=e,d=I.useRef(!1),f=I.useRef(),p=I.useRef(!0);I.useEffect(()=>{if(!o)return;const g=as(s.domReference);function b(){!n&&Ds(s.domReference)&&s.domReference===yB(bf(s.domReference))&&(d.current=!0)}function S(){p.current=!0}return g.addEventListener("blur",b),g.addEventListener("keydown",S,!0),()=>{g.removeEventListener("blur",b),g.removeEventListener("keydown",S,!0)}},[s.domReference,n,o]),I.useEffect(()=>{if(!o)return;function g(b){let{reason:S}=b;(S==="reference-press"||S==="escape-key")&&(d.current=!0)}return i.on("openchange",g),()=>{i.off("openchange",g)}},[i,o]),I.useEffect(()=>()=>{clearTimeout(f.current)},[]);const m=I.useMemo(()=>({onPointerDown(g){wte(g.nativeEvent)||(p.current=!1)},onMouseLeave(){d.current=!1},onFocus(g){if(d.current)return;const b=Yh(g.nativeEvent);if(c&&pr(b))try{if(Dte()&&Ite())throw Error();if(!b.matches(":focus-visible"))return}catch{if(!p.current&&!Bte(b))return}r(!0,g.nativeEvent,"focus")},onBlur(g){d.current=!1;const b=g.relatedTarget,S=g.nativeEvent,y=pr(b)&&b.hasAttribute(XI("focus-guard"))&&b.getAttribute("data-type")==="outside";f.current=window.setTimeout(()=>{var E;const x=yB(s.domReference?s.domReference.ownerDocument:document);!b&&x===s.domReference||S_((E=a.current.floatingContext)==null?void 0:E.refs.floating.current,x)||S_(s.domReference,x)||y||r(!1,S,"focus")})}}),[a,s.domReference,r,c]);return I.useMemo(()=>o?{reference:m}:{},[o,m])}const LB="active",kB="selected";function BC(t,e,n){const r=new Map,i=n==="item";let a=t;if(i&&t){const{[LB]:s,[kB]:o,...c}=t;a=c}return{...n==="floating"&&{tabIndex:-1,[Lne]:""},...a,...e.map(s=>{const o=s?s[n]:null;return typeof o=="function"?t?o(t):null:o}).concat(t).reduce((s,o)=>(o&&Object.entries(o).forEach(c=>{let[d,f]=c;if(!(i&&[LB,kB].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof f=="function"){var p;(p=r.get(d))==null||p.push(f),s[d]=function(){for(var m,g=arguments.length,b=new Array(g),S=0;S<g;S++)b[S]=arguments[S];return(m=r.get(d))==null?void 0:m.map(y=>y(...b)).find(y=>y!==void 0)}}}else s[d]=f}),s),{})}}function jne(t){t===void 0&&(t=[]);const e=t.map(o=>o==null?void 0:o.reference),n=t.map(o=>o==null?void 0:o.floating),r=t.map(o=>o==null?void 0:o.item),i=I.useCallback(o=>BC(o,t,"reference"),e),a=I.useCallback(o=>BC(o,t,"floating"),n),s=I.useCallback(o=>BC(o,t,"item"),r);return I.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const Gne=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function qne(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:i}=t,{enabled:a=!0,role:s="dialog"}=e,o=(n=Gne.get(s))!=null?n:s,c=Mz(),f=QI()!=null,p=I.useMemo(()=>o==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:c},...o==="menu"&&f&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[o,i,f,r,c,s]),m=I.useMemo(()=>{const b={id:i,...o&&{role:o}};return o==="tooltip"||s==="label"?b:{...b,...o==="menu"&&{"aria-labelledby":c}}},[o,i,c,s]),g=I.useCallback(b=>{let{active:S,selected:y}=b;const E={role:"option",...S&&{id:i+"-option"}};switch(s){case"select":return{...E,"aria-selected":S&&y};case"combobox":return{...E,...S&&{"aria-selected":!0}}}return{}},[i,s]);return I.useMemo(()=>a?{reference:p,floating:m,item:g}:{},[a,p,m,g])}function Pz(t,e){if(t==="rtl"&&(e.includes("right")||e.includes("left"))){const[n,r]=e.split("-"),i=n==="right"?"left":"right";return r===void 0?i:`${i}-${r}`}return e}function PB(t,e,n,r){return t==="center"||r==="center"?{top:e}:t==="end"?{bottom:n}:t==="start"?{top:n}:{}}function BB(t,e,n,r,i){return t==="center"||r==="center"?{left:e}:t==="end"?{[i==="ltr"?"right":"left"]:n}:t==="start"?{[i==="ltr"?"left":"right"]:n}:{}}const $ne={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function zne({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:s,dir:o}){const[c,d="center"]=t.split("-"),f={width:e,height:e,transform:"rotate(45deg)",position:"absolute",[$ne[c]]:r},p=-e/2;return c==="left"?{...f,...PB(d,s,n,i),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...f,...PB(d,s,n,i),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...f,...BB(d,a,n,i,o),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...f,...BB(d,a,n,i,o),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const JI=I.forwardRef(({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:s,arrowY:o,style:c,...d},f)=>{const{dir:p}=lm();return a?l.jsx("div",{...d,ref:f,style:{...c,...zne({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:p,arrowX:s,arrowY:o})}}):null});JI.displayName="@mantine/core/FloatingArrow";const[Yne,Bz]=xa("Popover component was not found in the tree");function ZE({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const i=LJ(e),a=Xr(i,r);return Sd(t)?I.cloneElement(t,{[n]:a}):t}function Fz(t){return l.jsx(UI,{tabIndex:-1,"data-autofocus":!0,...t})}ZE.displayName="@mantine/core/FocusTrap";Fz.displayName="@mantine/core/FocusTrapInitialFocus";ZE.InitialFocus=Fz;function Hne(t){const e=document.createElement("div");return e.setAttribute("data-portal","true"),typeof t.className=="string"&&e.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(e.style,t.style),typeof t.id=="string"&&e.setAttribute("id",t.id),e}const Vne={},Uz=I.forwardRef((t,e)=>{const{children:n,target:r,...i}=Ee("Portal",Vne,t),[a,s]=I.useState(!1),o=I.useRef(null);return sm(()=>(s(!0),o.current=r?typeof r=="string"?document.querySelector(r):r:Hne(i),NS(e,o.current),!r&&o.current&&document.body.appendChild(o.current),()=>{!r&&o.current&&document.body.removeChild(o.current)}),[r]),!a||!o.current?null:zE.createPortal(l.jsx(l.Fragment,{children:n}),o.current)});Uz.displayName="@mantine/core/Portal";function dm({withinPortal:t=!0,children:e,...n}){return t?l.jsx(Uz,{...n,children:e}):l.jsx(l.Fragment,{children:e})}dm.displayName="@mantine/core/OptionalPortal";const Rg=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),tv={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Rg("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Rg("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Rg("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Rg("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Rg("top"),common:{transformOrigin:"top right"}}},FB={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Wne({transition:t,state:e,duration:n,timingFunction:r}){const i={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in tv?{transitionProperty:tv[t].transitionProperty,...i,...tv[t].common,...tv[t][FB[e]]}:{}:{transitionProperty:t.transitionProperty,...i,...t.common,...t[FB[e]]}}function Qne({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:s,onExited:o,enterDelay:c,exitDelay:d}){const f=Ui(),p=UE(),m=f.respectReducedMotion?p:!1,[g,b]=I.useState(m?0:t),[S,y]=I.useState(r?"entered":"exited"),E=I.useRef(-1),x=I.useRef(-1),C=I.useRef(-1),R=N=>{const w=N?i:a,D=N?s:o;window.clearTimeout(E.current);const L=m?0:N?t:e;b(L),L===0?(typeof w=="function"&&w(),typeof D=="function"&&D(),y(N?"entered":"exited")):C.current=requestAnimationFrame(()=>{Yg.flushSync(()=>{y(N?"pre-entering":"pre-exiting")}),C.current=requestAnimationFrame(()=>{typeof w=="function"&&w(),y(N?"entering":"exiting"),E.current=window.setTimeout(()=>{typeof D=="function"&&D(),y(N?"entered":"exited")},L)})})},T=N=>{if(window.clearTimeout(x.current),typeof(N?c:d)!="number"){R(N);return}x.current=window.setTimeout(()=>{R(N)},N?c:d)};return so(()=>{T(r)},[r]),I.useEffect(()=>()=>{window.clearTimeout(E.current),cancelAnimationFrame(C.current)},[]),{transitionDuration:g,transitionStatus:S,transitionTimingFunction:n||"ease"}}function xd({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:i,children:a,timingFunction:s="ease",onExit:o,onEntered:c,onEnter:d,onExited:f,enterDelay:p,exitDelay:m}){const{transitionDuration:g,transitionStatus:b,transitionTimingFunction:S}=Qne({mounted:i,exitDuration:r,duration:n,timingFunction:s,onExit:o,onEntered:c,onEnter:d,onExited:f,enterDelay:p,exitDelay:m});return g===0?i?l.jsx(l.Fragment,{children:a({})}):t?a({display:"none"}):null:b==="exited"?t?a({display:"none"}):null:l.jsx(l.Fragment,{children:a(Wne({transition:e,duration:g,state:b,timingFunction:S}))})}xd.displayName="@mantine/core/Transition";var jz={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const Kne={},eM=Le((t,e)=>{var y,E,x,C;const n=Ee("PopoverDropdown",Kne,t),{className:r,style:i,vars:a,children:s,onKeyDownCapture:o,variant:c,classNames:d,styles:f,...p}=n,m=Bz(),g=B5({opened:m.opened,shouldReturnFocus:m.returnFocus}),b=m.withRoles?{"aria-labelledby":m.getTargetId(),id:m.getDropdownId(),role:"dialog",tabIndex:-1}:{},S=Xr(e,m.floating);return m.disabled?null:l.jsx(dm,{...m.portalProps,withinPortal:m.withinPortal,children:l.jsx(xd,{mounted:m.opened,...m.transitionProps,transition:((y=m.transitionProps)==null?void 0:y.transition)||"fade",duration:((E=m.transitionProps)==null?void 0:E.duration)??150,keepMounted:m.keepMounted,exitDuration:typeof((x=m.transitionProps)==null?void 0:x.exitDuration)=="number"?m.transitionProps.exitDuration:(C=m.transitionProps)==null?void 0:C.duration,children:R=>l.jsx(ZE,{active:m.trapFocus&&m.opened,innerRef:S,children:l.jsxs(Se,{...b,...p,variant:c,onKeyDownCapture:EJ(m.onClose,{active:m.closeOnEscape,onTrigger:g,onKeyDown:o}),"data-position":m.placement,"data-fixed":m.floatingStrategy==="fixed"||void 0,...m.getStyles("dropdown",{className:r,props:n,classNames:d,styles:f,style:[{...R,zIndex:m.zIndex,top:m.y??0,left:m.x??0,width:m.width==="target"?void 0:me(m.width)},m.resolvedStyles.dropdown,f==null?void 0:f.dropdown,i]}),children:[s,l.jsx(JI,{ref:m.arrowRef,arrowX:m.arrowX,arrowY:m.arrowY,visible:m.withArrow,position:m.placement,arrowSize:m.arrowSize,arrowRadius:m.arrowRadius,arrowOffset:m.arrowOffset,arrowPosition:m.arrowPosition,...m.getStyles("arrow",{props:n,classNames:d,styles:f})})]})})})})});eM.classes=jz;eM.displayName="@mantine/core/PopoverDropdown";const Xne={refProp:"ref",popupType:"dialog"},Gz=Le((t,e)=>{const{children:n,refProp:r,popupType:i,...a}=Ee("PopoverTarget",Xne,t);if(!Sd(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=a,o=Bz(),c=Xr(o.reference,jE(n),e),d=o.withRoles?{"aria-haspopup":i,"aria-expanded":o.opened,"aria-controls":o.getDropdownId(),id:o.getTargetId()}:{};return I.cloneElement(n,{...s,...d,...o.targetProps,className:Tr(o.targetProps.className,s.className,n.props.className),[r]:c,...o.controlled?null:{onClick:o.onToggle}})});Gz.displayName="@mantine/core/PopoverTarget";function qz({opened:t,floating:e,position:n,positionDependencies:r}){const[i,a]=I.useState(0);I.useEffect(()=>{if(e.refs.reference.current&&e.refs.floating.current&&t)return gne(e.refs.reference.current,e.refs.floating.current,e.update)},[e.refs.reference.current,e.refs.floating.current,t,i,n]),so(()=>{e.update()},r),so(()=>{a(s=>s+1)},[t])}function Zne(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function Jne(t,e){const n=Zne(t.middlewares),r=[wz(t.offset)];return n.shift&&r.push(WI(typeof n.shift=="boolean"?{limiter:AB(),padding:5}:{limiter:AB(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?MS():MS(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?o_():o_(n.inline)),r.push(Dz({element:t.arrowRef,padding:t.arrowOffset})),(n.size||t.width==="target")&&r.push(yne({...typeof n.size=="boolean"?{}:n.size,apply({rects:i,availableWidth:a,availableHeight:s,...o}){var f;const d=((f=e().refs.floating.current)==null?void 0:f.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:i,availableWidth:a,availableHeight:s,...o}):Object.assign(d,{maxWidth:`${a}px`,maxHeight:`${s}px`})),t.width==="target"&&Object.assign(d,{width:`${i.reference.width}px`})}})),r}function ere(t){const[e,n]=ra({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),r=I.useRef(e),i=()=>{e&&n(!1)},a=()=>n(!e),s=ZI({strategy:t.strategy,placement:t.position,middleware:Jne(t,()=>s)});return qz({opened:e,position:t.position,positionDependencies:t.positionDependencies||[],floating:s}),so(()=>{var o;(o=t.onPositionChange)==null||o.call(t,s.placement)},[s.placement]),so(()=>{var o,c;e!==r.current&&(e?(c=t.onOpen)==null||c.call(t):(o=t.onClose)==null||o.call(t)),r.current=e},[e,t.onClose,t.onOpen]),{floating:s,controlled:typeof t.opened=="boolean",opened:e,onClose:i,onToggle:a}}const tre={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:co("popover"),__staticSelector:"Popover",width:"max-content"},nre=(t,{radius:e,shadow:n})=>({dropdown:{"--popover-radius":e===void 0?void 0:Pn(e),"--popover-shadow":xI(n)}});function li(t){var Ye,ve,Ue,Ke,yt,Ut;const e=Ee("Popover",tre,t),{children:n,position:r,offset:i,onPositionChange:a,positionDependencies:s,opened:o,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:f,width:p,middlewares:m,withArrow:g,arrowSize:b,arrowOffset:S,arrowRadius:y,arrowPosition:E,unstyled:x,classNames:C,styles:R,closeOnClickOutside:T,withinPortal:N,portalProps:w,closeOnEscape:D,clickOutsideEvents:L,trapFocus:k,onClose:M,onOpen:P,onChange:V,zIndex:Y,radius:G,shadow:F,id:q,defaultOpened:z,__staticSelector:H,withRoles:U,disabled:Q,returnFocus:X,variant:te,keepMounted:ie,vars:fe,floatingStrategy:Ce,...Re}=e,_e=ct({name:H,props:e,classes:jz,classNames:C,styles:R,unstyled:x,rootSelector:"dropdown",vars:fe,varsResolver:nre}),{resolvedStyles:Ie}=rl({classNames:C,styles:R,props:e}),Oe=I.useRef(null),[se,xe]=I.useState(null),[ce,je]=I.useState(null),{dir:rt}=lm(),_t=$a(q),Te=ere({middlewares:m,width:p,position:Pz(rt,r),offset:typeof i=="number"?i+(g?b/2:0):i,arrowRef:Oe,arrowOffset:S,onPositionChange:a,positionDependencies:s,opened:o,defaultOpened:z,onChange:V,onOpen:P,onClose:M,strategy:Ce});CJ(()=>T&&Te.onClose(),L,[se,ce]);const Ne=I.useCallback(Nt=>{xe(Nt),Te.floating.refs.setReference(Nt)},[Te.floating.refs.setReference]),at=I.useCallback(Nt=>{je(Nt),Te.floating.refs.setFloating(Nt)},[Te.floating.refs.setFloating]),ze=I.useCallback(()=>{var Nt;(Nt=c==null?void 0:c.onExited)==null||Nt.call(c),d==null||d()},[c==null?void 0:c.onExited,d]),Ze=I.useCallback(()=>{var Nt;(Nt=c==null?void 0:c.onEntered)==null||Nt.call(c),f==null||f()},[c==null?void 0:c.onEntered,f]);return l.jsx(Yne,{value:{returnFocus:X,disabled:Q,controlled:Te.controlled,reference:Ne,floating:at,x:Te.floating.x,y:Te.floating.y,arrowX:(Ue=(ve=(Ye=Te.floating)==null?void 0:Ye.middlewareData)==null?void 0:ve.arrow)==null?void 0:Ue.x,arrowY:(Ut=(yt=(Ke=Te.floating)==null?void 0:Ke.middlewareData)==null?void 0:yt.arrow)==null?void 0:Ut.y,opened:Te.opened,arrowRef:Oe,transitionProps:{...c,onExited:ze,onEntered:Ze},width:p,withArrow:g,arrowSize:b,arrowOffset:S,arrowRadius:y,arrowPosition:E,placement:Te.floating.placement,trapFocus:k,withinPortal:N,portalProps:w,zIndex:Y,radius:G,shadow:F,closeOnEscape:D,onClose:Te.onClose,onToggle:Te.onToggle,getTargetId:()=>`${_t}-target`,getDropdownId:()=>`${_t}-dropdown`,withRoles:U,targetProps:Re,__staticSelector:H,classNames:C,styles:R,unstyled:x,variant:te,keepMounted:ie,getStyles:_e,resolvedStyles:Ie,floatingStrategy:Ce},children:n})}li.Target=Gz;li.Dropdown=eM;li.displayName="@mantine/core/Popover";li.extend=t=>t;var Ho={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const $z=I.forwardRef(({className:t,...e},n)=>l.jsxs(Se,{component:"span",className:Tr(Ho.barsLoader,t),...e,ref:n,children:[l.jsx("span",{className:Ho.bar}),l.jsx("span",{className:Ho.bar}),l.jsx("span",{className:Ho.bar})]}));$z.displayName="@mantine/core/Bars";const zz=I.forwardRef(({className:t,...e},n)=>l.jsxs(Se,{component:"span",className:Tr(Ho.dotsLoader,t),...e,ref:n,children:[l.jsx("span",{className:Ho.dot}),l.jsx("span",{className:Ho.dot}),l.jsx("span",{className:Ho.dot})]}));zz.displayName="@mantine/core/Dots";const Yz=I.forwardRef(({className:t,...e},n)=>l.jsx(Se,{component:"span",className:Tr(Ho.ovalLoader,t),...e,ref:n}));Yz.displayName="@mantine/core/Oval";const Hz={bars:$z,oval:Yz,dots:zz},rre={loaders:Hz,type:"oval"},ire=(t,{size:e,color:n})=>({root:{"--loader-size":kt(e,"loader-size"),"--loader-color":n?Jn(n,t):void 0}}),ql=Le((t,e)=>{const n=Ee("Loader",rre,t),{size:r,color:i,type:a,vars:s,className:o,style:c,classNames:d,styles:f,unstyled:p,loaders:m,variant:g,children:b,...S}=n,y=ct({name:"Loader",props:n,classes:Ho,className:o,style:c,classNames:d,styles:f,unstyled:p,vars:s,varsResolver:ire});return b?l.jsx(Se,{...y("root"),ref:e,...S,children:b}):l.jsx(Se,{...y("root"),ref:e,component:m[a],variant:g,size:r,...S})});ql.defaultLoaders=Hz;ql.classes=Ho;ql.displayName="@mantine/core/Loader";var fm={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const UB={orientation:"horizontal"},are=(t,{borderWidth:e})=>({group:{"--ai-border-width":me(e)}}),tM=Le((t,e)=>{const n=Ee("ActionIconGroup",UB,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,orientation:c,vars:d,borderWidth:f,variant:p,mod:m,...g}=Ee("ActionIconGroup",UB,t),b=ct({name:"ActionIconGroup",props:n,classes:fm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:d,varsResolver:are,rootSelector:"group"});return l.jsx(Se,{...b("group"),ref:e,variant:p,mod:[{"data-orientation":c},m],role:"group",...g})});tM.classes=fm;tM.displayName="@mantine/core/ActionIconGroup";const jB={},sre=(t,{radius:e,color:n,gradient:r,variant:i,autoContrast:a,size:s})=>{const o=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:a});return{groupSection:{"--section-height":kt(s,"section-height"),"--section-padding-x":kt(s,"section-padding-x"),"--section-fz":Ar(s),"--section-radius":e===void 0?void 0:Pn(e),"--section-bg":n||i?o.background:void 0,"--section-color":o.color,"--section-bd":n||i?o.border:void 0}}},nM=Le((t,e)=>{const n=Ee("ActionIconGroupSection",jB,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,variant:d,gradient:f,radius:p,autoContrast:m,...g}=Ee("ActionIconGroupSection",jB,t),b=ct({name:"ActionIconGroupSection",props:n,classes:fm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,varsResolver:sre,rootSelector:"groupSection"});return l.jsx(Se,{...b("groupSection"),ref:e,variant:d,...g})});nM.classes=fm;nM.displayName="@mantine/core/ActionIconGroupSection";const ore={},lre=(t,{size:e,radius:n,variant:r,gradient:i,color:a,autoContrast:s})=>{const o=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:i,variant:r||"filled",autoContrast:s});return{root:{"--ai-size":kt(e,"ai-size"),"--ai-radius":n===void 0?void 0:Pn(n),"--ai-bg":a||r?o.background:void 0,"--ai-hover":a||r?o.hover:void 0,"--ai-hover-color":a||r?o.hoverColor:void 0,"--ai-color":o.color,"--ai-bd":a||r?o.border:void 0}}},jr=Ca((t,e)=>{const n=Ee("ActionIcon",ore,t),{className:r,unstyled:i,variant:a,classNames:s,styles:o,style:c,loading:d,loaderProps:f,size:p,color:m,radius:g,__staticSelector:b,gradient:S,vars:y,children:E,disabled:x,"data-disabled":C,autoContrast:R,mod:T,...N}=n,w=ct({name:["ActionIcon",b],props:n,className:r,style:c,classes:fm,classNames:s,styles:o,unstyled:i,vars:y,varsResolver:lre});return l.jsxs(Si,{...w("root",{active:!x&&!d&&!C}),...N,unstyled:i,variant:a,size:p,disabled:x||d,ref:e,mod:[{loading:d,disabled:x||C},T],children:[l.jsx(xd,{mounted:!!d,transition:"slide-down",duration:150,children:D=>l.jsx(Se,{component:"span",...w("loader",{style:D}),"aria-hidden":!0,children:l.jsx(ql,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...f})})}),l.jsx(Se,{component:"span",mod:{loading:d},...w("icon"),children:E})]})});jr.classes=fm;jr.displayName="@mantine/core/ActionIcon";jr.Group=tM;jr.GroupSection=nM;const Vz=I.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:e,...n},r)=>l.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:t,height:t},ref:r,...n,children:l.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));Vz.displayName="@mantine/core/CloseIcon";var Wz={root:"m_86a44da5","root--subtle":"m_220c80f2"};const cre={variant:"subtle"},ure=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":kt(e,"cb-size"),"--cb-radius":n===void 0?void 0:Pn(n),"--cb-icon-size":me(r)}}),Yl=Ca((t,e)=>{const n=Ee("CloseButton",cre,t),{iconSize:r,children:i,vars:a,radius:s,className:o,classNames:c,style:d,styles:f,unstyled:p,"data-disabled":m,disabled:g,variant:b,icon:S,mod:y,...E}=n,x=ct({name:"CloseButton",props:n,className:o,style:d,classes:Wz,classNames:c,styles:f,unstyled:p,vars:a,varsResolver:ure});return l.jsxs(Si,{ref:e,...E,unstyled:p,variant:b,disabled:g,mod:[{disabled:g||m},y],...x("root",{variant:b,active:!g&&!m}),children:[S||l.jsx(Vz,{}),i]})});Yl.classes=Wz;Yl.displayName="@mantine/core/CloseButton";function dre(t){return I.Children.toArray(t).filter(Boolean)}var Qz={root:"m_4081bf90"};const fre={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},hre=(t,{grow:e,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:s},{childWidth:o})=>({root:{"--group-child-width":e&&n?o:void 0,"--group-gap":Gl(r),"--group-align":i,"--group-justify":a,"--group-wrap":s}}),mt=Le((t,e)=>{const n=Ee("Group",fre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,children:c,gap:d,align:f,justify:p,wrap:m,grow:g,preventGrowOverflow:b,vars:S,variant:y,__size:E,mod:x,...C}=n,R=dre(c),T=R.length,N=Gl(d??"md"),D={childWidth:`calc(${100/T}% - (${N} - ${N} / ${T}))`},L=ct({name:"Group",props:n,stylesCtx:D,className:i,style:a,classes:Qz,classNames:r,styles:s,unstyled:o,vars:S,varsResolver:hre});return l.jsx(Se,{...L("root"),ref:e,variant:y,mod:[{grow:g},x],size:E,...C,children:R})});mt.classes=Qz;mt.displayName="@mantine/core/Group";var Kz={root:"m_9814e45f"};const pre={zIndex:co("modal")},mre=(t,{gradient:e,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:s})=>({root:{"--overlay-bg":e||(n!==void 0||r!==void 0)&&xl(n||"#000",r??.6)||void 0,"--overlay-filter":i?`blur(${me(i)})`:void 0,"--overlay-radius":a===void 0?void 0:Pn(a),"--overlay-z-index":s==null?void 0:s.toString()}}),E_=Ca((t,e)=>{const n=Ee("Overlay",pre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,fixed:d,center:f,children:p,radius:m,zIndex:g,gradient:b,blur:S,color:y,backgroundOpacity:E,mod:x,...C}=n,R=ct({name:"Overlay",props:n,classes:Kz,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:mre});return l.jsx(Se,{ref:e,...R("root"),mod:[{center:f,fixed:d},x],...C,children:p})});E_.classes=Kz;E_.displayName="@mantine/core/Overlay";const[gre,Hc]=xa("ModalBase component was not found in tree");function _re({opened:t,transitionDuration:e}){const[n,r]=I.useState(t),i=I.useRef(-1),s=UE()?0:e;return I.useEffect(()=>(t?(r(!0),window.clearTimeout(i.current)):s===0?r(!1):i.current=window.setTimeout(()=>r(!1),s),()=>window.clearTimeout(i.current)),[t,s]),n}function bre({id:t,transitionProps:e,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:s}){const o=$a(t),[c,d]=I.useState(!1),[f,p]=I.useState(!1),m=typeof(e==null?void 0:e.duration)=="number"?e==null?void 0:e.duration:200,g=_re({opened:n,transitionDuration:m});return RS("keydown",b=>{var S;b.key==="Escape"&&i&&n&&((S=b.target)==null?void 0:S.getAttribute("data-mantine-stop-propagation"))!=="true"&&a()},{capture:!0}),B5({opened:n,shouldReturnFocus:r&&s}),{_id:o,titleMounted:c,bodyMounted:f,shouldLockScroll:g,setTitleMounted:d,setBodyMounted:p}}const Xz=I.forwardRef(({keepMounted:t,opened:e,onClose:n,id:r,transitionProps:i,onExitTransitionEnd:a,onEnterTransitionEnd:s,trapFocus:o,closeOnEscape:c,returnFocus:d,closeOnClickOutside:f,withinPortal:p,portalProps:m,lockScroll:g,children:b,zIndex:S,shadow:y,padding:E,__vars:x,unstyled:C,removeScrollProps:R,...T},N)=>{const{_id:w,titleMounted:D,bodyMounted:L,shouldLockScroll:k,setTitleMounted:M,setBodyMounted:P}=bre({id:r,transitionProps:i,opened:e,trapFocus:o,closeOnEscape:c,onClose:n,returnFocus:d}),{key:V,...Y}=R||{};return l.jsx(dm,{...m,withinPortal:p,children:l.jsx(gre,{value:{opened:e,onClose:n,closeOnClickOutside:f,onExitTransitionEnd:a,onEnterTransitionEnd:s,transitionProps:{...i,keepMounted:t},getTitleId:()=>`${w}-title`,getBodyId:()=>`${w}-body`,titleMounted:D,bodyMounted:L,setTitleMounted:M,setBodyMounted:P,trapFocus:o,closeOnEscape:c,zIndex:S,unstyled:C},children:l.jsx(Pp,{enabled:k&&g,...Y,children:l.jsx(Se,{ref:N,...T,__vars:{...x,"--mb-z-index":(S||co("modal")).toString(),"--mb-shadow":xI(y),"--mb-padding":Gl(E)},children:b})},V)})})});Xz.displayName="@mantine/core/ModalBase";function vre(){const t=Hc();return I.useEffect(()=>(t.setBodyMounted(!0),()=>t.setBodyMounted(!1)),[]),t.getBodyId()}var Up={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const Zz=I.forwardRef(({className:t,...e},n)=>{const r=vre(),i=Hc();return l.jsx(Se,{ref:n,...e,id:r,className:Tr({[Up.body]:!i.unstyled},t)})});Zz.displayName="@mantine/core/ModalBaseBody";const Jz=I.forwardRef(({className:t,onClick:e,...n},r)=>{const i=Hc();return l.jsx(Yl,{ref:r,...n,onClick:a=>{i.onClose(),e==null||e(a)},className:Tr({[Up.close]:!i.unstyled},t),unstyled:i.unstyled})});Jz.displayName="@mantine/core/ModalBaseCloseButton";const eY=I.forwardRef(({transitionProps:t,className:e,innerProps:n,onKeyDown:r,style:i,...a},s)=>{const o=Hc();return l.jsx(xd,{mounted:o.opened,transition:"pop",...o.transitionProps,onExited:()=>{var c,d,f;(c=o.onExitTransitionEnd)==null||c.call(o),(f=(d=o.transitionProps)==null?void 0:d.onExited)==null||f.call(d)},onEntered:()=>{var c,d,f;(c=o.onEnterTransitionEnd)==null||c.call(o),(f=(d=o.transitionProps)==null?void 0:d.onEntered)==null||f.call(d)},...t,children:c=>l.jsx("div",{...n,className:Tr({[Up.inner]:!o.unstyled},n.className),children:l.jsx(ZE,{active:o.opened&&o.trapFocus,innerRef:s,children:l.jsx(VE,{...a,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":o.bodyMounted?o.getBodyId():void 0,"aria-labelledby":o.titleMounted?o.getTitleId():void 0,style:[i,c],className:Tr({[Up.content]:!o.unstyled},e),unstyled:o.unstyled,children:a.children})})})})});eY.displayName="@mantine/core/ModalBaseContent";const tY=I.forwardRef(({className:t,...e},n)=>{const r=Hc();return l.jsx(Se,{component:"header",ref:n,className:Tr({[Up.header]:!r.unstyled},t),...e})});tY.displayName="@mantine/core/ModalBaseHeader";const Sre={duration:200,timingFunction:"ease",transition:"fade"};function Ere(t){const e=Hc();return{...Sre,...e.transitionProps,...t}}const nY=I.forwardRef(({onClick:t,transitionProps:e,style:n,visible:r,...i},a)=>{const s=Hc(),o=Ere(e);return l.jsx(xd,{mounted:r!==void 0?r:s.opened,...o,transition:"fade",children:c=>l.jsx(E_,{ref:a,fixed:!0,style:[n,c],zIndex:s.zIndex,unstyled:s.unstyled,onClick:d=>{t==null||t(d),s.closeOnClickOutside&&s.onClose()},...i})})});nY.displayName="@mantine/core/ModalBaseOverlay";function yre(){const t=Hc();return I.useEffect(()=>(t.setTitleMounted(!0),()=>t.setTitleMounted(!1)),[]),t.getTitleId()}const rY=I.forwardRef(({className:t,...e},n)=>{const r=yre(),i=Hc();return l.jsx(Se,{component:"h2",ref:n,className:Tr({[Up.title]:!i.unstyled},t),...e,id:r})});rY.displayName="@mantine/core/ModalBaseTitle";function Tre({children:t}){return l.jsx(l.Fragment,{children:t})}const[xre,hm]=c0({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var fo={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const GB={},Cre=(t,{size:e})=>({description:{"--input-description-size":e===void 0?void 0:`calc(${Ar(e)} - ${me(2)})`}}),JE=Le((t,e)=>{const n=Ee("InputDescription",GB,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,__staticSelector:f,__inheritStyles:p=!0,variant:m,...g}=Ee("InputDescription",GB,n),b=hm(),S=ct({name:["InputWrapper",f],props:n,classes:fo,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"description",vars:c,varsResolver:Cre}),y=p&&(b==null?void 0:b.getStyles)||S;return l.jsx(Se,{component:"p",ref:e,variant:m,size:d,...y("description",b!=null&&b.getStyles?{className:i,style:a}:void 0),...g})});JE.classes=fo;JE.displayName="@mantine/core/InputDescription";const Ore={},Rre=(t,{size:e})=>({error:{"--input-error-size":e===void 0?void 0:`calc(${Ar(e)} - ${me(2)})`}}),ey=Le((t,e)=>{const n=Ee("InputError",Ore,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,__staticSelector:f,__inheritStyles:p=!0,variant:m,...g}=n,b=ct({name:["InputWrapper",f],props:n,classes:fo,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"error",vars:c,varsResolver:Rre}),S=hm(),y=p&&(S==null?void 0:S.getStyles)||b;return l.jsx(Se,{component:"p",ref:e,variant:m,size:d,...y("error",S!=null&&S.getStyles?{className:i,style:a}:void 0),...g})});ey.classes=fo;ey.displayName="@mantine/core/InputError";const qB={labelElement:"label"},Nre=(t,{size:e})=>({label:{"--input-label-size":Ar(e),"--input-asterisk-color":void 0}}),ty=Le((t,e)=>{const n=Ee("InputLabel",qB,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,labelElement:d,size:f,required:p,htmlFor:m,onMouseDown:g,children:b,__staticSelector:S,variant:y,mod:E,...x}=Ee("InputLabel",qB,n),C=ct({name:["InputWrapper",S],props:n,classes:fo,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"label",vars:c,varsResolver:Nre}),R=hm(),T=(R==null?void 0:R.getStyles)||C;return l.jsxs(Se,{...T("label",R!=null&&R.getStyles?{className:i,style:a}:void 0),component:d,variant:y,size:f,ref:e,htmlFor:d==="label"?m:void 0,mod:[{required:p},E],onMouseDown:N=>{g==null||g(N),!N.defaultPrevented&&N.detail>1&&N.preventDefault()},...x,children:[b,p&&l.jsx("span",{...T("required"),"aria-hidden":!0,children:" *"})]})});ty.classes=fo;ty.displayName="@mantine/core/InputLabel";const $B={},rM=Le((t,e)=>{const n=Ee("InputPlaceholder",$B,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,variant:f,error:p,mod:m,...g}=Ee("InputPlaceholder",$B,n),b=ct({name:["InputPlaceholder",d],props:n,classes:fo,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"placeholder"});return l.jsx(Se,{...b("placeholder"),mod:[{error:!!p},m],component:"span",variant:f,ref:e,...g})});rM.classes=fo;rM.displayName="@mantine/core/InputPlaceholder";function Are(t,{hasDescription:e,hasError:n}){const r=t.findIndex(c=>c==="input"),i=t.slice(0,r),a=t.slice(r+1),s=e&&i.includes("description")||n&&i.includes("error");return{offsetBottom:e&&a.includes("description")||n&&a.includes("error"),offsetTop:s}}const wre={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},Dre=(t,{size:e})=>({label:{"--input-label-size":Ar(e),"--input-asterisk-color":void 0},error:{"--input-error-size":e===void 0?void 0:`calc(${Ar(e)} - ${me(2)})`},description:{"--input-description-size":e===void 0?void 0:`calc(${Ar(e)} - ${me(2)})`}}),iM=Le((t,e)=>{const n=Ee("InputWrapper",wre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,variant:f,__staticSelector:p,inputContainer:m,inputWrapperOrder:g,label:b,error:S,description:y,labelProps:E,descriptionProps:x,errorProps:C,labelElement:R,children:T,withAsterisk:N,id:w,required:D,__stylesApiProps:L,mod:k,...M}=n,P=ct({name:["InputWrapper",p],props:L||n,classes:fo,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Dre}),V={size:d,variant:f,__staticSelector:p},Y=$a(w),G=typeof N=="boolean"?N:D,F=(C==null?void 0:C.id)||`${Y}-error`,q=(x==null?void 0:x.id)||`${Y}-description`,z=Y,H=!!S&&typeof S!="boolean",U=!!y,Q=`${H?F:""} ${U?q:""}`,X=Q.trim().length>0?Q.trim():void 0,te=(E==null?void 0:E.id)||`${Y}-label`,ie=b&&l.jsx(ty,{labelElement:R,id:te,htmlFor:z,required:G,...V,...E,children:b},"label"),fe=U&&l.jsx(JE,{...x,...V,size:(x==null?void 0:x.size)||V.size,id:(x==null?void 0:x.id)||q,children:y},"description"),Ce=l.jsx(I.Fragment,{children:m(T)},"input"),Re=H&&I.createElement(ey,{...C,...V,size:(C==null?void 0:C.size)||V.size,key:"error",id:(C==null?void 0:C.id)||F},S),_e=g.map(Ie=>{switch(Ie){case"label":return ie;case"input":return Ce;case"description":return fe;case"error":return Re;default:return null}});return l.jsx(xre,{value:{getStyles:P,describedBy:X,inputId:z,labelId:te,...Are(g,{hasDescription:U,hasError:H})},children:l.jsx(Se,{ref:e,variant:f,size:d,mod:[{error:!!S},k],...P("root"),...M,children:_e})})});iM.classes=fo;iM.displayName="@mantine/core/InputWrapper";const Ire={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},Mre=(t,e,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":kt(e.size,"input-height"),"--input-fz":Ar(e.size),"--input-radius":e.radius===void 0?void 0:Pn(e.radius),"--input-left-section-width":e.leftSectionWidth!==void 0?me(e.leftSectionWidth):void 0,"--input-right-section-width":e.rightSectionWidth!==void 0?me(e.rightSectionWidth):void 0,"--input-padding-y":e.multiline?kt(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),Kr=Ca((t,e)=>{const n=Ee("Input",Ire,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,required:c,__staticSelector:d,__stylesApiProps:f,size:p,wrapperProps:m,error:g,disabled:b,leftSection:S,leftSectionProps:y,leftSectionWidth:E,rightSection:x,rightSectionProps:C,rightSectionWidth:R,rightSectionPointerEvents:T,leftSectionPointerEvents:N,variant:w,vars:D,pointer:L,multiline:k,radius:M,id:P,withAria:V,withErrorStyles:Y,mod:G,inputSize:F,...q}=n,{styleProps:z,rest:H}=u0(q),U=hm(),Q={offsetBottom:U==null?void 0:U.offsetBottom,offsetTop:U==null?void 0:U.offsetTop},X=ct({name:["Input",d],props:f||n,classes:fo,className:i,style:a,classNames:r,styles:s,unstyled:o,stylesCtx:Q,rootSelector:"wrapper",vars:D,varsResolver:Mre}),te=V?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":U==null?void 0:U.describedBy,id:(U==null?void 0:U.inputId)||P}:{};return l.jsxs(Se,{...X("wrapper"),...z,...m,mod:[{error:!!g&&Y,pointer:L,disabled:b,multiline:k,"data-with-right-section":!!x,"data-with-left-section":!!S},G],variant:w,size:p,children:[S&&l.jsx("div",{...y,"data-position":"left",...X("section",{className:y==null?void 0:y.className,style:y==null?void 0:y.style}),children:S}),l.jsx(Se,{component:"input",...H,...te,ref:e,required:c,mod:{disabled:b,error:!!g&&Y},variant:w,__size:F,...X("input")}),x&&l.jsx("div",{...C,"data-position":"right",...X("section",{className:C==null?void 0:C.className,style:C==null?void 0:C.style}),children:x})]})});Kr.classes=fo;Kr.Wrapper=iM;Kr.Label=ty;Kr.Error=ey;Kr.Description=JE;Kr.Placeholder=rM;Kr.displayName="@mantine/core/Input";function iY(t,e,n){const r=Ee(t,e,n),{label:i,description:a,error:s,required:o,classNames:c,styles:d,className:f,unstyled:p,__staticSelector:m,__stylesApiProps:g,errorProps:b,labelProps:S,descriptionProps:y,wrapperProps:E,id:x,size:C,style:R,inputContainer:T,inputWrapperOrder:N,withAsterisk:w,variant:D,vars:L,mod:k,...M}=r,{styleProps:P,rest:V}=u0(M),Y={label:i,description:a,error:s,required:o,classNames:c,className:f,__staticSelector:m,__stylesApiProps:g||r,errorProps:b,labelProps:S,descriptionProps:y,unstyled:p,styles:d,size:C,style:R,inputContainer:T,inputWrapperOrder:N,withAsterisk:w,variant:D,id:x,mod:k,...E};return{...V,classNames:c,styles:d,unstyled:p,wrapperProps:{...Y,...P},inputProps:{required:o,classNames:c,styles:d,unstyled:p,size:C,__staticSelector:m,__stylesApiProps:g||r,error:s,variant:D,id:x}}}const Lre={__staticSelector:"InputBase",withAria:!0},cs=Ca((t,e)=>{const{inputProps:n,wrapperProps:r,...i}=iY("InputBase",Lre,t);return l.jsx(Kr.Wrapper,{...r,children:l.jsx(Kr,{...n,...i,ref:e})})});cs.classes={...Kr.classes,...Kr.Wrapper.classes};cs.displayName="@mantine/core/InputBase";function kre(t,e){if(!e||!t)return!1;let n=e.parentNode;for(;n!=null;){if(n===t)return!0;n=n.parentNode}return!1}function Pre({target:t,parent:e,ref:n,displayAfterTransitionEnd:r}){const i=I.useRef(-1),[a,s]=I.useState(!1),[o,c]=I.useState(typeof r=="boolean"?r:!1),d=()=>{if(!t||!e||!n.current)return;const g=t.getBoundingClientRect(),b=e.getBoundingClientRect(),S=window.getComputedStyle(t),y=window.getComputedStyle(e),E=Xu(S.borderTopWidth)+Xu(y.borderTopWidth),x=Xu(S.borderLeftWidth)+Xu(y.borderLeftWidth),C={top:g.top-b.top-E,left:g.left-b.left-x,width:g.width,height:g.height};n.current.style.transform=`translateY(${C.top}px) translateX(${C.left}px)`,n.current.style.width=`${C.width}px`,n.current.style.height=`${C.height}px`},f=()=>{window.clearTimeout(i.current),n.current&&(n.current.style.transitionDuration="0ms"),d(),i.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},p=I.useRef(null),m=I.useRef(null);return I.useEffect(()=>{if(d(),t)return p.current=new ResizeObserver(f),p.current.observe(t),e&&(m.current=new ResizeObserver(f),m.current.observe(e)),()=>{var g,b;(g=p.current)==null||g.disconnect(),(b=m.current)==null||b.disconnect()}},[e,t]),I.useEffect(()=>{if(e){const g=b=>{kre(b.target,e)&&(f(),c(!1))};return e.addEventListener("transitionend",g),()=>{e.removeEventListener("transitionend",g)}}},[e]),VJ(()=>{ZJ()!=="test"&&s(!0)},20,{autoInvoke:!0}),QJ(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&f()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:a,hidden:o}}var aY={root:"m_96b553a6"};const Bre={},Fre=(t,{transitionDuration:e})=>({root:{"--transition-duration":typeof e=="number"?`${e}ms`:e}}),aM=Le((t,e)=>{const n=Ee("FloatingIndicator",Bre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,target:d,parent:f,transitionDuration:p,mod:m,displayAfterTransitionEnd:g,...b}=n,S=ct({name:"FloatingIndicator",classes:aY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Fre}),y=I.useRef(null),{initialized:E,hidden:x}=Pre({target:d,parent:f,ref:y,displayAfterTransitionEnd:g}),C=Xr(e,y);return!d||!f?null:l.jsx(Se,{ref:C,mod:[{initialized:E,hidden:x},m],...S("root"),...b})});aM.displayName="@mantine/core/FloatingIndicator";aM.classes=aY;const[Ure,sM]=xa("Accordion component was not found in the tree");function y_({style:t,size:e=16,...n}){return l.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:me(e),height:me(e),display:"block"},...n,children:l.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}y_.displayName="@mantine/core/AccordionChevron";const[jre,sY]=xa("Accordion.Item component was not found in the tree");var f0={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const Gre={},oM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,chevron:o,icon:c,onClick:d,onKeyDown:f,children:p,disabled:m,mod:g,...b}=Ee("AccordionControl",Gre,t),{value:S}=sY(),y=sM(),E=y.isItemActive(S),x=typeof y.order=="number",C=`h${y.order}`,R=l.jsxs(Si,{...b,...y.getStyles("control",{className:r,classNames:n,style:i,styles:a,variant:y.variant}),unstyled:y.unstyled,mod:["accordion-control",{active:E,"chevron-position":y.chevronPosition,disabled:m},g],ref:e,onClick:T=>{d==null||d(T),y.onChange(S)},type:"button",disabled:m,"aria-expanded":E,"aria-controls":y.getRegionId(S),id:y.getControlId(S),onKeyDown:TI({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:y.loop,orientation:"vertical",onKeyDown:f}),children:[l.jsx(Se,{component:"span",mod:{rotate:!y.disableChevronRotation&&E,position:y.chevronPosition},...y.getStyles("chevron",{classNames:n,styles:a}),children:o||y.chevron}),l.jsx("span",{...y.getStyles("label",{classNames:n,styles:a}),children:p}),c&&l.jsx(Se,{component:"span",mod:{"chevron-position":y.chevronPosition},...y.getStyles("icon",{classNames:n,styles:a}),children:c})]});return x?l.jsx(C,{...y.getStyles("itemTitle",{classNames:n,styles:a}),children:R}):R});oM.displayName="@mantine/core/AccordionControl";oM.classes=f0;const qre={},lM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,value:o,mod:c,...d}=Ee("AccordionItem",qre,t),f=sM();return l.jsx(jre,{value:{value:o},children:l.jsx(Se,{ref:e,mod:[{active:f.isItemActive(o)},c],...f.getStyles("item",{className:r,classNames:n,styles:a,style:i,variant:f.variant}),...d})})});lM.displayName="@mantine/core/AccordionItem";lM.classes=f0;const $re={},cM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,children:o,...c}=Ee("AccordionPanel",$re,t),{value:d}=sY(),f=sM();return l.jsx(kI,{ref:e,...f.getStyles("panel",{className:r,classNames:n,style:i,styles:a}),...c,in:f.isItemActive(d),transitionDuration:f.transitionDuration??200,role:"region",id:f.getRegionId(d),"aria-labelledby":f.getControlId(d),children:l.jsx("div",{...f.getStyles("content",{classNames:n,styles:a}),children:o})})});cM.displayName="@mantine/core/AccordionPanel";cM.classes=f0;const zre={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevron:l.jsx(y_,{})},Yre=(t,{transitionDuration:e,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":e===void 0?void 0:`${e}ms`,"--accordion-chevron-size":n===void 0?void 0:me(n),"--accordion-radius":r===void 0?void 0:Pn(r)}});function _r(t){const e=Ee("Accordion",zre,t),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:o,children:c,multiple:d,value:f,defaultValue:p,onChange:m,id:g,loop:b,transitionDuration:S,disableChevronRotation:y,chevronPosition:E,chevronSize:x,order:C,chevron:R,variant:T,radius:N,...w}=e,D=$a(g),[L,k]=ra({value:f,defaultValue:p,finalValue:d?[]:null,onChange:m}),M=Y=>Array.isArray(L)?L.includes(Y):Y===L,P=Y=>{const G=Array.isArray(L)?L.includes(Y)?L.filter(F=>F!==Y):[...L,Y]:Y===L?null:Y;k(G)},V=ct({name:"Accordion",classes:f0,props:e,className:r,style:i,classNames:n,styles:a,unstyled:s,vars:o,varsResolver:Yre});return l.jsx(Ure,{value:{isItemActive:M,onChange:P,getControlId:xS(`${D}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:xS(`${D}-panel`,"Accordion.Item component was rendered with invalid value or without value"),transitionDuration:S,disableChevronRotation:y,chevronPosition:E,order:C,chevron:R,loop:b,getStyles:V,variant:T,unstyled:s},children:l.jsx(Se,{...V("root"),id:D,...w,variant:T,"data-accordion":!0,children:c})})}const Hre=t=>t;_r.extend=Hre;_r.withProps=cte(_r);_r.classes=f0;_r.displayName="@mantine/core/Accordion";_r.Item=lM;_r.Panel=cM;_r.Control=oM;_r.Chevron=y_;var oY={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const Vre={},Wre=(t,{radius:e,color:n,variant:r,autoContrast:i})=>{const a=t.variantColorResolver({color:n||t.primaryColor,theme:t,variant:r||"light",autoContrast:i});return{root:{"--alert-radius":e===void 0?void 0:Pn(e),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}},Lt=Le((t,e)=>{const n=Ee("Alert",Vre,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,radius:d,color:f,title:p,children:m,id:g,icon:b,withCloseButton:S,onClose:y,closeButtonLabel:E,variant:x,autoContrast:C,...R}=n,T=ct({name:"Alert",classes:oY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Wre}),N=$a(g),w=p&&`${N}-title`||void 0,D=`${N}-body`;return l.jsx(Se,{id:N,...T("root",{variant:x}),variant:x,ref:e,...R,role:"alert","aria-describedby":D,"aria-labelledby":w,children:l.jsxs("div",{...T("wrapper"),children:[b&&l.jsx("div",{...T("icon"),children:b}),l.jsxs("div",{...T("body"),children:[p&&l.jsx("div",{...T("title"),"data-with-close-button":S||void 0,children:l.jsx("span",{id:w,...T("label"),children:p})}),m&&l.jsx("div",{id:D,...T("message"),"data-variant":x,children:m})]}),S&&l.jsx(Yl,{...T("closeButton"),onClick:y,variant:"transparent",size:16,iconSize:16,"aria-label":E,unstyled:o})]})})});Lt.classes=oY;Lt.displayName="@mantine/core/Alert";var lY={root:"m_b6d8b162"};function Qre(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const Kre={inherit:!1},Xre=(t,{variant:e,lineClamp:n,gradient:r,size:i,color:a})=>({root:{"--text-fz":Ar(i),"--text-lh":L5(i),"--text-gradient":e==="gradient"?sw(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":a?Jn(a,t):void 0}}),ht=Ca((t,e)=>{const n=Ee("Text",Kre,t),{lineClamp:r,truncate:i,inline:a,inherit:s,gradient:o,span:c,__staticSelector:d,vars:f,className:p,style:m,classNames:g,styles:b,unstyled:S,variant:y,mod:E,size:x,...C}=n,R=ct({name:["Text",d],props:n,classes:lY,className:p,style:m,classNames:g,styles:b,unstyled:S,vars:f,varsResolver:Xre});return l.jsx(Se,{...R("root",{focusable:!0}),ref:e,component:c?"span":"p",variant:y,mod:[{"data-truncate":Qre(i),"data-line-clamp":typeof r=="number","data-inline":a,"data-inherit":s},E],size:x,...C})});ht.classes=lY;ht.displayName="@mantine/core/Text";var cY={root:"m_849cf0da"};const Zre={underline:"hover"},Ei=Ca((t,e)=>{const{underline:n,className:r,unstyled:i,mod:a,...s}=Ee("Anchor",Zre,t);return l.jsx(ht,{component:"a",ref:e,className:Tr({[cY.root]:!i},r),...s,mod:[{underline:n},a],__staticSelector:"Anchor",unstyled:i})});Ei.classes=cY;Ei.displayName="@mantine/core/Anchor";const[Jre,pm]=xa("AppShell was not found in tree");var Cd={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const eie={},uM=Le((t,e)=>{const n=Ee("AppShellAside",eie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=pm();return g.disabled?null:l.jsx(Se,{component:"aside",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("aside",{className:i,classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-aside-z-index":`calc(${f??g.zIndex} + 1)`}})});uM.classes=Cd;uM.displayName="@mantine/core/AppShellAside";const tie={},dM=Le((t,e)=>{var b;const n=Ee("AppShellFooter",tie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=pm();return g.disabled?null:l.jsx(Se,{component:"footer",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("footer",{className:Tr({[Pp.classNames.zeroRight]:g.offsetScrollbars},i),classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-footer-z-index":(b=f??g.zIndex)==null?void 0:b.toString()}})});dM.classes=Cd;dM.displayName="@mantine/core/AppShellFooter";const nie={},fM=Le((t,e)=>{var b;const n=Ee("AppShellHeader",nie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=pm();return g.disabled?null:l.jsx(Se,{component:"header",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("header",{className:Tr({[Pp.classNames.zeroRight]:g.offsetScrollbars},i),classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-header-z-index":(b=f??g.zIndex)==null?void 0:b.toString()}})});fM.classes=Cd;fM.displayName="@mantine/core/AppShellHeader";const rie={},hM=Le((t,e)=>{const n=Ee("AppShellMain",rie,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=pm();return l.jsx(Se,{component:"main",ref:e,...d.getStyles("main",{className:i,style:a,classNames:r,styles:s}),...c})});hM.classes=Cd;hM.displayName="@mantine/core/AppShellMain";function h0(t){return typeof t=="object"?t.base:t}function p0(t){const e=typeof t=="object"&&t!==null&&typeof t.base<"u"&&Object.keys(t).length===1;return typeof t=="number"||typeof t=="string"||e}function m0(t){return!(typeof t!="object"||t===null||Object.keys(t).length===1&&"base"in t)}function iie({baseStyles:t,minMediaStyles:e,maxMediaStyles:n,aside:r,theme:i}){var c,d,f;const a=r==null?void 0:r.width,s="translateX(var(--app-shell-aside-width))",o="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((c=r==null?void 0:r.collapsed)!=null&&c.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"),p0(a)){const p=me(h0(a));t["--app-shell-aside-width"]=p,t["--app-shell-aside-offset"]=p}if(m0(a)&&(typeof a.base<"u"&&(t["--app-shell-aside-width"]=me(a.base),t["--app-shell-aside-offset"]=me(a.base)),Pi(a).forEach(p=>{p!=="base"&&(e[p]=e[p]||{},e[p]["--app-shell-aside-width"]=me(a[p]),e[p]["--app-shell-aside-offset"]=me(a[p]))})),(d=r==null?void 0:r.collapsed)!=null&&d.desktop){const p=r.breakpoint;e[p]=e[p]||{},e[p]["--app-shell-aside-transform"]=s,e[p]["--app-shell-aside-transform-rtl"]=o,e[p]["--app-shell-aside-offset"]="0px !important"}if((f=r==null?void 0:r.collapsed)!=null&&f.mobile){const p=CI(r.breakpoint,i.breakpoints)-.1;n[p]=n[p]||{},n[p]["--app-shell-aside-width"]="100%",n[p]["--app-shell-aside-offset"]="0px",n[p]["--app-shell-aside-transform"]=s,n[p]["--app-shell-aside-transform-rtl"]=o}}function aie({baseStyles:t,minMediaStyles:e,footer:n}){const r=n==null?void 0:n.height,i="translateY(var(--app-shell-footer-height))",a=(n==null?void 0:n.offset)??!0;if(p0(r)){const s=me(h0(r));t["--app-shell-footer-height"]=s,a&&(t["--app-shell-footer-offset"]=s)}m0(r)&&(typeof r.base<"u"&&(t["--app-shell-footer-height"]=me(r.base),a&&(t["--app-shell-footer-offset"]=me(r.base))),Pi(r).forEach(s=>{s!=="base"&&(e[s]=e[s]||{},e[s]["--app-shell-footer-height"]=me(r[s]),a&&(e[s]["--app-shell-footer-offset"]=me(r[s])))})),n!=null&&n.collapsed&&(t["--app-shell-footer-transform"]=i,t["--app-shell-footer-offset"]="0px !important")}function sie({baseStyles:t,minMediaStyles:e,header:n}){const r=n==null?void 0:n.height,i="translateY(calc(var(--app-shell-header-height) * -1))",a=(n==null?void 0:n.offset)??!0;if(p0(r)){const s=me(h0(r));t["--app-shell-header-height"]=s,a&&(t["--app-shell-header-offset"]=s)}m0(r)&&(typeof r.base<"u"&&(t["--app-shell-header-height"]=me(r.base),a&&(t["--app-shell-header-offset"]=me(r.base))),Pi(r).forEach(s=>{s!=="base"&&(e[s]=e[s]||{},e[s]["--app-shell-header-height"]=me(r[s]),a&&(e[s]["--app-shell-header-offset"]=me(r[s])))})),n!=null&&n.collapsed&&(t["--app-shell-header-transform"]=i,t["--app-shell-header-offset"]="0px !important")}function oie({baseStyles:t,minMediaStyles:e,maxMediaStyles:n,navbar:r,theme:i}){var c,d,f;const a=r==null?void 0:r.width,s="translateX(calc(var(--app-shell-navbar-width) * -1))",o="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((c=r==null?void 0:r.collapsed)!=null&&c.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px"),p0(a)){const p=me(h0(a));t["--app-shell-navbar-width"]=p,t["--app-shell-navbar-offset"]=p}if(m0(a)&&(typeof a.base<"u"&&(t["--app-shell-navbar-width"]=me(a.base),t["--app-shell-navbar-offset"]=me(a.base)),Pi(a).forEach(p=>{p!=="base"&&(e[p]=e[p]||{},e[p]["--app-shell-navbar-width"]=me(a[p]),e[p]["--app-shell-navbar-offset"]=me(a[p]))})),(d=r==null?void 0:r.collapsed)!=null&&d.desktop){const p=r.breakpoint;e[p]=e[p]||{},e[p]["--app-shell-navbar-transform"]=s,e[p]["--app-shell-navbar-transform-rtl"]=o,e[p]["--app-shell-navbar-offset"]="0px !important"}if((f=r==null?void 0:r.collapsed)!=null&&f.mobile){const p=CI(r.breakpoint,i.breakpoints)-.1;n[p]=n[p]||{},n[p]["--app-shell-navbar-width"]="100%",n[p]["--app-shell-navbar-offset"]="0px",n[p]["--app-shell-navbar-transform"]=s,n[p]["--app-shell-navbar-transform-rtl"]=o}}function FC(t){return Number(t)===0?"0px":Gl(t)}function lie({padding:t,baseStyles:e,minMediaStyles:n}){p0(t)&&(e["--app-shell-padding"]=FC(h0(t))),m0(t)&&(t.base&&(e["--app-shell-padding"]=FC(t.base)),Pi(t).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=FC(t[r]))}))}function cie({navbar:t,header:e,footer:n,aside:r,padding:i,theme:a}){const s={},o={},c={};oie({baseStyles:c,minMediaStyles:s,maxMediaStyles:o,navbar:t,theme:a}),iie({baseStyles:c,minMediaStyles:s,maxMediaStyles:o,aside:r,theme:a}),sie({baseStyles:c,minMediaStyles:s,header:e}),aie({baseStyles:c,minMediaStyles:s,footer:n}),lie({baseStyles:c,minMediaStyles:s,padding:i});const d=uB(Pi(s),a.breakpoints).map(m=>({query:`(min-width: ${ss(m.px)})`,styles:s[m.value]})),f=uB(Pi(o),a.breakpoints).map(m=>({query:`(max-width: ${ss(m.px)})`,styles:o[m.value]})),p=[...d,...f];return{baseStyles:c,media:p}}function uie({navbar:t,header:e,aside:n,footer:r,padding:i}){const a=Ui(),s=Ed(),{media:o,baseStyles:c}=cie({navbar:t,header:e,footer:r,aside:n,padding:i,theme:a});return l.jsx(Q5,{media:o,styles:c,selector:s.cssVariablesSelector})}const die={},pM=Le((t,e)=>{const n=Ee("AppShellNavbar",die,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,withBorder:d,zIndex:f,mod:p,...m}=n,g=pm();return g.disabled?null:l.jsx(Se,{component:"nav",ref:e,mod:[{"with-border":d??g.withBorder},p],...g.getStyles("navbar",{className:i,classNames:r,styles:s,style:a}),...m,__vars:{"--app-shell-navbar-z-index":`calc(${f??g.zIndex} + 1)`}})});pM.classes=Cd;pM.displayName="@mantine/core/AppShellNavbar";const fie={},mM=Ca((t,e)=>{const n=Ee("AppShellSection",fie,t),{classNames:r,className:i,style:a,styles:s,vars:o,grow:c,mod:d,...f}=n,p=pm();return l.jsx(Se,{ref:e,mod:[{grow:c},d],...p.getStyles("section",{className:i,style:a,classNames:r,styles:s}),...f})});mM.classes=Cd;mM.displayName="@mantine/core/AppShellSection";function hie({transitionDuration:t,disabled:e}){const[n,r]=I.useState(!0),i=I.useRef(-1),a=I.useRef(-1);return RS("resize",()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>I.startTransition(()=>{r(!1)}),200)}),sm(()=>{r(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>I.startTransition(()=>{r(!1)}),t||0)},[e,t]),n}const pie={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:co("app")},mie=(t,{transitionDuration:e,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${e}ms`,"--app-shell-transition-timing-function":n}}),to=Le((t,e)=>{const n=Ee("AppShell",pie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,navbar:d,withBorder:f,padding:p,transitionDuration:m,transitionTimingFunction:g,header:b,zIndex:S,layout:y,disabled:E,aside:x,footer:C,offsetScrollbars:R=y!=="alt",mod:T,...N}=n,w=ct({name:"AppShell",classes:Cd,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:mie}),D=hie({disabled:E,transitionDuration:m});return l.jsxs(Jre,{value:{getStyles:w,withBorder:f,zIndex:S,disabled:E,offsetScrollbars:R},children:[l.jsx(uie,{navbar:d,header:b,aside:x,footer:C,padding:p}),l.jsx(Se,{ref:e,...w("root"),mod:[{resizing:D,layout:y,disabled:E},T],...N})]})});to.classes=Cd;to.displayName="@mantine/core/AppShell";to.Navbar=pM;to.Header=fM;to.Main=hM;to.Aside=uM;to.Footer=dM;to.Section=mM;function uY(t){return typeof t=="string"?{value:t,label:t}:"value"in t&&!("label"in t)?{value:t.value,label:t.value,disabled:t.disabled}:typeof t=="number"?{value:t.toString(),label:t.toString()}:"group"in t?{group:t.group,items:t.items.map(e=>uY(e))}:t}function dY(t){return t?t.map(e=>uY(e)):[]}function gM(t){return t.reduce((e,n)=>"group"in n?{...e,...gM(n.items)}:(e[n.value]=n,e),{})}var os={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const gie={error:null},_ie=(t,{size:e})=>({chevron:{"--combobox-chevron-size":kt(e,"combobox-chevron-size")}}),ny=Le((t,e)=>{const n=Ee("ComboboxChevron",gie,t),{size:r,error:i,style:a,className:s,classNames:o,styles:c,unstyled:d,vars:f,mod:p,...m}=n,g=ct({name:"ComboboxChevron",classes:os,props:n,style:a,className:s,classNames:o,styles:c,unstyled:d,vars:f,varsResolver:_ie,rootSelector:"chevron"});return l.jsx(Se,{component:"svg",...m,...g("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},p],ref:e,children:l.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ny.classes=os;ny.displayName="@mantine/core/ComboboxChevron";const[bie,ho]=xa("Combobox component was not found in tree"),_M=I.forwardRef(({size:t,onMouseDown:e,onClick:n,onClear:r,...i},a)=>l.jsx(Yl,{ref:a,size:t||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:s=>{s.preventDefault(),e==null||e(s)},onClick:s=>{r(),n==null||n(s)}}));_M.displayName="@mantine/core/ComboboxClearButton";const vie={},bM=Le((t,e)=>{const{classNames:n,styles:r,className:i,style:a,hidden:s,...o}=Ee("ComboboxDropdown",vie,t),c=ho();return l.jsx(li.Dropdown,{...o,ref:e,role:"presentation","data-hidden":s||void 0,...c.getStyles("dropdown",{className:i,style:a,classNames:n,styles:r})})});bM.classes=os;bM.displayName="@mantine/core/ComboboxDropdown";const Sie={refProp:"ref"},fY=Le((t,e)=>{const{children:n,refProp:r}=Ee("ComboboxDropdownTarget",Sie,t);if(ho(),!Sd(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return l.jsx(li.Target,{ref:e,refProp:r,children:n})});fY.displayName="@mantine/core/ComboboxDropdownTarget";const Eie={},vM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Ee("ComboboxEmpty",Eie,t),c=ho();return l.jsx(Se,{ref:e,...c.getStyles("empty",{className:r,classNames:n,styles:a,style:i}),...o})});vM.classes=os;vM.displayName="@mantine/core/ComboboxEmpty";function SM({onKeyDown:t,withKeyboardNavigation:e,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:a}){const s=ho(),[o,c]=I.useState(null),d=p=>{if(t==null||t(p),!s.readOnly&&e){if(p.nativeEvent.isComposing)return;if(p.nativeEvent.code==="ArrowDown"&&(p.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),p.nativeEvent.code==="ArrowUp"&&(p.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),p.nativeEvent.code==="Enter"||p.nativeEvent.code==="NumpadEnter"){if(p.nativeEvent.keyCode===229)return;const m=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&m!==-1?(p.preventDefault(),s.store.clickSelectedOption()):i==="button"&&(p.preventDefault(),s.store.openDropdown("keyboard"))}p.nativeEvent.code==="Escape"&&s.store.closeDropdown("keyboard"),p.nativeEvent.code==="Space"&&i==="button"&&(p.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(s.store.listId&&s.store.dropdownOpened)||void 0,"aria-controls":s.store.dropdownOpened?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&o||void 0,autoComplete:a,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:d}}const yie={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},hY=Le((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:a,withExpandedAttribute:s,targetType:o,autoComplete:c,...d}=Ee("ComboboxEventsTarget",yie,t);if(!Sd(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const f=ho(),p=SM({targetType:o,withAriaAttributes:a,withKeyboardNavigation:i,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return I.cloneElement(n,{...p,...d,[r]:Xr(e,f.store.targetRef,jE(n))})});hY.displayName="@mantine/core/ComboboxEventsTarget";const Tie={},EM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Ee("ComboboxFooter",Tie,t),c=ho();return l.jsx(Se,{ref:e,...c.getStyles("footer",{className:r,classNames:n,style:i,styles:a}),...o,onMouseDown:d=>{d.preventDefault()}})});EM.classes=os;EM.displayName="@mantine/core/ComboboxFooter";const xie={},yM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,children:o,label:c,...d}=Ee("ComboboxGroup",xie,t),f=ho();return l.jsxs(Se,{ref:e,...f.getStyles("group",{className:r,classNames:n,style:i,styles:a}),...d,children:[c&&l.jsx("div",{...f.getStyles("groupLabel",{classNames:n,styles:a}),children:c}),o]})});yM.classes=os;yM.displayName="@mantine/core/ComboboxGroup";const Cie={},TM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Ee("ComboboxHeader",Cie,t),c=ho();return l.jsx(Se,{ref:e,...c.getStyles("header",{className:r,classNames:n,style:i,styles:a}),...o,onMouseDown:d=>{d.preventDefault()}})});TM.classes=os;TM.displayName="@mantine/core/ComboboxHeader";function pY({value:t,valuesDivider:e=",",...n}){return l.jsx("input",{type:"hidden",value:Array.isArray(t)?t.join(e):t||"",...n})}pY.displayName="@mantine/core/ComboboxHiddenInput";const Oie={},xM=Le((t,e)=>{const n=Ee("ComboboxOption",Oie,t),{classNames:r,className:i,style:a,styles:s,vars:o,onClick:c,id:d,active:f,onMouseDown:p,onMouseOver:m,disabled:g,selected:b,mod:S,...y}=n,E=ho(),x=I.useId(),C=d||x;return l.jsx(Se,{...E.getStyles("option",{className:i,classNames:r,styles:s,style:a}),...y,ref:e,id:C,mod:["combobox-option",{"combobox-active":f,"combobox-disabled":g,"combobox-selected":b},S],role:"option",onClick:R=>{var T;g?R.preventDefault():((T=E.onOptionSubmit)==null||T.call(E,n.value,n),c==null||c(R))},onMouseDown:R=>{R.preventDefault(),p==null||p(R)},onMouseOver:R=>{E.resetSelectionOnOptionHover&&E.store.resetSelectedOption(),m==null||m(R)}})});xM.classes=os;xM.displayName="@mantine/core/ComboboxOption";const Rie={},CM=Le((t,e)=>{const n=Ee("ComboboxOptions",Rie,t),{classNames:r,className:i,style:a,styles:s,id:o,onMouseDown:c,labelledBy:d,...f}=n,p=ho(),m=$a(o);return I.useEffect(()=>{p.store.setListId(m)},[m]),l.jsx(Se,{ref:e,...p.getStyles("options",{className:i,style:a,classNames:r,styles:s}),...f,id:m,role:"listbox","aria-labelledby":d,onMouseDown:g=>{g.preventDefault(),c==null||c(g)}})});CM.classes=os;CM.displayName="@mantine/core/ComboboxOptions";const Nie={withAriaAttributes:!0,withKeyboardNavigation:!0},OM=Le((t,e)=>{const n=Ee("ComboboxSearch",Nie,t),{classNames:r,styles:i,unstyled:a,vars:s,withAriaAttributes:o,onKeyDown:c,withKeyboardNavigation:d,size:f,...p}=n,m=ho(),g=m.getStyles("search"),b=SM({targetType:"input",withAriaAttributes:o,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return l.jsx(Kr,{ref:Xr(e,m.store.searchRef),classNames:[{input:g.className},r],styles:[{input:g.style},i],size:f||m.size,...b,...p,__staticSelector:"Combobox"})});OM.classes=os;OM.displayName="@mantine/core/ComboboxSearch";const Aie={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},mY=Le((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:a,withExpandedAttribute:s,targetType:o,autoComplete:c,...d}=Ee("ComboboxTarget",Aie,t);if(!Sd(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const f=ho(),p=SM({targetType:o,withAriaAttributes:a,withKeyboardNavigation:i,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),m=I.cloneElement(n,{...p,...d});return l.jsx(li.Target,{ref:Xr(e,f.store.targetRef),children:m})});mY.displayName="@mantine/core/ComboboxTarget";function wie(t,e,n){for(let r=t-1;r>=0;r-=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=e.length-1;r>-1;r-=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r}return t}function Die(t,e,n){for(let r=t+1;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r}return t}function Iie(t){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return-1}function ry({defaultOpened:t,opened:e,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:s="instant"}={}){const[o,c]=ra({value:e,defaultValue:t,finalValue:!1,onChange:n}),d=I.useRef(null),f=I.useRef(-1),p=I.useRef(null),m=I.useRef(null),g=I.useRef(-1),b=I.useRef(-1),S=I.useRef(-1),y=I.useCallback((F="unknown")=>{o||(c(!0),i==null||i(F))},[c,i,o]),E=I.useCallback((F="unknown")=>{o&&(c(!1),r==null||r(F))},[c,r,o]),x=I.useCallback((F="unknown")=>{o?E(F):y(F)},[E,y,o]),C=I.useCallback(()=>{const F=document.querySelector(`#${d.current} [data-combobox-selected]`);F==null||F.removeAttribute("data-combobox-selected"),F==null||F.removeAttribute("aria-selected")},[]),R=I.useCallback(F=>{const q=document.getElementById(d.current),z=q==null?void 0:q.querySelectorAll("[data-combobox-option]");if(!z)return null;const H=F>=z.length?0:F<0?z.length-1:F;return f.current=H,z!=null&&z[H]&&!z[H].hasAttribute("data-combobox-disabled")?(C(),z[H].setAttribute("data-combobox-selected","true"),z[H].setAttribute("aria-selected","true"),z[H].scrollIntoView({block:"nearest",behavior:s}),z[H].id):null},[s,C]),T=I.useCallback(()=>{const F=document.querySelector(`#${d.current} [data-combobox-active]`);if(F){const q=document.querySelectorAll(`#${d.current} [data-combobox-option]`),z=Array.from(q).findIndex(H=>H===F);return R(z)}return R(0)},[R]),N=I.useCallback(()=>R(Die(f.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),a)),[R,a]),w=I.useCallback(()=>R(wie(f.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),a)),[R,a]),D=I.useCallback(()=>R(Iie(document.querySelectorAll(`#${d.current} [data-combobox-option]`))),[R]),L=I.useCallback((F="selected",q)=>{S.current=window.setTimeout(()=>{var U;const z=document.querySelectorAll(`#${d.current} [data-combobox-option]`),H=Array.from(z).findIndex(Q=>Q.hasAttribute(`data-combobox-${F}`));f.current=H,q!=null&&q.scrollIntoView&&((U=z[H])==null||U.scrollIntoView({block:"nearest",behavior:s}))},0)},[]),k=I.useCallback(()=>{f.current=-1,C()},[C]),M=I.useCallback(()=>{const F=document.querySelectorAll(`#${d.current} [data-combobox-option]`),q=F==null?void 0:F[f.current];q==null||q.click()},[]),P=I.useCallback(F=>{d.current=F},[]),V=I.useCallback(()=>{g.current=window.setTimeout(()=>p.current.focus(),0)},[]),Y=I.useCallback(()=>{b.current=window.setTimeout(()=>m.current.focus(),0)},[]),G=I.useCallback(()=>f.current,[]);return I.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(S.current)},[]),{dropdownOpened:o,openDropdown:y,closeDropdown:E,toggleDropdown:x,selectedOptionIndex:f.current,getSelectedOptionIndex:G,selectOption:R,selectFirstOption:D,selectActiveOption:T,selectNextOption:N,selectPreviousOption:w,resetSelectedOption:k,updateSelectedOptionIndex:L,listId:d.current,setListId:P,clickSelectedOption:M,searchRef:p,focusSearchInput:V,targetRef:m,focusTarget:Y}}const Mie={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},Lie=(t,{size:e,dropdownPadding:n})=>({options:{"--combobox-option-fz":Ar(e),"--combobox-option-padding":kt(e,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:me(n),"--combobox-option-fz":Ar(e),"--combobox-option-padding":kt(e,"combobox-option-padding")}});function an(t){const e=Ee("Combobox",Mie,t),{classNames:n,styles:r,unstyled:i,children:a,store:s,vars:o,onOptionSubmit:c,onClose:d,size:f,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:g,readOnly:b,...S}=e,y=ry(),E=s||y,x=ct({name:g||"Combobox",classes:os,props:e,classNames:n,styles:r,unstyled:i,vars:o,varsResolver:Lie}),C=()=>{d==null||d(),E.closeDropdown()};return l.jsx(bie,{value:{getStyles:x,store:E,onOptionSubmit:c,size:f,resetSelectionOnOptionHover:m,readOnly:b},children:l.jsx(li,{opened:E.dropdownOpened,...S,onChange:R=>!R&&C(),withRoles:!1,unstyled:i,children:a})})}const kie=t=>t;an.extend=kie;an.classes=os;an.displayName="@mantine/core/Combobox";an.Target=mY;an.Dropdown=bM;an.Options=CM;an.Option=xM;an.Search=OM;an.Empty=vM;an.Chevron=ny;an.Footer=EM;an.Header=TM;an.EventsTarget=hY;an.DropdownTarget=fY;an.Group=yM;an.ClearButton=_M;an.HiddenInput=pY;var gY={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const _Y=gY,RM=I.forwardRef(({__staticSelector:t,__stylesApiProps:e,className:n,classNames:r,styles:i,unstyled:a,children:s,label:o,description:c,id:d,disabled:f,error:p,size:m,labelPosition:g="left",bodyElement:b="div",labelElement:S="label",variant:y,style:E,vars:x,mod:C,...R},T)=>{const N=ct({name:t,props:e,className:n,style:E,classes:gY,classNames:r,styles:i,unstyled:a});return l.jsx(Se,{...N("root"),ref:T,__vars:{"--label-fz":Ar(m),"--label-lh":kt(m,"label-lh")},mod:[{"label-position":g},C],variant:y,size:m,...R,children:l.jsxs(Se,{component:b,htmlFor:b==="label"?d:void 0,...N("body"),children:[s,l.jsxs("div",{...N("labelWrapper"),"data-disabled":f||void 0,children:[o&&l.jsx(Se,{component:S,htmlFor:S==="label"?d:void 0,...N("label"),"data-disabled":f||void 0,children:o}),c&&l.jsx(Kr.Description,{size:m,__inheritStyles:!1,...N("description"),children:c}),p&&typeof p!="boolean"&&l.jsx(Kr.Error,{size:m,__inheritStyles:!1,...N("error"),children:p})]})]})})});RM.displayName="@mantine/core/InlineInput";const bY=I.createContext(null),Pie=bY.Provider,vY=()=>I.useContext(bY),[Bie,Fie]=c0();var SY={card:"m_26775b0a"};const Uie={withBorder:!0},jie=(t,{radius:e})=>({card:{"--card-radius":Pn(e)}}),NM=Le((t,e)=>{const n=Ee("CheckboxCard",Uie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,checked:d,mod:f,withBorder:p,value:m,onClick:g,defaultChecked:b,onChange:S,...y}=n,E=ct({name:"CheckboxCard",classes:SY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:jie,rootSelector:"card"}),x=vY(),C=typeof d=="boolean"?d:x?x.value.includes(m||""):void 0,[R,T]=ra({value:C,defaultValue:b,finalValue:!1,onChange:S});return l.jsx(Bie,{value:{checked:R},children:l.jsx(Si,{ref:e,mod:[{"with-border":p,checked:R},f],...E("card"),...y,role:"checkbox","aria-checked":R,onClick:N=>{g==null||g(N),x==null||x.onChange(m||""),T(!R)}})})});NM.displayName="@mantine/core/CheckboxCard";NM.classes=SY;function EY({children:t,role:e}){const n=hm();return n?l.jsx("div",{role:e,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:t}):l.jsx(l.Fragment,{children:t})}const Gie={},AM=Le((t,e)=>{const{value:n,defaultValue:r,onChange:i,size:a,wrapperProps:s,children:o,readOnly:c,...d}=Ee("CheckboxGroup",Gie,t),[f,p]=ra({value:n,defaultValue:r,finalValue:[],onChange:i}),m=g=>{const b=typeof g=="string"?g:g.currentTarget.value;!c&&p(f.includes(b)?f.filter(S=>S!==b):[...f,b])};return l.jsx(Pie,{value:{value:f,onChange:m,size:a},children:l.jsx(Kr.Wrapper,{size:a,ref:e,...s,...d,labelElement:"div",__staticSelector:"CheckboxGroup",children:l.jsx(EY,{role:"group",children:o})})})});AM.classes=Kr.Wrapper.classes;AM.displayName="@mantine/core/CheckboxGroup";function iy({size:t,style:e,...n}){const r=t!==void 0?{width:me(t),height:me(t),...e}:e;return l.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:l.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function yY({indeterminate:t,...e}){return t?l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...e,children:l.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):l.jsx(iy,{...e})}var TY={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const qie={icon:yY},$ie=(t,{radius:e,color:n,size:r,iconColor:i,variant:a,autoContrast:s})=>{const o=yd({color:n||t.primaryColor,theme:t}),c=o.isThemeColor&&o.shade===void 0?`var(--mantine-color-${o.color}-outline)`:o.color;return{indicator:{"--checkbox-size":kt(r,"checkbox-size"),"--checkbox-radius":e===void 0?void 0:Pn(e),"--checkbox-color":a==="outline"?c:Jn(n,t),"--checkbox-icon-color":i?Jn(i,t):om(s,t)?Td({color:n,theme:t,autoContrast:s}):void 0}}},wM=Le((t,e)=>{const n=Ee("CheckboxIndicator",qie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,icon:d,indeterminate:f,radius:p,color:m,iconColor:g,autoContrast:b,checked:S,mod:y,variant:E,disabled:x,...C}=n,R=d,T=ct({name:"CheckboxIndicator",classes:TY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:$ie,rootSelector:"indicator"}),N=Fie(),w=typeof S=="boolean"||typeof f=="boolean"?S||f:(N==null?void 0:N.checked)||!1;return l.jsx(Se,{ref:e,...T("indicator",{variant:E}),variant:E,mod:[{checked:w,disabled:x},y],...C,children:l.jsx(R,{indeterminate:f,...T("icon")})})});wM.displayName="@mantine/core/CheckboxIndicator";wM.classes=TY;var xY={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const zie={labelPosition:"right",icon:yY},Yie=(t,{radius:e,color:n,size:r,iconColor:i,variant:a,autoContrast:s})=>{const o=yd({color:n||t.primaryColor,theme:t}),c=o.isThemeColor&&o.shade===void 0?`var(--mantine-color-${o.color}-outline)`:o.color;return{root:{"--checkbox-size":kt(r,"checkbox-size"),"--checkbox-radius":e===void 0?void 0:Pn(e),"--checkbox-color":a==="outline"?c:Jn(n,t),"--checkbox-icon-color":i?Jn(i,t):om(s,t)?Td({color:n,theme:t,autoContrast:s}):void 0}}},$o=Le((t,e)=>{const n=Ee("Checkbox",zie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,label:f,id:p,size:m,radius:g,wrapperProps:b,checked:S,labelPosition:y,description:E,error:x,disabled:C,variant:R,indeterminate:T,icon:N,rootRef:w,iconColor:D,onChange:L,autoContrast:k,mod:M,...P}=n,V=vY(),Y=m||(V==null?void 0:V.size),G=N,F=ct({name:"Checkbox",props:n,classes:xY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Yie}),{styleProps:q,rest:z}=u0(P),H=$a(p),U=V?{checked:V.value.includes(z.value),onChange:Q=>{V.onChange(Q),L==null||L(Q)}}:{};return l.jsx(RM,{...F("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:H,size:Y,labelPosition:y,label:f,description:E,error:x,disabled:C,classNames:r,styles:s,unstyled:o,"data-checked":U.checked||S||void 0,variant:R,ref:w,mod:M,...q,...b,children:l.jsxs(Se,{...F("inner"),mod:{"data-label-position":y},children:[l.jsx(Se,{component:"input",id:H,ref:e,checked:S,disabled:C,mod:{error:!!x,indeterminate:T},...F("input",{focusable:!0,variant:R}),onChange:L,...z,...U,type:"checkbox"}),l.jsx(G,{indeterminate:T,...F("icon")})]})})});$o.classes={...xY,..._Y};$o.displayName="@mantine/core/Checkbox";$o.Group=AM;$o.Indicator=wM;$o.Card=NM;function T_(t){return"group"in t}function CY({options:t,search:e,limit:n}){const r=e.trim().toLowerCase(),i=[];for(let a=0;a<t.length;a+=1){const s=t[a];if(i.length===n)return i;T_(s)&&i.push({group:s.group,items:CY({options:s.items,search:e,limit:n-i.length})}),T_(s)||s.label.toLowerCase().includes(r)&&i.push(s)}return i}function Hie(t){if(t.length===0)return!0;for(const e of t)if(!("group"in e)||e.items.length>0)return!1;return!0}function OY(t,e=new Set){if(Array.isArray(t))for(const n of t)if(T_(n))OY(n.items,e);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(e.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);e.add(n.value)}}function Vie(t,e){return Array.isArray(t)?t.includes(e):t===e}function RY({data:t,withCheckIcon:e,value:n,checkIconPosition:r,unstyled:i,renderOption:a}){if(!T_(t)){const o=Vie(n,t.value),c=e&&o&&l.jsx(iy,{className:os.optionsDropdownCheckIcon}),d=l.jsxs(l.Fragment,{children:[r==="left"&&c,l.jsx("span",{children:t.label}),r==="right"&&c]});return l.jsx(an.Option,{value:t.value,disabled:t.disabled,className:Tr({[os.optionsDropdownOption]:!i}),"data-reverse":r==="right"||void 0,"data-checked":o||void 0,"aria-selected":o,active:o,children:typeof a=="function"?a({option:t,checked:o}):d})}const s=t.items.map(o=>l.jsx(RY,{data:o,value:n,unstyled:i,withCheckIcon:e,checkIconPosition:r,renderOption:a},o.value));return l.jsx(an.Group,{label:t.group,children:s})}function NY({data:t,hidden:e,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:s,withScrollArea:o=!0,filterOptions:c=!0,withCheckIcon:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:g,labelId:b,renderOption:S,scrollAreaProps:y,"aria-label":E}){OY(t);const C=typeof i=="string"?(r||CY)({options:t,search:c?i:"",limit:a??1/0}):t,R=Hie(C),T=C.map(N=>l.jsx(RY,{data:N,withCheckIcon:d,value:f,checkIconPosition:p,unstyled:g,renderOption:S},T_(N)?N.group:N.value));return l.jsx(an.Dropdown,{hidden:e||n&&R,children:l.jsxs(an.Options,{labelledBy:b,"aria-label":E,children:[o?l.jsx(Yc.Autosize,{mah:s??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:T}):T,R&&m&&l.jsx(an.Empty,{children:m})]})})}const Wie={},DM=Le((t,e)=>{const n=Ee("Autocomplete",Wie,t),{classNames:r,styles:i,unstyled:a,vars:s,dropdownOpened:o,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:f,onFocus:p,onBlur:m,onClick:g,onChange:b,data:S,value:y,defaultValue:E,selectFirstOptionOnChange:x,onOptionSubmit:C,comboboxProps:R,readOnly:T,disabled:N,filter:w,limit:D,withScrollArea:L,maxDropdownHeight:k,size:M,id:P,renderOption:V,autoComplete:Y,scrollAreaProps:G,...F}=n,q=$a(P),z=dY(S),H=gM(z),[U,Q]=ra({value:y,defaultValue:E,finalValue:"",onChange:b}),X=ry({opened:o,defaultOpened:c,onDropdownOpen:f,onDropdownClose:()=>{d==null||d(),X.resetSelectedOption()}}),{resolvedClassNames:te,resolvedStyles:ie}=rl({props:n,styles:i,classNames:r});return I.useEffect(()=>{x&&X.selectFirstOption()},[x,U]),l.jsxs(an,{store:X,__staticSelector:"Autocomplete",classNames:te,styles:ie,unstyled:a,readOnly:T,onOptionSubmit:fe=>{C==null||C(fe),Q(H[fe].label),X.closeDropdown()},size:M,...R,children:[l.jsx(an.Target,{autoComplete:Y,children:l.jsx(cs,{ref:e,...F,size:M,__staticSelector:"Autocomplete",disabled:N,readOnly:T,value:U,onChange:fe=>{Q(fe.currentTarget.value),X.openDropdown(),x&&X.selectFirstOption()},onFocus:fe=>{X.openDropdown(),p==null||p(fe)},onBlur:fe=>{X.closeDropdown(),m==null||m(fe)},onClick:fe=>{X.openDropdown(),g==null||g(fe)},classNames:te,styles:ie,unstyled:a,id:q})}),l.jsx(NY,{data:z,hidden:T||N,filter:w,search:U,limit:D,hiddenWhenEmpty:!0,withScrollArea:L,maxDropdownHeight:k,unstyled:a,labelId:F.label?`${q}-label`:void 0,"aria-label":F.label?void 0:F["aria-label"],renderOption:V,scrollAreaProps:G})]})});DM.classes={...cs.classes,...an.classes};DM.displayName="@mantine/core/Autocomplete";var AY={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const Qie={},Kie=(t,{radius:e,color:n,gradient:r,variant:i,size:a,autoContrast:s})=>{const o=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:s});return{root:{"--badge-height":kt(a,"badge-height"),"--badge-padding-x":kt(a,"badge-padding-x"),"--badge-fz":kt(a,"badge-fz"),"--badge-radius":e===void 0?void 0:Pn(e),"--badge-bg":n||i?o.background:void 0,"--badge-color":n||i?o.color:void 0,"--badge-bd":n||i?o.border:void 0,"--badge-dot-color":i==="dot"?Jn(n,t):void 0}}},Qr=Ca((t,e)=>{const n=Ee("Badge",Qie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,radius:d,color:f,gradient:p,leftSection:m,rightSection:g,children:b,variant:S,fullWidth:y,autoContrast:E,circle:x,mod:C,...R}=n,T=ct({name:"Badge",props:n,classes:AY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Kie});return l.jsxs(Se,{variant:S,mod:[{block:y,circle:x,"with-right-section":!!g,"with-left-section":!!m},C],...T("root",{variant:S}),ref:e,...R,children:[m&&l.jsx("span",{...T("section"),"data-position":"left",children:m}),l.jsx("span",{...T("label"),children:b}),g&&l.jsx("span",{...T("section"),"data-position":"right",children:g})]})});Qr.classes=AY;Qr.displayName="@mantine/core/Badge";var wY={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Xie={},Zie=(t,{color:e,size:n,lineSize:r,transitionDuration:i,transitionTimingFunction:a})=>({root:{"--burger-color":e?Jn(e,t):void 0,"--burger-size":kt(n,"burger-size"),"--burger-line-size":r?me(r):void 0,"--burger-transition-duration":i===void 0?void 0:`${i}ms`,"--burger-transition-timing-function":a}}),IM=Le((t,e)=>{const n=Ee("Burger",Xie,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,opened:d,children:f,transitionDuration:p,transitionTimingFunction:m,lineSize:g,...b}=n,S=ct({name:"Burger",classes:wY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Zie});return l.jsxs(Si,{...S("root"),ref:e,...b,children:[l.jsx(Se,{mod:["reduce-motion",{opened:d}],...S("burger")}),f]})});IM.classes=wY;IM.displayName="@mantine/core/Burger";var mm={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const zB={orientation:"horizontal"},Jie=(t,{borderWidth:e})=>({group:{"--button-border-width":me(e)}}),MM=Le((t,e)=>{const n=Ee("ButtonGroup",zB,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,orientation:c,vars:d,borderWidth:f,variant:p,mod:m,...g}=Ee("ButtonGroup",zB,t),b=ct({name:"ButtonGroup",props:n,classes:mm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:d,varsResolver:Jie,rootSelector:"group"});return l.jsx(Se,{...b("group"),ref:e,variant:p,mod:[{"data-orientation":c},m],role:"group",...g})});MM.classes=mm;MM.displayName="@mantine/core/ButtonGroup";const YB={},eae=(t,{radius:e,color:n,gradient:r,variant:i,autoContrast:a,size:s})=>{const o=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:a});return{groupSection:{"--section-height":kt(s,"section-height"),"--section-padding-x":kt(s,"section-padding-x"),"--section-fz":s!=null&&s.includes("compact")?Ar(s.replace("compact-","")):Ar(s),"--section-radius":e===void 0?void 0:Pn(e),"--section-bg":n||i?o.background:void 0,"--section-color":o.color,"--section-bd":n||i?o.border:void 0}}},LM=Le((t,e)=>{const n=Ee("ButtonGroupSection",YB,t),{className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,variant:d,gradient:f,radius:p,autoContrast:m,...g}=Ee("ButtonGroupSection",YB,t),b=ct({name:"ButtonGroupSection",props:n,classes:mm,className:r,style:i,classNames:a,styles:s,unstyled:o,vars:c,varsResolver:eae,rootSelector:"groupSection"});return l.jsx(Se,{...b("groupSection"),ref:e,variant:d,...g})});LM.classes=mm;LM.displayName="@mantine/core/ButtonGroupSection";const tae={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${me(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},nae={},rae=(t,{radius:e,color:n,gradient:r,variant:i,size:a,justify:s,autoContrast:o})=>{const c=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:o});return{root:{"--button-justify":s,"--button-height":kt(a,"button-height"),"--button-padding-x":kt(a,"button-padding-x"),"--button-fz":a!=null&&a.includes("compact")?Ar(a.replace("compact-","")):Ar(a),"--button-radius":e===void 0?void 0:Pn(e),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}},Ea=Ca((t,e)=>{const n=Ee("Button",nae,t),{style:r,vars:i,className:a,color:s,disabled:o,children:c,leftSection:d,rightSection:f,fullWidth:p,variant:m,radius:g,loading:b,loaderProps:S,gradient:y,classNames:E,styles:x,unstyled:C,"data-disabled":R,autoContrast:T,mod:N,...w}=n,D=ct({name:"Button",props:n,classes:mm,className:a,style:r,classNames:E,styles:x,unstyled:C,vars:i,varsResolver:rae}),L=!!d,k=!!f;return l.jsxs(Si,{ref:e,...D("root",{active:!o&&!b&&!R}),unstyled:C,variant:m,disabled:o||b,mod:[{disabled:o||R,loading:b,block:p,"with-left-section":L,"with-right-section":k},N],...w,children:[l.jsx(xd,{mounted:!!b,transition:tae,duration:150,children:M=>l.jsx(Se,{component:"span",...D("loader",{style:M}),"aria-hidden":!0,children:l.jsx(ql,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...S})})}),l.jsxs("span",{...D("inner"),children:[d&&l.jsx(Se,{component:"span",...D("section"),mod:{position:"left"},children:d}),l.jsx(Se,{component:"span",mod:{loading:b},...D("label"),children:c}),f&&l.jsx(Se,{component:"span",...D("section"),mod:{position:"right"},children:f})]})]})});Ea.classes=mm;Ea.displayName="@mantine/core/Button";Ea.Group=MM;Ea.GroupSection=LM;const[iae,aae]=xa("Card component was not found in tree");var kM={root:"m_e615b15f",section:"m_599a2148"};const sae={},ay=Ca((t,e)=>{const n=Ee("CardSection",sae,t),{classNames:r,className:i,style:a,styles:s,vars:o,withBorder:c,inheritPadding:d,mod:f,...p}=n,m=aae();return l.jsx(Se,{ref:e,mod:[{"with-border":c,"inherit-padding":d},f],...m.getStyles("section",{className:i,style:a,styles:s,classNames:r}),...p})});ay.classes=kM;ay.displayName="@mantine/core/CardSection";const oae={},lae=(t,{padding:e})=>({root:{"--card-padding":Gl(e)}}),Ur=Ca((t,e)=>{const n=Ee("Card",oae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,padding:f,...p}=n,m=ct({name:"Card",props:n,classes:kM,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:lae}),g=I.Children.toArray(d),b=g.map((S,y)=>typeof S=="object"&&S&&"type"in S&&S.type===ay?I.cloneElement(S,{"data-first-section":y===0||void 0,"data-last-section":y===g.length-1||void 0}):S);return l.jsx(iae,{value:{getStyles:m},children:l.jsx(VE,{ref:e,unstyled:o,...m("root"),...p,children:b})})});Ur.classes=kM;Ur.displayName="@mantine/core/Card";Ur.Section=ay;var DY={root:"m_4451eb3a"};const cae={},x_=Ca((t,e)=>{const n=Ee("Center",cae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,inline:d,mod:f,...p}=n,m=ct({name:"Center",props:n,classes:DY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c});return l.jsx(Se,{ref:e,mod:[{inline:d},f],...m("root"),...p})});x_.classes=DY;x_.displayName="@mantine/core/Center";var IY={root:"m_b183c0a2"};const uae={},dae=(t,{color:e})=>({root:{"--code-bg":e?Jn(e,t):void 0}}),PM=Le((t,e)=>{const n=Ee("Code",uae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,block:f,variant:p,mod:m,...g}=n,b=ct({name:"Code",props:n,classes:IY,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:dae});return l.jsx(Se,{component:f?"pre":"code",variant:p,ref:e,mod:[{block:f},m],...b("root"),...g,dir:"ltr"})});PM.classes=IY;PM.displayName="@mantine/core/Code";const fae={timeout:1e3};function BM(t){const{children:e,timeout:n,value:r,...i}=Ee("CopyButton",fae,t),a=OJ({timeout:n}),s=()=>a.copy(r);return l.jsx(l.Fragment,{children:e({copy:s,copied:a.copied,...i})})}BM.displayName="@mantine/core/CopyButton";var MY={root:"m_3eebeb36",label:"m_9e365f20"};const hae={orientation:"horizontal"},pae=(t,{color:e,variant:n,size:r})=>({root:{"--divider-color":e?Jn(e,t):void 0,"--divider-border-style":n,"--divider-size":kt(r,"divider-size")}}),sy=Le((t,e)=>{const n=Ee("Divider",hae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,orientation:f,label:p,labelPosition:m,mod:g,...b}=n,S=ct({name:"Divider",classes:MY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:pae});return l.jsx(Se,{ref:e,mod:[{orientation:f,"with-label":!!p},g],...S("root"),...b,role:"separator",children:p&&l.jsx(Se,{component:"span",mod:{position:m},...S("label"),children:p})})});sy.classes=MY;sy.displayName="@mantine/core/Divider";var LY={root:"m_e9408a47","root--default":"m_84c9523a","root--filled":"m_ef274e49","root--unstyled":"m_eda993d3",legend:"m_90794832","legend--unstyled":"m_74ca27fe"};const mae={variant:"default"},gae=(t,{radius:e})=>({root:{"--fieldset-radius":e===void 0?void 0:Pn(e)}}),Xh=Le((t,e)=>{const n=Ee("Fieldset",mae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,legend:d,variant:f,children:p,...m}=n,g=ct({name:"Fieldset",classes:LY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:gae});return l.jsxs(Se,{component:"fieldset",ref:e,variant:f,...g("root",{variant:f}),...m,children:[d&&l.jsx("legend",{...g("legend",{variant:f}),children:d}),p]})});Xh.classes=LY;Xh.displayName="@mantine/core/Fieldset";function _ae({open:t,close:e,openDelay:n,closeDelay:r}){const i=I.useRef(-1),a=I.useRef(-1),s=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)},o=()=>{s(),n===0||n===void 0?t():i.current=window.setTimeout(t,n)},c=()=>{s(),r===0||r===void 0?e():a.current=window.setTimeout(e,r)};return I.useEffect(()=>s,[]),{openDropdown:o,closeDropdown:c}}function bae(t="top-end",e=0){const n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=me(e),[i,a]=t.split("-");return i==="top"&&(n["--indicator-top"]=r,n["--indicator-translate-y"]="-50%"),i==="middle"&&(n["--indicator-top"]="50%",n["--indicator-translate-y"]="-50%"),i==="bottom"&&(n["--indicator-bottom"]=r,n["--indicator-translate-y"]="50%"),a==="start"&&(n["--indicator-left"]=r,n["--indicator-translate-x"]="-50%"),a==="center"&&(n["--indicator-left"]="50%",n["--indicator-translate-x"]="-50%"),a==="end"&&(n["--indicator-right"]=r,n["--indicator-translate-x"]="50%"),n}var kY={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const vae={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1},Sae=(t,{color:e,position:n,offset:r,size:i,radius:a,zIndex:s,autoContrast:o})=>({root:{"--indicator-color":e?Jn(e,t):void 0,"--indicator-text-color":om(o,t)?Td({color:e,theme:t,autoContrast:o}):void 0,"--indicator-size":me(i),"--indicator-radius":a===void 0?void 0:Pn(a),"--indicator-z-index":s==null?void 0:s.toString(),...bae(n,r)}}),FM=Le((t,e)=>{const n=Ee("Indicator",vae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,position:f,offset:p,inline:m,label:g,radius:b,color:S,withBorder:y,disabled:E,processing:x,zIndex:C,autoContrast:R,mod:T,...N}=n,w=ct({name:"Indicator",classes:kY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Sae});return l.jsxs(Se,{ref:e,...w("root"),mod:[{inline:m},T],...N,children:[!E&&l.jsx(Se,{mod:{"with-label":!!g,"with-border":y,processing:x},...w("indicator"),children:g}),d]})});FM.classes=kY;FM.displayName="@mantine/core/Indicator";function LS(){return LS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},LS.apply(null,arguments)}function UM(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}const[Eae,yae]=xa("List component was not found in tree");var jM={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const Tae={},GM=Le((t,e)=>{const n=Ee("ListItem",Tae,t),{classNames:r,className:i,style:a,styles:s,vars:o,icon:c,children:d,mod:f,...p}=n,m=yae(),g=c||m.icon,b={classNames:r,styles:s};return l.jsx(Se,{...m.getStyles("item",{...b,className:i,style:a}),component:"li",mod:[{"with-icon":!!g,centered:m.center},f],ref:e,...p,children:l.jsxs("div",{...m.getStyles("itemWrapper",b),children:[g&&l.jsx("span",{...m.getStyles("itemIcon",b),children:g}),l.jsx("span",{...m.getStyles("itemLabel",b),children:d})]})})});GM.classes=jM;GM.displayName="@mantine/core/ListItem";const xae={type:"unordered"},Cae=(t,{size:e,spacing:n})=>({root:{"--list-fz":Ar(e),"--list-lh":L5(e),"--list-spacing":Gl(n)}}),mr=Le((t,e)=>{const n=Ee("List",xae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,type:f,withPadding:p,icon:m,spacing:g,center:b,listStyleType:S,mod:y,...E}=n,x=ct({name:"List",classes:jM,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Cae});return l.jsx(Eae,{value:{center:b,icon:m,getStyles:x},children:l.jsx(Se,{...x("root",{style:{listStyleType:S}}),component:f==="unordered"?"ul":"ol",mod:[{"with-padding":p},y],ref:e,...E,children:d})})});mr.classes=jM;mr.displayName="@mantine/core/List";mr.Item=GM;var PY={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const HB={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:co("overlay")},Oae=(t,{zIndex:e})=>({root:{"--lo-z-index":e==null?void 0:e.toString()}}),qM=Le((t,e)=>{const n=Ee("LoadingOverlay",HB,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,transitionProps:d,loaderProps:f,overlayProps:p,visible:m,zIndex:g,...b}=n,S=Ui(),y=ct({name:"LoadingOverlay",classes:PY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Oae}),E={...HB.overlayProps,...p};return l.jsx(xd,{transition:"fade",...d,mounted:!!m,children:x=>l.jsxs(Se,{...y("root",{style:x}),ref:e,...b,children:[l.jsx(ql,{...y("loader"),unstyled:o,...f}),l.jsx(E_,{...E,...y("overlay"),darkHidden:!0,unstyled:o,color:(p==null?void 0:p.color)||S.white}),l.jsx(E_,{...E,...y("overlay"),lightHidden:!0,unstyled:o,color:(p==null?void 0:p.color)||S.colors.dark[5]})]})})});qM.classes=PY;qM.displayName="@mantine/core/LoadingOverlay";const[Rae,g0]=xa("Menu component was not found in the tree");var gm={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const Nae={},$M=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Ee("MenuDivider",Nae,t),c=g0();return l.jsx(Se,{ref:e,...c.getStyles("divider",{className:r,style:i,styles:a,classNames:n}),...o})});$M.classes=gm;$M.displayName="@mantine/core/MenuDivider";const Aae={},zM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,onMouseEnter:o,onMouseLeave:c,onKeyDown:d,children:f,...p}=Ee("MenuDropdown",Aae,t),m=I.useRef(null),g=g0(),b=rs(d,E=>{var x,C;(E.key==="ArrowUp"||E.key==="ArrowDown")&&(E.preventDefault(),(C=(x=m.current)==null?void 0:x.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||C.focus())}),S=rs(o,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),y=rs(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return l.jsxs(li.Dropdown,{...p,onMouseEnter:S,onMouseLeave:y,role:"menu","aria-orientation":"vertical",ref:Xr(e,m),...g.getStyles("dropdown",{className:r,style:i,styles:a,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[l.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),f]})});zM.classes=gm;zM.displayName="@mantine/core/MenuDropdown";const wae={},YM=Ca((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,color:o,closeMenuOnClick:c,leftSection:d,rightSection:f,children:p,disabled:m,...g}=Ee("MenuItem",wae,t),b=g0(),S=Ui(),{dir:y}=lm(),E=I.useRef(null),x=b.getItemIndex(E.current),C=g,R=rs(C.onMouseLeave,()=>b.setHovered(-1)),T=rs(C.onMouseEnter,()=>b.setHovered(b.getItemIndex(E.current))),N=rs(C.onClick,()=>{typeof c=="boolean"?c&&b.closeDropdownImmediately():b.closeOnItemClick&&b.closeDropdownImmediately()}),w=rs(C.onFocus,()=>b.setHovered(b.getItemIndex(E.current))),D=o?S.variantColorResolver({color:o,theme:S,variant:"light"}):void 0,L=o?yd({color:o,theme:S}):null;return l.jsxs(Si,{...g,unstyled:b.unstyled,tabIndex:b.menuItemTabIndex,onFocus:w,...b.getStyles("item",{className:r,style:i,styles:a,classNames:n}),ref:Xr(E,e),role:"menuitem",disabled:m,"data-menu-item":!0,"data-disabled":m||void 0,"data-hovered":b.hovered===x?!0:void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:R,onClick:N,onKeyDown:TI({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:b.loop,dir:y,orientation:"vertical",onKeyDown:C.onKeyDown}),__vars:{"--menu-item-color":L!=null&&L.isThemeColor&&(L==null?void 0:L.shade)===void 0?`var(--mantine-color-${L.color}-6)`:D==null?void 0:D.color,"--menu-item-hover":D==null?void 0:D.hover},children:[d&&l.jsx("div",{...b.getStyles("itemSection",{styles:a,classNames:n}),"data-position":"left",children:d}),p&&l.jsx("div",{...b.getStyles("itemLabel",{styles:a,classNames:n}),children:p}),f&&l.jsx("div",{...b.getStyles("itemSection",{styles:a,classNames:n}),"data-position":"right",children:f})]})});YM.classes=gm;YM.displayName="@mantine/core/MenuItem";const Dae={},HM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Ee("MenuLabel",Dae,t),c=g0();return l.jsx(Se,{ref:e,...c.getStyles("label",{className:r,style:i,styles:a,classNames:n}),...o})});HM.classes=gm;HM.displayName="@mantine/core/MenuLabel";const Iae={refProp:"ref"},BY=I.forwardRef((t,e)=>{const{children:n,refProp:r,...i}=Ee("MenuTarget",Iae,t);if(!Sd(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=g0(),s=n.props,o=rs(s.onClick,()=>{a.trigger==="click"?a.toggleDropdown():a.trigger==="click-hover"&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=rs(s.onMouseEnter,()=>(a.trigger==="hover"||a.trigger==="click-hover")&&a.openDropdown()),d=rs(s.onMouseLeave,()=>{(a.trigger==="hover"||a.trigger==="click-hover"&&!a.openedViaClick)&&a.closeDropdown()});return l.jsx(li.Target,{refProp:r,popupType:"menu",ref:e,...i,children:I.cloneElement(n,{onClick:o,onMouseEnter:c,onMouseLeave:d,"data-expanded":a.opened?!0:void 0})})});BY.displayName="@mantine/core/MenuTarget";const Mae={trapFocus:!0,closeOnItemClick:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function hr(t){const e=Ee("Menu",Mae,t),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:s,trapFocus:o,onChange:c,closeOnItemClick:d,loop:f,closeOnEscape:p,trigger:m,openDelay:g,closeDelay:b,classNames:S,styles:y,unstyled:E,variant:x,vars:C,menuItemTabIndex:R,keepMounted:T,...N}=e,w=ct({name:"Menu",classes:gm,props:e,classNames:S,styles:y,unstyled:E}),[D,{setHovered:L,resetHovered:k}]=TJ(),[M,P]=ra({value:a,defaultValue:s,finalValue:!1,onChange:c}),[V,Y]=I.useState(!1),G=()=>{P(!1),Y(!1),M&&(i==null||i())},F=()=>{P(!0),!M&&(r==null||r())},q=()=>{M?G():F()},{openDropdown:z,closeDropdown:H}=_ae({open:F,close:G,closeDelay:b,openDelay:g}),U=te=>yJ("[data-menu-item]","[data-menu-dropdown]",te),{resolvedClassNames:Q,resolvedStyles:X}=rl({classNames:S,styles:y,props:e});return so(()=>{k()},[M]),l.jsx(Rae,{value:{getStyles:w,opened:M,toggleDropdown:q,getItemIndex:U,hovered:D,setHovered:L,openedViaClick:V,setOpenedViaClick:Y,closeOnItemClick:d,closeDropdown:m==="click"?G:H,openDropdown:m==="click"?F:z,closeDropdownImmediately:G,loop:f,trigger:m,unstyled:E,menuItemTabIndex:R},children:l.jsx(li,{...N,opened:M,onChange:q,defaultOpened:s,trapFocus:T?!1:o,closeOnEscape:p,__staticSelector:"Menu",classNames:Q,styles:X,unstyled:E,variant:x,keepMounted:T,children:n})})}hr.extend=t=>t;hr.classes=gm;hr.displayName="@mantine/core/Menu";hr.Item=YM;hr.Label=HM;hr.Dropdown=zM;hr.Target=BY;hr.Divider=$M;const[Lae,_m]=xa("Modal component was not found in tree");var Vc={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const kae={},oy=Le((t,e)=>{const n=Ee("ModalBody",kae,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=_m();return l.jsx(Zz,{ref:e,...d.getStyles("body",{classNames:r,style:a,styles:s,className:i}),...c})});oy.classes=Vc;oy.displayName="@mantine/core/ModalBody";const Pae={},ly=Le((t,e)=>{const n=Ee("ModalCloseButton",Pae,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=_m();return l.jsx(Jz,{ref:e,...d.getStyles("close",{classNames:r,style:a,styles:s,className:i}),...c})});ly.classes=Vc;ly.displayName="@mantine/core/ModalCloseButton";const Bae={},cy=Le((t,e)=>{const n=Ee("ModalContent",Bae,t),{classNames:r,className:i,style:a,styles:s,vars:o,children:c,__hidden:d,...f}=n,p=_m(),m=p.scrollAreaComponent||Tre;return l.jsx(eY,{...p.getStyles("content",{className:i,style:a,styles:s,classNames:r}),innerProps:p.getStyles("inner",{className:i,style:a,styles:s,classNames:r}),"data-full-screen":p.fullScreen||void 0,"data-modal-content":!0,"data-hidden":d||void 0,ref:e,...f,children:l.jsx(m,{style:{maxHeight:p.fullScreen?"100dvh":`calc(100dvh - (${me(p.yOffset)} * 2))`},children:c})})});cy.classes=Vc;cy.displayName="@mantine/core/ModalContent";const Fae={},uy=Le((t,e)=>{const n=Ee("ModalHeader",Fae,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=_m();return l.jsx(tY,{ref:e,...d.getStyles("header",{classNames:r,style:a,styles:s,className:i}),...c})});uy.classes=Vc;uy.displayName="@mantine/core/ModalHeader";const Uae={},dy=Le((t,e)=>{const n=Ee("ModalOverlay",Uae,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=_m();return l.jsx(nY,{ref:e,...d.getStyles("overlay",{classNames:r,style:a,styles:s,className:i}),...c})});dy.classes=Vc;dy.displayName="@mantine/core/ModalOverlay";const jae={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:co("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},Gae=(t,{radius:e,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":e===void 0?void 0:Pn(e),"--modal-size":kt(n,"modal-size"),"--modal-y-offset":me(r),"--modal-x-offset":me(i)}}),fy=Le((t,e)=>{const n=Ee("ModalRoot",jae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,yOffset:d,scrollAreaComponent:f,radius:p,fullScreen:m,centered:g,xOffset:b,__staticSelector:S,...y}=n,E=ct({name:S,classes:Vc,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Gae});return l.jsx(Lae,{value:{yOffset:d,scrollAreaComponent:f,getStyles:E,fullScreen:m},children:l.jsx(Xz,{ref:e,...E("root"),"data-full-screen":m||void 0,"data-centered":g||void 0,unstyled:o,...y})})});fy.classes=Vc;fy.displayName="@mantine/core/ModalRoot";const[qae,$ae]=c0();function FY({children:t}){const[e,n]=I.useState([]),[r,i]=I.useState(co("modal"));return l.jsx(qae,{value:{stack:e,addModal:(a,s)=>{n(o=>[...new Set([...o,a])]),i(o=>typeof s=="number"&&typeof o=="number"?Math.max(o,s):o)},removeModal:a=>n(s=>s.filter(o=>o!==a)),getZIndex:a=>`calc(${r} + ${e.indexOf(a)} + 1)`,currentId:e[e.length-1],maxZIndex:r},children:t})}FY.displayName="@mantine/core/ModalStack";const zae={},hy=Le((t,e)=>{const n=Ee("ModalTitle",zae,t),{classNames:r,className:i,style:a,styles:s,vars:o,...c}=n,d=_m();return l.jsx(rY,{ref:e,...d.getStyles("title",{classNames:r,style:a,styles:s,className:i}),...c})});hy.classes=Vc;hy.displayName="@mantine/core/ModalTitle";const Yae={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:co("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},po=Le((t,e)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:a,closeButtonProps:s,children:o,radius:c,opened:d,stackId:f,zIndex:p,...m}=Ee("Modal",Yae,t),g=$ae(),b=!!n||a,S=g&&f?{closeOnEscape:g.currentId===f,trapFocus:g.currentId===f,zIndex:g.getZIndex(f)}:{},y=r===!1?!1:f&&g?g.currentId===f:d;return I.useEffect(()=>{g&&f&&(d?g.addModal(f,p||co("modal")):g.removeModal(f))},[d,f,p]),l.jsxs(fy,{ref:e,radius:c,opened:d,zIndex:g&&f?g.getZIndex(f):p,...m,...S,children:[r&&l.jsx(dy,{visible:y,transitionProps:g&&f?{duration:0}:void 0,...i}),l.jsxs(cy,{radius:c,__hidden:g&&f&&d?f!==g.currentId:!1,children:[b&&l.jsxs(uy,{children:[n&&l.jsx(hy,{children:n}),a&&l.jsx(ly,{...s})]}),l.jsx(oy,{children:o})]})]})});po.classes=Vc;po.displayName="@mantine/core/Modal";po.Root=fy;po.Overlay=dy;po.Content=cy;po.Body=oy;po.Header=uy;po.Title=hy;po.CloseButton=ly;po.Stack=FY;const[Hae,VM]=c0(),[Vae,Wae]=c0();var py={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const Qae={},Kae=(t,{gap:e},{size:n})=>({group:{"--pg-gap":e!==void 0?kt(e):kt(n,"pg-gap")}}),WM=Le((t,e)=>{const n=Ee("PillGroup",Qae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,size:d,disabled:f,...p}=n,m=VM(),g=(m==null?void 0:m.size)||d||void 0,b=ct({name:"PillGroup",classes:py,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Kae,stylesCtx:{size:g},rootSelector:"group"});return l.jsx(Vae,{value:{size:g,disabled:f},children:l.jsx(Se,{ref:e,size:g,...b("group"),...p})})});WM.classes=py;WM.displayName="@mantine/core/PillGroup";const Xae={variant:"default"},Zae=(t,{radius:e},{size:n})=>({root:{"--pill-fz":kt(n,"pill-fz"),"--pill-height":kt(n,"pill-height"),"--pill-radius":e===void 0?void 0:Pn(e)}}),wc=Le((t,e)=>{const n=Ee("Pill",Xae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,variant:d,children:f,withRemoveButton:p,onRemove:m,removeButtonProps:g,radius:b,size:S,disabled:y,mod:E,...x}=n,C=Wae(),R=VM(),T=S||(C==null?void 0:C.size)||void 0,N=(R==null?void 0:R.variant)==="filled"?"contrast":d||"default",w=ct({name:"Pill",classes:py,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Zae,stylesCtx:{size:T}});return l.jsxs(Se,{component:"span",ref:e,variant:N,size:T,...w("root",{variant:N}),mod:[{"with-remove":p&&!y,disabled:y||(C==null?void 0:C.disabled)},E],...x,children:[l.jsx("span",{...w("label"),children:f}),p&&l.jsx(Yl,{variant:"transparent",radius:b,tabIndex:-1,"aria-hidden":!0,unstyled:o,...g,...w("remove",{className:g==null?void 0:g.className,style:g==null?void 0:g.style}),onMouseDown:D=>{var L;D.preventDefault(),D.stopPropagation(),(L=g==null?void 0:g.onMouseDown)==null||L.call(g,D)},onClick:D=>{var L;D.stopPropagation(),m==null||m(),(L=g==null?void 0:g.onClick)==null||L.call(g,D)}})]})});wc.classes=py;wc.displayName="@mantine/core/Pill";wc.Group=WM;var UY={field:"m_45c4369d"};const Jae={type:"visible"},QM=Le((t,e)=>{const n=Ee("PillsInputField",Jae,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,type:d,disabled:f,id:p,pointer:m,mod:g,...b}=n,S=VM(),y=hm(),E=ct({name:"PillsInputField",classes:UY,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,rootSelector:"field"}),x=f||(S==null?void 0:S.disabled);return l.jsx(Se,{component:"input",ref:Xr(e,S==null?void 0:S.fieldRef),"data-type":d,disabled:x,mod:[{disabled:x,pointer:m},g],...E("field"),...b,id:(y==null?void 0:y.inputId)||p,"aria-invalid":S==null?void 0:S.hasError,"aria-describedby":y==null?void 0:y.describedBy,type:"text",onMouseDown:C=>!m&&C.stopPropagation()})});QM.classes=UY;QM.displayName="@mantine/core/PillsInputField";const ese={},l_=Le((t,e)=>{const n=Ee("PillsInput",ese,t),{children:r,onMouseDown:i,onClick:a,size:s,disabled:o,__staticSelector:c,error:d,variant:f,...p}=n,m=I.useRef(null);return l.jsx(Hae,{value:{fieldRef:m,size:s,disabled:o,hasError:!!d,variant:f},children:l.jsx(cs,{size:s,error:d,variant:f,component:"div",ref:e,onMouseDown:g=>{var b;g.preventDefault(),i==null||i(g),(b=m.current)==null||b.focus()},onClick:g=>{var b;g.preventDefault(),a==null||a(g),(b=m.current)==null||b.focus()},...p,multiline:!0,disabled:o,__staticSelector:c||"PillsInput",withAria:!1,children:r})})});l_.displayName="@mantine/core/PillsInput";l_.Field=QM;var jY={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const tse={withCloseButton:!0},nse=(t,{radius:e,color:n})=>({root:{"--notification-radius":e===void 0?void 0:Pn(e),"--notification-color":n?Jn(n,t):void 0}}),KM=Le((t,e)=>{const n=Ee("Notification",tse,t),{className:r,color:i,radius:a,loading:s,withCloseButton:o,withBorder:c,title:d,icon:f,children:p,onClose:m,closeButtonProps:g,classNames:b,style:S,styles:y,unstyled:E,variant:x,vars:C,mod:R,...T}=n,N=ct({name:"Notification",classes:jY,props:n,className:r,style:S,classNames:b,styles:y,unstyled:E,vars:C,varsResolver:nse});return l.jsxs(Se,{...N("root"),mod:[{"data-with-icon":!!f||s,"data-with-border":c},R],ref:e,variant:x,...T,role:"alert",children:[f&&!s&&l.jsx("div",{...N("icon"),children:f}),s&&l.jsx(ql,{size:28,color:i,...N("loader")}),l.jsxs("div",{...N("body"),children:[d&&l.jsx("div",{...N("title"),children:d}),l.jsx(Se,{...N("description"),mod:{"data-with-title":!!d},children:p})]}),o&&l.jsx(Yl,{iconSize:16,color:"gray",...g,unstyled:E,onClick:m,...N("closeButton")})]})});KM.classes=jY;KM.displayName="@mantine/core/Notification";function GY(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var C_;(function(t){t.event="event",t.props="prop"})(C_||(C_={}));function Gu(){}function rse(t){var e,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return e&&r.length===e.length&&r.every(function(a,s){return a===e[s]})||(e=r,n=t.apply(void 0,r)),n}}function O_(t){return!!(t||"").match(/\d/)}function ip(t){return t==null}function ise(t){return typeof t=="number"&&isNaN(t)}function qY(t){return ip(t)||ise(t)||typeof t=="number"&&!isFinite(t)}function $Y(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ase(t){switch(t){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function sse(t,e,n){var r=ase(n),i=t.search(/[1-9]/);return i=i===-1?t.length:i,t.substring(0,i)+t.substring(i,t.length).replace(r,"$1"+e)}function ose(t){var e=I.useRef(t);e.current=t;var n=I.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return e.current.apply(e,r)});return n.current}function XM(t,e){e===void 0&&(e=!0);var n=t[0]==="-",r=n&&e;t=t.replace("-","");var i=t.split("."),a=i[0],s=i[1]||"";return{beforeDecimal:a,afterDecimal:s,hasNegation:n,addNegation:r}}function lse(t){if(!t)return t;var e=t[0]==="-";e&&(t=t.substring(1,t.length));var n=t.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(e?"-":"")+r+(i?"."+i:"")}function zY(t,e,n){for(var r="",i=n?"0":"",a=0;a<=e-1;a++)r+=t[a]||i;return r}function VB(t,e){return Array(e+1).join(t)}function YY(t){var e=t+"",n=e[0]==="-"?"-":"";n&&(e=e.substring(1));var r=e.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var s=1+a,o=i.length;return s<0?i="0."+VB("0",Math.abs(s))+i:s>=o?i=i+VB("0",s-o):i=(i.substring(0,s)||"0")+"."+i.substring(s),n+i}function WB(t,e,n){if(["","-"].indexOf(t)!==-1)return t;var r=(t.indexOf(".")!==-1||n)&&e,i=XM(t),a=i.beforeDecimal,s=i.afterDecimal,o=i.hasNegation,c=parseFloat("0."+(s||"0")),d=s.length<=e?"0."+s:c.toFixed(e),f=d.split("."),p=a;a&&Number(f[0])&&(p=a.split("").reverse().reduce(function(S,y,E){return S.length>E?(Number(S[0])+Number(y)).toString()+S.substring(1,S.length):y+S},f[0]));var m=zY(f[1]||"",e,n),g=o?"-":"",b=r?".":"";return""+g+p+b+m}function hf(t,e){if(t.value=t.value,t!==null){if(t.createTextRange){var n=t.createTextRange();return n.move("character",e),n.select(),!0}return t.selectionStart||t.selectionStart===0?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}}var HY=rse(function(t,e){for(var n=0,r=0,i=t.length,a=e.length;t[n]===e[n]&&n<i;)n++;for(;t[i-1-r]===e[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),cse=function(t,e){var n=Math.min(t.selectionStart,e);return{from:{start:n,end:t.selectionEnd},to:{start:n,end:e}}};function use(t,e,n){return Math.min(Math.max(t,e),n)}function UC(t){return Math.max(t.selectionStart,t.selectionEnd)}function dse(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function fse(t){return{from:{start:0,end:0},to:{start:0,end:t.length},lastValue:""}}function hse(t){var e=t.currentValue,n=t.formattedValue,r=t.currentValueIndex,i=t.formattedValueIndex;return e[r]===n[i]}function pse(t,e,n,r,i,a,s){s===void 0&&(s=hse);var o=i.findIndex(function(R){return R}),c=t.slice(0,o);!e&&!n.startsWith(c)&&(e=c,n=c+n,r=r+c.length);for(var d=n.length,f=t.length,p={},m=new Array(d),g=0;g<d;g++){m[g]=-1;for(var b=0,S=f;b<S;b++){var y=s({currentValue:n,lastValue:e,formattedValue:t,currentValueIndex:g,formattedValueIndex:b});if(y&&p[b]!==!0){m[g]=b,p[b]=!0;break}}}for(var E=r;E<d&&(m[E]===-1||!a(n[E]));)E++;var x=E===d||m[E]===-1?f:m[E];for(E=r-1;E>0&&m[E]===-1;)E--;var C=E===-1||m[E]===-1?0:m[E]+1;return C>x?x:r-C<x-r?C:x}function QB(t,e,n,r){var i=t.length;if(e=use(e,0,i),r==="left"){for(;e>=0&&!n[e];)e--;e===-1&&(e=n.indexOf(!0))}else{for(;e<=i&&!n[e];)e++;e>i&&(e=n.lastIndexOf(!0))}return e===-1&&(e=i),e}function mse(t){for(var e=Array.from({length:t.length+1}).map(function(){return!0}),n=0,r=e.length;n<r;n++)e[n]=!!(O_(t[n])||O_(t[n-1]));return e}function VY(t,e,n,r,i,a){a===void 0&&(a=Gu);var s=ose(function(b,S){var y,E;return qY(b)?(E="",y=""):typeof b=="number"||S?(E=typeof b=="number"?YY(b):b,y=r(E)):(E=i(b,void 0),y=r(E)),{formattedValue:y,numAsString:E}}),o=I.useState(function(){return s(ip(t)?e:t,n)}),c=o[0],d=o[1],f=function(b,S){b.formattedValue!==c.formattedValue&&d({formattedValue:b.formattedValue,numAsString:b.value}),a(b,S)},p=t,m=n;ip(t)&&(p=c.numAsString,m=!0);var g=s(p,m);return I.useMemo(function(){d(g)},[g.formattedValue]),[c,f]}function gse(t){return t.replace(/[^0-9]/g,"")}function _se(t){return t}function bse(t){var e=t.type;e===void 0&&(e="text");var n=t.displayType;n===void 0&&(n="input");var r=t.customInput,i=t.renderText,a=t.getInputRef,s=t.format;s===void 0&&(s=_se);var o=t.removeFormatting;o===void 0&&(o=gse);var c=t.defaultValue,d=t.valueIsNumericString,f=t.onValueChange,p=t.isAllowed,m=t.onChange;m===void 0&&(m=Gu);var g=t.onKeyDown;g===void 0&&(g=Gu);var b=t.onMouseUp;b===void 0&&(b=Gu);var S=t.onFocus;S===void 0&&(S=Gu);var y=t.onBlur;y===void 0&&(y=Gu);var E=t.value,x=t.getCaretBoundary;x===void 0&&(x=mse);var C=t.isValidInputCharacter;C===void 0&&(C=O_);var R=t.isCharacterSame,T=GY(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),N=VY(E,c,!!d,s,o,f),w=N[0],D=w.formattedValue,L=w.numAsString,k=N[1],M=I.useRef(),P=I.useRef({formattedValue:D,numAsString:L}),V=function(Te,Ne){P.current={formattedValue:Te.formattedValue,numAsString:Te.value},k(Te,Ne)},Y=I.useState(!1),G=Y[0],F=Y[1],q=I.useRef(null),z=I.useRef({setCaretTimeout:null,focusTimeout:null});I.useEffect(function(){return F(!0),function(){clearTimeout(z.current.setCaretTimeout),clearTimeout(z.current.focusTimeout)}},[]);var H=s,U=function(Te,Ne){var at=parseFloat(Ne);return{formattedValue:Te,value:Ne,floatValue:isNaN(at)?void 0:at}},Q=function(Te,Ne,at){Te.selectionStart===0&&Te.selectionEnd===Te.value.length||(hf(Te,Ne),z.current.setCaretTimeout=setTimeout(function(){Te.value===at&&Te.selectionStart!==Ne&&hf(Te,Ne)},0))},X=function(Te,Ne,at){return QB(Te,Ne,x(Te),at)},te=function(Te,Ne,at){var ze=x(Ne),Ze=pse(Ne,D,Te,at,ze,C,R);return Ze=QB(Ne,Ze,ze),Ze},ie=function(Te){var Ne=Te.formattedValue;Ne===void 0&&(Ne="");var at=Te.input,ze=Te.source,Ze=Te.event,Ye=Te.numAsString,ve;if(at){var Ue=Te.inputValue||at.value,Ke=UC(at);at.value=Ne,ve=te(Ue,Ne,Ke),ve!==void 0&&Q(at,ve,Ne)}Ne!==D&&V(U(Ne,Ye),{event:Ze,source:ze})};I.useEffect(function(){var Te=P.current,Ne=Te.formattedValue,at=Te.numAsString;(D!==Ne||L!==at)&&V(U(D,L),{event:void 0,source:C_.props})},[D,L]);var fe=q.current?UC(q.current):void 0,Ce=typeof window<"u"?I.useLayoutEffect:I.useEffect;Ce(function(){var Te=q.current;if(D!==P.current.formattedValue&&Te){var Ne=te(P.current.formattedValue,D,fe);Te.value=D,Q(Te,Ne,D)}},[D]);var Re=function(Te,Ne,at){var ze=Ne.target,Ze=M.current?cse(M.current,ze.selectionEnd):HY(D,Te),Ye=Object.assign(Object.assign({},Ze),{lastValue:D}),ve=o(Te,Ye),Ue=H(ve);if(ve=o(Ue,void 0),p&&!p(U(Ue,ve))){var Ke=Ne.target,yt=UC(Ke),Ut=te(Te,D,yt);return Ke.value=D,Q(Ke,Ut,D),!1}return ie({formattedValue:Ue,numAsString:ve,inputValue:Te,event:Ne,source:at,input:Ne.target}),!0},_e=function(Te,Ne){Ne===void 0&&(Ne=0);var at=Te.selectionStart,ze=Te.selectionEnd;M.current={selectionStart:at,selectionEnd:ze+Ne}},Ie=function(Te){var Ne=Te.target,at=Ne.value,ze=Re(at,Te,C_.event);ze&&m(Te),M.current=void 0},Oe=function(Te){var Ne=Te.target,at=Te.key,ze=Ne.selectionStart,Ze=Ne.selectionEnd,Ye=Ne.value;Ye===void 0&&(Ye="");var ve;at==="ArrowLeft"||at==="Backspace"?ve=Math.max(ze-1,0):at==="ArrowRight"?ve=Math.min(ze+1,Ye.length):at==="Delete"&&(ve=ze);var Ue=0;at==="Delete"&&ze===Ze&&(Ue=1);var Ke=at==="ArrowLeft"||at==="ArrowRight";if(ve===void 0||ze!==Ze&&!Ke){g(Te),_e(Ne,Ue);return}var yt=ve;if(Ke){var Ut=at==="ArrowLeft"?"left":"right";yt=X(Ye,ve,Ut),yt!==ve&&Te.preventDefault()}else at==="Delete"&&!C(Ye[ve])?yt=X(Ye,ve,"right"):at==="Backspace"&&!C(Ye[ve])&&(yt=X(Ye,ve,"left"));yt!==ve&&Q(Ne,yt,Ye),g(Te),_e(Ne,Ue)},se=function(Te){var Ne=Te.target,at=function(){var ze=Ne.selectionStart,Ze=Ne.selectionEnd,Ye=Ne.value;if(Ye===void 0&&(Ye=""),ze===Ze){var ve=X(Ye,ze);ve!==ze&&Q(Ne,ve,Ye)}};at(),requestAnimationFrame(function(){at()}),b(Te),_e(Ne)},xe=function(Te){Te.persist&&Te.persist();var Ne=Te.target,at=Te.currentTarget;q.current=Ne,z.current.focusTimeout=setTimeout(function(){var ze=Ne.selectionStart,Ze=Ne.selectionEnd,Ye=Ne.value;Ye===void 0&&(Ye="");var ve=X(Ye,ze);ve!==ze&&!(ze===0&&Ze===Ye.length)&&Q(Ne,ve,Ye),S(Object.assign(Object.assign({},Te),{currentTarget:at}))},0)},ce=function(Te){q.current=null,clearTimeout(z.current.focusTimeout),clearTimeout(z.current.setCaretTimeout),y(Te)},je=G&&dse()?"numeric":void 0,rt=Object.assign({inputMode:je},T,{type:e,value:D,onChange:Ie,onKeyDown:Oe,onMouseUp:se,onFocus:xe,onBlur:ce});if(n==="text")return i?xn.createElement(xn.Fragment,null,i(D,T)||null):xn.createElement("span",Object.assign({},T,{ref:a}),D);if(r){var _t=r;return xn.createElement(_t,Object.assign({},rt,{ref:a}))}return xn.createElement("input",Object.assign({},rt,{ref:a}))}function KB(t,e){var n=e.decimalScale,r=e.fixedDecimalScale,i=e.prefix;i===void 0&&(i="");var a=e.suffix;a===void 0&&(a="");var s=e.allowNegative,o=e.thousandsGroupStyle;if(o===void 0&&(o="thousand"),t===""||t==="-")return t;var c=my(e),d=c.thousandSeparator,f=c.decimalSeparator,p=n!==0&&t.indexOf(".")!==-1||n&&r,m=XM(t,s),g=m.beforeDecimal,b=m.afterDecimal,S=m.addNegation;return n!==void 0&&(b=zY(b,n,!!r)),d&&(g=sse(g,d,o)),i&&(g=i+g),a&&(b=b+a),S&&(g="-"+g),t=g+(p&&f||"")+b,t}function my(t){var e=t.decimalSeparator;e===void 0&&(e=".");var n=t.thousandSeparator,r=t.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}function vse(t,e){t===void 0&&(t="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(t),a=r.test(t);return t=t.replace(/-/g,""),i&&!a&&e&&(t="-"+t),t}function Sse(t,e){return new RegExp("(^-)|[0-9]|"+$Y(t),"g")}function Ese(t,e,n){return t===""?!0:!(e!=null&&e.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof t=="string"&&!isNaN(Number(t))}function yse(t,e,n){var r;e===void 0&&(e=fse(t));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var s=n.suffix;s===void 0&&(s="");var o=n.decimalScale,c=e.from,d=e.to,f=d.start,p=d.end,m=my(n),g=m.allowedDecimalSeparators,b=m.decimalSeparator,S=t[p]===b;if(O_(t)&&(t===a||t===s)&&e.lastValue==="")return t;if(p-f===1&&g.indexOf(t[f])!==-1){var y=o===0?"":b;t=t.substring(0,f)+y+t.substring(f+1,t.length)}var E=function(q,z,H){var U=!1,Q=!1;a.startsWith("-")?U=!1:q.startsWith("--")?(U=!1,Q=!0):s.startsWith("-")&&q.length===s.length?U=!1:q[0]==="-"&&(U=!0);var X=U?1:0;return Q&&(X=2),X&&(q=q.substring(X),z-=X,H-=X),{value:q,start:z,end:H,hasNegation:U}},x=E(t,f,p),C=x.hasNegation;r=x,t=r.value,f=r.start,p=r.end;var R=E(e.lastValue,c.start,c.end),T=R.start,N=R.end,w=R.value,D=t.substring(f,p);t.length&&w.length&&(T>w.length-s.length||N<a.length)&&!(D&&s.startsWith(D))&&(t=w);var L=0;t.startsWith(a)?L+=a.length:f<a.length&&(L=f),t=t.substring(L),p-=L;var k=t.length,M=t.length-s.length;t.endsWith(s)?k=M:(p>M||p>t.length-s.length)&&(k=p),t=t.substring(0,k),t=vse(C?"-"+t:t,i),t=(t.match(Sse(b))||[]).join("");var P=t.indexOf(b);t=t.replace(new RegExp($Y(b),"g"),function(q,z){return z===P?".":""});var V=XM(t,i),Y=V.beforeDecimal,G=V.afterDecimal,F=V.addNegation;return d.end-d.start<c.end-c.start&&Y===""&&S&&!parseFloat(G)&&(t=F?"-":""),t}function Tse(t,e){var n=e.prefix;n===void 0&&(n="");var r=e.suffix;r===void 0&&(r="");var i=Array.from({length:t.length+1}).map(function(){return!0}),a=t[0]==="-";i.fill(!1,0,n.length+(a?1:0));var s=t.length;return i.fill(!1,s-r.length+1,s+1),i}function xse(t){var e=my(t),n=e.thousandSeparator,r=e.decimalSeparator,i=t.prefix;i===void 0&&(i="");var a=t.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
        Decimal separator can't be same as thousand separator.
        thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
        decimalSeparator: `+r+` (default value for decimalSeparator is .)
     `);return i.startsWith("-")&&a&&(console.error(`
      Prefix can't start with '-' when allowNegative is true.
      prefix: `+i+`
      allowNegative: `+a+`
    `),a=!1),Object.assign(Object.assign({},t),{allowNegative:a})}function Cse(t){t=xse(t),t.decimalSeparator,t.allowedDecimalSeparators,t.thousandsGroupStyle;var e=t.suffix,n=t.allowNegative,r=t.allowLeadingZeros,i=t.onKeyDown;i===void 0&&(i=Gu);var a=t.onBlur;a===void 0&&(a=Gu);var s=t.thousandSeparator,o=t.decimalScale,c=t.fixedDecimalScale,d=t.prefix;d===void 0&&(d="");var f=t.defaultValue,p=t.value,m=t.valueIsNumericString,g=t.onValueChange,b=GY(t,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),S=my(t),y=S.decimalSeparator,E=S.allowedDecimalSeparators,x=function(F){return KB(F,t)},C=function(F,q){return yse(F,q,t)},R=ip(p)?f:p,T=m??Ese(R,d,e);ip(p)?ip(f)||(T=T||typeof f=="number"):T=T||typeof p=="number";var N=function(F){return qY(F)?F:(typeof F=="number"&&(F=YY(F)),T&&typeof o=="number"?WB(F,o,!!c):F)},w=VY(N(p),N(f),!!T,x,C,g),D=w[0],L=D.numAsString,k=D.formattedValue,M=w[1],P=function(F){var q=F.target,z=F.key,H=q.selectionStart,U=q.selectionEnd,Q=q.value;if(Q===void 0&&(Q=""),(z==="Backspace"||z==="Delete")&&U<d.length){F.preventDefault();return}if(H!==U){i(F);return}z==="Backspace"&&Q[0]==="-"&&H===d.length+1&&n&&hf(q,1),o&&c&&(z==="Backspace"&&Q[H-1]===y?(hf(q,H-1),F.preventDefault()):z==="Delete"&&Q[H]===y&&F.preventDefault()),E!=null&&E.includes(z)&&Q[H]===y&&hf(q,H+1);var X=s===!0?",":s;z==="Backspace"&&Q[H-1]===X&&hf(q,H-1),z==="Delete"&&Q[H]===X&&hf(q,H+1),i(F)},V=function(F){var q=L;if(q.match(/\d/g)||(q=""),r||(q=lse(q)),c&&o&&(q=WB(q,o,c)),q!==L){var z=KB(q,t);M({formattedValue:z,value:q,floatValue:parseFloat(q)},{event:F,source:C_.event})}a(F)},Y=function(F){return F===y?!0:O_(F)},G=function(F){var q=F.currentValue,z=F.lastValue,H=F.formattedValue,U=F.currentValueIndex,Q=F.formattedValueIndex,X=q[U],te=H[Q],ie=HY(z,q),fe=ie.to,Ce=function(Re){return C(Re).indexOf(".")+d.length};return p===0&&c&&o&&q[fe.start]===y&&Ce(q)<U&&Ce(H)>Q?!1:U>=fe.start&&U<fe.end&&E&&E.includes(X)&&te===y?!0:X===te};return Object.assign(Object.assign({},b),{value:k,valueIsNumericString:!1,isValidInputCharacter:Y,isCharacterSame:G,onValueChange:M,format:x,removeFormatting:C,getCaretBoundary:function(F){return Tse(F,t)},onKeyDown:P,onBlur:V})}function Ose(t){var e=Cse(t);return xn.createElement(bse,Object.assign({},e))}function XB({direction:t,style:e,...n}){return l.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:t==="up"?"rotate(180deg)":void 0,...e},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:l.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var _w={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const Rse=/^(0\.0*|-0(\.0*)?)$/,Nse=/^-?0\d+(\.\d+)?\.?$/;function bw(t){return typeof t=="string"&&t!==""&&!Number.isNaN(Number(t))}function jC(t){return typeof t=="number"?t<Number.MAX_SAFE_INTEGER:t===""||bw(t)&&Number(t)<Number.MAX_SAFE_INTEGER}function Ase(t){return t.toString().replace(".","").length}function wse(t,e){return(typeof t=="number"?t<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(t)))&&!Number.isNaN(t)&&Ase(e)<14&&e!==""}function ZB(t,e,n){if(t===void 0)return!0;const r=e===void 0||t>=e,i=n===void 0||t<=n;return r&&i}const Dse={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},Ise=(t,{size:e})=>({controls:{"--ni-chevron-size":kt(e,"ni-chevron-size")}}),kS=Le((t,e)=>{const n=Ee("NumberInput",Dse,t),{className:r,classNames:i,styles:a,unstyled:s,vars:o,onChange:c,onValueChange:d,value:f,defaultValue:p,max:m,min:g,step:b,hideControls:S,rightSection:y,isAllowed:E,clampBehavior:x,onBlur:C,allowDecimal:R,decimalScale:T,onKeyDown:N,onKeyDownCapture:w,handlersRef:D,startValue:L,disabled:k,rightSectionPointerEvents:M,allowNegative:P,readOnly:V,size:Y,rightSectionWidth:G,stepHoldInterval:F,stepHoldDelay:q,allowLeadingZeros:z,withKeyboardEvents:H,trimLeadingZeroesOnBlur:U,...Q}=n,X=ct({name:"NumberInput",classes:_w,props:n,classNames:i,styles:a,unstyled:s,vars:o,varsResolver:Ise}),{resolvedClassNames:te,resolvedStyles:ie}=rl({classNames:i,styles:a,props:n}),[fe,Ce]=ra({value:f,defaultValue:p,finalValue:"",onChange:c}),Re=q!==void 0&&F!==void 0,_e=I.useRef(null),Ie=I.useRef(null),Oe=I.useRef(0),se=(ve,Ue)=>{Ue.source==="event"&&Ce(wse(ve.floatValue,ve.value)&&!Rse.test(ve.value)&&!(z&&Nse.test(ve.value))?ve.floatValue:ve.value),d==null||d(ve,Ue)},xe=ve=>{const Ue=String(ve).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return Ue?Math.max(0,(Ue[1]?Ue[1].length:0)-(Ue[2]?+Ue[2]:0)):0},ce=ve=>{_e.current&&typeof ve<"u"&&_e.current.setSelectionRange(ve,ve)},je=I.useRef(OS);je.current=()=>{if(!jC(fe))return;let ve;const Ue=xe(fe),Ke=xe(b),yt=Math.max(Ue,Ke),Ut=10**yt;if(!bw(fe)&&(typeof fe!="number"||Number.isNaN(fe)))ve=zh(L,g,m);else if(m!==void 0){const Qt=(Math.round(Number(fe)*Ut)+Math.round(b*Ut))/Ut;ve=Qt<=m?Qt:m}else ve=(Math.round(Number(fe)*Ut)+Math.round(b*Ut))/Ut;const Nt=ve.toFixed(yt);Ce(parseFloat(Nt)),d==null||d({floatValue:parseFloat(Nt),formattedValue:Nt,value:Nt},{source:"increment"}),setTimeout(()=>{var Qt;return ce((Qt=_e.current)==null?void 0:Qt.value.length)},0)};const rt=I.useRef(OS);rt.current=()=>{if(!jC(fe))return;let ve;const Ue=g!==void 0?g:P?Number.MIN_SAFE_INTEGER:0,Ke=xe(fe),yt=xe(b),Ut=Math.max(Ke,yt),Nt=10**Ut;if(!bw(fe)&&typeof fe!="number"||Number.isNaN(fe))ve=zh(L,Ue,m);else{const sn=(Math.round(Number(fe)*Nt)-Math.round(b*Nt))/Nt;ve=Ue!==void 0&&sn<Ue?Ue:sn}const Qt=ve.toFixed(Ut);Ce(parseFloat(Qt)),d==null||d({floatValue:parseFloat(Qt),formattedValue:Qt,value:Qt},{source:"decrement"}),setTimeout(()=>{var sn;return ce((sn=_e.current)==null?void 0:sn.value.length)},0)};const _t=ve=>{N==null||N(ve),!(V||!H)&&(ve.key==="ArrowUp"&&(ve.preventDefault(),je.current()),ve.key==="ArrowDown"&&(ve.preventDefault(),rt.current()))},Te=ve=>{if(w==null||w(ve),ve.key==="Backspace"){const Ue=_e.current;Ue.selectionStart===0&&Ue.selectionStart===Ue.selectionEnd&&(ve.preventDefault(),window.setTimeout(()=>ce(0),0))}};NS(D,{increment:je.current,decrement:rt.current});const Ne=ve=>{ve?je.current():rt.current(),Oe.current+=1},at=ve=>{if(Ne(ve),Re){const Ue=typeof F=="number"?F:F(Oe.current);Ie.current=window.setTimeout(()=>at(ve),Ue)}},ze=(ve,Ue)=>{var Ke;ve.preventDefault(),(Ke=_e.current)==null||Ke.focus(),Ne(Ue),Re&&(Ie.current=window.setTimeout(()=>at(Ue),q))},Ze=()=>{Ie.current&&window.clearTimeout(Ie.current),Ie.current=null,Oe.current=0},Ye=l.jsxs("div",{...X("controls"),children:[l.jsx(Si,{...X("control"),tabIndex:-1,"aria-hidden":!0,disabled:k||typeof fe=="number"&&m!==void 0&&fe>=m,mod:{direction:"up"},onMouseDown:ve=>ve.preventDefault(),onPointerDown:ve=>{ze(ve,!0)},onPointerUp:Ze,onPointerLeave:Ze,children:l.jsx(XB,{direction:"up"})}),l.jsx(Si,{...X("control"),tabIndex:-1,"aria-hidden":!0,disabled:k||typeof fe=="number"&&g!==void 0&&fe<=g,mod:{direction:"down"},onMouseDown:ve=>ve.preventDefault(),onPointerDown:ve=>{ze(ve,!1)},onPointerUp:Ze,onPointerLeave:Ze,children:l.jsx(XB,{direction:"down"})})]});return l.jsx(cs,{component:Ose,allowNegative:P,className:Tr(_w.root,r),size:Y,...Q,readOnly:V,disabled:k,value:fe,getInputRef:Xr(e,_e),onValueChange:se,rightSection:S||V||!jC(fe)?y:y||Ye,classNames:te,styles:ie,unstyled:s,__staticSelector:"NumberInput",decimalScale:R?T:0,onKeyDown:_t,onKeyDownCapture:Te,rightSectionPointerEvents:M??(k?"none":void 0),rightSectionWidth:G??`var(--ni-right-section-width-${Y||"sm"})`,allowLeadingZeros:z,onBlur:ve=>{if(C==null||C(ve),x==="blur"&&typeof fe=="number"&&zh(fe,g,m)!==fe&&Ce(zh(fe,g,m)),U&&typeof fe=="string"&&xe(fe)<15){const Ue=fe.replace(/^0+/,""),Ke=parseFloat(Ue);Ce(Number.isNaN(Ke)||Ke>Number.MAX_SAFE_INTEGER?Ue:zh(Ke,g,m))}},isAllowed:ve=>x==="strict"?E?E(ve)&&ZB(ve.floatValue,g,m):ZB(ve.floatValue,g,m):E?E(ve):!0})});kS.classes={...cs.classes,..._w};kS.displayName="@mantine/core/NumberInput";const[Mse,gy]=xa("Pagination.Root component was not found in tree");var _0={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const Lse={withPadding:!0},b0=Le((t,e)=>{const n=Ee("PaginationControl",Lse,t),{classNames:r,className:i,style:a,styles:s,vars:o,active:c,disabled:d,withPadding:f,mod:p,...m}=n,g=gy(),b=d||g.disabled;return l.jsx(Si,{ref:e,disabled:b,mod:[{active:c,disabled:b,"with-padding":f},p],...g.getStyles("control",{className:i,style:a,classNames:r,styles:s,active:!b}),...m})});b0.classes=_0;b0.displayName="@mantine/core/PaginationControl";function v0({style:t,children:e,path:n,...r}){return l.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...t},...r,children:l.jsx("path",{d:n,fill:"currentColor"})})}const kse=t=>l.jsx(v0,{...t,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),Pse=t=>l.jsx(v0,{...t,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),Bse=t=>l.jsx(v0,{...t,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),Fse=t=>l.jsx(v0,{...t,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),Use=t=>l.jsx(v0,{...t,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}),jse={icon:Use},_y=Le((t,e)=>{const n=Ee("PaginationDots",jse,t),{classNames:r,className:i,style:a,styles:s,vars:o,icon:c,...d}=n,f=gy(),p=c;return l.jsx(Se,{ref:e,...f.getStyles("dots",{className:i,style:a,styles:s,classNames:r}),...d,children:l.jsx(p,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});_y.classes=_0;_y.displayName="@mantine/core/PaginationDots";function by({icon:t,name:e,action:n,type:r}){const i={icon:t},a=I.forwardRef((s,o)=>{const{icon:c,...d}=Ee(e,i,s),f=c,p=gy(),m=r==="next"?p.active===p.total:p.active===1;return l.jsx(b0,{disabled:p.disabled||m,ref:o,onClick:p[n],withPadding:!1,...d,children:l.jsx(f,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return a.displayName=`@mantine/core/${e}`,a}const WY=by({icon:kse,name:"PaginationNext",action:"onNext",type:"next"}),QY=by({icon:Pse,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),KY=by({icon:Bse,name:"PaginationFirst",action:"onFirst",type:"previous"}),XY=by({icon:Fse,name:"PaginationLast",action:"onLast",type:"next"});function ZM({dotsIcon:t}){const e=gy(),n=e.range.map((r,i)=>{var a,s,o;return r==="dots"?l.jsx(_y,{icon:t},i):l.jsx(b0,{active:r===e.active,"aria-current":r===e.active?"page":void 0,onClick:()=>e.onChange(r),disabled:e.disabled,...(a=e.getItemProps)==null?void 0:a.call(e,r),children:((o=(s=e.getItemProps)==null?void 0:s.call(e,r))==null?void 0:o.children)??r},i)});return l.jsx(l.Fragment,{children:n})}ZM.displayName="@mantine/core/PaginationItems";const Gse={siblings:1,boundaries:1},qse=(t,{size:e,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:Pn(n),"--pagination-control-size":kt(e,"pagination-control-size"),"--pagination-control-fz":Ar(e),"--pagination-active-bg":r?Jn(r,t):void 0,"--pagination-active-color":om(i,t)?Td({color:r,theme:t,autoContrast:i}):void 0}}),vy=Le((t,e)=>{const n=Ee("PaginationRoot",Gse,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,total:d,value:f,defaultValue:p,onChange:m,disabled:g,siblings:b,boundaries:S,color:y,radius:E,onNextPage:x,onPreviousPage:C,onFirstPage:R,onLastPage:T,getItemProps:N,autoContrast:w,...D}=n,L=ct({name:"Pagination",classes:_0,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:qse}),{range:k,setPage:M,next:P,previous:V,active:Y,first:G,last:F}=$J({page:f,initialPage:p,onChange:m,total:d,siblings:b,boundaries:S}),q=rs(x,P),z=rs(C,V),H=rs(R,G),U=rs(T,F);return l.jsx(Mse,{value:{total:d,range:k,active:Y,disabled:g,getItemProps:N,onChange:M,onNext:q,onPrevious:z,onFirst:H,onLast:U,getStyles:L},children:l.jsx(Se,{ref:e,...L("root"),...D})})});vy.classes=_0;vy.displayName="@mantine/core/PaginationRoot";const $se={withControls:!0,siblings:1,boundaries:1,gap:8},mo=Le((t,e)=>{const n=Ee("Pagination",$se,t),{withEdges:r,withControls:i,getControlProps:a,nextIcon:s,previousIcon:o,lastIcon:c,firstIcon:d,dotsIcon:f,total:p,gap:m,hideWithOnePage:g,...b}=n;return p<=0||g&&p===1?null:l.jsx(vy,{ref:e,total:p,...b,children:l.jsxs(mt,{gap:m,children:[r&&l.jsx(KY,{icon:d,...a==null?void 0:a("first")}),i&&l.jsx(QY,{icon:o,...a==null?void 0:a("previous")}),l.jsx(ZM,{dotsIcon:f}),i&&l.jsx(WY,{icon:s,...a==null?void 0:a("next")}),r&&l.jsx(XY,{icon:c,...a==null?void 0:a("last")})]})})});mo.classes=_0;mo.displayName="@mantine/core/Pagination";mo.Root=vy;mo.Control=b0;mo.Dots=_y;mo.First=KY;mo.Last=XY;mo.Next=WY;mo.Previous=QY;mo.Items=ZM;const[zse,ZY]=xa("Progress.Root component was not found in tree");var S0={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const Yse={},JM=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,...o}=Ee("ProgressLabel",Yse,t),c=ZY();return l.jsx(Se,{ref:e,...c.getStyles("label",{className:r,style:i,classNames:n,styles:a}),...o})});JM.classes=S0;JM.displayName="@mantine/core/ProgressLabel";const Hse={},Vse=(t,{size:e,radius:n,transitionDuration:r})=>({root:{"--progress-size":kt(e,"progress-size"),"--progress-radius":n===void 0?void 0:Pn(n),"--progress-transition-duration":typeof r=="number"?`${r}ms`:void 0}}),Sy=Le((t,e)=>{const n=Ee("ProgressRoot",Hse,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,autoContrast:d,transitionDuration:f,...p}=n,m=ct({name:"Progress",classes:S0,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Vse});return l.jsx(zse,{value:{getStyles:m,autoContrast:d},children:l.jsx(Se,{ref:e,...m("root"),...p})})});Sy.classes=S0;Sy.displayName="@mantine/core/ProgressRoot";const Wse={withAria:!0},Ey=Le((t,e)=>{const{classNames:n,className:r,style:i,styles:a,vars:s,value:o,withAria:c,color:d,striped:f,animated:p,mod:m,...g}=Ee("ProgressSection",Wse,t),b=ZY(),S=Ui(),y=c?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return l.jsx(Se,{ref:e,...b.getStyles("section",{className:r,classNames:n,styles:a,style:i}),...g,...y,mod:[{striped:f||p,animated:p},m],__vars:{"--progress-section-width":`${o}%`,"--progress-section-color":Jn(d,S),"--progress-label-color":om(b.autoContrast,S)?Td({color:d,theme:S,autoContrast:b.autoContrast}):void 0}})});Ey.classes=S0;Ey.displayName="@mantine/core/ProgressSection";const Qse={},bm=Le((t,e)=>{const n=Ee("Progress",Qse,t),{value:r,classNames:i,styles:a,vars:s,color:o,striped:c,animated:d,"aria-label":f,...p}=n,{resolvedClassNames:m,resolvedStyles:g}=rl({classNames:i,styles:a,props:n});return l.jsx(Sy,{ref:e,classNames:m,styles:g,vars:s,...p,children:l.jsx(Ey,{value:r,color:o,striped:c,animated:d,"aria-label":f})})});bm.classes=S0;bm.displayName="@mantine/core/Progress";bm.Section=Ey;bm.Root=Sy;bm.Label=JM;const Kse={duration:100,transition:"fade"};function Xse(t,e){return{...Kse,...e,...t}}function Zse({offset:t,position:e,defaultOpened:n}){const[r,i]=I.useState(n),a=I.useRef(null),{x:s,y:o,elements:c,refs:d,update:f,placement:p}=ZI({placement:e,middleware:[WI({crossAxis:!0,padding:5,rootBoundary:"document"})]}),m=p.includes("right")?t:e.includes("left")?t*-1:0,g=p.includes("bottom")?t:e.includes("top")?t*-1:0,b=I.useCallback(({clientX:S,clientY:y})=>{d.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:S,y,left:S+m,top:y+g,right:S,bottom:y}}})},[c.reference]);return I.useEffect(()=>{if(d.floating.current){const S=a.current;S.addEventListener("mousemove",b);const y=Dc(d.floating.current);return y.forEach(E=>{E.addEventListener("scroll",f)}),()=>{S.removeEventListener("mousemove",b),y.forEach(E=>{E.removeEventListener("scroll",f)})}}},[c.reference,d.floating.current,f,b,r]),{handleMouseMove:b,x:s,y:o,opened:r,setOpened:i,boundaryRef:a,floating:d.setFloating}}var yy={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Jse={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:co("popover")},eoe=(t,{radius:e,color:n})=>({tooltip:{"--tooltip-radius":e===void 0?void 0:Pn(e),"--tooltip-bg":n?Jn(n,t):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),eL=Le((t,e)=>{const n=Ee("TooltipFloating",Jse,t),{children:r,refProp:i,withinPortal:a,style:s,className:o,classNames:c,styles:d,unstyled:f,radius:p,color:m,label:g,offset:b,position:S,multiline:y,zIndex:E,disabled:x,defaultOpened:C,variant:R,vars:T,portalProps:N,...w}=n,D=Ui(),L=ct({name:"TooltipFloating",props:n,classes:yy,className:o,style:s,classNames:c,styles:d,unstyled:f,rootSelector:"tooltip",vars:T,varsResolver:eoe}),{handleMouseMove:k,x:M,y:P,opened:V,boundaryRef:Y,floating:G,setOpened:F}=Zse({offset:b,position:S,defaultOpened:C});if(!Sd(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const q=Xr(Y,jE(r),e),z=r.props,H=Q=>{var X;(X=z.onMouseEnter)==null||X.call(z,Q),k(Q),F(!0)},U=Q=>{var X;(X=z.onMouseLeave)==null||X.call(z,Q),F(!1)};return l.jsxs(l.Fragment,{children:[l.jsx(dm,{...N,withinPortal:a,children:l.jsx(Se,{...w,...L("tooltip",{style:{...LI(s,D),zIndex:E,display:!x&&V?"block":"none",top:(P&&Math.round(P))??"",left:(M&&Math.round(M))??""}}),variant:R,ref:G,mod:{multiline:y},children:g})}),I.cloneElement(r,{...z,[i]:q,onMouseEnter:H,onMouseLeave:U})]})});eL.classes=yy;eL.displayName="@mantine/core/TooltipFloating";const JY=I.createContext(!1),toe=JY.Provider,noe=()=>I.useContext(JY),roe={openDelay:0,closeDelay:0};function tL(t){const{openDelay:e,closeDelay:n,children:r}=Ee("TooltipGroup",roe,t);return l.jsx(toe,{value:!0,children:l.jsx(Ine,{delay:{open:e,close:n},children:r})})}tL.displayName="@mantine/core/TooltipGroup";tL.extend=t=>t;function ioe(t){if(t===void 0)return{shift:!0,flip:!0};const e={...t};return t.shift===void 0&&(e.shift=!0),t.flip===void 0&&(e.flip=!0),e}function aoe(t){const e=ioe(t.middlewares),n=[wz(t.offset)];return e.shift&&n.push(WI(typeof e.shift=="boolean"?{padding:8}:{padding:8,...e.shift})),e.flip&&n.push(typeof e.flip=="boolean"?MS():MS(e.flip)),n.push(Dz({element:t.arrowRef,padding:t.arrowOffset})),e.inline?n.push(typeof e.inline=="boolean"?o_():o_(e.inline)):t.inline&&n.push(o_()),n}function soe(t){var N,w,D;const[e,n]=I.useState(t.defaultOpened),i=typeof t.opened=="boolean"?t.opened:e,a=noe(),s=$a(),{delay:o,currentId:c,setCurrentId:d}=kz(),f=I.useCallback(L=>{n(L),L&&d(s)},[d,s]),{x:p,y:m,context:g,refs:b,update:S,placement:y,middlewareData:{arrow:{x:E,y:x}={}}}=ZI({strategy:t.strategy,placement:t.position,open:i,onOpenChange:f,middleware:aoe(t)});Mne(g,{id:s});const{getReferenceProps:C,getFloatingProps:R}=jne([Dne(g,{enabled:(N=t.events)==null?void 0:N.hover,delay:a?o:{open:t.openDelay,close:t.closeDelay},mouseOnly:!((w=t.events)!=null&&w.touch)}),Une(g,{enabled:(D=t.events)==null?void 0:D.focus,visibleOnly:!0}),qne(g,{role:"tooltip"}),Bne(g,{enabled:typeof t.opened>"u"})]);qz({opened:i,position:t.position,positionDependencies:t.positionDependencies,floating:{refs:b,update:S}}),so(()=>{var L;(L=t.onPositionChange)==null||L.call(t,y)},[y]);const T=i&&c&&c!==s;return{x:p,y:m,arrowX:E,arrowY:x,reference:b.setReference,floating:b.setFloating,getFloatingProps:R,getReferenceProps:C,isGroupPhase:T,opened:i,placement:y}}const JB={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:co("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},ooe=(t,{radius:e,color:n})=>({tooltip:{"--tooltip-radius":e===void 0?void 0:Pn(e),"--tooltip-bg":n?Jn(n,t):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),bi=Le((t,e)=>{const n=Ee("Tooltip",JB,t),{children:r,position:i,refProp:a,label:s,openDelay:o,closeDelay:c,onPositionChange:d,opened:f,defaultOpened:p,withinPortal:m,radius:g,color:b,classNames:S,styles:y,unstyled:E,style:x,className:C,withArrow:R,arrowSize:T,arrowOffset:N,arrowRadius:w,arrowPosition:D,offset:L,transitionProps:k,multiline:M,events:P,zIndex:V,disabled:Y,positionDependencies:G,onClick:F,onMouseEnter:q,onMouseLeave:z,inline:H,variant:U,keepMounted:Q,vars:X,portalProps:te,mod:ie,floatingStrategy:fe,middlewares:Ce,...Re}=Ee("Tooltip",JB,n),{dir:_e}=lm(),Ie=I.useRef(null),Oe=soe({position:Pz(_e,i),closeDelay:c,openDelay:o,onPositionChange:d,opened:f,defaultOpened:p,events:P,arrowRef:Ie,arrowOffset:N,offset:typeof L=="number"?L+(R?T/2:0):L,positionDependencies:[...G,r],inline:H,strategy:fe,middlewares:Ce}),se=ct({name:"Tooltip",props:n,classes:yy,className:C,style:x,classNames:S,styles:y,unstyled:E,rootSelector:"tooltip",vars:X,varsResolver:ooe});if(!Sd(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const xe=Xr(Oe.reference,jE(r),e),ce=Xse(k,{duration:100,transition:"fade"}),je=r.props;return l.jsxs(l.Fragment,{children:[l.jsx(dm,{...te,withinPortal:m,children:l.jsx(xd,{...ce,keepMounted:Q,mounted:!Y&&!!Oe.opened,duration:Oe.isGroupPhase?10:ce.duration,children:rt=>l.jsxs(Se,{...Re,"data-fixed":fe==="fixed"||void 0,variant:U,mod:[{multiline:M},ie],...Oe.getFloatingProps({ref:Oe.floating,className:se("tooltip").className,style:{...se("tooltip").style,...rt,zIndex:V,top:Oe.y??0,left:Oe.x??0}}),children:[s,l.jsx(JI,{ref:Ie,arrowX:Oe.arrowX,arrowY:Oe.arrowY,visible:R,position:Oe.placement,arrowSize:T,arrowOffset:N,arrowRadius:w,arrowPosition:D,...se("arrow")})]})})}),I.cloneElement(r,Oe.getReferenceProps({onClick:F,onMouseEnter:q,onMouseLeave:z,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,[a]:xe,className:Tr(C,je.className),...je}))]})});bi.classes=yy;bi.displayName="@mantine/core/Tooltip";bi.Floating=eL;bi.Group=tL;function loe({size:t,thickness:e,sum:n,value:r,root:i,offset:a}){const s=(t*.9-e*2)/2,o=Math.PI*s*2/100,c=i||r===void 0?`${(100-n)*o}, ${n*o}`:`${r*o}, ${(100-r)*o}`;return{strokeWidth:Number.isNaN(e)?12:e,cx:t/2||0,cy:t/2||0,r:s||0,transform:i?`scale(1, -1) translate(0, -${t})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function eH({size:t,value:e,offset:n,sum:r,thickness:i,root:a,color:s,lineRoundCaps:o,tooltip:c,getStyles:d,display:f,...p}){const m=Ui();return l.jsx(bi.Floating,{disabled:!c,label:c,children:l.jsx(Se,{component:"circle",...p,...d("curve"),__vars:{"--curve-color":s?Jn(s,m):void 0},fill:"none",strokeLinecap:o?"round":"butt",...loe({sum:r,size:t,thickness:i,value:e,offset:n,root:a})})})}eH.displayName="@mantine/core/Curve";function coe({size:t,thickness:e,sections:n,renderRoundedLineCaps:r,rootColor:i}){const a=n.reduce((f,p)=>f+p.value,0),s=Math.PI*((t*.9-e*2)/2)*2;let o=s;const c=[],d=[];for(let f=0;f<n.length;f+=1)c.push({sum:a,offset:o,data:n[f],root:!1}),o-=n[f].value/100*s;if(c.push({sum:a,offset:o,data:{color:i},root:!0}),d.push({...c[c.length-1],lineRoundCaps:!1}),c.length>2){d.push({...c[0],lineRoundCaps:r}),d.push({...c[c.length-2],lineRoundCaps:r});for(let f=1;f<=c.length-3;f+=1)d.push({...c[f],lineRoundCaps:!1})}else d.push({...c[0],lineRoundCaps:r});return d}var tH={root:"m_b32e4812",svg:"m_d43b5134",curve:"m_b1ca1fbf",label:"m_b23f9dc4"};function uoe(t,e){return Math.min(t||12,(e||120)/4)}const doe={size:120,thickness:12},foe=(t,{size:e,thickness:n,transitionDuration:r})=>({root:{"--rp-size":me(e),"--rp-label-offset":me(n*2),"--rp-transition-duration":r?`${r}ms`:void 0}}),Ty=Le((t,e)=>{const n=Ee("RingProgress",doe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,label:d,sections:f,size:p,thickness:m,roundCaps:g,rootColor:b,transitionDuration:S,...y}=n,E=ct({name:"RingProgress",classes:tH,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:foe}),x=uoe(m,p),C=coe({size:p,thickness:x,sections:f,renderRoundedLineCaps:g,rootColor:b}).map(({data:R,sum:T,root:N,lineRoundCaps:w,offset:D},L)=>I.createElement(eH,{...R,key:L,size:p,thickness:x,sum:T,offset:D,color:R==null?void 0:R.color,root:N,lineRoundCaps:w,getStyles:E}));return l.jsxs(Se,{...E("root"),size:p,ref:e,...y,children:[l.jsx("svg",{...E("svg"),children:C}),d&&l.jsx("div",{...E("label"),children:d})]})});Ty.classes=tH;Ty.displayName="@mantine/core/RingProgress";var nH={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const hoe={withItemsBorders:!0},poe=(t,{radius:e,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":e===void 0?void 0:Pn(e),"--sc-color":n?Jn(n,t):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":kt(i,"sc-padding"),"--sc-font-size":Ar(i)}}),E0=Le((t,e)=>{var Ce,Re;const n=Ee("SegmentedControl",hoe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,data:d,value:f,defaultValue:p,onChange:m,size:g,name:b,disabled:S,readOnly:y,fullWidth:E,orientation:x,radius:C,color:R,transitionDuration:T,transitionTimingFunction:N,variant:w,autoContrast:D,withItemsBorders:L,mod:k,...M}=n,P=ct({name:"SegmentedControl",props:n,classes:nH,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:poe}),V=Ui(),Y=d.map(_e=>typeof _e=="string"?{label:_e,value:_e}:_e),G=KJ(),[F,q]=I.useState(null),[z,H]=I.useState({}),U=(_e,Ie)=>{z[Ie]=_e,H(z)},[Q,X]=ra({value:f,defaultValue:p,finalValue:Array.isArray(d)?((Ce=Y.find(_e=>!_e.disabled))==null?void 0:Ce.value)??((Re=d[0])==null?void 0:Re.value)??null:null,onChange:m}),te=$a(b),ie=Y.map(_e=>I.createElement(Se,{...P("control"),mod:{active:Q===_e.value,orientation:x},key:_e.value},I.createElement("input",{...P("input"),disabled:S||_e.disabled,type:"radio",name:te,value:_e.value,id:`${te}-${_e.value}`,checked:Q===_e.value,onChange:()=>!y&&X(_e.value),"data-focus-ring":V.focusRing,key:`${_e.value}-input`}),I.createElement(Se,{component:"label",...P("label"),mod:{active:Q===_e.value&&!(S||_e.disabled),disabled:S||_e.disabled,"read-only":y},htmlFor:`${te}-${_e.value}`,ref:Ie=>U(Ie,_e.value),__vars:{"--sc-label-color":R!==void 0?Td({color:R,theme:V,autoContrast:D}):void 0},key:`${_e.value}-label`},l.jsx("span",{...P("innerLabel"),children:_e.label})))),fe=Xr(e,_e=>q(_e));return d.length===0?null:l.jsxs(Se,{...P("root"),variant:w,size:g,ref:fe,mod:[{"full-width":E,orientation:x,initialized:G,"with-items-borders":L},k],...M,role:"radiogroup","data-disabled":S,children:[typeof Q=="string"&&l.jsx(aM,{target:z[Q],parent:F,component:"span",transitionDuration:"var(--sc-transition-duration)",...P("indicator")}),ie]})});E0.classes=nH;E0.displayName="@mantine/core/SegmentedControl";const moe={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},vm=Le((t,e)=>{const n=Ee("Select",moe,t),{classNames:r,styles:i,unstyled:a,vars:s,dropdownOpened:o,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:f,onFocus:p,onBlur:m,onClick:g,onChange:b,data:S,value:y,defaultValue:E,selectFirstOptionOnChange:x,onOptionSubmit:C,comboboxProps:R,readOnly:T,disabled:N,filter:w,limit:D,withScrollArea:L,maxDropdownHeight:k,size:M,searchable:P,rightSection:V,checkIconPosition:Y,withCheckIcon:G,nothingFoundMessage:F,name:q,form:z,searchValue:H,defaultSearchValue:U,onSearchChange:Q,allowDeselect:X,error:te,rightSectionPointerEvents:ie,id:fe,clearable:Ce,clearButtonProps:Re,hiddenInputProps:_e,renderOption:Ie,onClear:Oe,autoComplete:se,scrollAreaProps:xe,...ce}=n,je=I.useMemo(()=>dY(S),[S]),rt=I.useMemo(()=>gM(je),[je]),_t=$a(fe),[Te,Ne,at]=ra({value:y,defaultValue:E,finalValue:null,onChange:b}),ze=typeof Te=="string"?rt[Te]:void 0,Ze=WJ(ze),[Ye,ve]=ra({value:H,defaultValue:U,finalValue:ze?ze.label:"",onChange:Q}),Ue=ry({opened:o,defaultOpened:c,onDropdownOpen:()=>{f==null||f(),Ue.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d==null||d(),Ue.resetSelectedOption()}}),{resolvedClassNames:Ke,resolvedStyles:yt}=rl({props:n,styles:i,classNames:r});I.useEffect(()=>{x&&Ue.selectFirstOption()},[x,Te]),I.useEffect(()=>{y===null&&ve(""),typeof y=="string"&&ze&&((Ze==null?void 0:Ze.value)!==ze.value||(Ze==null?void 0:Ze.label)!==ze.label)&&ve(ze.label)},[y,ze]);const Ut=Ce&&!!Te&&!N&&!T&&l.jsx(an.ClearButton,{size:M,...Re,onClear:()=>{Ne(null,null),ve(""),Oe==null||Oe()}});return l.jsxs(l.Fragment,{children:[l.jsxs(an,{store:Ue,__staticSelector:"Select",classNames:Ke,styles:yt,unstyled:a,readOnly:T,onOptionSubmit:Nt=>{C==null||C(Nt);const Qt=X&&rt[Nt].value===Te?null:rt[Nt],sn=Qt?Qt.value:null;sn!==Te&&Ne(sn,Qt),!at&&ve(typeof sn=="string"&&(Qt==null?void 0:Qt.label)||""),Ue.closeDropdown()},size:M,...R,children:[l.jsx(an.Target,{targetType:P?"input":"button",autoComplete:se,children:l.jsx(cs,{id:_t,ref:e,rightSection:V||Ut||l.jsx(an.Chevron,{size:M,error:te,unstyled:a}),rightSectionPointerEvents:ie||(Ut?"all":"none"),...ce,size:M,__staticSelector:"Select",disabled:N,readOnly:T||!P,value:Ye,onChange:Nt=>{ve(Nt.currentTarget.value),Ue.openDropdown(),x&&Ue.selectFirstOption()},onFocus:Nt=>{P&&Ue.openDropdown(),p==null||p(Nt)},onBlur:Nt=>{var Qt;P&&Ue.closeDropdown(),ve(Te!=null&&((Qt=rt[Te])==null?void 0:Qt.label)||""),m==null||m(Nt)},onClick:Nt=>{P?Ue.openDropdown():Ue.toggleDropdown(),g==null||g(Nt)},classNames:Ke,styles:yt,unstyled:a,pointer:!P,error:te})}),l.jsx(NY,{data:je,hidden:T||N,filter:w,search:Ye,limit:D,hiddenWhenEmpty:!F,withScrollArea:L,maxDropdownHeight:k,filterOptions:P&&(ze==null?void 0:ze.label)!==Ye,value:Te,checkIconPosition:Y,withCheckIcon:G,nothingFoundMessage:F,unstyled:a,labelId:ce.label?`${_t}-label`:void 0,"aria-label":ce.label?void 0:ce["aria-label"],renderOption:Ie,scrollAreaProps:xe})]}),l.jsx(an.HiddenInput,{value:Te,name:q,form:z,disabled:N,..._e})]})});vm.classes={...cs.classes,...an.classes};vm.displayName="@mantine/core/Select";var rH={root:"m_18320242","skeleton-fade":"m_299c329c"};const goe={visible:!0,animate:!0},_oe=(t,{width:e,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":me(n),"--skeleton-width":me(i?n:e),"--skeleton-radius":i?"1000px":r===void 0?void 0:Pn(r)}}),Zo=Le((t,e)=>{const n=Ee("Skeleton",goe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,width:d,height:f,circle:p,visible:m,radius:g,animate:b,mod:S,...y}=n,E=ct({name:"Skeleton",classes:rH,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:_oe});return l.jsx(Se,{ref:e,...E("root"),mod:[{visible:m,animate:b},S],...y})});Zo.classes=rH;Zo.displayName="@mantine/core/Skeleton";const boe={},iH=Le((t,e)=>{const{w:n,h:r,miw:i,mih:a,...s}=Ee("Space",boe,t);return l.jsx(Se,{ref:e,...s,w:n,miw:i??n,h:r,mih:a??r})});iH.displayName="@mantine/core/Space";var aH={root:"m_6d731127"};const voe={gap:"md",align:"stretch",justify:"flex-start"},Soe=(t,{gap:e,align:n,justify:r})=>({root:{"--stack-gap":Gl(e),"--stack-align":n,"--stack-justify":r}}),Mn=Le((t,e)=>{const n=Ee("Stack",voe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,align:d,justify:f,gap:p,variant:m,...g}=n,b=ct({name:"Stack",props:n,classes:aH,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Soe});return l.jsx(Se,{ref:e,...b("root"),variant:m,...g})});Mn.classes=aH;Mn.displayName="@mantine/core/Stack";const sH=I.createContext(null),Eoe=sH.Provider,yoe=()=>I.useContext(sH),Toe={},nL=Le((t,e)=>{const{value:n,defaultValue:r,onChange:i,size:a,wrapperProps:s,children:o,readOnly:c,...d}=Ee("SwitchGroup",Toe,t),[f,p]=ra({value:n,defaultValue:r,finalValue:[],onChange:i}),m=g=>{const b=g.currentTarget.value;!c&&p(f.includes(b)?f.filter(S=>S!==b):[...f,b])};return l.jsx(Eoe,{value:{value:f,onChange:m,size:a},children:l.jsx(Kr.Wrapper,{size:a,ref:e,...s,...d,labelElement:"div",__staticSelector:"SwitchGroup",children:l.jsx(EY,{role:"group",children:o})})})});nL.classes=Kr.Wrapper.classes;nL.displayName="@mantine/core/SwitchGroup";var oH={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const xoe={labelPosition:"right"},Coe=(t,{radius:e,color:n,size:r})=>({root:{"--switch-radius":e===void 0?void 0:Pn(e),"--switch-height":kt(r,"switch-height"),"--switch-width":kt(r,"switch-width"),"--switch-thumb-size":kt(r,"switch-thumb-size"),"--switch-label-font-size":kt(r,"switch-label-font-size"),"--switch-track-label-padding":kt(r,"switch-track-label-padding"),"--switch-color":n?Jn(n,t):void 0}}),xy=Le((t,e)=>{const n=Ee("Switch",xoe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,color:d,label:f,offLabel:p,onLabel:m,id:g,size:b,radius:S,wrapperProps:y,thumbIcon:E,checked:x,defaultChecked:C,onChange:R,labelPosition:T,description:N,error:w,disabled:D,variant:L,rootRef:k,mod:M,...P}=n,V=yoe(),Y=b||(V==null?void 0:V.size),G=ct({name:"Switch",props:n,classes:oH,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Coe}),{styleProps:F,rest:q}=u0(P),z=$a(g),H=V?{checked:V.value.includes(q.value),onChange:V.onChange}:{},[U,Q]=ra({value:H.checked??x,defaultValue:C,finalValue:!1});return l.jsxs(RM,{...G("root"),__staticSelector:"Switch",__stylesApiProps:n,id:z,size:Y,labelPosition:T,label:f,description:N,error:w,disabled:D,bodyElement:"label",labelElement:"span",classNames:r,styles:s,unstyled:o,"data-checked":H.checked||x||void 0,variant:L,ref:k,mod:M,...F,...y,children:[l.jsx("input",{...q,disabled:D,checked:U,"data-checked":H.checked||x||void 0,onChange:X=>{var te;V?(te=H.onChange)==null||te.call(H,X):R==null||R(X),Q(X.currentTarget.checked)},id:z,ref:e,type:"checkbox",role:"switch",...G("input")}),l.jsxs(Se,{"aria-hidden":"true",mod:{error:w,"label-position":T,"without-labels":!m&&!p},...G("track"),children:[l.jsx(Se,{component:"span",mod:"reduce-motion",...G("thumb"),children:E}),l.jsx("span",{...G("trackLabel"),children:U?m:p})]})]})});xy.classes={...oH,..._Y};xy.displayName="@mantine/core/Switch";xy.Group=nL;const[Ooe,Roe]=xa("Table component was not found in the tree");var y0={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Noe(t,e){if(!e)return;const n={};return e.columnBorder&&t.withColumnBorders&&(n["data-with-column-border"]=!0),e.rowBorder&&t.withRowBorders&&(n["data-with-row-border"]=!0),e.striped&&t.striped&&(n["data-striped"]=t.striped),e.highlightOnHover&&t.highlightOnHover&&(n["data-hover"]=!0),e.captionSide&&t.captionSide&&(n["data-side"]=t.captionSide),e.stickyHeader&&t.stickyHeader&&(n["data-sticky"]=!0),n}function eh(t,e){const n=`Table${t.charAt(0).toUpperCase()}${t.slice(1)}`,r=Le((i,a)=>{const s=Ee(n,{},i),{classNames:o,className:c,style:d,styles:f,...p}=s,m=Roe();return l.jsx(Se,{component:t,ref:a,...Noe(m,e),...m.getStyles(t,{className:c,classNames:o,style:d,styles:f,props:s}),...p})});return r.displayName=`@mantine/core/${n}`,r.classes=y0,r}const vw=eh("th",{columnBorder:!0}),lH=eh("td",{columnBorder:!0}),Wv=eh("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),cH=eh("thead",{stickyHeader:!0}),uH=eh("tbody"),dH=eh("tfoot"),fH=eh("caption",{captionSide:!0});function rL({data:t}){return l.jsxs(l.Fragment,{children:[t.caption&&l.jsx(fH,{children:t.caption}),t.head&&l.jsx(cH,{children:l.jsx(Wv,{children:t.head.map((e,n)=>l.jsx(vw,{children:e},n))})}),t.body&&l.jsx(uH,{children:t.body.map((e,n)=>l.jsx(Wv,{children:e.map((r,i)=>l.jsx(lH,{children:r},i))},n))}),t.foot&&l.jsx(dH,{children:l.jsx(Wv,{children:t.foot.map((e,n)=>l.jsx(vw,{children:e},n))})})]})}rL.displayName="@mantine/core/TableDataRenderer";const Aoe={type:"scrollarea"},woe=(t,{minWidth:e,type:n})=>({scrollContainer:{"--table-min-width":me(e),"--table-overflow":n==="native"?"auto":void 0}}),iL=Le((t,e)=>{const n=Ee("TableScrollContainer",Aoe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,minWidth:f,type:p,...m}=n,g=ct({name:"TableScrollContainer",classes:y0,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:woe,rootSelector:"scrollContainer"});return l.jsx(Se,{component:p==="scrollarea"?Yc:"div",...p==="scrollarea"?{offsetScrollbars:"x"}:{},ref:e,...g("scrollContainer"),...m,children:l.jsx("div",{...g("scrollContainerInner"),children:d})})});iL.classes=y0;iL.displayName="@mantine/core/TableScrollContainer";const Doe={withRowBorders:!0,verticalSpacing:7},Ioe=(t,{layout:e,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:s,highlightOnHoverColor:o,striped:c,highlightOnHover:d,stickyHeaderOffset:f,stickyHeader:p})=>({table:{"--table-layout":e,"--table-caption-side":n,"--table-horizontal-spacing":Gl(r),"--table-vertical-spacing":Gl(i),"--table-border-color":a?Jn(a,t):void 0,"--table-striped-color":c&&s?Jn(s,t):void 0,"--table-highlight-on-hover-color":d&&o?Jn(o,t):void 0,"--table-sticky-header-offset":p?me(f):void 0}}),ae=Le((t,e)=>{const n=Ee("Table",Doe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,horizontalSpacing:d,verticalSpacing:f,captionSide:p,stripedColor:m,highlightOnHoverColor:g,striped:b,highlightOnHover:S,withColumnBorders:y,withRowBorders:E,withTableBorder:x,borderColor:C,layout:R,variant:T,data:N,children:w,stickyHeader:D,stickyHeaderOffset:L,mod:k,tabularNums:M,...P}=n,V=ct({name:"Table",props:n,className:i,style:a,classes:y0,classNames:r,styles:s,unstyled:o,rootSelector:"table",vars:c,varsResolver:Ioe});return l.jsx(Ooe,{value:{getStyles:V,stickyHeader:D,striped:b===!0?"odd":b||void 0,highlightOnHover:S,withColumnBorders:y,withRowBorders:E,captionSide:p||"bottom"},children:l.jsx(Se,{component:"table",variant:T,ref:e,mod:[{"data-with-table-border":x,"data-tabular-nums":M},k],...V("table"),...P,children:w||!!N&&l.jsx(rL,{data:N})})})});ae.classes=y0;ae.displayName="@mantine/core/Table";ae.Td=lH;ae.Th=vw;ae.Tr=Wv;ae.Thead=cH;ae.Tbody=uH;ae.Tfoot=dH;ae.Caption=fH;ae.ScrollContainer=iL;ae.DataRenderer=rL;const[Moe,aL]=xa("Tabs component was not found in the tree");var T0={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Loe={},sL=Le((t,e)=>{const n=Ee("TabsList",Loe,t),{children:r,className:i,grow:a,justify:s,classNames:o,styles:c,style:d,mod:f,...p}=n,m=aL();return l.jsx(Se,{...p,...m.getStyles("list",{className:i,style:d,classNames:o,styles:c,props:n,variant:m.variant}),ref:e,role:"tablist",variant:m.variant,mod:[{grow:a,orientation:m.orientation,placement:m.orientation==="vertical"&&m.placement,inverted:m.inverted},f],"aria-orientation":m.orientation,__vars:{"--tabs-justify":s},children:r})});sL.classes=T0;sL.displayName="@mantine/core/TabsList";const koe={},oL=Le((t,e)=>{const n=Ee("TabsPanel",koe,t),{children:r,className:i,value:a,classNames:s,styles:o,style:c,mod:d,keepMounted:f,...p}=n,m=aL(),g=m.value===a,b=m.keepMounted||f||g?r:null;return l.jsx(Se,{...p,...m.getStyles("panel",{className:i,classNames:s,styles:o,style:[c,g?void 0:{display:"none"}],props:n}),ref:e,mod:[{orientation:m.orientation},d],role:"tabpanel",id:m.getPanelId(a),"aria-labelledby":m.getTabId(a),children:b})});oL.classes=T0;oL.displayName="@mantine/core/TabsPanel";const Poe={},lL=Le((t,e)=>{const n=Ee("TabsTab",Poe,t),{className:r,children:i,rightSection:a,leftSection:s,value:o,onClick:c,onKeyDown:d,disabled:f,color:p,style:m,classNames:g,styles:b,vars:S,mod:y,tabIndex:E,...x}=n,C=Ui(),{dir:R}=lm(),T=aL(),N=o===T.value,w=L=>{T.onChange(T.allowTabDeactivation&&o===T.value?null:o),c==null||c(L)},D={classNames:g,styles:b,props:n};return l.jsxs(Si,{...x,...T.getStyles("tab",{className:r,style:m,variant:T.variant,...D}),disabled:f,unstyled:T.unstyled,variant:T.variant,mod:[{active:N,disabled:f,orientation:T.orientation,inverted:T.inverted,placement:T.orientation==="vertical"&&T.placement},y],ref:e,role:"tab",id:T.getTabId(o),"aria-selected":N,tabIndex:E||N||T.value===null?0:-1,"aria-controls":T.getPanelId(o),onClick:w,__vars:{"--tabs-color":p?Jn(p,C):void 0},onKeyDown:TI({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:T.activateTabWithKeyboard,loop:T.loop,orientation:T.orientation||"horizontal",dir:R,onKeyDown:d}),children:[s&&l.jsx("span",{...T.getStyles("tabSection",D),"data-position":"left",children:s}),i&&l.jsx("span",{...T.getStyles("tabLabel",D),children:i}),a&&l.jsx("span",{...T.getStyles("tabSection",D),"data-position":"right",children:a})]})});lL.classes=T0;lL.displayName="@mantine/core/TabsTab";const eF="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",Boe={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},Foe=(t,{radius:e,color:n,autoContrast:r})=>({root:{"--tabs-radius":Pn(e),"--tabs-color":Jn(n,t),"--tabs-text-color":om(r,t)?Td({color:n,theme:t,autoContrast:r}):void 0}}),Cs=Le((t,e)=>{const n=Ee("Tabs",Boe,t),{defaultValue:r,value:i,onChange:a,orientation:s,children:o,loop:c,id:d,activateTabWithKeyboard:f,allowTabDeactivation:p,variant:m,color:g,radius:b,inverted:S,placement:y,keepMounted:E,classNames:x,styles:C,unstyled:R,className:T,style:N,vars:w,autoContrast:D,mod:L,...k}=n,M=$a(d),[P,V]=ra({value:i,defaultValue:r,finalValue:null,onChange:a}),Y=ct({name:"Tabs",props:n,classes:T0,className:T,style:N,classNames:x,styles:C,unstyled:R,vars:w,varsResolver:Foe});return l.jsx(Moe,{value:{placement:y,value:P,orientation:s,id:M,loop:c,activateTabWithKeyboard:f,getTabId:xS(`${M}-tab`,eF),getPanelId:xS(`${M}-panel`,eF),onChange:V,allowTabDeactivation:p,variant:m,color:g,radius:b,inverted:S,keepMounted:E,unstyled:R,getStyles:Y},children:l.jsx(Se,{ref:e,id:M,variant:m,mod:[{orientation:s,inverted:s==="horizontal"&&S,placement:s==="vertical"&&y},L],...Y("root"),...k,children:o})})});Cs.classes=T0;Cs.displayName="@mantine/core/Tabs";Cs.Tab=lL;Cs.Panel=oL;Cs.List=sL;const Uoe={},Wc=Le((t,e)=>{const n=Ee("TextInput",Uoe,t);return l.jsx(cs,{component:"input",ref:e,...n,__staticSelector:"TextInput"})});Wc.classes=cs.classes;Wc.displayName="@mantine/core/TextInput";/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var joe={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rt=(t,e,n,r)=>{const i=I.forwardRef(({color:a="currentColor",size:s=24,stroke:o=2,title:c,className:d,children:f,...p},m)=>I.createElement("svg",{ref:m,...joe[t],width:s,height:s,className:["tabler-icon",`tabler-icon-${e}`,d].join(" "),...t==="filled"?{fill:a}:{strokeWidth:o,stroke:a},...p},[c&&I.createElement("title",{key:"svg-title"},c),...r.map(([g,b])=>I.createElement(g,b)),...Array.isArray(f)?f:[f]]));return i.displayName=`${n}`,i};/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Goe=Rt("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var na=Rt("outline","alert-triangle","IconAlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var qoe=Rt("outline","align-justified","IconAlignJustified",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l12 0",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var $oe=Rt("outline","arrow-left","IconArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var zoe=Rt("outline","bell-off","IconBellOff",[["path",{d:"M9.346 5.353c.21 -.129 .428 -.246 .654 -.353a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3m-1 3h-13a4 4 0 0 0 2 -3v-3a6.996 6.996 0 0 1 1.273 -3.707",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var cL=Rt("outline","bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Yoe=Rt("outline","binary-tree","IconBinaryTree",[["path",{d:"M6 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-0"}],["path",{d:"M16 4a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-1"}],["path",{d:"M16 20a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-2"}],["path",{d:"M11 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-3"}],["path",{d:"M21 12a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z",key:"svg-4"}],["path",{d:"M5.058 18.306l2.88 -4.606",key:"svg-5"}],["path",{d:"M10.061 10.303l2.877 -4.604",key:"svg-6"}],["path",{d:"M10.065 13.705l2.876 4.6",key:"svg-7"}],["path",{d:"M15.063 5.7l2.881 4.61",key:"svg-8"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Hoe=Rt("outline","book","IconBook",[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Voe=Rt("outline","chart-line","IconChartLine",[["path",{d:"M4 19l16 0",key:"svg-0"}],["path",{d:"M4 15l4 -6l4 2l4 -5l4 4",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Woe=Rt("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var PS=Rt("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Qoe=Rt("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var hH=Rt("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var pH=Rt("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Koe=Rt("outline","clock-pause","IconClockPause",[["path",{d:"M20.942 13.018a9 9 0 1 0 -7.909 7.922",key:"svg-0"}],["path",{d:"M12 7v5l2 2",key:"svg-1"}],["path",{d:"M17 17v5",key:"svg-2"}],["path",{d:"M21 17v5",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Xoe=Rt("outline","clock-play","IconClockPlay",[["path",{d:"M12 7v5l2 2",key:"svg-0"}],["path",{d:"M17 22l5 -3l-5 -3z",key:"svg-1"}],["path",{d:"M13.017 20.943a9 9 0 1 1 7.831 -7.292",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Zoe=Rt("outline","cloud-data-connection","IconCloudDataConnection",[["path",{d:"M5 9.897c0 -1.714 1.46 -3.104 3.26 -3.104c.275 -1.22 1.255 -2.215 2.572 -2.611c1.317 -.397 2.77 -.134 3.811 .69c1.042 .822 1.514 2.08 1.239 3.3h.693a2.42 2.42 0 0 1 2.425 2.414a2.42 2.42 0 0 1 -2.425 2.414h-8.315c-1.8 0 -3.26 -1.39 -3.26 -3.103z",key:"svg-0"}],["path",{d:"M12 13v3",key:"svg-1"}],["path",{d:"M12 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M14 18h7",key:"svg-3"}],["path",{d:"M3 18h7",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var mH=Rt("outline","code-plus","IconCodePlus",[["path",{d:"M9 12h6",key:"svg-0"}],["path",{d:"M12 9v6",key:"svg-1"}],["path",{d:"M6 19a2 2 0 0 1 -2 -2v-4l-1 -1l1 -1v-4a2 2 0 0 1 2 -2",key:"svg-2"}],["path",{d:"M18 19a2 2 0 0 0 2 -2v-4l1 -1l-1 -1v-4a2 2 0 0 0 -2 -2",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var gH=Rt("outline","copy","IconCopy",[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Joe=Rt("outline","database","IconDatabase",[["path",{d:"M12 6m-8 0a8 3 0 1 0 16 0a8 3 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 6v6a8 3 0 0 0 16 0v-6",key:"svg-1"}],["path",{d:"M4 12v6a8 3 0 0 0 16 0v-6",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ele=Rt("outline","device-desktop-analytics","IconDeviceDesktopAnalytics",[["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}],["path",{d:"M9 12v-4",key:"svg-4"}],["path",{d:"M12 12v-1",key:"svg-5"}],["path",{d:"M15 12v-2",key:"svg-6"}],["path",{d:"M12 12v-1",key:"svg-7"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var tle=Rt("outline","dots-vertical","IconDotsVertical",[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var nle=Rt("outline","flag","IconFlag",[["path",{d:"M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1 -7 0a5 5 0 0 0 -7 0v-9z",key:"svg-0"}],["path",{d:"M5 21v-7",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var rle=Rt("outline","graph","IconGraph",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M7 14l3 -3l2 2l3 -3l2 2",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var _H=Rt("outline","heart-rate-monitor","IconHeartRateMonitor",[["path",{d:"M3 4m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M7 20h10",key:"svg-1"}],["path",{d:"M9 16v4",key:"svg-2"}],["path",{d:"M15 16v4",key:"svg-3"}],["path",{d:"M7 10h2l2 3l2 -6l1 3h3",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Sw=Rt("outline","hourglass","IconHourglass",[["path",{d:"M6.5 7h11",key:"svg-0"}],["path",{d:"M6.5 17h11",key:"svg-1"}],["path",{d:"M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M6 4v2a6 6 0 1 0 12 0v-2a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1z",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var gr=Rt("outline","info-circle","IconInfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var bH=Rt("outline","layout-navbar-collapse","IconLayoutNavbarCollapse",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 9h16",key:"svg-1"}],["path",{d:"M10 16l2 -2l2 2",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var vH=Rt("outline","layout-navbar-expand","IconLayoutNavbarExpand",[["path",{d:"M4 18v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 9h16",key:"svg-1"}],["path",{d:"M10 14l2 2l2 -2",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ile=Rt("outline","message-exclamation","IconMessageExclamation",[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M15 18h-2l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v5.5",key:"svg-2"}],["path",{d:"M19 16v3",key:"svg-3"}],["path",{d:"M19 22v.01",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ale=Rt("outline","minus","IconMinus",[["path",{d:"M5 12l14 0",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var sle=Rt("outline","network-off","IconNetworkOff",[["path",{d:"M6.528 6.536a6 6 0 0 0 7.942 7.933m2.247 -1.76a6 6 0 0 0 -8.427 -8.425",key:"svg-0"}],["path",{d:"M12 3c1.333 .333 2 2.333 2 6c0 .337 -.006 .66 -.017 .968m-.55 3.473c-.333 .884 -.81 1.403 -1.433 1.559",key:"svg-1"}],["path",{d:"M12 3c-.936 .234 -1.544 1.29 -1.822 3.167m-.16 3.838c.116 3.029 .776 4.695 1.982 4.995",key:"svg-2"}],["path",{d:"M6 9h3m4 0h5",key:"svg-3"}],["path",{d:"M3 20h7",key:"svg-4"}],["path",{d:"M14 20h7",key:"svg-5"}],["path",{d:"M10 20a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-6"}],["path",{d:"M12 15v3",key:"svg-7"}],["path",{d:"M3 3l18 18",key:"svg-8"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var SH=Rt("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ew=Rt("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ole=Rt("outline","repeat","IconRepeat",[["path",{d:"M4 12v-3a3 3 0 0 1 3 -3h13m-3 -3l3 3l-3 3",key:"svg-0"}],["path",{d:"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var lle=Rt("outline","run","IconRun",[["path",{d:"M13 4m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 17l5 1l.75 -1.5",key:"svg-1"}],["path",{d:"M15 21l0 -4l-4 -3l1 -6",key:"svg-2"}],["path",{d:"M7 12l0 -3l5 -1l3 3l3 1",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var th=Rt("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var cle=Rt("outline","selector","IconSelector",[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ule=Rt("outline","server-cog","IconServerCog",[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M12 20h-6a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3h10.5",key:"svg-1"}],["path",{d:"M18 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M18 14.5v1.5",key:"svg-3"}],["path",{d:"M18 20v1.5",key:"svg-4"}],["path",{d:"M21.032 16.25l-1.299 .75",key:"svg-5"}],["path",{d:"M16.27 19l-1.3 .75",key:"svg-6"}],["path",{d:"M14.97 16.25l1.3 .75",key:"svg-7"}],["path",{d:"M19.733 19l1.3 .75",key:"svg-8"}],["path",{d:"M7 8v.01",key:"svg-9"}],["path",{d:"M7 16v.01",key:"svg-10"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var dle=Rt("outline","server","IconServer",[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-1"}],["path",{d:"M7 8l0 .01",key:"svg-2"}],["path",{d:"M7 16l0 .01",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var fle=Rt("outline","settings","IconSettings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var hle=Rt("outline","spy","IconSpy",[["path",{d:"M3 11h18",key:"svg-0"}],["path",{d:"M5 11v-4a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v4",key:"svg-1"}],["path",{d:"M7 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-2"}],["path",{d:"M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-3"}],["path",{d:"M10 17h4",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var EH=Rt("outline","table","IconTable",[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ple=Rt("outline","terminal","IconTerminal",[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var mle=Rt("outline","timeline","IconTimeline",[["path",{d:"M4 16l6 -7l5 5l5 -6",key:"svg-0"}],["path",{d:"M15 14m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M10 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M4 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M20 8m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var gle=Rt("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var _le=Rt("outline","wall","IconWall",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 8h16",key:"svg-1"}],["path",{d:"M20 12h-16",key:"svg-2"}],["path",{d:"M4 16h16",key:"svg-3"}],["path",{d:"M9 4v4",key:"svg-4"}],["path",{d:"M14 8v4",key:"svg-5"}],["path",{d:"M8 12v4",key:"svg-6"}],["path",{d:"M16 12v4",key:"svg-7"}],["path",{d:"M11 16v4",key:"svg-8"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var ble=Rt("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var vle=Rt("outline","zoom-code","IconZoomCode",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}],["path",{d:"M8 8l-2 2l2 2",key:"svg-2"}],["path",{d:"M12 8l2 2l-2 2",key:"svg-3"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Sle=Rt("filled","bell-filled","IconBellFilled",[["path",{d:"M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z",key:"svg-0"}],["path",{d:"M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ele=Rt("filled","brightness-filled","IconBrightnessFilled",[["path",{d:"M17 3.34a10 10 0 1 1 -15 8.66l.005 -.324a10 10 0 0 1 14.995 -8.336m-9 1.732a8 8 0 0 0 4.001 14.928l-.001 -16a8 8 0 0 0 -4 1.072",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var yle=Rt("filled","chart-area-filled","IconChartAreaFilled",[["path",{d:"M20 18a1 1 0 0 1 .117 1.993l-.117 .007h-16a1 1 0 0 1 -.117 -1.993l.117 -.007h16z",key:"svg-0"}],["path",{d:"M15.22 5.375a1 1 0 0 1 1.393 -.165l.094 .083l4 4a1 1 0 0 1 .284 .576l.009 .131v5a1 1 0 0 1 -.883 .993l-.117 .007h-16.022l-.11 -.009l-.11 -.02l-.107 -.034l-.105 -.046l-.1 -.059l-.094 -.07l-.06 -.055l-.072 -.082l-.064 -.089l-.054 -.096l-.016 -.035l-.04 -.103l-.027 -.106l-.015 -.108l-.004 -.11l.009 -.11l.019 -.105c.01 -.04 .022 -.077 .035 -.112l.046 -.105l.059 -.1l4 -6a1 1 0 0 1 1.165 -.39l.114 .05l3.277 1.638l3.495 -4.369z",key:"svg-1"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var Tle=Rt("filled","moon-filled","IconMoonFilled",[["path",{d:"M12 1.992a10 10 0 1 0 9.236 13.838c.341 -.82 -.476 -1.644 -1.298 -1.31a6.5 6.5 0 0 1 -6.864 -10.787l.077 -.08c.551 -.63 .113 -1.653 -.758 -1.653h-.266l-.068 -.006l-.06 -.002z",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var GC=Rt("filled","point-filled","IconPointFilled",[["path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z",key:"svg-0"}]]);/**
 * @license @tabler/icons-react v3.28.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var xle=Rt("filled","sun-filled","IconSunFilled",[["path",{d:"M12 19a1 1 0 0 1 .993 .883l.007 .117v1a1 1 0 0 1 -1.993 .117l-.007 -.117v-1a1 1 0 0 1 1 -1z",key:"svg-0"}],["path",{d:"M18.313 16.91l.094 .083l.7 .7a1 1 0 0 1 -1.32 1.497l-.094 -.083l-.7 -.7a1 1 0 0 1 1.218 -1.567l.102 .07z",key:"svg-1"}],["path",{d:"M7.007 16.993a1 1 0 0 1 .083 1.32l-.083 .094l-.7 .7a1 1 0 0 1 -1.497 -1.32l.083 -.094l.7 -.7a1 1 0 0 1 1.414 0z",key:"svg-2"}],["path",{d:"M4 11a1 1 0 0 1 .117 1.993l-.117 .007h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",key:"svg-3"}],["path",{d:"M21 11a1 1 0 0 1 .117 1.993l-.117 .007h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",key:"svg-4"}],["path",{d:"M6.213 4.81l.094 .083l.7 .7a1 1 0 0 1 -1.32 1.497l-.094 -.083l-.7 -.7a1 1 0 0 1 1.217 -1.567l.102 .07z",key:"svg-5"}],["path",{d:"M19.107 4.893a1 1 0 0 1 .083 1.32l-.083 .094l-.7 .7a1 1 0 0 1 -1.497 -1.32l.083 -.094l.7 -.7a1 1 0 0 1 1.414 0z",key:"svg-6"}],["path",{d:"M12 2a1 1 0 0 1 .993 .883l.007 .117v1a1 1 0 0 1 -1.993 .117l-.007 -.117v-1a1 1 0 0 1 1 -1z",key:"svg-7"}],["path",{d:"M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z",key:"svg-8"}]]),Ng={},tF;function Cle(){if(tF)return Ng;tF=1,Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.parse=s,Ng.serialize=d;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const m=function(){};return m.prototype=Object.create(null),m})();function s(m,g){const b=new a,S=m.length;if(S<2)return b;const y=(g==null?void 0:g.decode)||f;let E=0;do{const x=m.indexOf("=",E);if(x===-1)break;const C=m.indexOf(";",E),R=C===-1?S:C;if(x>R){E=m.lastIndexOf(";",x-1)+1;continue}const T=o(m,E,x),N=c(m,x,T),w=m.slice(T,N);if(b[w]===void 0){let D=o(m,x+1,R),L=c(m,R,D);const k=y(m.slice(D,L));b[w]=k}E=R+1}while(E<S);return b}function o(m,g,b){do{const S=m.charCodeAt(g);if(S!==32&&S!==9)return g}while(++g<b);return b}function c(m,g,b){for(;g>b;){const S=m.charCodeAt(--g);if(S!==32&&S!==9)return g+1}return b}function d(m,g,b){const S=(b==null?void 0:b.encode)||encodeURIComponent;if(!t.test(m))throw new TypeError(`argument name is invalid: ${m}`);const y=S(g);if(!e.test(y))throw new TypeError(`argument val is invalid: ${g}`);let E=m+"="+y;if(!b)return E;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);E+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);E+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);E+="; Path="+b.path}if(b.expires){if(!p(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invalid: ${b.expires}`);E+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(E+="; HttpOnly"),b.secure&&(E+="; Secure"),b.partitioned&&(E+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":E+="; Priority=Low";break;case"medium":E+="; Priority=Medium";break;case"high":E+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":E+="; SameSite=Strict";break;case"lax":E+="; SameSite=Lax";break;case"none":E+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return E}function f(m){if(m.indexOf("%")===-1)return m;try{return decodeURIComponent(m)}catch{return m}}function p(m){return i.call(m)==="[object Date]"}return Ng}Cle();/**
 * react-router v7.1.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var nF="popstate";function Ole(t={}){function e(r,i){let{pathname:a,search:s,hash:o}=r.location;return yw("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:R_(i)}return Nle(e,n,null,t)}function yr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Jo(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Rle(){return Math.random().toString(36).substring(2,10)}function rF(t,e){return{usr:t.state,key:t.key,idx:e}}function yw(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Sm(e):e,state:n,key:e&&e.key||r||Rle()}}function R_({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Sm(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function Nle(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o="POP",c=null,d=f();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function f(){return(s.state||{idx:null}).idx}function p(){o="POP";let y=f(),E=y==null?null:y-d;d=y,c&&c({action:o,location:S.location,delta:E})}function m(y,E){o="PUSH";let x=yw(S.location,y,E);d=f()+1;let C=rF(x,d),R=S.createHref(x);try{s.pushState(C,"",R)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(R)}a&&c&&c({action:o,location:S.location,delta:1})}function g(y,E){o="REPLACE";let x=yw(S.location,y,E);d=f();let C=rF(x,d),R=S.createHref(x);s.replaceState(C,"",R),a&&c&&c({action:o,location:S.location,delta:0})}function b(y){let E=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof y=="string"?y:R_(y);return x=x.replace(/ $/,"%20"),yr(E,`No window.location.(origin|href) available to create URL for href: ${x}`),new URL(x,E)}let S={get action(){return o},get location(){return t(i,s)},listen(y){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(nF,p),c=y,()=>{i.removeEventListener(nF,p),c=null}},createHref(y){return e(i,y)},createURL:b,encodeLocation(y){let E=b(y);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:m,replace:g,go(y){return s.go(y)}};return S}function yH(t,e,n="/"){return Ale(t,e,n,!1)}function Ale(t,e,n,r){let i=typeof e=="string"?Sm(e):e,a=od(i.pathname||"/",n);if(a==null)return null;let s=TH(t);wle(s);let o=null;for(let c=0;o==null&&c<s.length;++c){let d=Gle(a);o=Ule(s[c],d,r)}return o}function TH(t,e=[],n=[],r=""){let i=(a,s,o)=>{let c={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};c.relativePath.startsWith("/")&&(yr(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 d=Ic([r,c.relativePath]),f=n.concat(c);a.children&&a.children.length>0&&(yr(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),TH(a.children,e,f,d)),!(a.path==null&&!a.index)&&e.push({path:d,score:Ble(d,a.index),routesMeta:f})};return t.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let c of xH(a.path))i(a,s,c)}),e}function xH(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=xH(r.join("/")),o=[];return o.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&o.push(...s),o.map(c=>t.startsWith("/")&&c===""?"/":c)}function wle(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Fle(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Dle=/^:[\w-]+$/,Ile=3,Mle=2,Lle=1,kle=10,Ple=-2,iF=t=>t==="*";function Ble(t,e){let n=t.split("/"),r=n.length;return n.some(iF)&&(r+=Ple),e&&(r+=Mle),n.filter(i=>!iF(i)).reduce((i,a)=>i+(Dle.test(a)?Ile:a===""?Lle:kle),r)}function Fle(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Ule(t,e,n=!1){let{routesMeta:r}=t,i={},a="/",s=[];for(let o=0;o<r.length;++o){let c=r[o],d=o===r.length-1,f=a==="/"?e:e.slice(a.length)||"/",p=BS({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),m=c.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=BS({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ic([a,p.pathname]),pathnameBase:Yle(Ic([a,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(a=Ic([a,p.pathnameBase]))}return s}function BS(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=jle(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((d,{paramName:f,isOptional:p},m)=>{if(f==="*"){let b=o[m]||"";s=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const g=o[m];return p&&!g?d[f]=void 0:d[f]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:s,pattern:t}}function jle(t,e=!1,n=!0){Jo(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,c)=>(r.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Gle(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Jo(!1,`The URL path "${t}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function od(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function qle(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Sm(t):t;return{pathname:n?n.startsWith("/")?n:$le(n,e):e,search:Hle(r),hash:Vle(i)}}function $le(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function qC(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zle(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function uL(t){let e=zle(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function dL(t,e,n,r=!1){let i;typeof t=="string"?i=Sm(t):(i={...t},yr(!i.pathname||!i.pathname.includes("?"),qC("?","pathname","search",i)),yr(!i.pathname||!i.pathname.includes("#"),qC("#","pathname","hash",i)),yr(!i.search||!i.search.includes("#"),qC("#","search","hash",i)));let a=t===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let p=e.length-1;if(!r&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}o=p>=0?e[p]:"/"}let c=qle(i,o),d=s&&s!=="/"&&s.endsWith("/"),f=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}var Ic=t=>t.join("/").replace(/\/\/+/g,"/"),Yle=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Hle=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Vle=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Wle(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var CH=["POST","PUT","PATCH","DELETE"];new Set(CH);var Qle=["GET",...CH];new Set(Qle);var nh=I.createContext(null);nh.displayName="DataRouter";var Cy=I.createContext(null);Cy.displayName="DataRouterState";var OH=I.createContext({isTransitioning:!1});OH.displayName="ViewTransition";var Kle=I.createContext(new Map);Kle.displayName="Fetchers";var Xle=I.createContext(null);Xle.displayName="Await";var go=I.createContext(null);go.displayName="Navigation";var x0=I.createContext(null);x0.displayName="Location";var Hl=I.createContext({outlet:null,matches:[],isDataRoute:!1});Hl.displayName="Route";var fL=I.createContext(null);fL.displayName="RouteError";function Zle(t,{relative:e}={}){yr(Em(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=I.useContext(go),{hash:i,pathname:a,search:s}=C0(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:Ic([n,a])),r.createHref({pathname:o,search:s,hash:i})}function Em(){return I.useContext(x0)!=null}function Vl(){return yr(Em(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(x0).location}var RH="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function NH(t){I.useContext(go).static||I.useLayoutEffect(t)}function hL(){let{isDataRoute:t}=I.useContext(Hl);return t?dce():Jle()}function Jle(){yr(Em(),"useNavigate() may be used only in the context of a <Router> component.");let t=I.useContext(nh),{basename:e,navigator:n}=I.useContext(go),{matches:r}=I.useContext(Hl),{pathname:i}=Vl(),a=JSON.stringify(uL(r)),s=I.useRef(!1);return NH(()=>{s.current=!0}),I.useCallback((c,d={})=>{if(Jo(s.current,RH),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=dL(c,JSON.parse(a),i,d.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Ic([e,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[e,n,a,i,t])}I.createContext(null);function C0(t,{relative:e}={}){let{matches:n}=I.useContext(Hl),{pathname:r}=Vl(),i=JSON.stringify(uL(n));return I.useMemo(()=>dL(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function ece(t,e){return AH(t,e)}function AH(t,e,n,r){var E;yr(Em(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=I.useContext(go),{matches:a}=I.useContext(Hl),s=a[a.length-1],o=s?s.params:{},c=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let x=f&&f.path||"";wH(c,!f||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let p=Vl(),m;if(e){let x=typeof e=="string"?Sm(e):e;yr(d==="/"||((E=x.pathname)==null?void 0:E.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${x.pathname}" was given in the \`location\` prop.`),m=x}else m=p;let g=m.pathname||"/",b=g;if(d!=="/"){let x=d.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let S=yH(t,{pathname:b});Jo(f||S!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Jo(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=ace(S&&S.map(x=>Object.assign({},x,{params:Object.assign({},o,x.params),pathname:Ic([d,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:Ic([d,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,n,r);return e&&y?I.createElement(x0.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},y):y}function tce(){let t=uce(),e=Wle(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:a},"ErrorBoundary")," or"," ",I.createElement("code",{style:a},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},e),n?I.createElement("pre",{style:i},n):null,s)}var nce=I.createElement(tce,null),rce=class extends I.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?I.createElement(Hl.Provider,{value:this.props.routeContext},I.createElement(fL.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ice({routeContext:t,match:e,children:n}){let r=I.useContext(nh);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),I.createElement(Hl.Provider,{value:t},n)}function ace(t,e=[],n=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let i=t,a=n==null?void 0:n.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);yr(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,o=-1;if(n)for(let c=0;c<i.length;c++){let d=i[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=c),d.route.id){let{loaderData:f,errors:p}=n,m=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){s=!0,o>=0?i=i.slice(0,o+1):i=[i[0]];break}}}return i.reduceRight((c,d,f)=>{let p,m=!1,g=null,b=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||nce,s&&(o<0&&f===0?(wH("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,b=null):o===f&&(m=!0,b=d.route.hydrateFallbackElement||null)));let S=e.concat(i.slice(0,f+1)),y=()=>{let E;return p?E=g:m?E=b:d.route.Component?E=I.createElement(d.route.Component,null):d.route.element?E=d.route.element:E=c,I.createElement(ice,{match:d,routeContext:{outlet:c,matches:S,isDataRoute:n!=null},children:E})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?I.createElement(rce,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:y(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):y()},null)}function pL(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function sce(t){let e=I.useContext(nh);return yr(e,pL(t)),e}function oce(t){let e=I.useContext(Cy);return yr(e,pL(t)),e}function lce(t){let e=I.useContext(Hl);return yr(e,pL(t)),e}function mL(t){let e=lce(t),n=e.matches[e.matches.length-1];return yr(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function cce(){return mL("useRouteId")}function uce(){var r;let t=I.useContext(fL),e=oce("useRouteError"),n=mL("useRouteError");return t!==void 0?t:(r=e.errors)==null?void 0:r[n]}function dce(){let{router:t}=sce("useNavigate"),e=mL("useNavigate"),n=I.useRef(!1);return NH(()=>{n.current=!0}),I.useCallback(async(i,a={})=>{Jo(n.current,RH),n.current&&(typeof i=="number"?t.navigate(i):await t.navigate(i,{fromRouteId:e,...a}))},[t,e])}var aF={};function wH(t,e,n){!e&&!aF[t]&&(aF[t]=!0,Jo(!1,n))}I.memo(fce);function fce({routes:t,future:e,state:n}){return AH(t,void 0,n,e)}function hce({to:t,replace:e,state:n,relative:r}){yr(Em(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=I.useContext(go);Jo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=I.useContext(Hl),{pathname:s}=Vl(),o=hL(),c=dL(t,uL(a),s,r==="path"),d=JSON.stringify(c);return I.useEffect(()=>{o(JSON.parse(d),{replace:e,state:n,relative:r})},[o,d,r,e,n]),null}function Du(t){yr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function pce({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){yr(!Em(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),o=I.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);typeof n=="string"&&(n=Sm(n));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:m="default"}=n,g=I.useMemo(()=>{let b=od(c,s);return b==null?null:{location:{pathname:b,search:d,hash:f,state:p,key:m},navigationType:r}},[s,c,d,f,p,m,r]);return Jo(g!=null,`<Router basename="${s}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:I.createElement(go.Provider,{value:o},I.createElement(x0.Provider,{children:e,value:g}))}function sF({children:t,location:e}){return ece(Tw(t),e)}function Tw(t,e=[]){let n=[];return I.Children.forEach(t,(r,i)=>{if(!I.isValidElement(r))return;let a=[...e,i];if(r.type===I.Fragment){n.push.apply(n,Tw(r.props.children,a));return}yr(r.type===Du,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yr(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.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,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Tw(r.props.children,a)),n.push(s)}),n}var Qv="get",Kv="application/x-www-form-urlencoded";function Oy(t){return t!=null&&typeof t.tagName=="string"}function mce(t){return Oy(t)&&t.tagName.toLowerCase()==="button"}function gce(t){return Oy(t)&&t.tagName.toLowerCase()==="form"}function _ce(t){return Oy(t)&&t.tagName.toLowerCase()==="input"}function bce(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function vce(t,e){return t.button===0&&(!e||e==="_self")&&!bce(t)}var nv=null;function Sce(){if(nv===null)try{new FormData(document.createElement("form"),0),nv=!1}catch{nv=!0}return nv}var Ece=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $C(t){return t!=null&&!Ece.has(t)?(Jo(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Kv}"`),null):t}function yce(t,e){let n,r,i,a,s;if(gce(t)){let o=t.getAttribute("action");r=o?od(o,e):null,n=t.getAttribute("method")||Qv,i=$C(t.getAttribute("enctype"))||Kv,a=new FormData(t)}else if(mce(t)||_ce(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=t.getAttribute("formaction")||o.getAttribute("action");if(r=c?od(c,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||Qv,i=$C(t.getAttribute("formenctype"))||$C(o.getAttribute("enctype"))||Kv,a=new FormData(o,t),!Sce()){let{name:d,type:f,value:p}=t;if(f==="image"){let m=d?`${d}.`:"";a.append(`${m}x`,"0"),a.append(`${m}y`,"0")}else d&&a.append(d,p)}}else{if(Oy(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qv,r=null,i=Kv,s=t}return a&&i==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:s}}function gL(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function Tce(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function xce(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Cce(t,e,n){let r=await Promise.all(t.map(async i=>{let a=e.routes[i.route.id];if(a){let s=await Tce(a,n);return s.links?s.links():[]}return[]}));return Ace(r.flat(1).filter(xce).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function oF(t,e,n,r,i,a){let s=(c,d)=>n[d]?c.route.id!==n[d].route.id:!0,o=(c,d)=>{var f;return n[d].pathname!==c.pathname||((f=n[d].route.path)==null?void 0:f.endsWith("*"))&&n[d].params["*"]!==c.params["*"]};return a==="assets"?e.filter((c,d)=>s(c,d)||o(c,d)):a==="data"?e.filter((c,d)=>{var p;let f=r.routes[c.route.id];if(!f||!f.hasLoader)return!1;if(s(c,d)||o(c,d))return!0;if(c.route.shouldRevalidate){let m=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(t,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function Oce(t,e){return Rce(t.map(n=>{let r=e.routes[n.route.id];if(!r)return[];let i=[r.module];return r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Rce(t){return[...new Set(t)]}function Nce(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Ace(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let a=JSON.stringify(Nce(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function wce(t){let e=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return e.pathname==="/"?e.pathname="_root.data":e.pathname=`${e.pathname.replace(/\/$/,"")}.data`,e}function Dce(){let t=I.useContext(nh);return gL(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Ice(){let t=I.useContext(Cy);return gL(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var _L=I.createContext(void 0);_L.displayName="FrameworkContext";function DH(){let t=I.useContext(_L);return gL(t,"You must render this element inside a <HydratedRouter> element"),t}function Mce(t,e){let n=I.useContext(_L),[r,i]=I.useState(!1),[a,s]=I.useState(!1),{onFocus:o,onBlur:c,onMouseEnter:d,onMouseLeave:f,onTouchStart:p}=e,m=I.useRef(null);I.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let S=E=>{E.forEach(x=>{s(x.isIntersecting)})},y=new IntersectionObserver(S,{threshold:.5});return m.current&&y.observe(m.current),()=>{y.disconnect()}}},[t]),I.useEffect(()=>{if(r){let S=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(S)}}},[r]);let g=()=>{i(!0)},b=()=>{i(!1),s(!1)};return n?t!=="intent"?[a,m,{}]:[a,m,{onFocus:Ag(o,g),onBlur:Ag(c,b),onMouseEnter:Ag(d,g),onMouseLeave:Ag(f,b),onTouchStart:Ag(p,g)}]:[!1,m,{}]}function Ag(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Lce({page:t,...e}){let{router:n}=Dce(),r=I.useMemo(()=>yH(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?I.createElement(Pce,{page:t,matches:r,...e}):null}function kce(t){let{manifest:e,routeModules:n}=DH(),[r,i]=I.useState([]);return I.useEffect(()=>{let a=!1;return Cce(t,e,n).then(s=>{a||i(s)}),()=>{a=!0}},[t,e,n]),r}function Pce({page:t,matches:e,...n}){let r=Vl(),{manifest:i,routeModules:a}=DH(),{loaderData:s,matches:o}=Ice(),c=I.useMemo(()=>oF(t,e,o,i,r,"data"),[t,e,o,i,r]),d=I.useMemo(()=>oF(t,e,o,i,r,"assets"),[t,e,o,i,r]),f=I.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let g=new Set,b=!1;if(e.forEach(y=>{var x;let E=i.routes[y.route.id];!E||!E.hasLoader||(!c.some(C=>C.route.id===y.route.id)&&y.route.id in s&&((x=a[y.route.id])!=null&&x.shouldRevalidate)||E.hasClientLoader?b=!0:g.add(y.route.id))}),g.size===0)return[];let S=wce(t);return b&&g.size>0&&S.searchParams.set("_routes",e.filter(y=>g.has(y.route.id)).map(y=>y.route.id).join(",")),[S.pathname+S.search]},[s,r,i,c,e,t,a]),p=I.useMemo(()=>Oce(d,i),[d,i]),m=kce(d);return I.createElement(I.Fragment,null,f.map(g=>I.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>I.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),m.map(({key:g,link:b})=>I.createElement("link",{key:g,...b})))}function Bce(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var IH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{IH&&(window.__reactRouterVersion="7.1.1")}catch{}function Fce({basename:t,children:e,window:n}){let r=I.useRef();r.current==null&&(r.current=Ole({window:n,v5Compat:!0}));let i=r.current,[a,s]=I.useState({action:i.action,location:i.location}),o=I.useCallback(c=>{I.startTransition(()=>s(c))},[s]);return I.useLayoutEffect(()=>i.listen(o),[i,o]),I.createElement(pce,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:i})}var MH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bL=I.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:s,state:o,target:c,to:d,preventScrollReset:f,viewTransition:p,...m},g){let{basename:b}=I.useContext(go),S=typeof d=="string"&&MH.test(d),y,E=!1;if(typeof d=="string"&&S&&(y=d,IH))try{let L=new URL(window.location.href),k=d.startsWith("//")?new URL(L.protocol+d):new URL(d),M=od(k.pathname,b);k.origin===L.origin&&M!=null?d=M+k.search+k.hash:E=!0}catch{Jo(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=Zle(d,{relative:i}),[C,R,T]=Mce(r,m),N=Gce(d,{replace:s,state:o,target:c,preventScrollReset:f,relative:i,viewTransition:p});function w(L){e&&e(L),L.defaultPrevented||N(L)}let D=I.createElement("a",{...m,...T,href:y||x,onClick:E||a?e:w,ref:Bce(g,R),target:c,"data-discover":!S&&n==="render"?"true":void 0});return C&&!S?I.createElement(I.Fragment,null,D,I.createElement(Lce,{page:x})):D});bL.displayName="Link";var Hh=I.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:s,viewTransition:o,children:c,...d},f){let p=C0(s,{relative:d.relative}),m=Vl(),g=I.useContext(Cy),{navigator:b,basename:S}=I.useContext(go),y=g!=null&&Hce(p)&&o===!0,E=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,x=m.pathname,C=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(x=x.toLowerCase(),C=C?C.toLowerCase():null,E=E.toLowerCase()),C&&S&&(C=od(C,S)||C);const R=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let T=x===E||!i&&x.startsWith(E)&&x.charAt(R)==="/",N=C!=null&&(C===E||!i&&C.startsWith(E)&&C.charAt(E.length)==="/"),w={isActive:T,isPending:N,isTransitioning:y},D=T?e:void 0,L;typeof r=="function"?L=r(w):L=[r,T?"active":null,N?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let k=typeof a=="function"?a(w):a;return I.createElement(bL,{...d,"aria-current":D,className:L,ref:f,style:k,to:s,viewTransition:o},typeof c=="function"?c(w):c)});Hh.displayName="NavLink";var Uce=I.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:a,method:s=Qv,action:o,onSubmit:c,relative:d,preventScrollReset:f,viewTransition:p,...m},g)=>{let b=zce(),S=Yce(o,{relative:d}),y=s.toLowerCase()==="get"?"get":"post",E=typeof o=="string"&&MH.test(o),x=C=>{if(c&&c(C),C.defaultPrevented)return;C.preventDefault();let R=C.nativeEvent.submitter,T=(R==null?void 0:R.getAttribute("formmethod"))||s;b(R||C.currentTarget,{fetcherKey:e,method:T,navigate:n,replace:i,state:a,relative:d,preventScrollReset:f,viewTransition:p})};return I.createElement("form",{ref:g,method:y,action:S,onSubmit:r?c:x,...m,"data-discover":!E&&t==="render"?"true":void 0})});Uce.displayName="Form";function jce(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function LH(t){let e=I.useContext(nh);return yr(e,jce(t)),e}function Gce(t,{target:e,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:s}={}){let o=hL(),c=Vl(),d=C0(t,{relative:a});return I.useCallback(f=>{if(vce(f,e)){f.preventDefault();let p=n!==void 0?n:R_(c)===R_(d);o(t,{replace:p,state:r,preventScrollReset:i,relative:a,viewTransition:s})}},[c,o,d,n,r,e,t,i,a,s])}var qce=0,$ce=()=>`__${String(++qce)}__`;function zce(){let{router:t}=LH("useSubmit"),{basename:e}=I.useContext(go),n=cce();return I.useCallback(async(r,i={})=>{let{action:a,method:s,encType:o,formData:c,body:d}=yce(r,e);if(i.navigate===!1){let f=i.fetcherKey||$ce();await t.fetch(f,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||s,formEncType:i.encType||o,flushSync:i.flushSync})}else await t.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||s,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[t,e,n])}function Yce(t,{relative:e}={}){let{basename:n}=I.useContext(go),r=I.useContext(Hl);yr(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...C0(t||".",{relative:e})},s=Vl();if(t==null){a.search=s.search;let o=new URLSearchParams(a.search),c=o.getAll("index");if(c.some(f=>f==="")){o.delete("index"),c.filter(p=>p).forEach(p=>o.append("index",p));let f=o.toString();a.search=f?`?${f}`:""}}return(!t||t===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Ic([n,a.pathname])),R_(a)}function Hce(t,e={}){let n=I.useContext(OH);yr(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=LH("useViewTransitionState"),i=C0(t,{relative:e.relative});if(!n.isTransitioning)return!1;let a=od(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=od(n.nextLocation.pathname,r)||n.nextLocation.pathname;return BS(i.pathname,s)!=null||BS(i.pathname,a)!=null}new TextEncoder;var O0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$f=typeof window>"u"||"Deno"in globalThis;function Xs(){}function Vce(t,e){return typeof t=="function"?t(e):t}function xw(t){return typeof t=="number"&&t>=0&&t!==1/0}function kH(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ap(t,e){return typeof t=="function"?t(e):t}function zo(t,e){return typeof t=="function"?t(e):t}function lF(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=t;if(s){if(r){if(e.queryHash!==vL(s,e.options))return!1}else if(!A_(e.queryKey,s))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||a&&!a(e))}function cF(t,e){const{exact:n,status:r,predicate:i,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(n){if(N_(e.options.mutationKey)!==N_(a))return!1}else if(!A_(e.options.mutationKey,a))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function vL(t,e){return((e==null?void 0:e.queryKeyHashFn)||N_)(t)}function N_(t){return JSON.stringify(t,(e,n)=>Ow(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function A_(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!A_(t[n],e[n])):!1}function PH(t,e){if(t===e)return t;const n=uF(t)&&uF(e);if(n||Ow(t)&&Ow(e)){const r=n?t:Object.keys(t),i=r.length,a=n?e:Object.keys(e),s=a.length,o=n?[]:{};let c=0;for(let d=0;d<s;d++){const f=n?d:a[d];(!n&&r.includes(f)||n)&&t[f]===void 0&&e[f]===void 0?(o[f]=void 0,c++):(o[f]=PH(t[f],e[f]),o[f]===t[f]&&t[f]!==void 0&&c++)}return i===s&&c===i?t:o}return e}function Cw(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function uF(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Ow(t){if(!dF(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!dF(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function dF(t){return Object.prototype.toString.call(t)==="[object Object]"}function Wce(t){return new Promise(e=>{setTimeout(e,t)})}function Rw(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?PH(t,e):e}function Qce(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Kce(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var SL=Symbol();function BH(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===SL?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var xf,$u,vp,d5,Xce=(d5=class extends O0{constructor(){super();Je(this,xf);Je(this,$u);Je(this,vp);Pe(this,vp,e=>{if(!$f&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){$(this,$u)||this.setEventListener($(this,vp))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,$u))==null||e.call(this),Pe(this,$u,void 0))}setEventListener(e){var n;Pe(this,vp,e),(n=$(this,$u))==null||n.call(this),Pe(this,$u,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){$(this,xf)!==e&&(Pe(this,xf,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof $(this,xf)=="boolean"?$(this,xf):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},xf=new WeakMap,$u=new WeakMap,vp=new WeakMap,d5),EL=new Xce,Sp,zu,Ep,f5,Zce=(f5=class extends O0{constructor(){super();Je(this,Sp,!0);Je(this,zu);Je(this,Ep);Pe(this,Ep,e=>{if(!$f&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){$(this,zu)||this.setEventListener($(this,Ep))}onUnsubscribe(){var e;this.hasListeners()||((e=$(this,zu))==null||e.call(this),Pe(this,zu,void 0))}setEventListener(e){var n;Pe(this,Ep,e),(n=$(this,zu))==null||n.call(this),Pe(this,zu,e(this.setOnline.bind(this)))}setOnline(e){$(this,Sp)!==e&&(Pe(this,Sp,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return $(this,Sp)}},Sp=new WeakMap,zu=new WeakMap,Ep=new WeakMap,f5),FS=new Zce;function Nw(){let t,e;const n=new Promise((i,a)=>{t=i,e=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}function Jce(t){return Math.min(1e3*2**t,3e4)}function FH(t){return(t??"online")==="online"?FS.isOnline():!0}var UH=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function zC(t){return t instanceof UH}function jH(t){let e=!1,n=0,r=!1,i;const a=Nw(),s=S=>{var y;r||(m(new UH(S)),(y=t.abort)==null||y.call(t))},o=()=>{e=!0},c=()=>{e=!1},d=()=>EL.isFocused()&&(t.networkMode==="always"||FS.isOnline())&&t.canRun(),f=()=>FH(t.networkMode)&&t.canRun(),p=S=>{var y;r||(r=!0,(y=t.onSuccess)==null||y.call(t,S),i==null||i(),a.resolve(S))},m=S=>{var y;r||(r=!0,(y=t.onError)==null||y.call(t,S),i==null||i(),a.reject(S))},g=()=>new Promise(S=>{var y;i=E=>{(r||d())&&S(E)},(y=t.onPause)==null||y.call(t)}).then(()=>{var S;i=void 0,r||(S=t.onContinue)==null||S.call(t)}),b=()=>{if(r)return;let S;const y=n===0?t.initialPromise:void 0;try{S=y??t.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(p).catch(E=>{var N;if(r)return;const x=t.retry??($f?0:3),C=t.retryDelay??Jce,R=typeof C=="function"?C(n,E):C,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,E);if(e||!T){m(E);return}n++,(N=t.onFail)==null||N.call(t,n,E),Wce(R).then(()=>d()?void 0:g()).then(()=>{e?m(E):b()})})};return{promise:a,cancel:s,continue:()=>(i==null||i(),a),cancelRetry:o,continueRetry:c,canStart:f,start:()=>(f()?b():g().then(b),a)}}function eue(){let t=[],e=0,n=o=>{o()},r=o=>{o()},i=o=>setTimeout(o,0);const a=o=>{e?t.push(o):i(()=>{n(o)})},s=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(c=>{n(c)})})})};return{batch:o=>{let c;e++;try{c=o()}finally{e--,e||s()}return c},batchCalls:o=>(...c)=>{a(()=>{o(...c)})},schedule:a,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Zi=eue(),Cf,h5,GH=(h5=class{constructor(){Je(this,Cf)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xw(this.gcTime)&&Pe(this,Cf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??($f?1/0:5*60*1e3))}clearGcTimeout(){$(this,Cf)&&(clearTimeout($(this,Cf)),Pe(this,Cf,void 0))}},Cf=new WeakMap,h5),yp,Tp,Ks,Of,_a,n0,Rf,Io,Tc,p5,tue=(p5=class extends GH{constructor(e){super();Je(this,Io);Je(this,yp);Je(this,Tp);Je(this,Ks);Je(this,Of);Je(this,_a);Je(this,n0);Je(this,Rf);Pe(this,Rf,!1),Pe(this,n0,e.defaultOptions),this.setOptions(e.options),this.observers=[],Pe(this,Of,e.client),Pe(this,Ks,$(this,Of).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Pe(this,yp,nue(this.options)),this.state=e.state??$(this,yp),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=$(this,_a))==null?void 0:e.promise}setOptions(e){this.options={...$(this,n0),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&$(this,Ks).remove(this)}setData(e,n){const r=Rw(this.state.data,e,this.options);return $e(this,Io,Tc).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){$e(this,Io,Tc).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=$(this,_a))==null?void 0:r.promise;return(i=$(this,_a))==null||i.cancel(e),n?n.then(Xs).catch(Xs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,yp))}isActive(){return this.observers.some(e=>zo(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===SL||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!kH(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=$(this,_a))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=$(this,_a))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),$(this,Ks).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||($(this,_a)&&($(this,Rf)?$(this,_a).cancel({revert:!0}):$(this,_a).cancelRetry()),this.scheduleGc()),$(this,Ks).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,Io,Tc).call(this,{type:"invalidate"})}fetch(e,n){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if($(this,_a))return $(this,_a).continueRetry(),$(this,_a).promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(Pe(this,Rf,!0),r.signal)})},a=()=>{const p=BH(this.options,n),m={client:$(this,Of),queryKey:this.queryKey,meta:this.meta};return i(m),Pe(this,Rf,!1),this.options.persister?this.options.persister(p,m,this):p(m)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:$(this,Of),state:this.state,fetchFn:a};i(s),(c=this.options.behavior)==null||c.onFetch(s,this),Pe(this,Tp,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&$e(this,Io,Tc).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta});const o=p=>{var m,g,b,S;zC(p)&&p.silent||$e(this,Io,Tc).call(this,{type:"error",error:p}),zC(p)||((g=(m=$(this,Ks).config).onError)==null||g.call(m,p,this),(S=(b=$(this,Ks).config).onSettled)==null||S.call(b,this.state.data,p,this)),this.scheduleGc()};return Pe(this,_a,jH({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var m,g,b,S;if(p===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(y){o(y);return}(g=(m=$(this,Ks).config).onSuccess)==null||g.call(m,p,this),(S=(b=$(this,Ks).config).onSettled)==null||S.call(b,p,this.state.error,this),this.scheduleGc()},onError:o,onFail:(p,m)=>{$e(this,Io,Tc).call(this,{type:"failed",failureCount:p,error:m})},onPause:()=>{$e(this,Io,Tc).call(this,{type:"pause"})},onContinue:()=>{$e(this,Io,Tc).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),$(this,_a).start()}},yp=new WeakMap,Tp=new WeakMap,Ks=new WeakMap,Of=new WeakMap,_a=new WeakMap,n0=new WeakMap,Rf=new WeakMap,Io=new WeakSet,Tc=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...qH(r.data,this.options),fetchMeta:e.meta??null};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return zC(i)&&i.revert&&$(this,Tp)?{...$(this,Tp),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Zi.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),$(this,Ks).notify({query:this,type:"updated",action:e})})},p5);function qH(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:FH(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function nue(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ol,m5,rue=(m5=class extends O0{constructor(e={}){super();Je(this,Ol);this.config=e,Pe(this,Ol,new Map)}build(e,n,r){const i=n.queryKey,a=n.queryHash??vL(i,n);let s=this.get(a);return s||(s=new tue({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){$(this,Ol).has(e.queryHash)||($(this,Ol).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=$(this,Ol).get(e.queryHash);n&&(e.destroy(),n===e&&$(this,Ol).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Zi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return $(this,Ol).get(e)}getAll(){return[...$(this,Ol).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>lF(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>lF(e,r)):n}notify(e){Zi.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Zi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ol=new WeakMap,m5),Rl,La,Nf,Nl,Iu,g5,iue=(g5=class extends GH{constructor(e){super();Je(this,Nl);Je(this,Rl);Je(this,La);Je(this,Nf);this.mutationId=e.mutationId,Pe(this,La,e.mutationCache),Pe(this,Rl,[]),this.state=e.state||aue(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){$(this,Rl).includes(e)||($(this,Rl).push(e),this.clearGcTimeout(),$(this,La).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Pe(this,Rl,$(this,Rl).filter(n=>n!==e)),this.scheduleGc(),$(this,La).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){$(this,Rl).length||(this.state.status==="pending"?this.scheduleGc():$(this,La).remove(this))}continue(){var e;return((e=$(this,Nf))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,a,s,o,c,d,f,p,m,g,b,S,y,E,x,C,R,T,N,w;Pe(this,Nf,jH({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(D,L)=>{$e(this,Nl,Iu).call(this,{type:"failed",failureCount:D,error:L})},onPause:()=>{$e(this,Nl,Iu).call(this,{type:"pause"})},onContinue:()=>{$e(this,Nl,Iu).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>$(this,La).canRun(this)}));const n=this.state.status==="pending",r=!$(this,Nf).canStart();try{if(!n){$e(this,Nl,Iu).call(this,{type:"pending",variables:e,isPaused:r}),await((a=(i=$(this,La).config).onMutate)==null?void 0:a.call(i,e,this));const L=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,e));L!==this.state.context&&$e(this,Nl,Iu).call(this,{type:"pending",context:L,variables:e,isPaused:r})}const D=await $(this,Nf).start();return await((d=(c=$(this,La).config).onSuccess)==null?void 0:d.call(c,D,e,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,D,e,this.state.context)),await((g=(m=$(this,La).config).onSettled)==null?void 0:g.call(m,D,null,this.state.variables,this.state.context,this)),await((S=(b=this.options).onSettled)==null?void 0:S.call(b,D,null,e,this.state.context)),$e(this,Nl,Iu).call(this,{type:"success",data:D}),D}catch(D){try{throw await((E=(y=$(this,La).config).onError)==null?void 0:E.call(y,D,e,this.state.context,this)),await((C=(x=this.options).onError)==null?void 0:C.call(x,D,e,this.state.context)),await((T=(R=$(this,La).config).onSettled)==null?void 0:T.call(R,void 0,D,this.state.variables,this.state.context,this)),await((w=(N=this.options).onSettled)==null?void 0:w.call(N,void 0,D,e,this.state.context)),D}finally{$e(this,Nl,Iu).call(this,{type:"error",error:D})}}finally{$(this,La).runNext(this)}}},Rl=new WeakMap,La=new WeakMap,Nf=new WeakMap,Nl=new WeakSet,Iu=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Zi.batch(()=>{$(this,Rl).forEach(r=>{r.onMutationUpdate(e)}),$(this,La).notify({mutation:this,type:"updated",action:e})})},g5);function aue(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cc,Mo,r0,_5,sue=(_5=class extends O0{constructor(e={}){super();Je(this,Cc);Je(this,Mo);Je(this,r0);this.config=e,Pe(this,Cc,new Set),Pe(this,Mo,new Map),Pe(this,r0,0)}build(e,n,r){const i=new iue({mutationCache:this,mutationId:++Jd(this,r0)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){$(this,Cc).add(e);const n=rv(e);if(typeof n=="string"){const r=$(this,Mo).get(n);r?r.push(e):$(this,Mo).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if($(this,Cc).delete(e)){const n=rv(e);if(typeof n=="string"){const r=$(this,Mo).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&$(this,Mo).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=rv(e);if(typeof n=="string"){const r=$(this,Mo).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=rv(e);if(typeof n=="string"){const i=(r=$(this,Mo).get(n))==null?void 0:r.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Zi.batch(()=>{$(this,Cc).forEach(e=>{this.notify({type:"removed",mutation:e})}),$(this,Cc).clear(),$(this,Mo).clear()})}getAll(){return Array.from($(this,Cc))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>cF(n,r))}findAll(e={}){return this.getAll().filter(n=>cF(e,n))}notify(e){Zi.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Zi.batch(()=>Promise.all(e.map(n=>n.continue().catch(Xs))))}},Cc=new WeakMap,Mo=new WeakMap,r0=new WeakMap,_5);function rv(t){var e;return(e=t.options.scope)==null?void 0:e.id}function fF(t){return{onFetch:(e,n)=>{var f,p,m,g,b;const r=e.options,i=(m=(p=(f=e.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:m.direction,a=((g=e.state.data)==null?void 0:g.pages)||[],s=((b=e.state.data)==null?void 0:b.pageParams)||[];let o={pages:[],pageParams:[]},c=0;const d=async()=>{let S=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(e.signal.aborted?S=!0:e.signal.addEventListener("abort",()=>{S=!0}),e.signal)})},E=BH(e.options,e.fetchOptions),x=async(C,R,T)=>{if(S)return Promise.reject();if(R==null&&C.pages.length)return Promise.resolve(C);const N={client:e.client,queryKey:e.queryKey,pageParam:R,direction:T?"backward":"forward",meta:e.options.meta};y(N);const w=await E(N),{maxPages:D}=e.options,L=T?Kce:Qce;return{pages:L(C.pages,w,D),pageParams:L(C.pageParams,R,D)}};if(i&&a.length){const C=i==="backward",R=C?oue:hF,T={pages:a,pageParams:s},N=R(r,T);o=await x(T,N,C)}else{const C=t??a.length;do{const R=c===0?s[0]??r.initialPageParam:hF(r,o);if(c>0&&R==null)break;o=await x(o,R),c++}while(c<C)}return o};e.options.persister?e.fetchFn=()=>{var S,y;return(y=(S=e.options).persister)==null?void 0:y.call(S,d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=d}}}function hF(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function oue(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}var Fr,Yu,Hu,xp,Cp,Vu,Op,Rp,b5,lue=(b5=class{constructor(t={}){Je(this,Fr);Je(this,Yu);Je(this,Hu);Je(this,xp);Je(this,Cp);Je(this,Vu);Je(this,Op);Je(this,Rp);Pe(this,Fr,t.queryCache||new rue),Pe(this,Yu,t.mutationCache||new sue),Pe(this,Hu,t.defaultOptions||{}),Pe(this,xp,new Map),Pe(this,Cp,new Map),Pe(this,Vu,0)}mount(){Jd(this,Vu)._++,$(this,Vu)===1&&(Pe(this,Op,EL.subscribe(async t=>{t&&(await this.resumePausedMutations(),$(this,Fr).onFocus())})),Pe(this,Rp,FS.subscribe(async t=>{t&&(await this.resumePausedMutations(),$(this,Fr).onOnline())})))}unmount(){var t,e;Jd(this,Vu)._--,$(this,Vu)===0&&((t=$(this,Op))==null||t.call(this),Pe(this,Op,void 0),(e=$(this,Rp))==null||e.call(this),Pe(this,Rp,void 0))}isFetching(t){return $(this,Fr).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return $(this,Yu).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=$(this,Fr).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=$(this,Fr).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(ap(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return $(this,Fr).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=$(this,Fr).get(r.queryHash),a=i==null?void 0:i.state.data,s=Vce(e,a);if(s!==void 0)return $(this,Fr).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(t,e,n){return Zi.batch(()=>$(this,Fr).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=$(this,Fr).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=$(this,Fr);Zi.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=$(this,Fr);return Zi.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Zi.batch(()=>$(this,Fr).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(Xs).catch(Xs)}invalidateQueries(t,e={}){return Zi.batch(()=>($(this,Fr).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Zi.batch(()=>$(this,Fr).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Xs)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Xs)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=$(this,Fr).build(this,e);return n.isStaleByTime(ap(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Xs).catch(Xs)}fetchInfiniteQuery(t){return t.behavior=fF(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Xs).catch(Xs)}ensureInfiniteQueryData(t){return t.behavior=fF(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return FS.isOnline()?$(this,Yu).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,Fr)}getMutationCache(){return $(this,Yu)}getDefaultOptions(){return $(this,Hu)}setDefaultOptions(t){Pe(this,Hu,t)}setQueryDefaults(t,e){$(this,xp).set(N_(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...$(this,xp).values()],n={};return e.forEach(r=>{A_(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){$(this,Cp).set(N_(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...$(this,Cp).values()],n={};return e.forEach(r=>{A_(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...$(this,Hu).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=vL(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===SL&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...$(this,Hu).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){$(this,Fr).clear(),$(this,Yu).clear()}},Fr=new WeakMap,Yu=new WeakMap,Hu=new WeakMap,xp=new WeakMap,Cp=new WeakMap,Vu=new WeakMap,Op=new WeakMap,Rp=new WeakMap,b5),Ja,fn,i0,ka,Af,Np,Wu,Al,a0,Ap,wp,wf,Df,Qu,Dp,An,Hg,Aw,ww,Dw,Iw,Mw,Lw,kw,zH,v5,$H=(v5=class extends O0{constructor(e,n){super();Je(this,An);Je(this,Ja);Je(this,fn);Je(this,i0);Je(this,ka);Je(this,Af);Je(this,Np);Je(this,Wu);Je(this,Al);Je(this,a0);Je(this,Ap);Je(this,wp);Je(this,wf);Je(this,Df);Je(this,Qu);Je(this,Dp,new Set);this.options=n,Pe(this,Ja,e),Pe(this,Al,null),Pe(this,Wu,Nw()),this.options.experimental_prefetchInRender||$(this,Wu).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&($(this,fn).addObserver(this),pF($(this,fn),this.options)?$e(this,An,Hg).call(this):this.updateResult(),$e(this,An,Iw).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pw($(this,fn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pw($(this,fn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,$e(this,An,Mw).call(this),$e(this,An,Lw).call(this),$(this,fn).removeObserver(this)}setOptions(e,n){const r=this.options,i=$(this,fn);if(this.options=$(this,Ja).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zo(this.options.enabled,$(this,fn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");$e(this,An,kw).call(this),$(this,fn).setOptions(this.options),r._defaulted&&!Cw(this.options,r)&&$(this,Ja).getQueryCache().notify({type:"observerOptionsUpdated",query:$(this,fn),observer:this});const a=this.hasListeners();a&&mF($(this,fn),i,this.options,r)&&$e(this,An,Hg).call(this),this.updateResult(n),a&&($(this,fn)!==i||zo(this.options.enabled,$(this,fn))!==zo(r.enabled,$(this,fn))||ap(this.options.staleTime,$(this,fn))!==ap(r.staleTime,$(this,fn)))&&$e(this,An,Aw).call(this);const s=$e(this,An,ww).call(this);a&&($(this,fn)!==i||zo(this.options.enabled,$(this,fn))!==zo(r.enabled,$(this,fn))||s!==$(this,Qu))&&$e(this,An,Dw).call(this,s)}getOptimisticResult(e){const n=$(this,Ja).getQueryCache().build($(this,Ja),e),r=this.createResult(n,e);return uue(this,r)&&(Pe(this,ka,r),Pe(this,Np,this.options),Pe(this,Af,$(this,fn).state)),r}getCurrentResult(){return $(this,ka)}trackResult(e,n){const r={};return Object.keys(e).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),e[i])})}),r}trackProp(e){$(this,Dp).add(e)}getCurrentQuery(){return $(this,fn)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=$(this,Ja).defaultQueryOptions(e),r=$(this,Ja).getQueryCache().build($(this,Ja),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return $e(this,An,Hg).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),$(this,ka)))}createResult(e,n){var D;const r=$(this,fn),i=this.options,a=$(this,ka),s=$(this,Af),o=$(this,Np),d=e!==r?e.state:$(this,i0),{state:f}=e;let p={...f},m=!1,g;if(n._optimisticResults){const L=this.hasListeners(),k=!L&&pF(e,n),M=L&&mF(e,r,n,i);(k||M)&&(p={...p,...qH(f.data,e.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:S,status:y}=p;if(n.select&&p.data!==void 0)if(a&&p.data===(s==null?void 0:s.data)&&n.select===$(this,a0))g=$(this,Ap);else try{Pe(this,a0,n.select),g=n.select(p.data),g=Rw(a==null?void 0:a.data,g,n),Pe(this,Ap,g),Pe(this,Al,null)}catch(L){Pe(this,Al,L)}else g=p.data;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let L;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))L=a.data;else if(L=typeof n.placeholderData=="function"?n.placeholderData((D=$(this,wp))==null?void 0:D.state.data,$(this,wp)):n.placeholderData,n.select&&L!==void 0)try{L=n.select(L),Pe(this,Al,null)}catch(k){Pe(this,Al,k)}L!==void 0&&(y="success",g=Rw(a==null?void 0:a.data,L,n),m=!0)}$(this,Al)&&(b=$(this,Al),g=$(this,Ap),S=Date.now(),y="error");const E=p.fetchStatus==="fetching",x=y==="pending",C=y==="error",R=x&&E,T=g!==void 0,w={status:y,fetchStatus:p.fetchStatus,isPending:x,isSuccess:y==="success",isError:C,isInitialLoading:R,isLoading:R,data:g,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:S,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:E,isRefetching:E&&!x,isLoadingError:C&&!T,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:C&&T,isStale:yL(e,n),refetch:this.refetch,promise:$(this,Wu)};if(this.options.experimental_prefetchInRender){const L=P=>{w.status==="error"?P.reject(w.error):w.data!==void 0&&P.resolve(w.data)},k=()=>{const P=Pe(this,Wu,w.promise=Nw());L(P)},M=$(this,Wu);switch(M.status){case"pending":e.queryHash===r.queryHash&&L(M);break;case"fulfilled":(w.status==="error"||w.data!==M.value)&&k();break;case"rejected":(w.status!=="error"||w.error!==M.reason)&&k();break}}return w}updateResult(e){const n=$(this,ka),r=this.createResult($(this,fn),this.options);if(Pe(this,Af,$(this,fn).state),Pe(this,Np,this.options),$(this,Af).data!==void 0&&Pe(this,wp,$(this,fn)),Cw(r,n))return;Pe(this,ka,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!$(this,Dp).size)return!0;const c=new Set(o??$(this,Dp));return this.options.throwOnError&&c.add("error"),Object.keys($(this,ka)).some(d=>{const f=d;return $(this,ka)[f]!==n[f]&&c.has(f)})};(e==null?void 0:e.listeners)!==!1&&a()&&(i.listeners=!0),$e(this,An,zH).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&$e(this,An,Iw).call(this)}},Ja=new WeakMap,fn=new WeakMap,i0=new WeakMap,ka=new WeakMap,Af=new WeakMap,Np=new WeakMap,Wu=new WeakMap,Al=new WeakMap,a0=new WeakMap,Ap=new WeakMap,wp=new WeakMap,wf=new WeakMap,Df=new WeakMap,Qu=new WeakMap,Dp=new WeakMap,An=new WeakSet,Hg=function(e){$e(this,An,kw).call(this);let n=$(this,fn).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Xs)),n},Aw=function(){$e(this,An,Mw).call(this);const e=ap(this.options.staleTime,$(this,fn));if($f||$(this,ka).isStale||!xw(e))return;const r=kH($(this,ka).dataUpdatedAt,e)+1;Pe(this,wf,setTimeout(()=>{$(this,ka).isStale||this.updateResult()},r))},ww=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval($(this,fn)):this.options.refetchInterval)??!1},Dw=function(e){$e(this,An,Lw).call(this),Pe(this,Qu,e),!($f||zo(this.options.enabled,$(this,fn))===!1||!xw($(this,Qu))||$(this,Qu)===0)&&Pe(this,Df,setInterval(()=>{(this.options.refetchIntervalInBackground||EL.isFocused())&&$e(this,An,Hg).call(this)},$(this,Qu)))},Iw=function(){$e(this,An,Aw).call(this),$e(this,An,Dw).call(this,$e(this,An,ww).call(this))},Mw=function(){$(this,wf)&&(clearTimeout($(this,wf)),Pe(this,wf,void 0))},Lw=function(){$(this,Df)&&(clearInterval($(this,Df)),Pe(this,Df,void 0))},kw=function(){const e=$(this,Ja).getQueryCache().build($(this,Ja),this.options);if(e===$(this,fn))return;const n=$(this,fn);Pe(this,fn,e),Pe(this,i0,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},zH=function(e){Zi.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n($(this,ka))}),$(this,Ja).getQueryCache().notify({query:$(this,fn),type:"observerResultsUpdated"})})},v5);function cue(t,e){return zo(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function pF(t,e){return cue(t,e)||t.state.data!==void 0&&Pw(t,e,e.refetchOnMount)}function Pw(t,e,n){if(zo(e.enabled,t)!==!1){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&yL(t,e)}return!1}function mF(t,e,n,r){return(t!==e||zo(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&yL(t,n)}function yL(t,e){return zo(e.enabled,t)!==!1&&t.isStaleByTime(ap(e.staleTime,t))}function uue(t,e){return!Cw(t.getCurrentResult(),e)}var YH=I.createContext(void 0),due=t=>{const e=I.useContext(YH);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},fue=({client:t,children:e})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),l.jsx(YH.Provider,{value:t,children:e})),HH=I.createContext(!1),hue=()=>I.useContext(HH);HH.Provider;function pue(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var mue=I.createContext(pue()),gue=()=>I.useContext(mue);function _ue(t,e){return typeof t=="function"?t(...e):!!t}function gF(){}var bue=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},vue=t=>{I.useEffect(()=>{t.clearReset()},[t])},Sue=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||_ue(n,[t.error,r])),Eue=(t,e)=>e.state.data===void 0,yue=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...n)=>Math.max(e(...n),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Tue=(t,e)=>t.isLoading&&t.isFetching&&!e,xue=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,_F=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function VH(t,e,n){var p,m,g,b,S;const r=due(),i=hue(),a=gue(),s=r.defaultQueryOptions(t);(m=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||m.call(p,s),s._optimisticResults=i?"isRestoring":"optimistic",yue(s),bue(s,a),vue(a);const o=!r.getQueryCache().get(s.queryHash),[c]=I.useState(()=>new e(r,s)),d=c.getOptimisticResult(s),f=!i&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(y=>{const E=f?c.subscribe(Zi.batchCalls(y)):gF;return c.updateResult(),E},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),I.useEffect(()=>{c.setOptions(s,{listeners:!1})},[s,c]),xue(s,d))throw _F(s,c,a);if(Sue({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw d.error;if((b=(g=r.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,s,d),s.experimental_prefetchInRender&&!$f&&Tue(d,i)){const y=o?_F(s,c,a):(S=r.getQueryCache().get(s.queryHash))==null?void 0:S.promise;y==null||y.catch(gF).finally(()=>{c.updateResult()})}return s.notifyOnChangeProps?d:c.trackResult(d)}function Cue(t,e){return VH(t,$H)}function WH(t,e){return VH({...t,enabled:!0,suspense:!0,throwOnError:Eue,placeholderData:void 0},$H)}var YC={exports:{}},HC={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bF;function Oue(){if(bF)return HC;bF=1;var t=l0();function e(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,o=t.useDebugValue;return HC.useSyncExternalStoreWithSelector=function(c,d,f,p,m){var g=i(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=s(function(){function y(T){if(!E){if(E=!0,x=T,T=p(T),m!==void 0&&b.hasValue){var N=b.value;if(m(N,T))return C=N}return C=T}if(N=C,n(x,T))return N;var w=p(T);return m!==void 0&&m(N,w)?(x=T,N):(x=T,C=w)}var E=!1,x,C,R=f===void 0?null:f;return[function(){return y(d())},R===null?void 0:function(){return y(R())}]},[d,f,p,m]);var S=r(c,g[0],g[1]);return a(function(){b.hasValue=!0,b.value=S},[S]),o(S),S},HC}var vF;function Rue(){return vF||(vF=1,YC.exports=Oue()),YC.exports}var Nue=Rue();function Aue(t){t()}function wue(){let t=null,e=null;return{clear(){t=null,e=null},notify(){Aue(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var SF={notify(){},get:()=>[]};function Due(t,e){let n,r=SF,i=0,a=!1;function s(S){f();const y=r.subscribe(S);let E=!1;return()=>{E||(E=!0,y(),p())}}function o(){r.notify()}function c(){b.onStateChange&&b.onStateChange()}function d(){return a}function f(){i++,n||(n=t.subscribe(c),r=wue())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=SF)}function m(){a||(a=!0,f())}function g(){a&&(a=!1,p())}const b={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:c,isSubscribed:d,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return b}var Iue=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mue=Iue(),Lue=()=>typeof navigator<"u"&&navigator.product==="ReactNative",kue=Lue(),Pue=()=>Mue||kue?I.useLayoutEffect:I.useEffect,Bue=Pue(),VC=Symbol.for("react-redux-context"),WC=typeof globalThis<"u"?globalThis:{};function Fue(){if(!I.createContext)return{};const t=WC[VC]??(WC[VC]=new Map);let e=t.get(I.createContext);return e||(e=I.createContext(null),t.set(I.createContext,e)),e}var ld=Fue();function Uue(t){const{children:e,context:n,serverState:r,store:i}=t,a=I.useMemo(()=>{const c=Due(i);return{store:i,subscription:c,getServerState:r?()=>r:void 0}},[i,r]),s=I.useMemo(()=>i.getState(),[i]);Bue(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const o=n||ld;return I.createElement(o.Provider,{value:a},e)}var jue=Uue;function TL(t=ld){return function(){return I.useContext(t)}}var QH=TL();function KH(t=ld){const e=t===ld?QH:TL(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var Gue=KH();function que(t=ld){const e=t===ld?Gue:KH(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var $ue=que(),zue=(t,e)=>t===e;function Yue(t=ld){const e=t===ld?QH:TL(t),n=(r,i={})=>{const{equalityFn:a=zue}=typeof i=="function"?{equalityFn:i}:i,s=e(),{store:o,subscription:c,getServerState:d}=s;I.useRef(!0);const f=I.useCallback({[r.name](m){return r(m)}}[r.name],[r]),p=Nue.useSyncExternalStoreWithSelector(c.addNestedSub,o.getState,d||o.getState,f,a);return I.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var Hue=Yue();const Qc=$ue.withTypes(),Wl=Hue.withTypes();function Wi(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Vue=typeof Symbol=="function"&&Symbol.observable||"@@observable",EF=Vue,QC=()=>Math.random().toString(36).substring(7).split("").join("."),Wue={INIT:`@@redux/INIT${QC()}`,REPLACE:`@@redux/REPLACE${QC()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${QC()}`},US=Wue;function xL(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function XH(t,e,n){if(typeof t!="function")throw new Error(Wi(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Wi(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Wi(1));return n(XH)(t,e)}let r=t,i=e,a=new Map,s=a,o=0,c=!1;function d(){s===a&&(s=new Map,a.forEach((y,E)=>{s.set(E,y)}))}function f(){if(c)throw new Error(Wi(3));return i}function p(y){if(typeof y!="function")throw new Error(Wi(4));if(c)throw new Error(Wi(5));let E=!0;d();const x=o++;return s.set(x,y),function(){if(E){if(c)throw new Error(Wi(6));E=!1,d(),s.delete(x),a=null}}}function m(y){if(!xL(y))throw new Error(Wi(7));if(typeof y.type>"u")throw new Error(Wi(8));if(typeof y.type!="string")throw new Error(Wi(17));if(c)throw new Error(Wi(9));try{c=!0,i=r(i,y)}finally{c=!1}return(a=s).forEach(x=>{x()}),y}function g(y){if(typeof y!="function")throw new Error(Wi(10));r=y,m({type:US.REPLACE})}function b(){const y=p;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Wi(11));function x(){const R=E;R.next&&R.next(f())}return x(),{unsubscribe:y(x)}},[EF](){return this}}}return m({type:US.INIT}),{dispatch:m,subscribe:p,getState:f,replaceReducer:g,[EF]:b}}function Que(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:US.INIT})>"u")throw new Error(Wi(12));if(typeof n(void 0,{type:US.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Wi(13))})}function Kue(t){const e=Object.keys(t),n={};for(let a=0;a<e.length;a++){const s=e[a];typeof t[s]=="function"&&(n[s]=t[s])}const r=Object.keys(n);let i;try{Que(n)}catch(a){i=a}return function(s={},o){if(i)throw i;let c=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],m=n[p],g=s[p],b=m(g,o);if(typeof b>"u")throw o&&o.type,new Error(Wi(14));d[p]=b,c=c||b!==g}return c=c||r.length!==Object.keys(s).length,c?d:s}}function jS(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function Xue(...t){return e=>(n,r)=>{const i=e(n,r);let a=()=>{throw new Error(Wi(15))};const s={getState:i.getState,dispatch:(c,...d)=>a(c,...d)},o=t.map(c=>c(s));return a=jS(...o)(i.dispatch),{...i,dispatch:a}}}function ZH(t){return xL(t)&&"type"in t&&typeof t.type=="string"}var JH=Symbol.for("immer-nothing"),yF=Symbol.for("immer-draftable"),Is=Symbol.for("immer-state");function Yo(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var jp=Object.getPrototypeOf;function zf(t){return!!t&&!!t[Is]}function Gc(t){var e;return t?e9(t)||Array.isArray(t)||!!t[yF]||!!((e=t.constructor)!=null&&e[yF])||Ny(t)||Ay(t):!1}var Zue=Object.prototype.constructor.toString();function e9(t){if(!t||typeof t!="object")return!1;const e=jp(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Zue}function GS(t,e){Ry(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function Ry(t){const e=t[Is];return e?e.type_:Array.isArray(t)?1:Ny(t)?2:Ay(t)?3:0}function Bw(t,e){return Ry(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function t9(t,e,n){const r=Ry(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function Jue(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Ny(t){return t instanceof Map}function Ay(t){return t instanceof Set}function af(t){return t.copy_||t.base_}function Fw(t,e){if(Ny(t))return new Map(t);if(Ay(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=e9(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[Is];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],o=r[s];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[s]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[s]})}return Object.create(jp(t),r)}else{const r=jp(t);if(r!==null&&n)return{...t};const i=Object.create(r);return Object.assign(i,t)}}function CL(t,e=!1){return wy(t)||zf(t)||!Gc(t)||(Ry(t)>1&&(t.set=t.add=t.clear=t.delete=ede),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>CL(r,!0))),t}function ede(){Yo(2)}function wy(t){return Object.isFrozen(t)}var tde={};function Yf(t){const e=tde[t];return e||Yo(0,t),e}var w_;function n9(){return w_}function nde(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function TF(t,e){e&&(Yf("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Uw(t){jw(t),t.drafts_.forEach(rde),t.drafts_=null}function jw(t){t===w_&&(w_=t.parent_)}function xF(t){return w_=nde(w_,t)}function rde(t){const e=t[Is];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function CF(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[Is].modified_&&(Uw(e),Yo(4)),Gc(t)&&(t=qS(e,t),e.parent_||$S(e,t)),e.patches_&&Yf("Patches").generateReplacementPatches_(n[Is].base_,t,e.patches_,e.inversePatches_)):t=qS(e,n,[]),Uw(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==JH?t:void 0}function qS(t,e,n){if(wy(e))return e;const r=e[Is];if(!r)return GS(e,(i,a)=>OF(t,r,e,i,a,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return $S(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),GS(a,(o,c)=>OF(t,r,i,o,c,n,s)),$S(t,i,!1),n&&t.patches_&&Yf("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function OF(t,e,n,r,i,a,s){if(zf(i)){const o=a&&e&&e.type_!==3&&!Bw(e.assigned_,r)?a.concat(r):void 0,c=qS(t,i,o);if(t9(n,r,c),zf(c))t.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Gc(i)&&!wy(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;qS(t,i),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&$S(t,i)}}function $S(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&CL(e,n)}function ide(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:n9(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=OL;n&&(i=[r],a=D_);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var OL={get(t,e){if(e===Is)return t;const n=af(t);if(!Bw(n,e))return ade(t,n,e);const r=n[e];return t.finalized_||!Gc(r)?r:r===KC(t.base_,e)?(XC(t),t.copy_[e]=qw(r,t)):r},has(t,e){return e in af(t)},ownKeys(t){return Reflect.ownKeys(af(t))},set(t,e,n){const r=r9(af(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=KC(af(t),e),a=i==null?void 0:i[Is];if(a&&a.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(Jue(n,i)&&(n!==void 0||Bw(t.base_,e)))return!0;XC(t),Gw(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return KC(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,XC(t),Gw(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=af(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){Yo(11)},getPrototypeOf(t){return jp(t.base_)},setPrototypeOf(){Yo(12)}},D_={};GS(OL,(t,e)=>{D_[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});D_.deleteProperty=function(t,e){return D_.set.call(this,t,e,void 0)};D_.set=function(t,e,n){return OL.set.call(this,t[0],e,n,t[0])};function KC(t,e){const n=t[Is];return(n?af(n):t)[e]}function ade(t,e,n){var i;const r=r9(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function r9(t,e){if(!(e in t))return;let n=jp(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=jp(n)}}function Gw(t){t.modified_||(t.modified_=!0,t.parent_&&Gw(t.parent_))}function XC(t){t.copy_||(t.copy_=Fw(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var sde=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const a=n;n=e;const s=this;return function(c=a,...d){return s.produce(c,f=>n.call(this,f,...d))}}typeof n!="function"&&Yo(6),r!==void 0&&typeof r!="function"&&Yo(7);let i;if(Gc(e)){const a=xF(this),s=qw(e,void 0);let o=!0;try{i=n(s),o=!1}finally{o?Uw(a):jw(a)}return TF(a,r),CF(i,a)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===JH&&(i=void 0),this.autoFreeze_&&CL(i,!0),r){const a=[],s=[];Yf("Patches").generateReplacementPatches_(e,i,a,s),r(a,s)}return i}else Yo(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(s,...o)=>this.produceWithPatches(s,c=>e(c,...o));let r,i;return[this.produce(e,n,(s,o)=>{r=s,i=o}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Gc(t)||Yo(8),zf(t)&&(t=ode(t));const e=xF(this),n=qw(t,void 0);return n[Is].isManual_=!0,jw(e),n}finishDraft(t,e){const n=t&&t[Is];(!n||!n.isManual_)&&Yo(9);const{scope_:r}=n;return TF(r,e),CF(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=Yf("Patches").applyPatches_;return zf(t)?r(t,e):this.produce(t,i=>r(i,e))}};function qw(t,e){const n=Ny(t)?Yf("MapSet").proxyMap_(t,e):Ay(t)?Yf("MapSet").proxySet_(t,e):ide(t,e);return(e?e.scope_:n9()).drafts_.push(n),n}function ode(t){return zf(t)||Yo(10,t),i9(t)}function i9(t){if(!Gc(t)||wy(t))return t;const e=t[Is];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=Fw(t,e.scope_.immer_.useStrictShallowCopy_)}else n=Fw(t,!0);return GS(n,(r,i)=>{t9(n,r,i9(i))}),e&&(e.finalized_=!1),n}var Ms=new sde,a9=Ms.produce;Ms.produceWithPatches.bind(Ms);Ms.setAutoFreeze.bind(Ms);Ms.setUseStrictShallowCopy.bind(Ms);Ms.applyPatches.bind(Ms);Ms.createDraft.bind(Ms);Ms.finishDraft.bind(Ms);function s9(t){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,t):i(a)}var lde=s9(),cde=s9,ude=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jS:jS.apply(null,arguments)};function Gp(t,e){function n(...r){if(e){let i=e(...r);if(!i)throw new Error(As(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>ZH(r)&&r.type===t,n}var o9=class Vg extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Vg.prototype)}static get[Symbol.species](){return Vg}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Vg(...e[0].concat(this)):new Vg(...e.concat(this))}};function RF(t){return Gc(t)?a9(t,()=>{}):t}function NF(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}function dde(t){return typeof t=="boolean"}var fde=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{};let s=new o9;return n&&(dde(n)?s.push(lde):s.push(cde(n.extraArgument))),s},hde="RTK_autoBatch",AF=t=>e=>{setTimeout(e,t)},pde=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let i=!0,a=!1,s=!1;const o=new Set,c=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:AF(10):t.type==="callback"?t.queueNotification:AF(t.timeout),d=()=>{s=!1,a&&(a=!1,o.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const p=()=>i&&f(),m=r.subscribe(p);return o.add(f),()=>{m(),o.delete(f)}},dispatch(f){var p;try{return i=!((p=f==null?void 0:f.meta)!=null&&p[hde]),a=!i,a&&(s||(s=!0,c(d))),r.dispatch(f)}finally{i=!0}}})},mde=t=>function(n){const{autoBatch:r=!0}=n??{};let i=new o9(t);return r&&i.push(pde(typeof r=="object"?r:void 0)),i};function gde(t){const e=fde(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=t||{};let o;if(typeof n=="function")o=n;else if(xL(n))o=Kue(n);else throw new Error(As(1));let c;typeof r=="function"?c=r(e):c=e();let d=jS;i&&(d=ude({trace:!1,...typeof i=="object"&&i}));const f=Xue(...c),p=mde(f);let m=typeof s=="function"?s(p):p();const g=d(...m);return XH(o,a,g)}function l9(t){const e={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(As(28));if(o in e)throw new Error(As(29));return e[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return t(i),[e,n,r]}function _de(t){return typeof t=="function"}function bde(t,e){let[n,r,i]=l9(e),a;if(_de(t))a=()=>RF(t());else{const o=RF(t);a=()=>o}function s(o=a(),c){let d=[n[c.type],...r.filter(({matcher:f})=>f(c)).map(({reducer:f})=>f)];return d.filter(f=>!!f).length===0&&(d=[i]),d.reduce((f,p)=>{if(p)if(zf(f)){const g=p(f,c);return g===void 0?f:g}else{if(Gc(f))return a9(f,m=>p(m,c));{const m=p(f,c);if(m===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return f},o)}return s.getInitialState=a,s}var vde="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Sde=(t=21)=>{let e="",n=t;for(;n--;)e+=vde[Math.random()*64|0];return e},Ede=Symbol.for("rtk-slice-createasyncthunk");function yde(t,e){return`${t}/${e}`}function Tde({creators:t}={}){var n;const e=(n=t==null?void 0:t.asyncThunk)==null?void 0:n[Ede];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(As(11));const o=(typeof i.reducers=="function"?i.reducers(Cde()):i.reducers)||{},c=Object.keys(o),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(C,R){const T=typeof C=="string"?C:C.type;if(!T)throw new Error(As(12));if(T in d.sliceCaseReducersByType)throw new Error(As(13));return d.sliceCaseReducersByType[T]=R,f},addMatcher(C,R){return d.sliceMatchers.push({matcher:C,reducer:R}),f},exposeAction(C,R){return d.actionCreators[C]=R,f},exposeCaseReducer(C,R){return d.sliceCaseReducersByName[C]=R,f}};c.forEach(C=>{const R=o[C],T={reducerName:C,type:yde(a,C),createNotation:typeof i.reducers=="function"};Rde(R)?Ade(T,R,f,e):Ode(T,R,f)});function p(){const[C={},R=[],T=void 0]=typeof i.extraReducers=="function"?l9(i.extraReducers):[i.extraReducers],N={...C,...d.sliceCaseReducersByType};return bde(i.initialState,w=>{for(let D in N)w.addCase(D,N[D]);for(let D of d.sliceMatchers)w.addMatcher(D.matcher,D.reducer);for(let D of R)w.addMatcher(D.matcher,D.reducer);T&&w.addDefaultCase(T)})}const m=C=>C,g=new Map;let b;function S(C,R){return b||(b=p()),b(C,R)}function y(){return b||(b=p()),b.getInitialState()}function E(C,R=!1){function T(w){let D=w[C];return typeof D>"u"&&R&&(D=y()),D}function N(w=m){const D=NF(g,R,()=>new WeakMap);return NF(D,w,()=>{const L={};for(const[k,M]of Object.entries(i.selectors??{}))L[k]=xde(M,w,y,R);return L})}return{reducerPath:C,getSelectors:N,get selectors(){return N(T)},selectSlice:T}}const x={name:a,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:y,...E(s),injectInto(C,{reducerPath:R,...T}={}){const N=R??s;return C.inject({reducerPath:N,reducer:S},T),{...x,...E(N,!0)}}};return x}}function xde(t,e,n,r){function i(a,...s){let o=e(a);return typeof o>"u"&&r&&(o=n()),t(o,...s)}return i.unwrapped=t,i}var Dy=Tde();function Cde(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function Ode({type:t,reducerName:e,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!Nde(r))throw new Error(As(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Gp(t,s):Gp(t))}function Rde(t){return t._reducerDefinitionType==="asyncThunk"}function Nde(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ade({type:t,reducerName:e},n,r,i){if(!i)throw new Error(As(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:c,settled:d,options:f}=n,p=i(t,a,f);r.exposeAction(e,p),s&&r.addCase(p.fulfilled,s),o&&r.addCase(p.pending,o),c&&r.addCase(p.rejected,c),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(e,{fulfilled:s||iv,pending:o||iv,rejected:c||iv,settled:d||iv})}function iv(){}var wde="task",c9="listener",u9="completed",RL="cancelled",Dde=`task-${RL}`,Ide=`task-${u9}`,$w=`${c9}-${RL}`,Mde=`${c9}-${u9}`,Iy=class{constructor(t){In(this,"name","TaskAbortError");In(this,"message");this.code=t,this.message=`${wde} ${RL} (reason: ${t})`}},NL=(t,e)=>{if(typeof t!="function")throw new TypeError(As(32))},zS=()=>{},d9=(t,e=zS)=>(t.catch(e),t),f9=(t,e)=>(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)),kf=(t,e)=>{const n=t.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:e,configurable:!0,writable:!0}),t.abort(e))},Pf=t=>{if(t.aborted){const{reason:e}=t;throw new Iy(e)}};function h9(t,e){let n=zS;return new Promise((r,i)=>{const a=()=>i(new Iy(t.reason));if(t.aborted){a();return}n=f9(t,a),e.finally(()=>n()).then(r,i)}).finally(()=>{n=zS})}var Lde=async(t,e)=>{try{return await Promise.resolve(),{status:"ok",value:await t()}}catch(n){return{status:n instanceof Iy?"cancelled":"rejected",error:n}}finally{e==null||e()}},YS=t=>e=>d9(h9(t,e).then(n=>(Pf(t),n))),p9=t=>{const e=YS(t);return n=>e(new Promise(r=>setTimeout(r,n)))},{assign:sp}=Object,wF={},My="listenerMiddleware",kde=(t,e)=>{const n=r=>f9(t,()=>kf(r,t.reason));return(r,i)=>{NL(r);const a=new AbortController;n(a);const s=Lde(async()=>{Pf(t),Pf(a.signal);const o=await r({pause:YS(a.signal),delay:p9(a.signal),signal:a.signal});return Pf(a.signal),o},()=>kf(a,Ide));return i!=null&&i.autoJoin&&e.push(s.catch(zS)),{result:YS(t)(s),cancel(){kf(a,Dde)}}}},Pde=(t,e)=>{const n=async(r,i)=>{Pf(e);let a=()=>{};const o=[new Promise((c,d)=>{let f=t({predicate:r,effect:(p,m)=>{m.unsubscribe(),c([p,m.getState(),m.getOriginalState()])}});a=()=>{f(),d()}})];i!=null&&o.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await h9(e,Promise.race(o));return Pf(e),c}finally{a()}};return(r,i)=>d9(n(r,i))},m9=t=>{let{type:e,actionCreator:n,matcher:r,predicate:i,effect:a}=t;if(e)i=Gp(e).match;else if(n)e=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(As(21));return NL(a),{predicate:i,type:e,effect:a}},g9=sp(t=>{const{type:e,predicate:n,effect:r}=m9(t);return{id:Sde(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(As(22))}}},{withTypes:()=>g9}),DF=(t,e)=>{const{type:n,effect:r,predicate:i}=m9(e);return Array.from(t.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},zw=t=>{t.pending.forEach(e=>{kf(e,$w)})},Bde=t=>()=>{t.forEach(zw),t.clear()},IF=(t,e,n)=>{try{t(e,n)}catch(r){setTimeout(()=>{throw r},0)}},_9=sp(Gp(`${My}/add`),{withTypes:()=>_9}),Fde=Gp(`${My}/removeAll`),b9=sp(Gp(`${My}/remove`),{withTypes:()=>b9}),Ude=(...t)=>{console.error(`${My}/error`,...t)},jde=(t={})=>{const e=new Map,{extra:n,onError:r=Ude}=t;NL(r);const i=f=>(f.unsubscribe=()=>e.delete(f.id),e.set(f.id,f),p=>{f.unsubscribe(),p!=null&&p.cancelActive&&zw(f)}),a=f=>{const p=DF(e,f)??g9(f);return i(p)};sp(a,{withTypes:()=>a});const s=f=>{const p=DF(e,f);return p&&(p.unsubscribe(),f.cancelActive&&zw(p)),!!p};sp(s,{withTypes:()=>s});const o=async(f,p,m,g)=>{const b=new AbortController,S=Pde(a,b.signal),y=[];try{f.pending.add(b),await Promise.resolve(f.effect(p,sp({},m,{getOriginalState:g,condition:(E,x)=>S(E,x).then(Boolean),take:S,delay:p9(b.signal),pause:YS(b.signal),extra:n,signal:b.signal,fork:kde(b.signal,y),unsubscribe:f.unsubscribe,subscribe:()=>{e.set(f.id,f)},cancelActiveListeners:()=>{f.pending.forEach((E,x,C)=>{E!==b&&(kf(E,$w),C.delete(E))})},cancel:()=>{kf(b,$w),f.pending.delete(b)},throwIfCancelled:()=>{Pf(b.signal)}})))}catch(E){E instanceof Iy||IF(r,E,{raisedBy:"effect"})}finally{await Promise.all(y),kf(b,Mde),f.pending.delete(b)}},c=Bde(e);return{middleware:f=>p=>m=>{if(!ZH(m))return p(m);if(_9.match(m))return a(m.payload);if(Fde.match(m)){c();return}if(b9.match(m))return s(m.payload);let g=f.getState();const b=()=>{if(g===wF)throw new Error(As(23));return g};let S;try{if(S=p(m),e.size>0){const y=f.getState(),E=Array.from(e.values());for(const x of E){let C=!1;try{C=x.predicate(m,y,g)}catch(R){C=!1,IF(r,R,{raisedBy:"predicate"})}C&&o(x,m,f,b)}}}finally{g=wF}return S},startListening:a,stopListening:s,clearListeners:c}};function As(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Xv={exports:{}},Gde=Xv.exports,MF;function qde(){return MF||(MF=1,function(t,e){(function(n,r){t.exports=r()})(Gde,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",c="hour",d="day",f="week",p="month",m="quarter",g="year",b="date",S="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,x={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(Y){var G=["th","st","nd","rd"],F=Y%100;return"["+Y+(G[(F-20)%10]||G[F]||G[0])+"]"}},C=function(Y,G,F){var q=String(Y);return!q||q.length>=G?Y:""+Array(G+1-q.length).join(F)+Y},R={s:C,z:function(Y){var G=-Y.utcOffset(),F=Math.abs(G),q=Math.floor(F/60),z=F%60;return(G<=0?"+":"-")+C(q,2,"0")+":"+C(z,2,"0")},m:function Y(G,F){if(G.date()<F.date())return-Y(F,G);var q=12*(F.year()-G.year())+(F.month()-G.month()),z=G.clone().add(q,p),H=F-z<0,U=G.clone().add(q+(H?-1:1),p);return+(-(q+(F-z)/(H?z-U:U-z))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:p,y:g,w:f,d,D:b,h:c,m:o,s,ms:a,Q:m}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},T="en",N={};N[T]=x;var w="$isDayjsObject",D=function(Y){return Y instanceof P||!(!Y||!Y[w])},L=function Y(G,F,q){var z;if(!G)return T;if(typeof G=="string"){var H=G.toLowerCase();N[H]&&(z=H),F&&(N[H]=F,z=H);var U=G.split("-");if(!z&&U.length>1)return Y(U[0])}else{var Q=G.name;N[Q]=G,z=Q}return!q&&z&&(T=z),z||!q&&T},k=function(Y,G){if(D(Y))return Y.clone();var F=typeof G=="object"?G:{};return F.date=Y,F.args=arguments,new P(F)},M=R;M.l=L,M.i=D,M.w=function(Y,G){return k(Y,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var P=function(){function Y(F){this.$L=L(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[w]=!0}var G=Y.prototype;return G.parse=function(F){this.$d=function(q){var z=q.date,H=q.utc;if(z===null)return new Date(NaN);if(M.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var U=z.match(y);if(U){var Q=U[2]-1||0,X=(U[7]||"0").substring(0,3);return H?new Date(Date.UTC(U[1],Q,U[3]||1,U[4]||0,U[5]||0,U[6]||0,X)):new Date(U[1],Q,U[3]||1,U[4]||0,U[5]||0,U[6]||0,X)}}return new Date(z)}(F),this.init()},G.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},G.$utils=function(){return M},G.isValid=function(){return this.$d.toString()!==S},G.isSame=function(F,q){var z=k(F);return this.startOf(q)<=z&&z<=this.endOf(q)},G.isAfter=function(F,q){return k(F)<this.startOf(q)},G.isBefore=function(F,q){return this.endOf(q)<k(F)},G.$g=function(F,q,z){return M.u(F)?this[q]:this.set(z,F)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(F,q){var z=this,H=!!M.u(q)||q,U=M.p(F),Q=function(Ie,Oe){var se=M.w(z.$u?Date.UTC(z.$y,Oe,Ie):new Date(z.$y,Oe,Ie),z);return H?se:se.endOf(d)},X=function(Ie,Oe){return M.w(z.toDate()[Ie].apply(z.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Oe)),z)},te=this.$W,ie=this.$M,fe=this.$D,Ce="set"+(this.$u?"UTC":"");switch(U){case g:return H?Q(1,0):Q(31,11);case p:return H?Q(1,ie):Q(0,ie+1);case f:var Re=this.$locale().weekStart||0,_e=(te<Re?te+7:te)-Re;return Q(H?fe-_e:fe+(6-_e),ie);case d:case b:return X(Ce+"Hours",0);case c:return X(Ce+"Minutes",1);case o:return X(Ce+"Seconds",2);case s:return X(Ce+"Milliseconds",3);default:return this.clone()}},G.endOf=function(F){return this.startOf(F,!1)},G.$set=function(F,q){var z,H=M.p(F),U="set"+(this.$u?"UTC":""),Q=(z={},z[d]=U+"Date",z[b]=U+"Date",z[p]=U+"Month",z[g]=U+"FullYear",z[c]=U+"Hours",z[o]=U+"Minutes",z[s]=U+"Seconds",z[a]=U+"Milliseconds",z)[H],X=H===d?this.$D+(q-this.$W):q;if(H===p||H===g){var te=this.clone().set(b,1);te.$d[Q](X),te.init(),this.$d=te.set(b,Math.min(this.$D,te.daysInMonth())).$d}else Q&&this.$d[Q](X);return this.init(),this},G.set=function(F,q){return this.clone().$set(F,q)},G.get=function(F){return this[M.p(F)]()},G.add=function(F,q){var z,H=this;F=Number(F);var U=M.p(q),Q=function(ie){var fe=k(H);return M.w(fe.date(fe.date()+Math.round(ie*F)),H)};if(U===p)return this.set(p,this.$M+F);if(U===g)return this.set(g,this.$y+F);if(U===d)return Q(1);if(U===f)return Q(7);var X=(z={},z[o]=r,z[c]=i,z[s]=n,z)[U]||1,te=this.$d.getTime()+F*X;return M.w(te,this)},G.subtract=function(F,q){return this.add(-1*F,q)},G.format=function(F){var q=this,z=this.$locale();if(!this.isValid())return z.invalidDate||S;var H=F||"YYYY-MM-DDTHH:mm:ssZ",U=M.z(this),Q=this.$H,X=this.$m,te=this.$M,ie=z.weekdays,fe=z.months,Ce=z.meridiem,Re=function(Oe,se,xe,ce){return Oe&&(Oe[se]||Oe(q,H))||xe[se].slice(0,ce)},_e=function(Oe){return M.s(Q%12||12,Oe,"0")},Ie=Ce||function(Oe,se,xe){var ce=Oe<12?"AM":"PM";return xe?ce.toLowerCase():ce};return H.replace(E,function(Oe,se){return se||function(xe){switch(xe){case"YY":return String(q.$y).slice(-2);case"YYYY":return M.s(q.$y,4,"0");case"M":return te+1;case"MM":return M.s(te+1,2,"0");case"MMM":return Re(z.monthsShort,te,fe,3);case"MMMM":return Re(fe,te);case"D":return q.$D;case"DD":return M.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return Re(z.weekdaysMin,q.$W,ie,2);case"ddd":return Re(z.weekdaysShort,q.$W,ie,3);case"dddd":return ie[q.$W];case"H":return String(Q);case"HH":return M.s(Q,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return Ie(Q,X,!0);case"A":return Ie(Q,X,!1);case"m":return String(X);case"mm":return M.s(X,2,"0");case"s":return String(q.$s);case"ss":return M.s(q.$s,2,"0");case"SSS":return M.s(q.$ms,3,"0");case"Z":return U}return null}(Oe)||U.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(F,q,z){var H,U=this,Q=M.p(q),X=k(F),te=(X.utcOffset()-this.utcOffset())*r,ie=this-X,fe=function(){return M.m(U,X)};switch(Q){case g:H=fe()/12;break;case p:H=fe();break;case m:H=fe()/3;break;case f:H=(ie-te)/6048e5;break;case d:H=(ie-te)/864e5;break;case c:H=ie/i;break;case o:H=ie/r;break;case s:H=ie/n;break;default:H=ie}return z?H:M.a(H)},G.daysInMonth=function(){return this.endOf(p).$D},G.$locale=function(){return N[this.$L]},G.locale=function(F,q){if(!F)return this.$L;var z=this.clone(),H=L(F,q,!0);return H&&(z.$L=H),z},G.clone=function(){return M.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},Y}(),V=P.prototype;return k.prototype=V,[["$ms",a],["$s",s],["$m",o],["$H",c],["$W",d],["$M",p],["$y",g],["$D",b]].forEach(function(Y){V[Y[1]]=function(G){return this.$g(G,Y[0],Y[1])}}),k.extend=function(Y,G){return Y.$i||(Y(G,P,k),Y.$i=!0),k},k.locale=L,k.isDayjs=D,k.unix=function(Y){return k(1e3*Y)},k.en=N[T],k.Ls=N,k.p={},k})}(Xv)),Xv.exports}var $de=qde();const Ve=nl($de);var Zv={exports:{}},zde=Zv.exports,LF;function Yde(){return LF||(LF=1,function(t,e){(function(n,r){t.exports=r()})(zde,function(){var n,r,i=1e3,a=6e4,s=36e5,o=864e5,c=/\[([^\]]+)]|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,d=31536e6,f=2628e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:d,months:f,days:o,hours:s,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},g=function(N){return N instanceof R},b=function(N,w,D){return new R(N,D,w.$l)},S=function(N){return r.p(N)+"s"},y=function(N){return N<0},E=function(N){return y(N)?Math.ceil(N):Math.floor(N)},x=function(N){return Math.abs(N)},C=function(N,w){return N?y(N)?{negative:!0,format:""+x(N)+w}:{negative:!1,format:""+N+w}:{negative:!1,format:""}},R=function(){function N(D,L,k){var M=this;if(this.$d={},this.$l=k,D===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return b(D*m[S(L)],this);if(typeof D=="number")return this.$ms=D,this.parseFromMilliseconds(),this;if(typeof D=="object")return Object.keys(D).forEach(function(Y){M.$d[S(Y)]=D[Y]}),this.calMilliseconds(),this;if(typeof D=="string"){var P=D.match(p);if(P){var V=P.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=V[0],this.$d.months=V[1],this.$d.weeks=V[2],this.$d.days=V[3],this.$d.hours=V[4],this.$d.minutes=V[5],this.$d.seconds=V[6],this.calMilliseconds(),this}}return this}var w=N.prototype;return w.calMilliseconds=function(){var D=this;this.$ms=Object.keys(this.$d).reduce(function(L,k){return L+(D.$d[k]||0)*m[k]},0)},w.parseFromMilliseconds=function(){var D=this.$ms;this.$d.years=E(D/d),D%=d,this.$d.months=E(D/f),D%=f,this.$d.days=E(D/o),D%=o,this.$d.hours=E(D/s),D%=s,this.$d.minutes=E(D/a),D%=a,this.$d.seconds=E(D/i),D%=i,this.$d.milliseconds=D},w.toISOString=function(){var D=C(this.$d.years,"Y"),L=C(this.$d.months,"M"),k=+this.$d.days||0;this.$d.weeks&&(k+=7*this.$d.weeks);var M=C(k,"D"),P=C(this.$d.hours,"H"),V=C(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1e3,Y=Math.round(1e3*Y)/1e3);var G=C(Y,"S"),F=D.negative||L.negative||M.negative||P.negative||V.negative||G.negative,q=P.format||V.format||G.format?"T":"",z=(F?"-":"")+"P"+D.format+L.format+M.format+q+P.format+V.format+G.format;return z==="P"||z==="-P"?"P0D":z},w.toJSON=function(){return this.toISOString()},w.format=function(D){var L=D||"YYYY-MM-DDTHH:mm:ss",k={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(c,function(M,P){return P||String(k[M])})},w.as=function(D){return this.$ms/m[S(D)]},w.get=function(D){var L=this.$ms,k=S(D);return k==="milliseconds"?L%=1e3:L=k==="weeks"?E(L/m[k]):this.$d[k],L||0},w.add=function(D,L,k){var M;return M=L?D*m[S(L)]:g(D)?D.$ms:b(D,this).$ms,b(this.$ms+M*(k?-1:1),this)},w.subtract=function(D,L){return this.add(D,L,!0)},w.locale=function(D){var L=this.clone();return L.$l=D,L},w.clone=function(){return b(this.$ms,this)},w.humanize=function(D){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!D)},w.valueOf=function(){return this.asMilliseconds()},w.milliseconds=function(){return this.get("milliseconds")},w.asMilliseconds=function(){return this.as("milliseconds")},w.seconds=function(){return this.get("seconds")},w.asSeconds=function(){return this.as("seconds")},w.minutes=function(){return this.get("minutes")},w.asMinutes=function(){return this.as("minutes")},w.hours=function(){return this.get("hours")},w.asHours=function(){return this.as("hours")},w.days=function(){return this.get("days")},w.asDays=function(){return this.as("days")},w.weeks=function(){return this.get("weeks")},w.asWeeks=function(){return this.as("weeks")},w.months=function(){return this.get("months")},w.asMonths=function(){return this.as("months")},w.years=function(){return this.get("years")},w.asYears=function(){return this.as("years")},N}(),T=function(N,w,D){return N.add(w.years()*D,"y").add(w.months()*D,"M").add(w.days()*D,"d").add(w.hours()*D,"h").add(w.minutes()*D,"m").add(w.seconds()*D,"s").add(w.milliseconds()*D,"ms")};return function(N,w,D){n=D,r=D().$utils(),D.duration=function(M,P){var V=D.locale();return b(M,{$l:V},P)},D.isDuration=g;var L=w.prototype.add,k=w.prototype.subtract;w.prototype.add=function(M,P){return g(M)?T(this,M,1):L.bind(this)(M,P)},w.prototype.subtract=function(M,P){return g(M)?T(this,M,-1):k.bind(this)(M,P)}}})}(Zv)),Zv.exports}var Hde=Yde();const Vde=nl(Hde);var Jv={exports:{}},Wde=Jv.exports,kF;function Qde(){return kF||(kF=1,function(t,e){(function(n,r){t.exports=r()})(Wde,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,o){var c=s.prototype;o.utc=function(S){var y={date:S,utc:!0,args:arguments};return new s(y)},c.utc=function(S){var y=o(this.toDate(),{locale:this.$L,utc:!0});return S?y.add(this.utcOffset(),n):y},c.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var d=c.parse;c.parse=function(S){S.utc&&(this.$u=!0),this.$utils().u(S.$offset)||(this.$offset=S.$offset),d.call(this,S)};var f=c.init;c.init=function(){if(this.$u){var S=this.$d;this.$y=S.getUTCFullYear(),this.$M=S.getUTCMonth(),this.$D=S.getUTCDate(),this.$W=S.getUTCDay(),this.$H=S.getUTCHours(),this.$m=S.getUTCMinutes(),this.$s=S.getUTCSeconds(),this.$ms=S.getUTCMilliseconds()}else f.call(this)};var p=c.utcOffset;c.utcOffset=function(S,y){var E=this.$utils().u;if(E(S))return this.$u?0:E(this.$offset)?p.call(this):this.$offset;if(typeof S=="string"&&(S=function(T){T===void 0&&(T="");var N=T.match(r);if(!N)return null;var w=(""+N[0]).match(i)||["-",0,0],D=w[0],L=60*+w[1]+ +w[2];return L===0?0:D==="+"?L:-L}(S),S===null))return this;var x=Math.abs(S)<=16?60*S:S,C=this;if(y)return C.$offset=x,C.$u=S===0,C;if(S!==0){var R=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(x+R,n)).$offset=x,C.$x.$localOffset=R}else C=this.utc();return C};var m=c.format;c.format=function(S){var y=S||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,y)},c.valueOf=function(){var S=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*S},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(S){return S==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var b=c.diff;c.diff=function(S,y,E){if(S&&this.$u===S.$u)return b.call(this,S,y,E);var x=this.local(),C=o(S).local();return b.call(x,C,y,E)}}})}(Jv)),Jv.exports}var Kde=Qde();const v9=nl(Kde);Ve.extend(Vde);Ve.extend(v9);const AL=t=>{if(t==="")return null;if(t==="0")return 0;const e=new RegExp("^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$"),n=t.match(e);if(!n)return null;let r=0;const i=(a,s)=>{if(n[a]===void 0)return;const o=parseInt(n[a]);r+=o*s};return i(2,1e3*60*60*24*365),i(4,1e3*60*60*24*7),i(6,1e3*60*60*24),i(8,1e3*60*60),i(10,1e3*60),i(12,1e3),i(14,1),r},S9=(t,e,n)=>{if(t===0)return"0s";const r=t<0?"-":"";let i=Math.abs(t);const a=[];for(const{unit:s,mult:o,exact:c}of[{unit:"y",mult:1e3*60*60*24*365,exact:!0},{unit:"w",mult:1e3*60*60*24*7,exact:!0},{unit:"d",mult:1e3*60*60*24,exact:!1},{unit:"h",mult:1e3*60*60,exact:!1},{unit:"m",mult:1e3*60,exact:!1},{unit:"s",mult:1e3,exact:!1},{unit:"ms",mult:1,exact:!1}]){if(c&&i%o!==0)continue;const d=Math.floor(i/o);if(d>0)if(i-=d*o,n&&s==="s"&&i>0){a.push(`${parseFloat((d+i/1e3).toFixed(3))}s`);break}else a.push(`${d}${s}`);a.length==0&&s=="ms"&&a.push(`${Math.round(i)}ms`)}return r+a.join(e||"")},Nn=t=>S9(t);function Xde(t){return Ve.utc(t).valueOf()}const HS=()=>Ve().valueOf(),op=t=>S9(t," ",!0),VS=(t,e,n=" ago")=>{const r=Xde(t);return r<0?"never":op(e-r)+n},Bf=(t,e)=>e?Ve.unix(t).tz(Ve.tz.guess()).format():Ve.unix(t).utc().format();function PF(t){return Ve.utc(t).valueOf()}const Zde=t=>{const e=new URLSearchParams(t),n=[];for(let r=0;e.has(`g${r}.expr`);r++){const i=Ly(),a=(s,o)=>{const c=`g${r}.${s}`;e.has(c)&&o(e.get(c))};a("expr",s=>{i.expr=s}),a("show_tree",s=>{i.showTree=s==="1"}),a("tab",s=>{switch(s){case"0":case"graph":i.visualizer.activeTab="graph";break;case"1":case"table":i.visualizer.activeTab="table";break;case"explain":i.visualizer.activeTab="explain";break;default:console.log("Unknown tab",s)}}),a("display_mode",s=>{i.visualizer.displayMode=s}),a("stacked",s=>{i.visualizer.displayMode=s==="1"?qp.Stacked:qp.Lines}),a("show_exemplars",s=>{i.visualizer.showExemplars=s==="1"}),a("range_input",s=>{i.visualizer.range=AL(s)||i.visualizer.range}),a("end_input",s=>{i.visualizer.endTime=PF(s)}),a("step_input",s=>{parseInt(s)>0&&(i.visualizer.resolution={type:"custom",step:parseInt(s)*1e3})}),a("res_type",s=>{switch(s){case"auto":a("res_density",o=>{["low","medium","high"].includes(o)&&(i.visualizer.resolution={type:"auto",density:o})});break;case"fixed":a("res_step",o=>{i.visualizer.resolution={type:"fixed",step:parseFloat(o)*1e3}});break;case"custom":a("res_step",o=>{i.visualizer.resolution={type:"custom",step:parseFloat(o)*1e3}});break;default:console.log("Unknown resolution type",s)}}),a("moment_input",s=>{i.visualizer.endTime=PF(s)}),n.push(i)}return n};function BF(t){return Ve.utc(t).format("YYYY-MM-DD HH:mm:ss")}const Jde=t=>{const e=new URLSearchParams,n=(r,i,a)=>e.append(`g${r}.${i}`,a);return t.forEach((r,i)=>{switch(n(i,"expr",r.expr),n(i,"show_tree",r.showTree?"1":"0"),n(i,"tab",r.visualizer.activeTab),r.visualizer.endTime!==null&&(n(i,"end_input",BF(r.visualizer.endTime)),n(i,"moment_input",BF(r.visualizer.endTime))),n(i,"range_input",Nn(r.visualizer.range)),r.visualizer.resolution.type){case"auto":n(i,"res_type","auto"),n(i,"res_density",r.visualizer.resolution.density);break;case"fixed":n(i,"res_type","fixed"),n(i,"res_step",(r.visualizer.resolution.step/1e3).toString());break;case"custom":n(i,"res_type","custom"),n(i,"res_step",(r.visualizer.resolution.step/1e3).toString());break}n(i,"display_mode",r.visualizer.displayMode),n(i,"show_exemplars",r.visualizer.showExemplars?"1":"0")}),e},wo=(t,e)=>{const n=localStorage.getItem(t);return n===null?e:JSON.parse(n)},E9="queryPage.queryHistory";var qp=(t=>(t.Lines="lines",t.Stacked="stacked",t.Heatmap="heatmap",t))(qp||{});const eS=(t,e)=>{switch(t.type){case"auto":{const n=t.density==="high"?750:t.density==="medium"?250:100;return Math.max(Math.floor(e/n/1e3)*1e3,1e3)}case"fixed":return t.step;case"custom":return t.step}},Ly=()=>({id:OI(),expr:"",showTree:!1,showMetricsExplorer:!1,visualizer:{activeTab:"table",endTime:null,range:3600*1e3,resolution:{type:"auto",density:"medium"},displayMode:"lines",showExemplars:!1}}),efe={panels:[Ly()],queryHistory:wo(E9,[])},wg=t=>{const e="?"+Jde(t).toString();window.history.pushState({},"",e)},y9=Dy({name:"queryPage",initialState:efe,reducers:{setPanels:(t,{payload:e})=>{t.panels=e},addPanel:t=>{t.panels.push(Ly()),wg(t.panels)},removePanel:(t,{payload:e})=>{t.panels.splice(e,1),wg(t.panels)},setExpr:(t,{payload:e})=>{t.panels[e.idx].expr=e.expr,wg(t.panels)},addQueryToHistory:(t,{payload:e})=>{t.queryHistory=[e,...t.queryHistory.filter(n=>n!==e)].slice(0,50)},setShowTree:(t,{payload:e})=>{t.panels[e.idx].showTree=e.showTree,wg(t.panels)},setVisualizer:(t,{payload:e})=>{t.panels[e.idx].visualizer=e.visualizer,wg(t.panels)}}}),{setPanels:FF,addPanel:tfe,removePanel:nfe,setExpr:rfe,addQueryToHistory:T9,setShowTree:ZC,setVisualizer:sf}=y9.actions,ife=y9.reducer;function afe({direction:t,levelIndex:e,rowIndex:n,cellIndex:r,size:i}){switch(t){case"up":return e===0&&n===0?null:n===0?{levelIndex:e-1,rowIndex:r<=i[e-1][i[e-1].length-1]-1?i[e-1].length-1:i[e-1].length-2,cellIndex:r}:{levelIndex:e,rowIndex:n-1,cellIndex:r};case"down":return n===i[e].length-1?{levelIndex:e+1,rowIndex:0,cellIndex:r}:n===i[e].length-2&&r>=i[e][i[e].length-1]?{levelIndex:e+1,rowIndex:0,cellIndex:r}:{levelIndex:e,rowIndex:n+1,cellIndex:r};case"left":return e===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:e-1,rowIndex:i[e-1].length-1,cellIndex:i[e-1][i[e-1].length-1]-1}:r===0?{levelIndex:e,rowIndex:n-1,cellIndex:i[e][n-1]-1}:{levelIndex:e,rowIndex:n,cellIndex:r-1};case"right":return n===i[e].length-1&&r===i[e][n]-1?{levelIndex:e+1,rowIndex:0,cellIndex:0}:r===i[e][n]-1?{levelIndex:e,rowIndex:n+1,cellIndex:0}:{levelIndex:e,rowIndex:n,cellIndex:r+1};default:return{levelIndex:e,rowIndex:n,cellIndex:r}}}function x9({controlsRef:t,direction:e,levelIndex:n,rowIndex:r,cellIndex:i,size:a}){var c,d,f;const s=afe({direction:e,size:a,rowIndex:r,cellIndex:i,levelIndex:n});if(!s)return;const o=(f=(d=(c=t.current)==null?void 0:c[s.levelIndex])==null?void 0:d[s.rowIndex])==null?void 0:f[s.cellIndex];o&&(o.disabled||o.getAttribute("data-hidden")||o.getAttribute("data-outside")?x9({controlsRef:t,direction:e,levelIndex:s.levelIndex,cellIndex:s.cellIndex,rowIndex:s.rowIndex,size:a}):o.focus())}function sfe(t){switch(t){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function ofe(t){var e;return(e=t.current)==null?void 0:e.map(n=>n.map(r=>r.length))}function wL({controlsRef:t,levelIndex:e,rowIndex:n,cellIndex:r,event:i}){const a=sfe(i.key);if(a){i.preventDefault();const s=ofe(t);x9({controlsRef:t,direction:a,levelIndex:e,rowIndex:n,cellIndex:r,size:s})}}function UF(t,e){if(!t||!e)return e;const n=t.getHours(),r=t.getMinutes(),i=t.getSeconds(),a=t.getMilliseconds(),s=new Date(e);return s.setHours(n),s.setMinutes(r),s.setSeconds(i),s.setMilliseconds(a),s}var tS={exports:{}},lfe=tS.exports,jF;function cfe(){return jF||(jF=1,function(t,e){(function(n,r){t.exports=r()})(lfe,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,s){var o,c=function(m,g,b){b===void 0&&(b={});var S=new Date(m),y=function(E,x){x===void 0&&(x={});var C=x.timeZoneName||"short",R=E+"|"+C,T=r[R];return T||(T=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:E,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:C}),r[R]=T),T}(g,b);return y.formatToParts(S)},d=function(m,g){for(var b=c(m,g),S=[],y=0;y<b.length;y+=1){var E=b[y],x=E.type,C=E.value,R=n[x];R>=0&&(S[R]=parseInt(C,10))}var T=S[3],N=T===24?0:T,w=S[0]+"-"+S[1]+"-"+S[2]+" "+N+":"+S[4]+":"+S[5]+":000",D=+m;return(s.utc(w).valueOf()-(D-=D%1e3))/6e4},f=a.prototype;f.tz=function(m,g){m===void 0&&(m=o);var b,S=this.utcOffset(),y=this.toDate(),E=y.toLocaleString("en-US",{timeZone:m}),x=Math.round((y-new Date(E))/1e3/60),C=15*-Math.round(y.getTimezoneOffset()/15)-x;if(!Number(C))b=this.utcOffset(0,g);else if(b=s(E,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(C,!0),g){var R=b.utcOffset();b=b.add(S-R,"minute")}return b.$x.$timezone=m,b},f.offsetName=function(m){var g=this.$x.$timezone||s.tz.guess(),b=c(this.valueOf(),g,{timeZoneName:m}).find(function(S){return S.type.toLowerCase()==="timezonename"});return b&&b.value};var p=f.startOf;f.startOf=function(m,g){if(!this.$x||!this.$x.$timezone)return p.call(this,m,g);var b=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(b,m,g).tz(this.$x.$timezone,!0)},s.tz=function(m,g,b){var S=b&&g,y=b||g||o,E=d(+s(),y);if(typeof m!="string")return s(m).tz(y);var x=function(N,w,D){var L=N-60*w*1e3,k=d(L,D);if(w===k)return[L,w];var M=d(L-=60*(k-w)*1e3,D);return k===M?[L,k]:[N-60*Math.min(k,M)*1e3,Math.max(k,M)]}(s.utc(m,S).valueOf(),E,y),C=x[0],R=x[1],T=s(C).utcOffset(R);return T.$x.$timezone=y,T},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(m){o=m}}})}(tS)),tS.exports}var ufe=cfe();const DL=nl(ufe);Ve.extend(v9);Ve.extend(DL);function dfe(t,e){return e?Ve(t).tz(e).utcOffset()+t.getTimezoneOffset():0}const GF=(t,e,n)=>{if(!t)return null;if(!e)return t;let r=dfe(t,e);return n==="remove"&&(r*=-1),Ve(t).add(r,"minutes").toDate()};function Mc(t,e,n,r){return r||!e?e:Array.isArray(e)?e.map(i=>GF(i,n,t)):GF(e,n,t)}const C9={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},O9=I.createContext(C9);function ffe({settings:t,children:e}){return l.jsx(O9.Provider,{value:{...C9,...t},children:e})}function Ls(){const t=I.useContext(O9),e=I.useCallback(s=>s||t.locale,[t.locale]),n=I.useCallback(s=>s||t.timezone||void 0,[t.timezone]),r=I.useCallback(s=>typeof s=="number"?s:t.firstDayOfWeek,[t.firstDayOfWeek]),i=I.useCallback(s=>Array.isArray(s)?s:t.weekendDays,[t.weekendDays]),a=I.useCallback(s=>typeof s=="string"?s:t.labelSeparator,[t.labelSeparator]);return{...t,getLocale:e,getTimezone:n,getFirstDayOfWeek:r,getWeekendDays:i,getLabelSeparator:a}}function hfe(t,e){const n=Ls(),r=i=>Mc("remove",i,n.getTimezone()).toISOString();if(e==="range"&&Array.isArray(t)){const[i,a]=t;return i?a?`${r(i)} – ${r(a)}`:`${r(i)} –`:""}return e==="multiple"&&Array.isArray(t)?t.map(i=>i&&r(i)).filter(Boolean).join(", "):!Array.isArray(t)&&t?r(t):""}function R9({value:t,type:e,name:n,form:r}){return l.jsx("input",{type:"hidden",value:hfe(t,e),name:n,form:r})}R9.displayName="@mantine/dates/HiddenDatesInput";var pfe={input:"m_468e7eda"};const mfe={},IL=Le((t,e)=>{const n=Ee("TimeInput",mfe,t),{classNames:r,styles:i,unstyled:a,vars:s,withSeconds:o,minTime:c,maxTime:d,value:f,onChange:p,...m}=n,{resolvedClassNames:g,resolvedStyles:b}=rl({classNames:r,styles:i,props:n}),S=E=>{if(c!==void 0||d!==void 0){const[x,C,R]=E.split(":").map(Number);if(c){const[T,N,w]=c.split(":").map(Number);if(x<T||x===T&&C<N||o&&x===T&&C===N&&R<w)return-1}if(d){const[T,N,w]=d.split(":").map(Number);if(x>T||x===T&&C>N||o&&x===T&&C===N&&R>w)return 1}}return 0},y=E=>{var x,C,R;if((x=n.onBlur)==null||x.call(n,E),c!==void 0||d!==void 0){const T=E.currentTarget.value;if(T){const N=S(T);N===1?(E.currentTarget.value=d,(C=n.onChange)==null||C.call(n,E)):N===-1&&(E.currentTarget.value=c,(R=n.onChange)==null||R.call(n,E))}}};return l.jsx(cs,{classNames:{...g,input:Tr(pfe.input,g==null?void 0:g.input)},styles:b,unstyled:a,ref:e,value:f,...m,step:o?1:60,onChange:p,onBlur:y,type:"time",__staticSelector:"TimeInput"})});IL.classes=cs.classes;IL.displayName="@mantine/dates/TimeInput";var N9={day:"m_396ce5cb"};const gfe={},_fe=(t,{size:e})=>({day:{"--day-size":kt(e,"day-size")}}),ML=Le((t,e)=>{const n=Ee("Day",gfe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,date:d,disabled:f,__staticSelector:p,weekend:m,outside:g,selected:b,renderDay:S,inRange:y,firstInRange:E,lastInRange:x,hidden:C,static:R,highlightToday:T,...N}=n,w=ct({name:p||"Day",classes:N9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:_fe,rootSelector:"day"}),D=Ls();return l.jsx(Si,{...w("day",{style:C?{display:"none"}:void 0}),component:R?"div":"button",ref:e,disabled:f,"data-today":Ve(d).isSame(Mc("add",new Date,D.getTimezone()),"day")||void 0,"data-hidden":C||void 0,"data-highlight-today":T||void 0,"data-disabled":f||void 0,"data-weekend":!f&&!g&&m||void 0,"data-outside":!f&&g||void 0,"data-selected":!f&&b||void 0,"data-in-range":y&&!f||void 0,"data-first-in-range":E&&!f||void 0,"data-last-in-range":x&&!f||void 0,"data-static":R||void 0,unstyled:o,...N,children:(S==null?void 0:S(d))||Ve(d).date()})});ML.classes=N9;ML.displayName="@mantine/dates/Day";function bfe({locale:t,format:e="dd",firstDayOfWeek:n=1}){const r=Ve().day(n),i=[];for(let a=0;a<7;a+=1)typeof e=="string"?i.push(Ve(r).add(a,"days").locale(t).format(e)):i.push(e(Ve(r).add(a,"days").toDate()));return i}var A9={weekday:"m_18a3eca"};const vfe={},Sfe=(t,{size:e})=>({weekdaysRow:{"--wr-fz":Ar(e),"--wr-spacing":Gl(e)}}),LL=Le((t,e)=>{const n=Ee("WeekdaysRow",vfe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,locale:d,firstDayOfWeek:f,weekdayFormat:p,cellComponent:m="th",__staticSelector:g,withWeekNumbers:b,...S}=n,y=ct({name:g||"WeekdaysRow",classes:A9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Sfe,rootSelector:"weekdaysRow"}),E=Ls(),x=bfe({locale:E.getLocale(d),format:p,firstDayOfWeek:E.getFirstDayOfWeek(f)}).map((C,R)=>l.jsx(m,{...y("weekday"),children:C},R));return l.jsxs(Se,{component:"tr",ref:e,...y("weekdaysRow"),...S,children:[b&&l.jsx(m,{...y("weekday"),children:"#"}),x]})});LL.classes=A9;LL.displayName="@mantine/dates/WeekdaysRow";function Efe(t,e=1){let n=Ve(t);const r=e===0?6:e-1;for(;n.day()!==r;)n=n.add(1,"day");return n.toDate()}function yfe(t,e=1){let n=Ve(t);for(;n.day()!==e;)n=n.subtract(1,"day");return n.toDate()}function Tfe({month:t,firstDayOfWeek:e=1,consistentWeeks:n}){const r=Ve(t).subtract(Ve(t).date()-1,"day"),i=Ve(r.format("YYYY-M-D")),a=i.toDate(),s=i.add(+i.daysInMonth()-1,"day").toDate(),o=Efe(s,e),c=yfe(a,e),d=[];for(;c<=o;){const f=[];for(let p=0;p<7;p+=1)f.push(new Date(c)),c.setDate(c.getDate()+1);d.push(f)}if(n&&d.length<6){const f=d[d.length-1],p=f[f.length-1],m=new Date(p);for(m.setDate(m.getDate()+1);d.length<6;){const g=[];for(let b=0;b<7;b+=1)g.push(new Date(m)),m.setDate(m.getDate()+1);d.push(g)}}return d}function w9(t,e){return e instanceof Date?Ve(t).isAfter(Ve(e).subtract(1,"day"),"day"):!0}function D9(t,e){return e instanceof Date?Ve(t).isBefore(Ve(e).add(1,"day"),"day"):!0}function xfe(t,e,n,r,i,a,s){const o=t.flat().filter(f=>{var p;return D9(f,n)&&w9(f,e)&&!(i!=null&&i(f))&&!((p=r==null?void 0:r(f))!=null&&p.disabled)&&(!a||Ve(f).isSame(Ve(s),"month"))}),c=o.find(f=>{var p;return(p=r==null?void 0:r(f))==null?void 0:p.selected});if(c)return c;const d=o.find(f=>Ve().isSame(f,"date"));return d||o[0]}var nS={exports:{}},Cfe=nS.exports,qF;function Ofe(){return qF||(qF=1,function(t,e){(function(n,r){t.exports=r()})(Cfe,function(){var n="day";return function(r,i,a){var s=function(d){return d.add(4-d.isoWeekday(),n)},o=i.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),n);var f,p,m,g,b=s(this),S=(f=this.isoWeekYear(),p=this.$u,m=(p?a.utc:a)().year(f).startOf("year"),g=4-m.isoWeekday(),m.isoWeekday()>4&&(g+=7),m.add(g,n));return b.diff(S,"week")+1},o.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var c=o.startOf;o.startOf=function(d,f){var p=this.$utils(),m=!!p.u(f)||f;return p.p(d)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(d,f)}}})}(nS)),nS.exports}var Rfe=Ofe();const Nfe=nl(Rfe);Ve.extend(Nfe);function Afe(t){const e=t.find(n=>Ve(n).day()===1);return Ve(e).isoWeek()}var I9={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const wfe={withCellSpacing:!0},Dfe=(t,{size:e})=>({weekNumber:{"--wn-fz":Ar(e),"--wn-size":kt(e,"wn-size")}}),ky=Le((t,e)=>{const n=Ee("Month",wfe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,locale:f,firstDayOfWeek:p,weekdayFormat:m,month:g,weekendDays:b,getDayProps:S,excludeDate:y,minDate:E,maxDate:x,renderDay:C,hideOutsideDates:R,hideWeekdays:T,getDayAriaLabel:N,static:w,__getDayRef:D,__onDayKeyDown:L,__onDayClick:k,__onDayMouseEnter:M,__preventFocus:P,__stopPropagation:V,withCellSpacing:Y,size:G,highlightToday:F,withWeekNumbers:q,...z}=n,H=ct({name:d||"Month",classes:I9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Dfe,rootSelector:"month"}),U=Ls(),Q=Tfe({month:g,firstDayOfWeek:U.getFirstDayOfWeek(p),consistentWeeks:U.consistentWeeks}),X=xfe(Q,E,x,S,y,R,g),{resolvedClassNames:te,resolvedStyles:ie}=rl({classNames:r,styles:s,props:n}),fe=Q.map((Ce,Re)=>{const _e=Ce.map((Ie,Oe)=>{const se=!Ve(Ie).isSame(Ve(g),"month"),xe=(N==null?void 0:N(Ie))||Ve(Ie).locale(f||U.locale).format("D MMMM YYYY"),ce=S==null?void 0:S(Ie),je=Ve(Ie).isSame(X,"date");return l.jsx("td",{...H("monthCell"),"data-with-spacing":Y||void 0,children:l.jsx(ML,{__staticSelector:d||"Month",classNames:te,styles:ie,unstyled:o,"data-mantine-stop-propagation":V||void 0,highlightToday:F,renderDay:C,date:Ie,size:G,weekend:U.getWeekendDays(b).includes(Ie.getDay()),outside:se,hidden:R?se:!1,"aria-label":xe,static:w,disabled:(y==null?void 0:y(Ie))||!D9(Ie,x)||!w9(Ie,E),ref:rt=>D==null?void 0:D(Re,Oe,rt),...ce,onKeyDown:rt=>{var _t;(_t=ce==null?void 0:ce.onKeyDown)==null||_t.call(ce,rt),L==null||L(rt,{rowIndex:Re,cellIndex:Oe,date:Ie})},onMouseEnter:rt=>{var _t;(_t=ce==null?void 0:ce.onMouseEnter)==null||_t.call(ce,rt),M==null||M(rt,Ie)},onClick:rt=>{var _t;(_t=ce==null?void 0:ce.onClick)==null||_t.call(ce,rt),k==null||k(rt,Ie)},onMouseDown:rt=>{var _t;(_t=ce==null?void 0:ce.onMouseDown)==null||_t.call(ce,rt),P&&rt.preventDefault()},tabIndex:P||!je?-1:0})},Ie.toString())});return l.jsxs("tr",{...H("monthRow"),children:[q&&l.jsx("td",{...H("weekNumber"),children:Afe(Ce)}),_e]},Re)});return l.jsxs(Se,{component:"table",...H("month"),size:G,ref:e,...z,children:[!T&&l.jsx("thead",{...H("monthThead"),children:l.jsx(LL,{__staticSelector:d||"Month",locale:f,firstDayOfWeek:p,weekdayFormat:m,size:G,classNames:te,styles:ie,unstyled:o,withWeekNumbers:q})}),l.jsx("tbody",{...H("monthTbody"),children:fe})]})});ky.classes=I9;ky.displayName="@mantine/dates/Month";var M9={pickerControl:"m_dc6a3c71"};const Ife={},Mfe=(t,{size:e})=>({pickerControl:{"--dpc-fz":Ar(e),"--dpc-size":kt(e,"dpc-size")}}),Py=Le((t,e)=>{const n=Ee("PickerControl",Ife,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,firstInRange:d,lastInRange:f,inRange:p,__staticSelector:m,selected:g,disabled:b,...S}=n,y=ct({name:m||"PickerControl",classes:M9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Mfe,rootSelector:"pickerControl"});return l.jsx(Si,{...y("pickerControl"),ref:e,unstyled:o,"data-picker-control":!0,"data-selected":g&&!b||void 0,"data-disabled":b||void 0,"data-in-range":p&&!b&&!g||void 0,"data-first-in-range":d&&!b||void 0,"data-last-in-range":f&&!b||void 0,disabled:b,...S})});Py.classes=M9;Py.displayName="@mantine/dates/PickerControl";function L9(t,e,n){return!e&&!n?!1:!!(e&&Ve(t).isBefore(e,"year")||n&&Ve(t).isAfter(n,"year"))}function Lfe(t,e,n,r){const i=t.flat().filter(o=>{var c;return!L9(o,e,n)&&!((c=r==null?void 0:r(o))!=null&&c.disabled)}),a=i.find(o=>{var c;return(c=r==null?void 0:r(o))==null?void 0:c.selected});if(a)return a;const s=i.find(o=>Ve().isSame(o,"year"));return s||i[0]}function k9(t){const e=t.getFullYear(),n=e-e%10;let r=0;const i=[[],[],[],[]];for(let a=0;a<4;a+=1){const s=a===3?1:3;for(let o=0;o<s;o+=1)i[a].push(new Date(n+r,0)),r+=1}return i}var P9={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const kfe={yearsListFormat:"YYYY",withCellSpacing:!0},By=Le((t,e)=>{const n=Ee("YearsList",kfe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,decade:d,yearsListFormat:f,locale:p,minDate:m,maxDate:g,getYearControlProps:b,__staticSelector:S,__getControlRef:y,__onControlKeyDown:E,__onControlClick:x,__onControlMouseEnter:C,__preventFocus:R,__stopPropagation:T,withCellSpacing:N,size:w,...D}=n,L=ct({name:S||"YearsList",classes:P9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,rootSelector:"yearsList"}),k=Ls(),M=k9(d),P=Lfe(M,m,g,b),V=M.map((Y,G)=>{const F=Y.map((q,z)=>{const H=b==null?void 0:b(q),U=Ve(q).isSame(P,"year");return l.jsx("td",{...L("yearsListCell"),"data-with-spacing":N||void 0,children:l.jsx(Py,{...L("yearsListControl"),size:w,unstyled:o,"data-mantine-stop-propagation":T||void 0,disabled:L9(q,m,g),ref:Q=>y==null?void 0:y(G,z,Q),...H,onKeyDown:Q=>{var X;(X=H==null?void 0:H.onKeyDown)==null||X.call(H,Q),E==null||E(Q,{rowIndex:G,cellIndex:z,date:q})},onClick:Q=>{var X;(X=H==null?void 0:H.onClick)==null||X.call(H,Q),x==null||x(Q,q)},onMouseEnter:Q=>{var X;(X=H==null?void 0:H.onMouseEnter)==null||X.call(H,Q),C==null||C(Q,q)},onMouseDown:Q=>{var X;(X=H==null?void 0:H.onMouseDown)==null||X.call(H,Q),R&&Q.preventDefault()},tabIndex:R||!U?-1:0,children:Ve(q).locale(k.getLocale(p)).format(f)})},z)});return l.jsx("tr",{...L("yearsListRow"),children:F},G)});return l.jsx(Se,{component:"table",ref:e,size:w,...L("yearsList"),...D,children:l.jsx("tbody",{children:V})})});By.classes=P9;By.displayName="@mantine/dates/YearsList";function B9(t,e,n){return!e&&!n?!1:!!(e&&Ve(t).isBefore(e,"month")||n&&Ve(t).isAfter(n,"month"))}function Pfe(t,e,n,r){const i=t.flat().filter(o=>{var c;return!B9(o,e,n)&&!((c=r==null?void 0:r(o))!=null&&c.disabled)}),a=i.find(o=>{var c;return(c=r==null?void 0:r(o))==null?void 0:c.selected});if(a)return a;const s=i.find(o=>Ve().isSame(o,"month"));return s||i[0]}function Bfe(t){const e=Ve(t).startOf("year").toDate(),n=[[],[],[],[]];let r=0;for(let i=0;i<4;i+=1)for(let a=0;a<3;a+=1)n[i].push(Ve(e).add(r,"months").toDate()),r+=1;return n}var F9={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Ffe={monthsListFormat:"MMM",withCellSpacing:!0},Fy=Le((t,e)=>{const n=Ee("MonthsList",Ffe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,year:f,monthsListFormat:p,locale:m,minDate:g,maxDate:b,getMonthControlProps:S,__getControlRef:y,__onControlKeyDown:E,__onControlClick:x,__onControlMouseEnter:C,__preventFocus:R,__stopPropagation:T,withCellSpacing:N,size:w,...D}=n,L=ct({name:d||"MonthsList",classes:F9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,rootSelector:"monthsList"}),k=Ls(),M=Bfe(f),P=Pfe(M,g,b,S),V=M.map((Y,G)=>{const F=Y.map((q,z)=>{const H=S==null?void 0:S(q),U=Ve(q).isSame(P,"month");return l.jsx("td",{...L("monthsListCell"),"data-with-spacing":N||void 0,children:l.jsx(Py,{...L("monthsListControl"),size:w,unstyled:o,__staticSelector:d||"MonthsList","data-mantine-stop-propagation":T||void 0,disabled:B9(q,g,b),ref:Q=>y==null?void 0:y(G,z,Q),...H,onKeyDown:Q=>{var X;(X=H==null?void 0:H.onKeyDown)==null||X.call(H,Q),E==null||E(Q,{rowIndex:G,cellIndex:z,date:q})},onClick:Q=>{var X;(X=H==null?void 0:H.onClick)==null||X.call(H,Q),x==null||x(Q,q)},onMouseEnter:Q=>{var X;(X=H==null?void 0:H.onMouseEnter)==null||X.call(H,Q),C==null||C(Q,q)},onMouseDown:Q=>{var X;(X=H==null?void 0:H.onMouseDown)==null||X.call(H,Q),R&&Q.preventDefault()},tabIndex:R||!U?-1:0,children:Ve(q).locale(k.getLocale(m)).format(p)})},z)});return l.jsx("tr",{...L("monthsListRow"),children:F},G)});return l.jsx(Se,{component:"table",ref:e,size:w,...L("monthsList"),...D,children:l.jsx("tbody",{children:V})})});Fy.classes=F9;Fy.displayName="@mantine/dates/MonthsList";var U9={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Ufe={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},jfe=(t,{size:e})=>({calendarHeader:{"--dch-control-size":kt(e,"dch-control-size"),"--dch-fz":Ar(e)}}),Od=Le((t,e)=>{const n=Ee("CalendarHeader",Ufe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:g,onPrevious:b,onLevelClick:S,label:y,nextDisabled:E,previousDisabled:x,hasNextLevel:C,levelControlAriaLabel:R,withNext:T,withPrevious:N,__staticSelector:w,__preventFocus:D,__stopPropagation:L,...k}=n,M=ct({name:w||"CalendarHeader",classes:U9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:jfe,rootSelector:"calendarHeader"}),P=D?V=>V.preventDefault():void 0;return l.jsxs(Se,{...M("calendarHeader"),ref:e,...k,children:[N&&l.jsx(Si,{...M("calendarHeaderControl"),"data-direction":"previous","aria-label":m,onClick:b,unstyled:o,onMouseDown:P,disabled:x,"data-disabled":x||void 0,tabIndex:D||x?-1:0,"data-mantine-stop-propagation":L||void 0,children:f||l.jsx(y_,{...M("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),l.jsx(Si,{component:C?"button":"div",...M("calendarHeaderLevel"),onClick:C?S:void 0,unstyled:o,onMouseDown:C?P:void 0,disabled:!C,"data-static":!C||void 0,"aria-label":R,tabIndex:D||!C?-1:0,"data-mantine-stop-propagation":L||void 0,children:y}),T&&l.jsx(Si,{...M("calendarHeaderControl"),"data-direction":"next","aria-label":p,onClick:g,unstyled:o,onMouseDown:P,disabled:E,"data-disabled":E||void 0,tabIndex:D||E?-1:0,"data-mantine-stop-propagation":L||void 0,children:d||l.jsx(y_,{...M("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});Od.classes=U9;Od.displayName="@mantine/dates/CalendarHeader";function Gfe(t){const e=k9(t);return[e[0][0],e[3][0]]}const qfe={decadeLabelFormat:"YYYY"},Uy=Le((t,e)=>{const n=Ee("DecadeLevel",qfe,t),{decade:r,locale:i,minDate:a,maxDate:s,yearsListFormat:o,getYearControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,withCellSpacing:g,__preventFocus:b,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:x,onNext:C,onPrevious:R,nextDisabled:T,previousDisabled:N,levelControlAriaLabel:w,withNext:D,withPrevious:L,decadeLabelFormat:k,classNames:M,styles:P,unstyled:V,__staticSelector:Y,__stopPropagation:G,size:F,...q}=n,z=Ls(),[H,U]=Gfe(r),Q={__staticSelector:Y||"DecadeLevel",classNames:M,styles:P,unstyled:V,size:F},X=typeof T=="boolean"?T:s?!Ve(U).endOf("year").isBefore(s):!1,te=typeof N=="boolean"?N:a?!Ve(H).startOf("year").isAfter(a):!1,ie=(fe,Ce)=>Ve(fe).locale(i||z.locale).format(Ce);return l.jsxs(Se,{"data-decade-level":!0,size:F,ref:e,...q,children:[l.jsx(Od,{label:typeof k=="function"?k(H,U):`${ie(H,k)} – ${ie(U,k)}`,__preventFocus:b,__stopPropagation:G,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:x,onNext:C,onPrevious:R,nextDisabled:X,previousDisabled:te,hasNextLevel:!1,levelControlAriaLabel:w,withNext:D,withPrevious:L,...Q}),l.jsx(By,{decade:r,locale:i,minDate:a,maxDate:s,yearsListFormat:o,getYearControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,__preventFocus:b,__stopPropagation:G,withCellSpacing:g,...Q})]})});Uy.classes={...By.classes,...Od.classes};Uy.displayName="@mantine/dates/DecadeLevel";const $fe={yearLabelFormat:"YYYY"},jy=Le((t,e)=>{const n=Ee("YearLevel",$fe,t),{year:r,locale:i,minDate:a,maxDate:s,monthsListFormat:o,getMonthControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,withCellSpacing:g,__preventFocus:b,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:x,onNext:C,onPrevious:R,onLevelClick:T,nextDisabled:N,previousDisabled:w,hasNextLevel:D,levelControlAriaLabel:L,withNext:k,withPrevious:M,yearLabelFormat:P,__staticSelector:V,__stopPropagation:Y,size:G,classNames:F,styles:q,unstyled:z,...H}=n,U=Ls(),Q={__staticSelector:V||"YearLevel",classNames:F,styles:q,unstyled:z,size:G},X=typeof N=="boolean"?N:s?!Ve(r).endOf("year").isBefore(s):!1,te=typeof w=="boolean"?w:a?!Ve(r).startOf("year").isAfter(a):!1;return l.jsxs(Se,{"data-year-level":!0,size:G,ref:e,...H,children:[l.jsx(Od,{label:typeof P=="function"?P(r):Ve(r).locale(i||U.locale).format(P),__preventFocus:b,__stopPropagation:Y,nextIcon:S,previousIcon:y,nextLabel:E,previousLabel:x,onNext:C,onPrevious:R,onLevelClick:T,nextDisabled:X,previousDisabled:te,hasNextLevel:D,levelControlAriaLabel:L,withNext:k,withPrevious:M,...Q}),l.jsx(Fy,{year:r,locale:i,minDate:a,maxDate:s,monthsListFormat:o,getMonthControlProps:c,__getControlRef:d,__onControlKeyDown:f,__onControlClick:p,__onControlMouseEnter:m,__preventFocus:b,__stopPropagation:Y,withCellSpacing:g,...Q})]})});jy.classes={...Od.classes,...Fy.classes};jy.displayName="@mantine/dates/YearLevel";const zfe={monthLabelFormat:"MMMM YYYY"},Gy=Le((t,e)=>{const n=Ee("MonthLevel",zfe,t),{month:r,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__getDayRef:y,__onDayKeyDown:E,__onDayClick:x,__onDayMouseEnter:C,withCellSpacing:R,highlightToday:T,withWeekNumbers:N,__preventFocus:w,__stopPropagation:D,nextIcon:L,previousIcon:k,nextLabel:M,previousLabel:P,onNext:V,onPrevious:Y,onLevelClick:G,nextDisabled:F,previousDisabled:q,hasNextLevel:z,levelControlAriaLabel:H,withNext:U,withPrevious:Q,monthLabelFormat:X,classNames:te,styles:ie,unstyled:fe,__staticSelector:Ce,size:Re,static:_e,...Ie}=n,Oe=Ls(),se={__staticSelector:Ce||"MonthLevel",classNames:te,styles:ie,unstyled:fe,size:Re},xe=typeof F=="boolean"?F:p?!Ve(r).endOf("month").isBefore(p):!1,ce=typeof q=="boolean"?q:f?!Ve(r).startOf("month").isAfter(f):!1;return l.jsxs(Se,{"data-month-level":!0,size:Re,ref:e,...Ie,children:[l.jsx(Od,{label:typeof X=="function"?X(r):Ve(r).locale(i||Oe.locale).format(X),__preventFocus:w,__stopPropagation:D,nextIcon:L,previousIcon:k,nextLabel:M,previousLabel:P,onNext:V,onPrevious:Y,onLevelClick:G,nextDisabled:xe,previousDisabled:ce,hasNextLevel:z,levelControlAriaLabel:H,withNext:U,withPrevious:Q,...se}),l.jsx(ky,{month:r,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__getDayRef:y,__onDayKeyDown:E,__onDayClick:x,__onDayMouseEnter:C,__preventFocus:w,__stopPropagation:D,static:_e,withCellSpacing:R,highlightToday:T,withWeekNumbers:N,...se})]})});Gy.classes={...ky.classes,...Od.classes};Gy.displayName="@mantine/dates/MonthLevel";var j9={levelsGroup:"m_30b26e33"};const Yfe={},Rd=Le((t,e)=>{const n=Ee("LevelsGroup",Yfe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,__staticSelector:d,...f}=n,p=ct({name:d||"LevelsGroup",classes:j9,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,rootSelector:"levelsGroup"});return l.jsx(Se,{ref:e,...p("levelsGroup"),...f})});Rd.classes=j9;Rd.displayName="@mantine/dates/LevelsGroup";const Hfe={numberOfColumns:1},qy=Le((t,e)=>{const n=Ee("DecadeLevelGroup",Hfe,t),{decade:r,locale:i,minDate:a,maxDate:s,yearsListFormat:o,getYearControlProps:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:p,__preventFocus:m,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:x,nextDisabled:C,previousDisabled:R,classNames:T,styles:N,unstyled:w,__staticSelector:D,__stopPropagation:L,numberOfColumns:k,levelControlAriaLabel:M,decadeLabelFormat:P,size:V,vars:Y,...G}=n,F=I.useRef([]),q=Array(k).fill(0).map((z,H)=>{const U=Ve(r).add(H*10,"years").toDate();return l.jsx(Uy,{size:V,yearsListFormat:o,decade:U,withNext:H===k-1,withPrevious:H===0,decadeLabelFormat:P,__onControlClick:d,__onControlMouseEnter:f,__onControlKeyDown:(Q,X)=>wL({levelIndex:H,rowIndex:X.rowIndex,cellIndex:X.cellIndex,event:Q,controlsRef:F}),__getControlRef:(Q,X,te)=>{Array.isArray(F.current[H])||(F.current[H]=[]),Array.isArray(F.current[H][Q])||(F.current[H][Q]=[]),F.current[H][Q][X]=te},levelControlAriaLabel:typeof M=="function"?M(U):M,locale:i,minDate:a,maxDate:s,__preventFocus:m,__stopPropagation:L,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:x,nextDisabled:C,previousDisabled:R,getYearControlProps:c,__staticSelector:D||"DecadeLevelGroup",classNames:T,styles:N,unstyled:w,withCellSpacing:p},H)});return l.jsx(Rd,{classNames:T,styles:N,__staticSelector:D||"DecadeLevelGroup",ref:e,size:V,unstyled:w,...G,children:q})});qy.classes={...Rd.classes,...Uy.classes};qy.displayName="@mantine/dates/DecadeLevelGroup";const Vfe={numberOfColumns:1},$y=Le((t,e)=>{const n=Ee("YearLevelGroup",Vfe,t),{year:r,locale:i,minDate:a,maxDate:s,monthsListFormat:o,getMonthControlProps:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:p,__preventFocus:m,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:x,onLevelClick:C,nextDisabled:R,previousDisabled:T,hasNextLevel:N,classNames:w,styles:D,unstyled:L,__staticSelector:k,__stopPropagation:M,numberOfColumns:P,levelControlAriaLabel:V,yearLabelFormat:Y,size:G,vars:F,...q}=n,z=I.useRef([]),H=Array(P).fill(0).map((U,Q)=>{const X=Ve(r).add(Q,"years").toDate();return l.jsx(jy,{size:G,monthsListFormat:o,year:X,withNext:Q===P-1,withPrevious:Q===0,yearLabelFormat:Y,__stopPropagation:M,__onControlClick:d,__onControlMouseEnter:f,__onControlKeyDown:(te,ie)=>wL({levelIndex:Q,rowIndex:ie.rowIndex,cellIndex:ie.cellIndex,event:te,controlsRef:z}),__getControlRef:(te,ie,fe)=>{Array.isArray(z.current[Q])||(z.current[Q]=[]),Array.isArray(z.current[Q][te])||(z.current[Q][te]=[]),z.current[Q][te][ie]=fe},levelControlAriaLabel:typeof V=="function"?V(X):V,locale:i,minDate:a,maxDate:s,__preventFocus:m,nextIcon:g,previousIcon:b,nextLabel:S,previousLabel:y,onNext:E,onPrevious:x,onLevelClick:C,nextDisabled:R,previousDisabled:T,hasNextLevel:N,getMonthControlProps:c,classNames:w,styles:D,unstyled:L,__staticSelector:k||"YearLevelGroup",withCellSpacing:p},Q)});return l.jsx(Rd,{classNames:w,styles:D,__staticSelector:k||"YearLevelGroup",ref:e,size:G,unstyled:L,...q,children:H})});$y.classes={...jy.classes,...Rd.classes};$y.displayName="@mantine/dates/YearLevelGroup";const Wfe={numberOfColumns:1},zy=Le((t,e)=>{const n=Ee("MonthLevelGroup",Wfe,t),{month:r,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__onDayClick:y,__onDayMouseEnter:E,withCellSpacing:x,highlightToday:C,withWeekNumbers:R,__preventFocus:T,nextIcon:N,previousIcon:w,nextLabel:D,previousLabel:L,onNext:k,onPrevious:M,onLevelClick:P,nextDisabled:V,previousDisabled:Y,hasNextLevel:G,classNames:F,styles:q,unstyled:z,numberOfColumns:H,levelControlAriaLabel:U,monthLabelFormat:Q,__staticSelector:X,__stopPropagation:te,size:ie,static:fe,vars:Ce,...Re}=n,_e=I.useRef([]),Ie=Array(H).fill(0).map((Oe,se)=>{const xe=Ve(r).add(se,"months").toDate();return l.jsx(Gy,{month:xe,withNext:se===H-1,withPrevious:se===0,monthLabelFormat:Q,__stopPropagation:te,__onDayClick:y,__onDayMouseEnter:E,__onDayKeyDown:(ce,je)=>wL({levelIndex:se,rowIndex:je.rowIndex,cellIndex:je.cellIndex,event:ce,controlsRef:_e}),__getDayRef:(ce,je,rt)=>{Array.isArray(_e.current[se])||(_e.current[se]=[]),Array.isArray(_e.current[se][ce])||(_e.current[se][ce]=[]),_e.current[se][ce][je]=rt},levelControlAriaLabel:typeof U=="function"?U(xe):U,locale:i,firstDayOfWeek:a,weekdayFormat:s,weekendDays:o,getDayProps:c,excludeDate:d,minDate:f,maxDate:p,renderDay:m,hideOutsideDates:g,hideWeekdays:b,getDayAriaLabel:S,__preventFocus:T,nextIcon:N,previousIcon:w,nextLabel:D,previousLabel:L,onNext:k,onPrevious:M,onLevelClick:P,nextDisabled:V,previousDisabled:Y,hasNextLevel:G,classNames:F,styles:q,unstyled:z,__staticSelector:X||"MonthLevelGroup",size:ie,static:fe,withCellSpacing:x,highlightToday:C,withWeekNumbers:R},se)});return l.jsx(Rd,{classNames:F,styles:q,__staticSelector:X||"MonthLevelGroup",ref:e,size:ie,...Re,children:Ie})});zy.classes={...Rd.classes,...Gy.classes};zy.displayName="@mantine/dates/MonthLevelGroup";var G9={input:"m_6fa5e2aa"};const Qfe={},Yy=Le((t,e)=>{const{inputProps:n,wrapperProps:r,placeholder:i,classNames:a,styles:s,unstyled:o,popoverProps:c,modalProps:d,dropdownType:f,children:p,formattedValue:m,dropdownHandlers:g,dropdownOpened:b,onClick:S,clearable:y,onClear:E,clearButtonProps:x,rightSection:C,shouldClear:R,readOnly:T,disabled:N,value:w,name:D,form:L,type:k,...M}=iY("PickerInputBase",Qfe,t),P=C||(y&&R&&!T&&!N?l.jsx(Yl,{variant:"transparent",onClick:E,unstyled:o,size:n.size||"sm",...x}):null),V=()=>{k==="range"&&Array.isArray(w)&&w[0]&&!w[1]&&E(),g.close()};return l.jsxs(l.Fragment,{children:[f==="modal"&&!T&&l.jsx(po,{opened:b,onClose:V,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:o,...d,children:p}),l.jsx(Kr.Wrapper,{...r,children:l.jsxs(li,{position:"bottom-start",opened:b,trapFocus:!0,returnFocus:!1,unstyled:o,...c,disabled:(c==null?void 0:c.disabled)||f==="modal"||T,onChange:Y=>{var G;Y||((G=c==null?void 0:c.onClose)==null||G.call(c),V())},children:[l.jsx(li.Target,{children:l.jsx(Kr,{"data-dates-input":!0,"data-read-only":T||void 0,disabled:N,component:"button",type:"button",multiline:!0,onClick:Y=>{S==null||S(Y),g.toggle()},rightSection:P,...n,ref:e,classNames:{...a,input:Tr(G9.input,a==null?void 0:a.input)},...M,children:m||l.jsx(Kr.Placeholder,{error:n.error,unstyled:o,className:a==null?void 0:a.placeholder,style:s==null?void 0:s.placeholder,children:i})})}),l.jsx(li.Dropdown,{"data-dates-dropdown":!0,children:p})]})}),l.jsx(R9,{value:w,name:D,form:L,type:k})]})});Yy.classes=G9;Yy.displayName="@mantine/dates/PickerInputBase";const $F=t=>t==="range"?[null,null]:t==="multiple"?[]:null;function kL({type:t,value:e,defaultValue:n,onChange:r,applyTimezone:i=!0}){const a=I.useRef(t),s=Ls(),[o,c,d]=ra({value:Mc("add",e,s.getTimezone(),!i),defaultValue:Mc("add",n,s.getTimezone(),!i),finalValue:$F(t),onChange:p=>{r==null||r(Mc("remove",p,s.getTimezone(),!i))}});let f=o;return a.current!==t&&(a.current=t,e===void 0&&(f=n!==void 0?n:$F(t),c(f))),[f,c,d]}function JC(t,e){return t?t==="month"?0:t==="year"?1:2:e||0}function Kfe(t){return t===0?"month":t===1?"year":"decade"}function Dg(t,e,n){return Kfe(zh(JC(t,0),JC(e,0),JC(n,2)))}const Xfe={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Hy=Le((t,e)=>{const n=Ee("Calendar",Xfe,t),{vars:r,maxLevel:i,minLevel:a,defaultLevel:s,level:o,onLevelChange:c,date:d,defaultDate:f,onDateChange:p,numberOfColumns:m,columnsToScroll:g,ariaLabels:b,nextLabel:S,previousLabel:y,onYearSelect:E,onMonthSelect:x,onYearMouseEnter:C,onMonthMouseEnter:R,__updateDateOnYearSelect:T,__updateDateOnMonthSelect:N,firstDayOfWeek:w,weekdayFormat:D,weekendDays:L,getDayProps:k,excludeDate:M,renderDay:P,hideOutsideDates:V,hideWeekdays:Y,getDayAriaLabel:G,monthLabelFormat:F,nextIcon:q,previousIcon:z,__onDayClick:H,__onDayMouseEnter:U,withCellSpacing:Q,highlightToday:X,withWeekNumbers:te,monthsListFormat:ie,getMonthControlProps:fe,yearLabelFormat:Ce,yearsListFormat:Re,getYearControlProps:_e,decadeLabelFormat:Ie,classNames:Oe,styles:se,unstyled:xe,minDate:ce,maxDate:je,locale:rt,__staticSelector:_t,size:Te,__preventFocus:Ne,__stopPropagation:at,onNextDecade:ze,onPreviousDecade:Ze,onNextYear:Ye,onPreviousYear:ve,onNextMonth:Ue,onPreviousMonth:Ke,static:yt,__timezoneApplied:Ut,...Nt}=n,{resolvedClassNames:Qt,resolvedStyles:sn}=rl({classNames:Oe,styles:se,props:n}),[wr,Wn]=ra({value:o?Dg(o,a,i):void 0,defaultValue:s?Dg(s,a,i):void 0,finalValue:Dg(void 0,a,i),onChange:c}),[er,Kt]=kL({type:"default",value:d,defaultValue:f,onChange:p,applyTimezone:!Ut}),ci={__staticSelector:_t||"Calendar",styles:sn,classNames:Qt,unstyled:xe,size:Te},Dr=Ls(),mn=g||m||1,qt=new Date,tr=ce&&ce>qt?ce:qt,nr=er||Mc("add",tr,Dr.getTimezone()),za=()=>{const Me=Ve(nr).add(mn,"month").toDate();Ue==null||Ue(Me),Kt(Me)},Ps=()=>{const Me=Ve(nr).subtract(mn,"month").toDate();Ke==null||Ke(Me),Kt(Me)},ui=()=>{const Me=Ve(nr).add(mn,"year").toDate();Ye==null||Ye(Me),Kt(Me)},ne=()=>{const Me=Ve(nr).subtract(mn,"year").toDate();ve==null||ve(Me),Kt(Me)},Ae=()=>{const Me=Ve(nr).add(10*mn,"year").toDate();ze==null||ze(Me),Kt(Me)},Xe=()=>{const Me=Ve(nr).subtract(10*mn,"year").toDate();Ze==null||Ze(Me),Kt(Me)};return l.jsxs(Se,{ref:e,size:Te,"data-calendar":!0,...Nt,children:[wr==="month"&&l.jsx(zy,{month:nr,minDate:ce,maxDate:je,firstDayOfWeek:w,weekdayFormat:D,weekendDays:L,getDayProps:k,excludeDate:M,renderDay:P,hideOutsideDates:V,hideWeekdays:Y,getDayAriaLabel:G,onNext:za,onPrevious:Ps,hasNextLevel:i!=="month",onLevelClick:()=>Wn("year"),numberOfColumns:m,locale:rt,levelControlAriaLabel:b==null?void 0:b.monthLevelControl,nextLabel:(b==null?void 0:b.nextMonth)??S,nextIcon:q,previousLabel:(b==null?void 0:b.previousMonth)??y,previousIcon:z,monthLabelFormat:F,__onDayClick:H,__onDayMouseEnter:U,__preventFocus:Ne,__stopPropagation:at,static:yt,withCellSpacing:Q,highlightToday:X,withWeekNumbers:te,...ci}),wr==="year"&&l.jsx($y,{year:nr,numberOfColumns:m,minDate:ce,maxDate:je,monthsListFormat:ie,getMonthControlProps:fe,locale:rt,onNext:ui,onPrevious:ne,hasNextLevel:i!=="month"&&i!=="year",onLevelClick:()=>Wn("decade"),levelControlAriaLabel:b==null?void 0:b.yearLevelControl,nextLabel:(b==null?void 0:b.nextYear)??S,nextIcon:q,previousLabel:(b==null?void 0:b.previousYear)??y,previousIcon:z,yearLabelFormat:Ce,__onControlMouseEnter:R,__onControlClick:(Me,Xt)=>{N&&Kt(Xt),Wn(Dg("month",a,i)),x==null||x(Xt)},__preventFocus:Ne,__stopPropagation:at,withCellSpacing:Q,...ci}),wr==="decade"&&l.jsx(qy,{decade:nr,minDate:ce,maxDate:je,yearsListFormat:Re,getYearControlProps:_e,locale:rt,onNext:Ae,onPrevious:Xe,numberOfColumns:m,nextLabel:(b==null?void 0:b.nextDecade)??S,nextIcon:q,previousLabel:(b==null?void 0:b.previousDecade)??y,previousIcon:z,decadeLabelFormat:Ie,__onControlMouseEnter:C,__onControlClick:(Me,Xt)=>{T&&Kt(Xt),Wn(Dg("year",a,i)),E==null||E(Xt)},__preventFocus:Ne,__stopPropagation:at,withCellSpacing:Q,...ci})]})});Hy.classes={...qy.classes,...$y.classes,...zy.classes};Hy.displayName="@mantine/dates/Calendar";function Zfe(t){const{maxLevel:e,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:s,previousIcon:o,date:c,defaultDate:d,onDateChange:f,numberOfColumns:p,columnsToScroll:m,ariaLabels:g,nextLabel:b,previousLabel:S,onYearSelect:y,onMonthSelect:E,onYearMouseEnter:x,onMonthMouseEnter:C,onNextMonth:R,onPreviousMonth:T,onNextYear:N,onPreviousYear:w,onNextDecade:D,onPreviousDecade:L,withCellSpacing:k,highlightToday:M,__updateDateOnYearSelect:P,__updateDateOnMonthSelect:V,withWeekNumbers:Y,firstDayOfWeek:G,weekdayFormat:F,weekendDays:q,getDayProps:z,excludeDate:H,renderDay:U,hideOutsideDates:Q,hideWeekdays:X,getDayAriaLabel:te,monthLabelFormat:ie,monthsListFormat:fe,getMonthControlProps:Ce,yearLabelFormat:Re,yearsListFormat:_e,getYearControlProps:Ie,decadeLabelFormat:Oe,allowSingleDateInRange:se,allowDeselect:xe,minDate:ce,maxDate:je,locale:rt,..._t}=t;return{calendarProps:{maxLevel:e,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:s,previousIcon:o,date:c,defaultDate:d,onDateChange:f,numberOfColumns:p,columnsToScroll:m,ariaLabels:g,nextLabel:b,previousLabel:S,onYearSelect:y,onMonthSelect:E,onYearMouseEnter:x,onMonthMouseEnter:C,onNextMonth:R,onPreviousMonth:T,onNextYear:N,onPreviousYear:w,onNextDecade:D,onPreviousDecade:L,withCellSpacing:k,highlightToday:M,__updateDateOnYearSelect:P,__updateDateOnMonthSelect:V,withWeekNumbers:Y,firstDayOfWeek:G,weekdayFormat:F,weekendDays:q,getDayProps:z,excludeDate:H,renderDay:U,hideOutsideDates:Q,hideWeekdays:X,getDayAriaLabel:te,monthLabelFormat:ie,monthsListFormat:fe,getMonthControlProps:Ce,yearLabelFormat:Re,yearsListFormat:_e,getYearControlProps:Ie,decadeLabelFormat:Oe,allowSingleDateInRange:se,allowDeselect:xe,minDate:ce,maxDate:je,locale:rt},others:_t}}function zF(t,e){const n=[...e].sort((r,i)=>r.getTime()-i.getTime());return Ve(n[0]).startOf("day").subtract(1,"ms").isBefore(t)&&Ve(n[1]).endOf("day").add(1,"ms").isAfter(t)}function Jfe({type:t,level:e,value:n,defaultValue:r,onChange:i,allowSingleDateInRange:a,allowDeselect:s,onMouseLeave:o,applyTimezone:c=!0}){const[d,f]=kL({type:t,value:n,defaultValue:r,onChange:i,applyTimezone:c}),[p,m]=I.useState(t==="range"&&d[0]&&!d[1]?d[0]:null),[g,b]=I.useState(null),S=N=>{if(t==="range"){if(p instanceof Date&&!d[1]){if(Ve(N).isSame(p,e)&&!a){m(null),b(null),f([null,null]);return}const w=[N,p];w.sort((D,L)=>D.getTime()-L.getTime()),f(w),b(null),m(null);return}if(d[0]&&!d[1]&&Ve(N).isSame(d[0],e)&&!a){m(null),b(null),f([null,null]);return}f([N,null]),b(null),m(N);return}if(t==="multiple"){d.some(w=>Ve(w).isSame(N,e))?f(d.filter(w=>!Ve(w).isSame(N,e))):f([...d,N]);return}d&&s&&Ve(N).isSame(d,e)?f(null):f(N)},y=N=>p instanceof Date&&g instanceof Date?zF(N,[g,p]):d[0]instanceof Date&&d[1]instanceof Date?zF(N,d):!1,E=t==="range"?N=>{o==null||o(N),b(null)}:o,x=N=>d[0]instanceof Date&&Ve(N).isSame(d[0],e)?!(g&&Ve(g).isBefore(d[0])):!1,C=N=>d[1]instanceof Date?Ve(N).isSame(d[1],e):!(d[0]instanceof Date)||!g?!1:Ve(g).isBefore(d[0])&&Ve(N).isSame(d[0],e),R=N=>{if(t==="range")return{selected:d.some(D=>D&&Ve(D).isSame(N,e)),inRange:y(N),firstInRange:x(N),lastInRange:C(N),"data-autofocus":!!d[0]&&Ve(d[0]).isSame(N,e)||void 0};if(t==="multiple")return{selected:d.some(D=>D&&Ve(D).isSame(N,e)),"data-autofocus":!!d[0]&&Ve(d[0]).isSame(N,e)||void 0};const w=Ve(d).isSame(N,e);return{selected:w,"data-autofocus":w||void 0}},T=t==="range"&&p?b:()=>{};return I.useEffect(()=>{if(t==="range")if(d[0]&&!d[1])m(d[0]);else{const N=d[0]==null&&d[1]==null,w=d[0]!=null&&d[1]!=null;(N||w)&&(m(null),b(null))}},[d]),{onDateChange:S,onRootMouseLeave:E,onHoveredDateChange:T,getControlProps:R,_value:d,setValue:f}}const ehe={type:"default",defaultLevel:"month",numberOfColumns:1},Vy=Le((t,e)=>{const n=Ee("DatePicker",ehe,t),{classNames:r,styles:i,vars:a,type:s,defaultValue:o,value:c,onChange:d,__staticSelector:f,getDayProps:p,allowSingleDateInRange:m,allowDeselect:g,onMouseLeave:b,numberOfColumns:S,hideOutsideDates:y,__onDayMouseEnter:E,__onDayClick:x,__timezoneApplied:C,...R}=n,{onDateChange:T,onRootMouseLeave:N,onHoveredDateChange:w,getControlProps:D}=Jfe({type:s,level:"day",allowDeselect:g,allowSingleDateInRange:m,value:c,defaultValue:o,onChange:d,onMouseLeave:b,applyTimezone:!C}),{resolvedClassNames:L,resolvedStyles:k}=rl({classNames:r,styles:i,props:n}),M=Ls();return l.jsx(Hy,{ref:e,minLevel:"month",classNames:L,styles:k,__staticSelector:f||"DatePicker",onMouseLeave:N,numberOfColumns:S,hideOutsideDates:y??S!==1,__onDayMouseEnter:(P,V)=>{w(V),E==null||E(P,V)},__onDayClick:(P,V)=>{T(V),x==null||x(P,V)},getDayProps:P=>({...D(P),...p==null?void 0:p(P)}),...R,date:Mc("add",R.date,M.getTimezone(),C),__timezoneApplied:!0})});Vy.classes=Hy.classes;Vy.displayName="@mantine/dates/DatePicker";var q9={timeWrapper:"m_208d2562",timeInput:"m_62ee059"};const the={dropdownType:"popover"},PL=Le((t,e)=>{const n=Ee("DateTimePicker",the,t),{value:r,defaultValue:i,onChange:a,valueFormat:s,locale:o,classNames:c,styles:d,unstyled:f,timeInputProps:p,submitButtonProps:m,withSeconds:g,level:b,defaultLevel:S,size:y,variant:E,dropdownType:x,vars:C,minDate:R,maxDate:T,...N}=n,w=ct({name:"DateTimePicker",classes:q9,props:n,classNames:c,styles:d,unstyled:f,vars:C}),{resolvedClassNames:D,resolvedStyles:L}=rl({classNames:c,styles:d,props:n}),k=s||(g?"DD/MM/YYYY HH:mm:ss":"DD/MM/YYYY HH:mm"),M=I.useRef(null),P=Xr(M,p==null?void 0:p.ref),{calendarProps:{allowSingleDateInRange:V,...Y},others:G}=Zfe(N),F=Ls(),[q,z]=kL({type:"default",value:r,defaultValue:i,onChange:a}),H=ce=>ce?Ve(ce).format(g?"HH:mm:ss":"HH:mm"):"",[U,Q]=I.useState(H(q)),[X,te]=I.useState(b||S||"month"),[ie,fe]=NI(!1),Ce=q?Ve(q).locale(F.getLocale(o)).tz(F.getTimezone()).format(k):"",Re=ce=>{var rt;(rt=p==null?void 0:p.onChange)==null||rt.call(p,ce);const je=ce.currentTarget.value;if(Q(je),je){const[_t,Te,Ne]=je.split(":").map(Number),at=Mc("add",new Date,F.getTimezone());at.setHours(_t),at.setMinutes(Te),at.setSeconds(Ne||0),at.setMilliseconds(0),z(UF(at,q||Mc("add",new Date,F.getTimezone())))}},_e=ce=>{var je;ce&&z(UF(q,ce)),(je=M.current)==null||je.focus()},Ie=ce=>{var je;(je=p==null?void 0:p.onKeyDown)==null||je.call(p,ce),ce.key==="Enter"&&(ce.preventDefault(),fe.close())};so(()=>{ie||Q(H(q))},[q,ie]),so(()=>{ie&&te("month")},[ie]);const Oe=R?Ve(R).format("HH:mm:ss"):null,se=T?Ve(T).format("HH:mm:ss"):null,xe=x==="popover";return l.jsxs(Yy,{formattedValue:Ce,dropdownOpened:N.disabled?!1:ie,dropdownHandlers:fe,classNames:D,styles:L,unstyled:f,ref:e,onClear:()=>z(null),shouldClear:!!q,value:q,size:y,variant:E,dropdownType:x,...G,type:"default",__staticSelector:"DateTimePicker",children:[l.jsx(Vy,{...Y,maxDate:T,minDate:R,size:y,variant:E,type:"default",value:q,defaultDate:q,onChange:_e,locale:o,classNames:D,styles:L,unstyled:f,__staticSelector:"DateTimePicker",__stopPropagation:xe,level:b,defaultLevel:S,onLevelChange:ce=>{var je;te(ce),(je=Y.onLevelChange)==null||je.call(Y,ce)},__timezoneApplied:!0}),X==="month"&&l.jsxs("div",{...w("timeWrapper"),children:[l.jsx(IL,{value:U,withSeconds:g,ref:P,unstyled:f,minTime:q&&R&&q.toDateString()===R.toDateString()?Oe??void 0:void 0,maxTime:q&&T&&q.toDateString()===T.toDateString()?se??void 0:void 0,...p,...w("timeInput",{className:p==null?void 0:p.className,style:p==null?void 0:p.style}),onChange:Re,onKeyDown:Ie,size:y,"data-mantine-stop-propagation":xe||void 0}),l.jsx(jr,{variant:"default",size:`input-${y||"sm"}`,...w("submitButton",{className:m==null?void 0:m.className,style:m==null?void 0:m.style}),unstyled:f,"data-mantine-stop-propagation":xe||void 0,children:l.jsx(iy,{size:"30%"}),...m,onClick:ce=>{var je;(je=m==null?void 0:m.onClick)==null||je.call(m,ce),fe.close()}})]})]})});PL.classes={...q9,...Yy.classes,...Vy.classes};PL.displayName="@mantine/dates/DateTimePicker";const nhe="settings.useLocalTime",rhe="settings.enableQueryHistory",ihe="settings.enableAutocomplete",ahe="settings.enableSyntaxHighlighting",she="settings.enableLinter",ohe="settings.showAnnotations",lhe="settings.ruleGroupsPerPage",che="settings.alertGroupsPerPage",uhe=t=>{t.endsWith("/")&&(t=t.slice(0,-1));const n=["/query","/alerts","/targets","/rules","/service-discovery","/status","/tsdb-status","/flags","/config","/alertmanager-discovery","/agent"].find(r=>t.endsWith(r));return t.slice(0,t.length-(n||"").length)},dhe={consolesLink:GLOBAL_CONSOLES_LINK==="CONSOLES_LINK_PLACEHOLDER"||GLOBAL_CONSOLES_LINK===""||GLOBAL_CONSOLES_LINK===null?null:GLOBAL_CONSOLES_LINK,agentMode:GLOBAL_AGENT_MODE==="true",ready:GLOBAL_READY==="true",lookbackDelta:GLOBAL_LOOKBACKDELTA==="LOOKBACKDELTA_PLACEHOLDER"||GLOBAL_LOOKBACKDELTA===null?"":GLOBAL_LOOKBACKDELTA,pathPrefix:uhe(window.location.pathname),useLocalTime:wo(nhe,!1),enableQueryHistory:wo(rhe,!1),enableAutocomplete:wo(ihe,!0),enableSyntaxHighlighting:wo(ahe,!0),enableLinter:wo(she,!0),showAnnotations:wo(ohe,!0),ruleGroupsPerPage:wo(lhe,10),alertGroupsPerPage:wo(che,10)},$9=Dy({name:"settings",initialState:dhe,reducers:{updateSettings:(t,{payload:e})=>{Object.assign(t,e)}}}),{updateSettings:Cl}=$9.actions,yi=()=>Wl(t=>t.settings),fhe=$9.reducer,YF={width:"0.9rem",height:"0.9rem"},z9=({time:t,range:e,description:n,onChangeTime:r})=>{const i=()=>t!==null?t:Date.now().valueOf(),{useLocalTime:a}=yi();return l.jsx(mt,{gap:5,children:l.jsx(ffe,{settings:{timezone:a?void 0:"UTC"},children:l.jsx(PL,{title:"End time",w:230,valueFormat:"YYYY-MM-DD HH:mm:ss",withSeconds:!0,value:t!==null?new Date(t):void 0,onChange:s=>r(s?s.getTime():null),"aria-label":n,placeholder:n,onClick:()=>{t===null&&r(i())},leftSection:l.jsx(jr,{size:"lg",color:"gray",variant:"transparent",title:"Decrease time","aria-label":"Decrease time",onClick:()=>r(i()-e/2),children:l.jsx(Qoe,{style:YF})}),styles:{section:{width:"unset"}},rightSection:l.jsxs(l.Fragment,{children:[t&&l.jsx(Yl,{variant:"transparent",color:"gray",onMouseDown:s=>s.preventDefault(),tabIndex:-1,onClick:()=>{r(null)},size:"xs"}),l.jsx(jr,{size:"lg",color:"gray",variant:"transparent",title:"Increase time","aria-label":"Increase time",onClick:()=>r(i()+e/2),children:l.jsx(hH,{style:YF})})]})})})})},HF={width:"0.9rem",height:"0.9rem"},VF=[1,10,60,5*60,15*60,30*60,60*60,2*60*60,6*60*60,12*60*60,24*60*60,48*60*60,7*24*60*60,14*24*60*60,28*24*60*60,56*24*60*60,112*24*60*60,182*24*60*60,365*24*60*60,730*24*60*60].map(t=>t*1e3),hhe=({range:t,onChangeRange:e})=>{const[n,r]=I.useState(Nn(t));I.useEffect(()=>{r(Nn(t))},[t]);const i=o=>{const c=AL(o);c===null?r(Nn(t)):e(c)},a=()=>{for(const o of VF)if(t<o){r(Nn(o)),e(o);return}},s=()=>{for(const o of VF.slice().reverse())if(t>o){r(Nn(o)),e(o);return}};return l.jsx(mt,{gap:5,children:l.jsx(Wc,{title:"Range",value:n,onChange:o=>r(o.currentTarget.value),onBlur:()=>i(n),onKeyDown:o=>o.key==="Enter"&&i(n),"aria-label":"Range",style:{width:`calc(44px + ${n.length+3}ch)`},leftSection:l.jsx(jr,{size:"lg",variant:"transparent",color:"gray","aria-label":"Decrease range",onClick:s,children:l.jsx(ale,{style:HF})}),rightSection:l.jsx(jr,{size:"lg",variant:"transparent",color:"gray","aria-label":"Increase range",onClick:a,children:l.jsx(SH,{style:HF})}),leftSectionPointerEvents:"all",rightSectionPointerEvents:"all"})})},Y9=1024;let phe=0,eO=class{constructor(e,n){this.from=e,this.to=n}};class nn{constructor(e={}){this.id=phe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=ls.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}nn.closedBy=new nn({deserialize:t=>t.split(" ")});nn.openedBy=new nn({deserialize:t=>t.split(" ")});nn.group=new nn({deserialize:t=>t.split(" ")});nn.isolate=new nn({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});nn.contextHash=new nn({perNode:!0});nn.lookAhead=new nn({perNode:!0});nn.mounted=new nn({perNode:!0});class WS{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[nn.mounted.id]}}const mhe=Object.create(null);class ls{constructor(e,n,r,i=0){this.name=e,this.props=n,this.id=r,this.flags=i}static define(e){let n=e.props&&e.props.length?Object.create(null):mhe,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new ls(e.name||"",n,e.id,r);if(e.props){for(let a of e.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(nn.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let i of r.split(" "))n[i]=e[r];return r=>{for(let i=r.prop(nn.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}ls.none=new ls("",Object.create(null),0,8);class BL{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let r of this.types){let i=null;for(let a of e){let s=a(r);s&&(i||(i=Object.assign({},r.props)),i[s[0].id]=s[1])}n.push(i?new ls(r.name,i,r.id,r.flags):r)}return new BL(n)}}const av=new WeakMap,WF=new WeakMap;var Li;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(Li||(Li={}));class si{constructor(e,n,r,i,a){if(this.type=e,this.children=n,this.positions=r,this.length=i,this.props=null,a&&a.length){this.props=Object.create(null);for(let[s,o]of a)this.props[typeof s=="number"?s:s.id]=o}}toString(){let e=WS.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new Hw(this.topNode,e)}cursorAt(e,n=0,r=0){let i=av.get(this)||this.topNode,a=new Hw(i);return a.moveTo(e,n),av.set(this,a._tree),a}get topNode(){return new ud(this,0,0,null)}resolve(e,n=0){let r=I_(av.get(this)||this.topNode,e,n,!1);return av.set(this,r),r}resolveInner(e,n=0){let r=I_(WF.get(this)||this.topNode,e,n,!0);return WF.set(this,r),r}resolveStack(e,n=0){return bhe(this,e,n)}iterate(e){let{enter:n,leave:r,from:i=0,to:a=this.length}=e,s=e.mode||0,o=(s&Li.IncludeAnonymous)>0;for(let c=this.cursor(s|Li.IncludeAnonymous);;){let d=!1;if(c.from<=a&&c.to>=i&&(!o&&c.type.isAnonymous||n(c)!==!1)){if(c.firstChild())continue;d=!0}for(;d&&r&&(o||!c.type.isAnonymous)&&r(c),!c.nextSibling();){if(!c.parent())return;d=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:jL(ls.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new si(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new si(ls.none,n,r,i)))}static build(e){return vhe(e)}}si.empty=new si(ls.none,[],[],0);class FL{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FL(this.buffer,this.index)}}class cd{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return ls.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],r=this.buffer[e+3],i=this.set.types[n],a=i.name;if(/\W/.test(a)&&!i.isError&&(a=JSON.stringify(a)),e+=4,r==e)return a;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return a+"("+s.join(",")+")"}findChild(e,n,r,i,a){let{buffer:s}=this,o=-1;for(let c=e;c!=n&&!(H9(a,i,s[c+1],s[c+2])&&(o=c,r>0));c=s[c+3]);return o}slice(e,n,r){let i=this.buffer,a=new Uint16Array(n-e),s=0;for(let o=e,c=0;o<n;){a[c++]=i[o++],a[c++]=i[o++]-r;let d=a[c++]=i[o++]-r;a[c++]=i[o++]-e,s=Math.max(s,d)}return new cd(a,s,this.set)}}function H9(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function I_(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let s=!r&&t instanceof ud&&t.index<0?null:t.parent;if(!s)return t;t=s}let a=r?0:Li.IgnoreOverlays;if(r)for(let s=t,o=s.parent;o;s=o,o=s.parent)s instanceof ud&&s.index<0&&((i=o.enter(e,n,a))===null||i===void 0?void 0:i.from)!=s.from&&(t=o);for(;;){let s=t.enter(e,n,a);if(!s)return t;t=s}}class V9{cursor(e=0){return new Hw(this,e)}getChild(e,n=null,r=null){let i=QF(this,e,n,r);return i.length?i[0]:null}getChildren(e,n=null,r=null){return QF(this,e,n,r)}resolve(e,n=0){return I_(this,e,n,!1)}resolveInner(e,n=0){return I_(this,e,n,!0)}matchContext(e){return Yw(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}let ud=class rS extends V9{constructor(e,n,r,i){super(),this._tree=e,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,r,i,a=0){for(let s=this;;){for(let{children:o,positions:c}=s._tree,d=n>0?o.length:-1;e!=d;e+=n){let f=o[e],p=c[e]+s.from;if(H9(i,r,p,p+f.length)){if(f instanceof cd){if(a&Li.ExcludeBuffers)continue;let m=f.findChild(0,f.buffer.length,n,r-p,i);if(m>-1)return new Zu(new ghe(s,f,e,p),null,m)}else if(a&Li.IncludeAnonymous||!f.type.isAnonymous||UL(f)){let m;if(!(a&Li.IgnoreMounts)&&(m=WS.get(f))&&!m.overlay)return new rS(m.tree,p,e,s);let g=new rS(f,p,e,s);return a&Li.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?f.children.length-1:0,n,r,i)}}}if(a&Li.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+n:e=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let i;if(!(r&Li.IgnoreOverlays)&&(i=WS.get(this._tree))&&i.overlay){let a=e-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s<a)&&(n<0?o>=a:o>a))return new rS(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function QF(t,e,n,r){let i=t.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(e)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function Yw(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class ghe{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i}}class Zu extends V9{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return a<0?null:new Zu(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&Li.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return a<0?null:new Zu(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Zu(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Zu(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];e.push(r.slice(i,a,s)),n.push(0)}return new si(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function W9(t){if(!t.length)return null;let e=0,n=t[0];for(let a=1;a<t.length;a++){let s=t[a];(s.from>n.from||s.to<n.to)&&(n=s,e=a)}let r=n instanceof ud&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new _he(i,n)}class _he{constructor(e,n){this.heads=e,this.node=n}get next(){return W9(this.heads)}}function bhe(t,e,n){let r=t.resolveInner(e,n),i=null;for(let a=r instanceof ud?r:r.context.parent;a;a=a.parent)if(a.index<0){let s=a.parent;(i||(i=[r])).push(s.resolve(e,n)),a=s}else{let s=WS.get(a.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let o=new ud(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(I_(o,e,n,!1))}}return i?W9(i):r}class Hw{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ud)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],!0}yield(e){return e?e instanceof ud?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&Li.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Li.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Li.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let a=0;a<this.index;a++)if(i.buffer.buffer[a+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let a=n+e,s=e<0?-1:r._tree.children.length;a!=s;a+=e){let o=r._tree.children[a];if(this.mode&Li.IncludeAnonymous||o instanceof cd||!o.type.isAnonymous||UL(o))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,r=0;if(e&&e.context==this.buffer)e:for(let i=this.index,a=this.stack.length;a>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i<this.stack.length;i++)n=new Zu(this.buffer,n,this.stack[i]);return this.bufferNode=new Zu(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(e){if(!this.buffer)return Yw(this.node.parent,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=e.length-1,a=this.stack.length-1;i>=0;a--){if(a<0)return Yw(this._tree,e,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function UL(t){return t.children.some(e=>e instanceof cd||!e.type.isAnonymous||UL(e))}function vhe(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=Y9,reused:a=[],minRepeatType:s=r.types.length}=t,o=Array.isArray(n)?new FL(n,n.length):n,c=r.types,d=0,f=0;function p(T,N,w,D,L,k){let{id:M,start:P,end:V,size:Y}=o,G=f,F=d;for(;Y<0;)if(o.next(),Y==-1){let Q=a[M];w.push(Q),D.push(P-T);return}else if(Y==-3){d=M;return}else if(Y==-4){f=M;return}else throw new RangeError(`Unrecognized record size: ${Y}`);let q=c[M],z,H,U=P-T;if(V-P<=i&&(H=y(o.pos-N,L))){let Q=new Uint16Array(H.size-H.skip),X=o.pos-H.size,te=Q.length;for(;o.pos>X;)te=E(H.start,Q,te);z=new cd(Q,V-H.start,r),U=H.start-T}else{let Q=o.pos-Y;o.next();let X=[],te=[],ie=M>=s?M:-1,fe=0,Ce=V;for(;o.pos>Q;)ie>=0&&o.id==ie&&o.size>=0?(o.end<=Ce-i&&(b(X,te,P,fe,o.end,Ce,ie,G,F),fe=X.length,Ce=o.end),o.next()):k>2500?m(P,Q,X,te):p(P,Q,X,te,ie,k+1);if(ie>=0&&fe>0&&fe<X.length&&b(X,te,P,fe,P,Ce,ie,G,F),X.reverse(),te.reverse(),ie>-1&&fe>0){let Re=g(q,F);z=jL(q,X,te,0,X.length,0,V-P,Re,Re)}else z=S(q,X,te,V-P,G-V,F)}w.push(z),D.push(U)}function m(T,N,w,D){let L=[],k=0,M=-1;for(;o.pos>N;){let{id:P,start:V,end:Y,size:G}=o;if(G>4)o.next();else{if(M>-1&&V<M)break;M<0&&(M=Y-i),L.push(P,V,Y),k++,o.next()}}if(k){let P=new Uint16Array(k*4),V=L[L.length-2];for(let Y=L.length-3,G=0;Y>=0;Y-=3)P[G++]=L[Y],P[G++]=L[Y+1]-V,P[G++]=L[Y+2]-V,P[G++]=G;w.push(new cd(P,L[2]-V,r)),D.push(V-T)}}function g(T,N){return(w,D,L)=>{let k=0,M=w.length-1,P,V;if(M>=0&&(P=w[M])instanceof si){if(!M&&P.type==T&&P.length==L)return P;(V=P.prop(nn.lookAhead))&&(k=D[M]+P.length+V)}return S(T,w,D,L,k,N)}}function b(T,N,w,D,L,k,M,P,V){let Y=[],G=[];for(;T.length>D;)Y.push(T.pop()),G.push(N.pop()+w-L);T.push(S(r.types[M],Y,G,k-L,P-k,V)),N.push(L-w)}function S(T,N,w,D,L,k,M){if(k){let P=[nn.contextHash,k];M=M?[P].concat(M):[P]}if(L>25){let P=[nn.lookAhead,L];M=M?[P].concat(M):[P]}return new si(T,N,w,D,M)}function y(T,N){let w=o.fork(),D=0,L=0,k=0,M=w.end-i,P={size:0,start:0,skip:0};e:for(let V=w.pos-T;w.pos>V;){let Y=w.size;if(w.id==N&&Y>=0){P.size=D,P.start=L,P.skip=k,k+=4,D+=4,w.next();continue}let G=w.pos-Y;if(Y<0||G<V||w.start<M)break;let F=w.id>=s?4:0,q=w.start;for(w.next();w.pos>G;){if(w.size<0)if(w.size==-3)F+=4;else break e;else w.id>=s&&(F+=4);w.next()}L=q,D+=Y,k+=F}return(N<0||D==T)&&(P.size=D,P.start=L,P.skip=k),P.size>4?P:void 0}function E(T,N,w){let{id:D,start:L,end:k,size:M}=o;if(o.next(),M>=0&&D<s){let P=w;if(M>4){let V=o.pos-(M-4);for(;o.pos>V;)w=E(T,N,w)}N[--w]=P,N[--w]=k-T,N[--w]=L-T,N[--w]=D}else M==-3?d=D:M==-4&&(f=D);return w}let x=[],C=[];for(;o.pos>0;)p(t.start||0,t.bufferStart||0,x,C,-1,0);let R=(e=t.length)!==null&&e!==void 0?e:x.length?C[0]+x[0].length:0;return new si(c[t.topID],x.reverse(),C.reverse(),R)}const KF=new WeakMap;function iS(t,e){if(!t.isAnonymous||e instanceof cd||e.type!=t)return 1;let n=KF.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof si)){n=1;break}n+=iS(t,r)}KF.set(e,n)}return n}function jL(t,e,n,r,i,a,s,o,c){let d=0;for(let b=r;b<i;b++)d+=iS(t,e[b]);let f=Math.ceil(d*1.5/8),p=[],m=[];function g(b,S,y,E,x){for(let C=y;C<E;){let R=C,T=S[C],N=iS(t,b[C]);for(C++;C<E;C++){let w=iS(t,b[C]);if(N+w>=f)break;N+=w}if(C==R+1){if(N>f){let w=b[R];g(w.children,w.positions,0,w.children.length,S[R]+x);continue}p.push(b[R])}else{let w=S[C-1]+b[C-1].length-T;p.push(jL(t,b,S,R,C,T,w,null,c))}m.push(T+x-a)}}return g(e,n,r,i,0),(o||c)(p,m,s)}class Ff{constructor(e,n,r,i,a=!1,s=!1){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let i=[new Ff(0,e.length,e,0,!1,r)];for(let a of n)a.to>e.length&&i.push(a);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],a=1,s=e.length?e[0]:null;for(let o=0,c=0,d=0;;o++){let f=o<n.length?n[o]:null,p=f?f.fromA:1e9;if(p-c>=r)for(;s&&s.from<p;){let m=s;if(c>=m.from||p<=m.to||d){let g=Math.max(m.from,c)-d,b=Math.min(m.to,p)-d;m=g>=b?null:new Ff(g,b,m.tree,m.offset+d,o>0,!!f)}if(m&&i.push(m),s.to>p)break;s=a<e.length?e[a++]:null}if(!f)break;c=f.toA,d=f.toA-f.toB}return i}}let Q9=class{startParse(e,n,r){return typeof e=="string"&&(e=new She(e)),r=r?r.length?r.map(i=>new eO(i.from,i.to)):[new eO(0,0)]:[new eO(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let a=i.advance();if(a)return a}}};class She{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new nn({perNode:!0});var XF={};let Ehe=class Vw{constructor(e,n,r,i,a,s,o,c,d,f=0,p){this.p=e,this.stack=n,this.state=r,this.reducePos=i,this.pos=a,this.score=s,this.buffer=o,this.bufferBase=c,this.curContext=d,this.lookAhead=f,this.parent=p}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let i=e.parser.context;return new Vw(e,[],n,r,r,0,[],0,i?new ZF(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,i=e&65535,{parser:a}=this.p,s=this.reducePos<this.pos-25;s&&this.setLookAhead(this.pos);let o=a.dynamicPrecedence(i);if(o&&(this.score+=o),r==0){this.pushState(a.getGoto(this.state,i,!0),this.reducePos),i<a.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(i,this.reducePos);return}let c=this.stack.length-(r-1)*3-(e&262144?6:0),d=c?this.stack[c-2]:this.p.ranges[0].from,f=this.reducePos-d;f>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(d==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=f):this.p.lastBigReductionSize<f&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=d,this.p.lastBigReductionSize=f));let p=c?this.stack[c-1]:0,m=this.bufferBase+this.buffer.length-p;if(i<a.minRepeatTerm||e&131072){let g=a.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,d,g,m+4,!0)}if(e&262144)this.state=this.stack[c];else{let g=this.stack[c-3];this.state=a.getGoto(g,i,!0)}for(;this.stack.length>c;)this.stack.pop();this.reduceContext(i,d)}storeNode(e,n,r,i=4,a=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,o=this.buffer.length;if(o==0&&s.parent&&(o=s.bufferBase-s.parent.bufferBase,s=s.parent),o>0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(e,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let o=!1;for(let c=s;c>0&&this.buffer[c-2]>r;c-=4)if(this.buffer[c-1]>=0){o=!0;break}if(o)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=e,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(e,n,r,i){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let a=e,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}else this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4)}apply(e,n,r,i){e&65536?this.reduce(e):this.shift(e,n,r,i)}useNode(e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),i=e.bufferBase+n;for(;e&&i==e.bufferBase;)e=e.parent;return new Vw(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new yhe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;a<n.length;a+=2)(s=n[a+1])!=this.state&&this.p.parser.hasAction(s,e)&&i.push(n[a],s);if(this.stack.length<120)for(let a=0;i.length<8&&a<n.length;a+=2){let s=n[a+1];i.some((o,c)=>c&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let a=n[i+1];if(a==this.state)continue;let s=this.split();s.pushState(a,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(n[i],this.pos),s.reducePos=this.pos,s.score-=200,r.push(s)}return r}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!e.validAction(this.state,n)){let r=n>>19,i=n&65535,a=this.stack.length-r*3;if(a<0||e.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),e.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let c=s&65535,d=this.stack.length-o*3;if(d>=0&&e.getGoto(this.stack[d],c,!1)>=0)return o<<19|65536|c}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new ZF(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class ZF{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class yhe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class QS{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new QS(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new QS(this.stack,this.pos,this.index)}}function sv(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,i=0;r<t.length;){let a=0;for(;;){let s=t.charCodeAt(r++),o=!1;if(s==126){a=65535;break}s>=92&&s--,s>=34&&s--;let c=s-32;if(c>=46&&(c-=46,o=!0),a+=c,o)break;a*=46}n?n[i++]=a:n=new e(a)}return n}class aS{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const JF=new aS;class The{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=JF,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,i=this.rangeIndex,a=this.pos+e;for(;a<r.from;){if(!i)return null;let s=this.ranges[--i];a-=r.from-s.to,r=s}for(;n<0?a>r.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+e,i=this.chunk.charCodeAt(n);else{let a=this.resolveOffset(e,1);if(a==null)return-1;if(r=a,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let s=this.rangeIndex,o=this.range;for(;o.to<=r;)o=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>o.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=JF,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,n)))}return r}}class lp{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;xhe(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}lp.prototype.contextual=lp.prototype.fallback=lp.prototype.extend=!1;lp.prototype.fallback=lp.prototype.extend=!1;function xhe(t,e,n,r,i,a){let s=0,o=1<<r,{dialect:c}=n.p.parser;e:for(;(o&t[s])!=0;){let d=t[s+1];for(let g=s+3;g<d;g+=2)if((t[g+1]&o)>0){let b=t[g];if(c.allows(b)&&(e.token.value==-1||e.token.value==b||Che(b,e.token.value,i,a))){e.acceptToken(b);break}}let f=e.next,p=0,m=t[s+2];if(e.next<0&&m>p&&t[d+m*3-3]==65535){s=t[d+m*3-1];continue e}for(;p<m;){let g=p+m>>1,b=d+g+(g<<1),S=t[b],y=t[b+1]||65536;if(f<S)m=g;else if(f>=y)p=g+1;else{s=t[b+2],e.advance();continue e}}break}}function eU(t,e,n){for(let r=e,i;(i=t[r])!=65535;r++)if(i==n)return r-e;return-1}function Che(t,e,n,r){let i=eU(n,r,e);return i<0||eU(n,r,t)<i}const _s=typeof process<"u"&&XF&&/\bparse\b/.test(XF.LOG);let tO=null;function tU(t,e,n){let r=t.cursor(Li.IncludeAnonymous);for(r.moveTo(e);;)if(!(n<0?r.childBefore(e):r.childAfter(e)))for(;;){if((n<0?r.to<e:r.from>e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class Ohe{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?tU(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?tU(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let a=r.children[i],s=this.start[n]+r.positions[i];if(s>e)return this.nextStart=s,null;if(a instanceof si){if(s==e){if(s<this.safeFrom)return null;let o=s+a.length;if(o<=this.safeTo){let c=a.prop(nn.lookAhead);if(!c||o+c<this.fragment.to)return a}}this.index[n]++,s+a.length>=Math.max(this.safeFrom,e)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class Rhe{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new aS)}getActions(e){let n=0,r=null,{parser:i}=e.p,{tokenizers:a}=i,s=i.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,c=0;for(let d=0;d<a.length;d++){if((1<<d&s)==0)continue;let f=a[d],p=this.tokens[d];if(!(r&&!f.fallback)&&((f.contextual||p.start!=e.pos||p.mask!=s||p.context!=o)&&(this.updateCachedToken(p,f,e),p.mask=s,p.context=o),p.lookAhead>p.end+25&&(c=Math.max(p.lookAhead,c)),p.value!=0)){let m=n;if(p.extended>-1&&(n=this.addActions(e,p.extended,p.end,n)),n=this.addActions(e,p.value,p.end,n),!f.extend&&(r=p,n>m))break}}for(;this.actions.length>n;)this.actions.pop();return c&&e.setLookAhead(c),!r&&e.pos==this.stream.end&&(r=new aS,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new aS,{pos:r,p:i}=e;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(e,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,e),r),e.value>-1){let{parser:a}=r.p;for(let s=0;s<a.specialized.length;s++)if(a.specialized[s]==e.value){let o=a.specializers[s](this.stream.read(e.start,e.end),r);if(o>=0&&r.p.parser.dialect.allows(o>>1)){(o&1)==0?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,n,r,i){for(let a=0;a<i;a+=3)if(this.actions[a]==e)return i;return this.actions[i++]=e,this.actions[i++]=n,this.actions[i++]=r,i}addActions(e,n,r,i){let{state:a}=e,{parser:s}=e.p,{data:o}=s;for(let c=0;c<2;c++)for(let d=s.stateSlot(a,c?2:1);;d+=3){if(o[d]==65535)if(o[d+1]==1)d=xc(o,d+2);else{i==0&&o[d+1]==2&&(i=this.putAction(xc(o,d+2),n,r,i));break}o[d]==n&&(i=this.putAction(xc(o,d+1),n,r,i))}return i}}class Nhe{constructor(e,n,r,i){this.parser=e,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new The(n,i),this.tokens=new Rhe(e,this.stream),this.topTerm=e.top[1];let{from:a}=i[0];this.stacks=[Ehe.start(this,e.top[0],a)],this.fragments=r.length&&this.stream.end-a>e.bufferLength*4?new Ohe(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<e.length;s++){let o=e[s];for(;;){if(this.tokens.mainToken=null,o.pos>n)r.push(o);else{if(this.advanceStack(o,r,e))continue;{i||(i=[],a=[]),i.push(o);let c=this.tokens.getMainToken(o);a.push(c.value,c.end)}}break}}if(!r.length){let s=i&&whe(i);if(s)return _s&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw _s&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return _s&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,c)=>c.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s<r.length-1;s++){let o=r[s];for(let c=s+1;c<r.length;c++){let d=r[c];if(o.sameState(d)||o.buffer.length>500&&d.buffer.length>500)if((o.score-d.score||o.buffer.length-d.buffer.length)>0)r.splice(c--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s<r.length;s++)r[s].pos<this.minStackPos&&(this.minStackPos=r[s].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,r){let i=e.pos,{parser:a}=this,s=_s?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let d=e.curContext&&e.curContext.tracker.strict,f=d?e.curContext.hash:0;for(let p=this.fragments.nodeAt(i);p;){let m=this.parser.nodeSet.types[p.type.id]==p.type?a.getGoto(e.state,p.type.id):-1;if(m>-1&&p.length&&(!d||(p.prop(nn.contextHash)||0)==f))return e.useNode(p,m),_s&&console.log(s+this.stackID(e)+` (via reuse of ${a.getName(p.type.id)})`),!0;if(!(p instanceof si)||p.children.length==0||p.positions[0]>0)break;let g=p.children[0];if(g instanceof si&&p.positions[0]==0)p=g;else break}}let o=a.stateSlot(e.state,4);if(o>0)return e.reduce(o),_s&&console.log(s+this.stackID(e)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let d=0;d<c.length;){let f=c[d++],p=c[d++],m=c[d++],g=d==c.length||!r,b=g?e:e.split(),S=this.tokens.mainToken;if(b.apply(f,p,S?S.start:b.pos,m),_s&&console.log(s+this.stackID(b)+` (via ${(f&65536)==0?"shift":`reduce of ${a.getName(f&65535)}`} for ${a.getName(p)} @ ${i}${b==e?"":", split"})`),g)return!0;b.pos>i?n.push(b):r.push(b)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return nU(e,n),!0}}runRecovery(e,n,r){let i=null,a=!1;for(let s=0;s<e.length;s++){let o=e[s],c=n[s<<1],d=n[(s<<1)+1],f=_s?this.stackID(o)+" -> ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),_s&&console.log(f+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let p=o.split(),m=f;for(let g=0;p.forceReduce()&&g<10&&(_s&&console.log(m+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,r));g++)_s&&(m=this.stackID(p)+" -> ");for(let g of o.recoverByInsert(c))_s&&console.log(f+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(d==o.pos&&(d++,c=0),o.recoverByDelete(c,d),_s&&console.log(f+this.stackID(o)+` (via recover-delete ${this.parser.getName(c)})`),nU(o,r)):(!i||i.score<o.score)&&(i=o)}return i}stackToTree(e){return e.close(),si.build({buffer:QS.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(tO||(tO=new WeakMap)).get(e);return n||tO.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function nU(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class Ahe{constructor(e,n,r){this.source=e,this.flags=n,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}class KS extends Q9{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;o<e.repeatNodeCount;o++)n.push("");let r=Object.keys(e.topRules).map(o=>e.topRules[o][1]),i=[];for(let o=0;o<n.length;o++)i.push([]);function a(o,c,d){i[o].push([c,c.deserialize(String(d))])}if(e.nodeProps)for(let o of e.nodeProps){let c=o[0];typeof c=="string"&&(c=nn[c]);for(let d=1;d<o.length;){let f=o[d++];if(f>=0)a(f,c,o[d++]);else{let p=o[d+-f];for(let m=-f;m>0;m--)a(o[d++],c,p);d++}}}this.nodeSet=new BL(n.map((o,c)=>ls.define({name:c>=this.minRepeatTerm?void 0:o,id:c,props:i[c],top:r.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Y9;let s=sv(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;o<this.specializerSpecs.length;o++)this.specialized[o]=this.specializerSpecs[o].term;this.specializers=this.specializerSpecs.map(rU),this.states=sv(e.states,Uint32Array),this.data=sv(e.stateData),this.goto=sv(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(o=>typeof o=="number"?new lp(s,o):o),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let i=new Nhe(this,e,n,r);for(let a of this.wrappers)i=a(i,e,n,r);return i}getGoto(e,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,c=i[a++];if(o&&r)return c;for(let d=a+(s>>1);a<d;a++)if(i[a]==e)return c;if(o)return-1}}hasAction(e,n){let r=this.data;for(let i=0;i<2;i++)for(let a=this.stateSlot(e,i?2:1),s;;a+=3){if((s=r[a])==65535)if(r[a+1]==1)s=r[a=xc(r,a+2)];else{if(r[a+1]==2)return xc(r,a+2);break}if(s==n||s==0)return xc(r,a+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),i=r?n(r):void 0;for(let a=this.stateSlot(e,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=xc(this.data,a+2);else break;i=n(xc(this.data,a+1))}return i}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=xc(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(e){let n=Object.assign(Object.create(KS.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=e.tokenizers.find(a=>a.from==r);return i?i.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=e.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=rU(s),s})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let a of e.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;a<n.length;a++)if(!r[a])for(let s=this.dialects[n[a]],o;(o=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[o]=1;return new Ahe(e,r,i)}static deserialize(e){return new KS(e)}}function xc(t,e){return t[e]|t[e+1]<<16}function whe(t){let e=null;for(let n of t){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function rU(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}let Dhe=0;class Js{constructor(e,n,r,i){this.name=e,this.set=n,this.base=r,this.modified=i,this.id=Dhe++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let r=typeof e=="string"?e:"?";if(e instanceof Js&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new Js(r,[],null,[]);if(i.set.push(i),n)for(let a of n.set)i.set.push(a);return i}static defineModifier(e){let n=new XS(e);return r=>r.modified.indexOf(n)>-1?r:XS.get(r.base||r,r.modified.concat(n).sort((i,a)=>i.id-a.id))}}let Ihe=0;class XS{constructor(e){this.name=e,this.instances=[],this.id=Ihe++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(o=>o.base==e&&Mhe(n,o.modified));if(r)return r;let i=[],a=new Js(e.name,i,e,n);for(let o of n)o.instances.push(a);let s=Lhe(n);for(let o of e.set)if(!o.modified.length)for(let c of s)i.push(XS.get(o,c));return a}}function Mhe(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function Lhe(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((n,r)=>r.length-n.length)}function K9(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let p=0;;){if(o=="..."&&p>0&&p+3==i.length){s=1;break}let m=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!m)throw new RangeError("Invalid path: "+i);if(a.push(m[0]=="*"?"":m[0][0]=='"'?JSON.parse(m[0]):m[0]),p+=m[0].length,p==i.length)break;let g=i[p++];if(p==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(p)}let c=a.length-1,d=a[c];if(!d)throw new RangeError("Invalid path: "+i);let f=new ZS(r,s,c>0?a.slice(0,c):null);e[d]=f.sort(e[d])}}return X9.add(e)}const X9=new nn;class ZS{constructor(e,n,r,i){this.tags=e,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}ZS.empty=new ZS([],2,null);function Z9(t,e){let n=Object.create(null);for(let a of t)if(!Array.isArray(a.tag))n[a.tag.id]=a.class;else for(let s of a.tag)n[s.id]=a.class;let{scope:r,all:i=null}=e||{};return{style:a=>{let s=i;for(let o of a)for(let c of o.set){let d=n[c.id];if(d){s=s?s+" "+d:d;break}}return s},scope:r}}function khe(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i)}return n}function Phe(t,e,n,r=0,i=t.length){let a=new Bhe(r,Array.isArray(e)?e:[e],n);a.highlightRange(t.cursor(),r,i,"",a.highlighters),a.flush(i)}class Bhe{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,i,a){let{type:s,from:o,to:c}=e;if(o>=r||c<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let d=i,f=Fhe(e)||ZS.empty,p=khe(a,f.tags);if(p&&(d&&(d+=" "),d+=p,f.mode==1&&(i+=(i?" ":"")+p)),this.startSpan(Math.max(n,o),d),f.opaque)return;let m=e.tree&&e.tree.prop(nn.mounted);if(m&&m.overlay){let g=e.node.enter(m.overlay[0].from+o,1),b=this.highlighters.filter(y=>!y.scope||y.scope(m.tree.type)),S=e.firstChild();for(let y=0,E=o;;y++){let x=y<m.overlay.length?m.overlay[y]:null,C=x?x.from+o:c,R=Math.max(n,E),T=Math.min(r,C);if(R<T&&S)for(;e.from<T&&(this.highlightRange(e,R,T,i,a),this.startSpan(Math.min(T,e.to),d),!(e.to>=C||!e.nextSibling())););if(!x||C>r)break;E=x.to+o,E>n&&(this.highlightRange(g.cursor(),Math.max(n,x.from+o),Math.min(r,E),"",b),this.startSpan(Math.min(r,E),d))}S&&e.parent()}else if(e.firstChild()){m&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,a),this.startSpan(Math.min(r,e.to),d)}while(e.nextSibling());e.parent()}}}function Fhe(t){let e=t.type.prop(X9);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const tt=Js.define,ov=tt(),Bu=tt(),iU=tt(Bu),aU=tt(Bu),Fu=tt(),lv=tt(Fu),nO=tt(Fu),Tl=tt(),ef=tt(Tl),vl=tt(),Sl=tt(),Ww=tt(),Ig=tt(Ww),cv=tt(),pe={comment:ov,lineComment:tt(ov),blockComment:tt(ov),docComment:tt(ov),name:Bu,variableName:tt(Bu),typeName:iU,tagName:tt(iU),propertyName:aU,attributeName:tt(aU),className:tt(Bu),labelName:tt(Bu),namespace:tt(Bu),macroName:tt(Bu),literal:Fu,string:lv,docString:tt(lv),character:tt(lv),attributeValue:tt(lv),number:nO,integer:tt(nO),float:tt(nO),bool:tt(Fu),regexp:tt(Fu),escape:tt(Fu),color:tt(Fu),url:tt(Fu),keyword:vl,self:tt(vl),null:tt(vl),atom:tt(vl),unit:tt(vl),modifier:tt(vl),operatorKeyword:tt(vl),controlKeyword:tt(vl),definitionKeyword:tt(vl),moduleKeyword:tt(vl),operator:Sl,derefOperator:tt(Sl),arithmeticOperator:tt(Sl),logicOperator:tt(Sl),bitwiseOperator:tt(Sl),compareOperator:tt(Sl),updateOperator:tt(Sl),definitionOperator:tt(Sl),typeOperator:tt(Sl),controlOperator:tt(Sl),punctuation:Ww,separator:tt(Ww),bracket:Ig,angleBracket:tt(Ig),squareBracket:tt(Ig),paren:tt(Ig),brace:tt(Ig),content:Tl,heading:ef,heading1:tt(ef),heading2:tt(ef),heading3:tt(ef),heading4:tt(ef),heading5:tt(ef),heading6:tt(ef),contentSeparator:tt(Tl),list:tt(Tl),quote:tt(Tl),emphasis:tt(Tl),strong:tt(Tl),link:tt(Tl),monospace:tt(Tl),strikethrough:tt(Tl),inserted:tt(),deleted:tt(),changed:tt(),invalid:tt(),meta:cv,documentMeta:tt(cv),annotation:tt(cv),processingInstruction:tt(cv),definition:Js.defineModifier("definition"),constant:Js.defineModifier("constant"),function:Js.defineModifier("function"),standard:Js.defineModifier("standard"),local:Js.defineModifier("local"),special:Js.defineModifier("special")};for(let t in pe){let e=pe[t];e instanceof Js&&(e.name=t)}Z9([{tag:pe.link,class:"tok-link"},{tag:pe.heading,class:"tok-heading"},{tag:pe.emphasis,class:"tok-emphasis"},{tag:pe.strong,class:"tok-strong"},{tag:pe.keyword,class:"tok-keyword"},{tag:pe.atom,class:"tok-atom"},{tag:pe.bool,class:"tok-bool"},{tag:pe.url,class:"tok-url"},{tag:pe.labelName,class:"tok-labelName"},{tag:pe.inserted,class:"tok-inserted"},{tag:pe.deleted,class:"tok-deleted"},{tag:pe.literal,class:"tok-literal"},{tag:pe.string,class:"tok-string"},{tag:pe.number,class:"tok-number"},{tag:[pe.regexp,pe.escape,pe.special(pe.string)],class:"tok-string2"},{tag:pe.variableName,class:"tok-variableName"},{tag:pe.local(pe.variableName),class:"tok-variableName tok-local"},{tag:pe.definition(pe.variableName),class:"tok-variableName tok-definition"},{tag:pe.special(pe.variableName),class:"tok-variableName2"},{tag:pe.definition(pe.propertyName),class:"tok-propertyName tok-definition"},{tag:pe.typeName,class:"tok-typeName"},{tag:pe.namespace,class:"tok-namespace"},{tag:pe.className,class:"tok-className"},{tag:pe.macroName,class:"tok-macroName"},{tag:pe.propertyName,class:"tok-propertyName"},{tag:pe.operator,class:"tok-operator"},{tag:pe.comment,class:"tok-comment"},{tag:pe.meta,class:"tok-meta"},{tag:pe.invalid,class:"tok-invalid"},{tag:pe.punctuation,class:"tok-punctuation"}]);const Uhe=158,jhe=159,Ghe=1,qhe=2,$he=3,zhe=4,Yhe=5,Hhe=6,Vhe=7,Whe=8,Qhe=9,Khe=10,Xhe=11,Zhe=12,Jhe=13,epe=14,tpe=15,npe=16,rpe=17,ipe=18,ape=19,spe=20,ope=21,lpe=22,cpe=23,upe=24,dpe=25,fpe=26,hpe=27,ppe=28,mpe={inf:Uhe,nan:jhe,bool:Ghe,ignoring:qhe,on:$he,group_left:zhe,group_right:Yhe,offset:Hhe},sU=(t,e)=>mpe[t.toLowerCase()]||-1,gpe={avg:Whe,atan2:Vhe,bottomk:Qhe,count:Khe,count_values:Xhe,group:Zhe,max:Jhe,min:epe,quantile:tpe,limitk:npe,limit_ratio:rpe,stddev:ipe,stdvar:ape,sum:spe,topk:ope,by:lpe,without:cpe,and:upe,or:dpe,unless:fpe,start:hpe,end:ppe},oU=(t,e)=>gpe[t.toLowerCase()]||-1,_pe=K9({LineComment:pe.comment,LabelName:pe.labelName,StringLiteral:pe.string,NumberDurationLiteral:pe.number,NumberDurationLiteralInDurationContext:pe.number,Identifier:pe.variableName,"Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":pe.function(pe.variableName),"Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk":pe.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End":pe.modifier,"And Unless Or":pe.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":pe.operator,UnaryOp:pe.arithmeticOperator,"( )":pe.paren,"[ ]":pe.squareBracket,"{ }":pe.brace,"⚠":pe.invalid}),bpe={__proto__:null,absent_over_time:335,absent:337,abs:339,acos:341,acosh:343,asin:345,asinh:347,atan:349,atanh:351,avg_over_time:353,ceil:355,changes:357,clamp:359,clamp_max:361,clamp_min:363,cos:365,cosh:367,count_over_time:369,days_in_month:371,day_of_month:373,day_of_week:375,day_of_year:377,deg:379,delta:381,deriv:383,exp:385,floor:387,histogram_count:389,histogram_fraction:391,histogram_quantile:393,histogram_stddev:395,histogram_stdvar:397,histogram_sum:399,histogram_avg:401,double_exponential_smoothing:403,hour:405,idelta:407,increase:409,info:411,irate:413,label_replace:415,label_join:417,last_over_time:419,ln:421,log10:423,log2:425,mad_over_time:427,max_over_time:429,min_over_time:431,minute:433,month:435,pi:437,predict_linear:439,present_over_time:441,quantile_over_time:443,rad:445,rate:447,resets:449,round:451,scalar:453,sgn:455,sin:457,sinh:459,sort:461,sort_desc:463,sort_by_label:465,sort_by_label_desc:467,sqrt:469,stddev_over_time:471,stdvar_over_time:473,sum_over_time:475,tan:477,tanh:479,timestamp:481,time:483,vector:485,year:487},vpe=KS.deserialize({version:14,states:"9bOYQPOOO'tQPOOOOQO'#C|'#C|O'yQPO'#C{Q(UQQOOOOQO'#De'#DeO(PQPO'#DdOOQO'#FY'#FYO)cQPO'#F_OYQPO'#F[OYQPO'#F^O0WQSO'#FaO0cQQO'#F`OOQO'#F`'#F`OOQO'#Ft'#FtOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsOOQO'#Et'#EtOOQO'#Eu'#EuOOQO'#Ev'#EvOOQO'#Ew'#EwOOQO'#Ex'#ExOOQO'#Ey'#EyOOQO'#Ez'#EzOOQO'#E{'#E{OOQO'#E|'#E|OOQO'#E}'#E}OOQO'#FO'#FOOOQO'#FP'#FPOOQO'#FQ'#FQOOQO'#FR'#FROOQO'#FS'#FSOOQO'#FT'#FTOOQO'#FU'#FUOOQO'#FV'#FVQOQPOOO1|QPO'#C}O2RQPO'#DSO(PQPO,59gO2YQQO,59gO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO:kQPO,5;rO:kQPO,5;uO:|QPO,5<SOOQO,5:O,5:OOOQO,5;t,5;tO;eQQO,5;vO;lQQO,5;xOOQO'#DQ'#DQO=SQPO'#FbO=bQPO,5;{OOQO,5;{,5;{O=nQPO,5;{OOQO,5;z,5;zO=vQSO'#DOOOQO,59i,59iOOQO,59n,59nO>RQQO,59nOOQO1G/R1G/ROOQO'#DV'#DVO1|QPO'#DWOOQO'#Fx'#FxO>]QPO'#FxOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOOQO'#FX'#FXOD}QPO'#FXOEYQSO1G1^OOQO1G1a1G1aOEbQPO'#FYOOQO'#Fj'#FjOOQO1G1n1G1nOEmQPO1G1nOOQO1G1b1G1bOOQO'#Fc'#FcOErQPO,5;|OEwQPO,5<ROE|QSO1G1gOFXQPO1G1gOOQO1G1g1G1gOOQO,59j,59jOFaQPO,59jOYQPO'#FmOFiQPO1G/YOOQO1G/Y1G/YOFqQPO,59rOOQO,5<d,5<dONmQQO7+$uON}QQO7+$uO!!cQQO7+$uO!!yQQO7+$uO!$bQQO7+$uOOQO,5;s,5;sOOQO7+&x7+&xO!${QPO7+&}O!%SQPO7+'YOOQO1G1h1G1hOOQO1G1m1G1mO!%XQPO,5<YOOQO,5<Y,5<YOOQO7+'R7+'RO!%mQSO7+'ROOQO-E9l-E9lO!%xQSO1G/UO!&TQPO1G/UOOQO1G/U1G/UO!&]QQO,5<XOOQO-E9k-E9kOOQO7+$t7+$tO!&gQPO1G/^OOQO<<Ji<<JiO!-RQPO<<JiOOQO<<Jt<<JtOOQO<<Jm<<JmP!-WQSO'#FnOOQO,5<W,5<WOOQO7+$p7+$pO!-`QSO7+$pOOQO-E9j-E9jOOQO7+$x7+$xOOQOAN@TAN@TOOQO<<H[<<H[P!-kQSO'#Fl",stateData:"!-s~O$gOSmOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQOdQOeQOu^O!Z[O$dVO$eVO$iXO$m_O$n`O$oaO$pbO$qcO$rdO$seO$tfO$ugO$vhO$wiO$xjO$ykO$zlO${mO$|nO$}oO%OpO%PqO%QrO%RsO%StO%TuO%UvO%VwO%WxO%XyO%YzO%Z{O%[|O%]}O%^!OO%_!PO%`!QO%a!RO%b!SO%c!TO%d!UO%e!VO%f!WO%g!XO%h!YO%i!ZO%j![O%k!]O%l!^O%m!_O%n!`O%o!aO%p!bO%q!cO%r!dO%s!eO%t!fO%u!gO%v!hO%w!iO%x!jO%y!kO%z!lO%{!mO%|!nO%}!oO&O!pO&P!qO&Q!rO&R!sO&S!tO&T!uO&U!vO&V!wO&W!xO&X!yO&Y!zO&Z!{O&[!|O&]!}O&_WO&`WO&aVO&dZO~O!Z#OO~Of#POg#PO$i#QO~OU#ZOV#TOh#WOi#XOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO$]#[O&^#YO~O$d#^O$e#^O&a#^OW$RXX$RXY$RXZ$RX[$RX]$RX^$RX_$RX`$RXa$RXb$RXc$RXd$RXe$RXu$RX!Z$RX$d$RX$e$RX$i$RX$m$RX$n$RX$o$RX$p$RX$q$RX$r$RX$s$RX$t$RX$u$RX$v$RX$w$RX$x$RX$y$RX$z$RX${$RX$|$RX$}$RX%O$RX%P$RX%Q$RX%R$RX%S$RX%T$RX%U$RX%V$RX%W$RX%X$RX%Y$RX%Z$RX%[$RX%]$RX%^$RX%_$RX%`$RX%a$RX%b$RX%c$RX%d$RX%e$RX%f$RX%g$RX%h$RX%i$RX%j$RX%k$RX%l$RX%m$RX%n$RX%o$RX%p$RX%q$RX%r$RX%s$RX%t$RX%u$RX%v$RX%w$RX%x$RX%y$RX%z$RX%{$RX%|$RX%}$RX&O$RX&P$RX&Q$RX&R$RX&S$RX&T$RX&U$RX&V$RX&W$RX&X$RX&Y$RX&Z$RX&[$RX&]$RX&_$RX&`$RX&a$RX&d$RX~Os#bOu#aO&e#dO~O&dZOU$SXV$SXh$SXi$SXj$SXx$SX{$SX|$SX}$SX!O$SX!P$SX!Q$SX!R$SX!S$SX!T$SX!U$SX!V$SX$]$SX$c$SX&^$SX$k$SX$j$SX~O$i#gO~O$k#iO~PYOf#POg#POUoaVoahoaioajoaxoa{oa|oa}oa!Ooa!Poa!Qoa!Roa!Soa!Toa!Uoa!Voa$]oa$coa&^oa$koa$joa~OP#lOQ#mOR#mOW$lPX$lPY$lPZ$lP[$lP]$lP^$lP_$lP`$lPa$lPb$lPc$lPd$lPe$lPu$lP!Z$lP$d$lP$e$lP$i$lP$m$lP$n$lP$o$lP$p$lP$q$lP$r$lP$s$lP$t$lP$u$lP$v$lP$w$lP$x$lP$y$lP$z$lP${$lP$|$lP$}$lP%O$lP%P$lP%Q$lP%R$lP%S$lP%T$lP%U$lP%V$lP%W$lP%X$lP%Y$lP%Z$lP%[$lP%]$lP%^$lP%_$lP%`$lP%a$lP%b$lP%c$lP%d$lP%e$lP%f$lP%g$lP%h$lP%i$lP%j$lP%k$lP%l$lP%m$lP%n$lP%o$lP%p$lP%q$lP%r$lP%s$lP%t$lP%u$lP%v$lP%w$lP%x$lP%y$lP%z$lP%{$lP%|$lP%}$lP&O$lP&P$lP&Q$lP&R$lP&S$lP&T$lP&U$lP&V$lP&W$lP&X$lP&Y$lP&Z$lP&[$lP&]$lP&_$lP&`$lP&a$lP&d$lP~O$d#uO$e#uO&_#vO&`#vO&a#uO~Ok#zOl#zO$dVO$eVO&_#yO&`#yO&aVO~O$k#}O~P(UOx#TOU$QaV$Qah$Qai$Qaj$Qa{$Qa|$Qa}$Qa!O$Qa!P$Qa!Q$Qa!R$Qa!S$Qa!T$Qa!U$Qa!V$Qa$]$Qa$c$Qa&^$Qa$k$Qa$j$Qa~O!V$OO$W$OO$X$OO$Y$OO~O!V$OO$W$OO$X$OO$Y$OO$j$RO&e$TO~Os$VOu#aO$k$UO~O$j$WO$k$YO~P(UOQ#mOR#mOW$lXX$lXY$lXZ$lX[$lX]$lX^$lX_$lX`$lXa$lXb$lXc$lXd$lXe$lXu$lX!Z$lX$d$lX$e$lX$i$lX$m$lX$n$lX$o$lX$p$lX$q$lX$r$lX$s$lX$t$lX$u$lX$v$lX$w$lX$x$lX$y$lX$z$lX${$lX$|$lX$}$lX%O$lX%P$lX%Q$lX%R$lX%S$lX%T$lX%U$lX%V$lX%W$lX%X$lX%Y$lX%Z$lX%[$lX%]$lX%^$lX%_$lX%`$lX%a$lX%b$lX%c$lX%d$lX%e$lX%f$lX%g$lX%h$lX%i$lX%j$lX%k$lX%l$lX%m$lX%n$lX%o$lX%p$lX%q$lX%r$lX%s$lX%t$lX%u$lX%v$lX%w$lX%x$lX%y$lX%z$lX%{$lX%|$lX%}$lX&O$lX&P$lX&Q$lX&R$lX&S$lX&T$lX&U$lX&V$lX&W$lX&X$lX&Y$lX&Z$lX&[$lX&]$lX&_$lX&`$lX&a$lX&d$lX~O$d$bO$e$bO&a$bO~O&b$cO&c$dO~O$d#^O$e#^O&a#^O~O$i$eO~Ou$fO~Ou$gO~Os#bOu#aO&e$jO~O$j$kO&e$jO~O$j$mO$k$oO~O$j$WO$k$rO~OS$sOT$sOWzaXzaYzaZza[za]za^za_za`zaazabzaczadzaezauza!Zza$dza$eza$iza$mza$nza$oza$pza$qza$rza$sza$tza$uza$vza$wza$xza$yza$zza${za$|za$}za%Oza%Pza%Qza%Rza%Sza%Tza%Uza%Vza%Wza%Xza%Yza%Zza%[za%]za%^za%_za%`za%aza%bza%cza%dza%eza%fza%gza%hza%iza%jza%kza%lza%mza%nza%oza%pza%qza%rza%sza%tza%uza%vza%wza%xza%yza%zza%{za%|za%}za&Oza&Pza&Qza&Rza&Sza&Tza&Uza&Vza&Wza&Xza&Yza&Zza&[za&]za&_za&`za&aza&dza~Ox#TOUwqhwqiwqjwq!Owq!Pwq!Qwq!Rwq!Swq!Twq!Uwq!Vwq$]wq$cwq&^wq$kwq$jwq~OVwq{wq|wq}wq~PMcOV#TO{#TO|#TO}#TO~PMcOV#TOx#TO{#TO|#TO}#TO!O#UO!P#UOUwqhwqiwqjwq$]wq$cwq&^wq$kwq$jwq~O!Qwq!Rwq!Swq!Twq!Uwq!Vwq~P! _O!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~P! _OV#TOh#WOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~OUwqiwq$]wq$cwq&^wq$kwq$jwq~P!#aO&b$tO~P:kO$k$vO~O!V$OO$W$OO$X$OO$Y$OO$j$ba&e$ba~Os#bOu#aO&e$wO~Os$yOu#aO$k$zO~O$j${O$k$zO~O$j$aa$k$aa~P(UO$i#gOWziXziYziZzi[zi]zi^zi_zi`ziazibziczidzieziuzi!Zzi$dzi$ezi$mzi$nzi$ozi$pzi$qzi$rzi$szi$tzi$uzi$vzi$wzi$xzi$yzi$zzi${zi$|zi$}zi%Ozi%Pzi%Qzi%Rzi%Szi%Tzi%Uzi%Vzi%Wzi%Xzi%Yzi%Zzi%[zi%]zi%^zi%_zi%`zi%azi%bzi%czi%dzi%ezi%fzi%gzi%hzi%izi%jzi%kzi%lzi%mzi%nzi%ozi%pzi%qzi%rzi%szi%tzi%uzi%vzi%wzi%xzi%yzi%zzi%{zi%|zi%}zi&Ozi&Pzi&Qzi&Rzi&Szi&Tzi&Uzi&Vzi&Wzi&Xzi&Yzi&Zzi&[zi&]zi&_zi&`zi&azi&dzi~O&b%OO~Os#bOu#aO~Os$yOu#aO$k%PO~Os$yOu#aO~O",goto:")v$mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$n$z%W%^P%gP%w$nP&Q&XPPPPPPPPPPP$n&c&oP&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o$n&{'U$n$n$n$n'e$n'q(Q(YPPP(Q$nP(aP(d(j(pPPPPP(wPPP)ge^OXY#Q#p#q#r#s#t$WeROXY#Q#p#q#r#s#t$WQ#RRR#k#SQ#h#PQ$Z#mR$}$sQ#cZQ$V#gU$h$R$k$xV$y$m${%QQ#SRQ#]UR#k#RZ#o#T#U#V#W#XY#n#T#U#V#W#XR$[#oeUOXY#Q#p#q#r#s#t$WeTOXY#Q#p#q#r#s#t$WQ#w#YQ#x#ZR$u$dd^OXY#Q#p#q#r#s#t$WR#{#[eYOXY#Q#p#q#r#s#t$Wd]OXY#Q#p#q#r#s#t$WR#f[Q#eZV$i$R$k$xQ$P#bT$Q#c$hR#|#[Q$n$VR$|$nQ$X#jR$q$XS$S#c#eR$l$SQSOQ#_XQ#`YQ#j#QQ$]#pQ$^#qQ$_#rQ$`#sQ$a#tR$p$WQ#p#TQ#q#UQ#r#VQ#s#WR#t#X",nodeNames:"⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:251,nodeProps:[["group",-12,31,37,39,54,134,136,137,138,139,140,142,150,"Expr"]],propSources:[_pe],skippedNodes:[0,29],repeatNodeCount:3,tokenData:"4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$g~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$Y~~$yWu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hOu~~%kRO;'S$t;'S;=`%t;=`O$t~%yXu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSm~OY&lZ;'S&l;'S;=`&}<%lO&l~'QP;=`<%l&l~'YO}~~'_Wu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u<%lO'Y~'zRO;'S'Y;'S;=`(T;=`O'Y~(YXu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u;=`<%l'Y<%lO'Y~(xP;=`<%l'Y~)QO$i~~)VO$k~~)[O{~R)cO&`P!OQ~)hO$j~R)oO&_P!PQ~)rP!Q![)u~)zS&a~!Q![)u!g!h*W#R#S)o#X#Y*W~*ZR{|*d}!O*d!Q![*j~*gP!Q![*j~*oQ&a~!Q![*j#R#S*d~*zO|~~+P[&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#l#m0d#m#n/u~+zZ&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#m#n/u~,pP!Q![,s~,xT&a~!O!P)o!Q![,s!g!h*W#R#S,m#X#Y*W~-^P&a~!Q![-a~-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP&a~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ&a~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO&a~~.}P&a~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P&a~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP&a~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&a~!Q![0p!c!i0p#T#Z0pV1VT&cS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$WP!_!`2d#r#s2iQ2iO!QQ~2nO$X~~2sP!S~!_!`2v~2{O!R~~3QO$]~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&^~~3rO&b~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&d~~4kO&e~",tokenizers:[0,1,2],topRules:{PromQL:[0,30],MetricName:[1,153]},specialized:[{term:57,get:(t,e)=>sU(t)<<1,external:sU},{term:57,get:(t,e)=>oU(t)<<1|1,external:oU,extend:!0},{term:57,get:t=>bpe[t]||-1}],tokenPrec:0}),Spe=3,Epe=4,ype=5,J9=9,eV=11,Tpe=15,tV=16,nV=17,rV=21,GL=24,qL=25,$L=26,xpe=30,Wy=31,Cpe=32,c_=34,M_=35,L_=36,k_=37,Uf=38,cp=39,Ope=40,iV=41,Rpe=42,Npe=43,Ape=44,wpe=45,Dpe=46,Ipe=47,Qw=48,Kw=49,Xw=50,Zw=51,Jw=52,P_=53,aV=54,Mpe=56,JS=57,Lpe=58,kpe=59,Ppe=60,Bpe=61,Fpe=62,Upe=63,jpe=64,Gpe=65,qpe=66,$pe=67,zpe=68,Ype=69,Hpe=70,Vpe=71,Wpe=72,Qpe=73,Kpe=74,Xpe=75,Zpe=76,Jpe=77,eme=78,tme=79,nme=80,rme=81,ime=82,ame=83,sme=84,ome=85,lme=86,cme=87,ume=88,dme=89,fme=90,hme=91,pme=92,mme=93,gme=94,_me=95,bme=96,vme=97,Sme=98,Eme=99,yme=100,Tme=101,xme=102,Cme=103,Ome=104,Rme=105,Nme=106,Ame=107,wme=108,Dme=109,Ime=110,Mme=111,Lme=112,kme=113,Pme=114,Bme=115,Fme=116,Ume=117,jme=118,Gme=119,qme=120,$me=121,zme=122,Yme=123,Hme=124,Vme=125,Wme=126,Qme=127,Kme=128,Xme=129,Zme=130,Jme=131,ege=132,tge=133,B_=134,eE=135,zL=136,F_=137,sV=138,$p=139,oV=140,R0=142,u_=143,vf=144,tE=145,N0=146,lV=147,cV=148,up=149,YL=150;var re;(function(t){t.none="none",t.vector="vector",t.scalar="scalar",t.matrix="matrix",t.string="string"})(re||(re={}));const nge={[kpe]:{name:"abs",argTypes:[re.vector],variadic:0,returnType:re.vector},[Lpe]:{name:"absent",argTypes:[re.vector],variadic:0,returnType:re.vector},[Mpe]:{name:"absent_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Ppe]:{name:"acos",argTypes:[re.vector],variadic:0,returnType:re.vector},[Bpe]:{name:"acosh",argTypes:[re.vector],variadic:0,returnType:re.vector},[Fpe]:{name:"asin",argTypes:[re.vector],variadic:0,returnType:re.vector},[Upe]:{name:"asinh",argTypes:[re.vector],variadic:0,returnType:re.vector},[jpe]:{name:"atan",argTypes:[re.vector],variadic:0,returnType:re.vector},[Gpe]:{name:"atanh",argTypes:[re.vector],variadic:0,returnType:re.vector},[qpe]:{name:"avg_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[$pe]:{name:"ceil",argTypes:[re.vector],variadic:0,returnType:re.vector},[zpe]:{name:"changes",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Ype]:{name:"clamp",argTypes:[re.vector,re.scalar,re.scalar],variadic:0,returnType:re.vector},[Hpe]:{name:"clamp_max",argTypes:[re.vector,re.scalar],variadic:0,returnType:re.vector},[Vpe]:{name:"clamp_min",argTypes:[re.vector,re.scalar],variadic:0,returnType:re.vector},[Wpe]:{name:"cos",argTypes:[re.vector],variadic:0,returnType:re.vector},[Qpe]:{name:"Cosh",argTypes:[re.vector],variadic:0,returnType:re.vector},[Kpe]:{name:"count_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Xpe]:{name:"days_in_month",argTypes:[re.vector],variadic:1,returnType:re.vector},[Zpe]:{name:"day_of_month",argTypes:[re.vector],variadic:1,returnType:re.vector},[Jpe]:{name:"day_of_week",argTypes:[re.vector],variadic:1,returnType:re.vector},[eme]:{name:"day_of_year",argTypes:[re.vector],variadic:1,returnType:re.vector},[tme]:{name:"deg",argTypes:[re.vector],variadic:0,returnType:re.vector},[nme]:{name:"delta",argTypes:[re.matrix],variadic:0,returnType:re.vector},[rme]:{name:"deriv",argTypes:[re.matrix],variadic:0,returnType:re.vector},[ime]:{name:"exp",argTypes:[re.vector],variadic:0,returnType:re.vector},[ame]:{name:"floor",argTypes:[re.vector],variadic:0,returnType:re.vector},[fme]:{name:"histogram_avg",argTypes:[re.vector],variadic:0,returnType:re.vector},[sme]:{name:"histogram_count",argTypes:[re.vector],variadic:0,returnType:re.vector},[ome]:{name:"histogram_fraction",argTypes:[re.scalar,re.scalar,re.vector],variadic:0,returnType:re.vector},[lme]:{name:"histogram_quantile",argTypes:[re.scalar,re.vector],variadic:0,returnType:re.vector},[cme]:{name:"histogram_stddev",argTypes:[re.vector],variadic:0,returnType:re.vector},[ume]:{name:"histogram_stdvar",argTypes:[re.vector],variadic:0,returnType:re.vector},[dme]:{name:"histogram_sum",argTypes:[re.vector],variadic:0,returnType:re.vector},[hme]:{name:"double_exponential_smoothing",argTypes:[re.matrix,re.scalar,re.scalar],variadic:0,returnType:re.vector},[pme]:{name:"hour",argTypes:[re.vector],variadic:1,returnType:re.vector},[mme]:{name:"idelta",argTypes:[re.matrix],variadic:0,returnType:re.vector},[gme]:{name:"increase",argTypes:[re.matrix],variadic:0,returnType:re.vector},[_me]:{name:"info",argTypes:[re.vector,re.vector],variadic:1,returnType:re.vector},[bme]:{name:"irate",argTypes:[re.matrix],variadic:0,returnType:re.vector},[vme]:{name:"label_replace",argTypes:[re.vector,re.string,re.string,re.string,re.string],variadic:0,returnType:re.vector},[Sme]:{name:"label_join",argTypes:[re.vector,re.string,re.string,re.string],variadic:-1,returnType:re.vector},[Eme]:{name:"last_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[yme]:{name:"ln",argTypes:[re.vector],variadic:0,returnType:re.vector},[Tme]:{name:"log10",argTypes:[re.vector],variadic:0,returnType:re.vector},[xme]:{name:"log2",argTypes:[re.vector],variadic:0,returnType:re.vector},[Cme]:{name:"mad_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Ome]:{name:"max_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Rme]:{name:"min_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Nme]:{name:"minute",argTypes:[re.vector],variadic:1,returnType:re.vector},[Ame]:{name:"month",argTypes:[re.vector],variadic:1,returnType:re.vector},[wme]:{name:"pi",argTypes:[],variadic:0,returnType:re.vector},[Dme]:{name:"predict_linear",argTypes:[re.matrix,re.scalar],variadic:0,returnType:re.vector},[Ime]:{name:"present_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Mme]:{name:"quantile_over_time",argTypes:[re.scalar,re.matrix],variadic:0,returnType:re.vector},[Lme]:{name:"rad",argTypes:[re.vector],variadic:0,returnType:re.vector},[kme]:{name:"rate",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Pme]:{name:"resets",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Bme]:{name:"round",argTypes:[re.vector,re.scalar],variadic:1,returnType:re.vector},[Fme]:{name:"scalar",argTypes:[re.vector],variadic:0,returnType:re.scalar},[Ume]:{name:"sgn",argTypes:[re.vector],variadic:0,returnType:re.vector},[jme]:{name:"sin",argTypes:[re.vector],variadic:0,returnType:re.vector},[Gme]:{name:"Sinh",argTypes:[re.vector],variadic:0,returnType:re.vector},[qme]:{name:"sort",argTypes:[re.vector],variadic:0,returnType:re.vector},[$me]:{name:"sort_desc",argTypes:[re.vector],variadic:0,returnType:re.vector},[zme]:{name:"sort_by_label",argTypes:[re.vector,re.string],variadic:-1,returnType:re.vector},[Yme]:{name:"sort_by_label_desc",argTypes:[re.vector,re.string],variadic:-1,returnType:re.vector},[Hme]:{name:"sqrt",argTypes:[re.vector],variadic:0,returnType:re.vector},[Vme]:{name:"stddev_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Wme]:{name:"stdvar_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Qme]:{name:"sum_over_time",argTypes:[re.matrix],variadic:0,returnType:re.vector},[Kme]:{name:"tan",argTypes:[re.vector],variadic:0,returnType:re.vector},[Xme]:{name:"tanh",argTypes:[re.vector],variadic:0,returnType:re.vector},[Jme]:{name:"time",argTypes:[],variadic:0,returnType:re.scalar},[Zme]:{name:"timestamp",argTypes:[re.vector],variadic:0,returnType:re.vector},[ege]:{name:"vector",argTypes:[re.scalar],variadic:0,returnType:re.vector},[tge]:{name:"year",argTypes:[re.vector],variadic:1,returnType:re.vector}};function uV(t){return nge[t]}class dV{constructor(e,n,r){this.type=e,this.name=n,this.value=r}matchesEmpty(){switch(this.type){case N0:return this.value==="";case P_:return this.value!=="";default:return!1}}}var Dl;(function(t){t.CardOneToOne="one-to-one",t.CardManyToOne="many-to-one",t.CardOneToMany="one-to-many",t.CardManyToMany="many-to-many"})(Dl||(Dl={}));function rge(t,e){const n=new dV(0,"",""),r=t.cursor();switch(r.type.id){case up:if(!r.next())return n;do switch(r.type.id){case L_:n.name=e.sliceDoc(r.from,r.to).slice(1,-1);break;case tE:const i=r.node.firstChild;i&&(n.type=i.type.id);break;case k_:n.value=e.sliceDoc(r.from,r.to).slice(1,-1);break}while(r.nextSibling());break;case vf:if(!r.next())return n;do switch(r.type.id){case M_:n.name=e.sliceDoc(r.from,r.to);break;case tE:const i=r.node.firstChild;i&&(n.type=i.type.id);break;case k_:n.value=e.sliceDoc(r.from,r.to).slice(1,-1);break}while(r.nextSibling());break;case L_:n.name="__name__",n.value=e.sliceDoc(r.from,r.to).slice(1,-1),n.type=N0;break}return n}function fV(t,e){const n=[];return t.forEach(r=>{n.push(rge(r,e))}),n}function ige(t,e,n){if(!e||e.length===0)return t;let r="";for(const i of e){if(i.name===n||i.value==="")continue;let a="";switch(i.type){case N0:a="=";break;case P_:a="!=";break;case cV:a="!~";break;case lV:a="=~";break;default:a="="}const s=`${i.name}${a}"${i.value}"`;r===""?r=s:r=`${r},${s}`}return`${t}{${r}}`}function HL(t,e){for(;;){if(!t||t.type.id===e)return t;t=t.parent}return null}function Ju(t,...e){const n=t.cursor();if(!n.next())return!1;let r=!1;do r=e.some(i=>n.type.id===i||n.type.name===i);while(!r&&n.nextSibling());return r}function lU(t,...e){const n=t.cursor();if(!n.next())return!1;let r=0;do n.type.is(e[r])&&r++;while(r<e.length&&n.nextSibling());return r>=e.length}function of(t){var e;if(!t)return re.none;switch(t.type.id){case Wy:return re.vector;case R0:return re.vector;case F_:return of(t.firstChild);case k_:return re.string;case zL:return re.scalar;case B_:return re.matrix;case $p:return re.matrix;case sV:return of(t.getChild("Expr"));case oV:return of(t.getChild("Expr"));case cp:const n=of(t.firstChild),r=of(t.lastChild);return n===re.scalar&&r===re.scalar?re.scalar:re.vector;case aV:const i=(e=t.firstChild)===null||e===void 0?void 0:e.firstChild;return i?uV(i.type.id).returnType:re.none;case YL:return of(t.getChild("Expr"));default:return re.none}}let eD=[],hV=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?hV:eD).push(n=n+t[e])})();function age(t){if(t<768)return!1;for(let e=0,n=eD.length;;){let r=e+n>>1;if(t<eD[r])n=r;else if(t>=hV[r])e=r+1;else return!0;if(e==n)return!1}}function cU(t){return t>=127462&&t<=127487}const uU=8205;function sge(t,e,n=!0,r=!0){return(n?pV:oge)(t,e,r)}function pV(t,e,n){if(e==t.length)return e;e&&mV(t.charCodeAt(e))&&gV(t.charCodeAt(e-1))&&e--;let r=rO(t,e);for(e+=dU(r);e<t.length;){let i=rO(t,e);if(r==uU||i==uU||n&&age(i))e+=dU(i),r=i;else if(cU(i)){let a=0,s=e-2;for(;s>=0&&cU(rO(t,s));)a++,s-=2;if(a%2==0)break;e+=2}else break}return e}function oge(t,e,n){for(;e>0;){let r=pV(t,e-2,n);if(r<e)return r;e--}return 0}function rO(t,e){let n=t.charCodeAt(e);if(!gV(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return mV(r)?(n-55296<<10)+(r-56320)+65536:n}function mV(t){return t>=56320&&t<57344}function gV(t){return t>=55296&&t<56320}function dU(t){return t<65536?1:2}class pn{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=zp(this,e,n);let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),Il.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=zp(this,e,n);let r=[];return this.decompose(e,n,r,0),Il.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new d_(this),a=new d_(e);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(e=1){return new d_(this,e)}iterRange(e,n=this.length){return new _V(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new bV(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?pn.empty:e.length<=32?new Vr(e):Il.from(Vr.split(e,[]))}}class Vr extends pn{constructor(e,n=lge(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=e)return new cge(i,o,r,s);i=o+1,r++}}decompose(e,n,r,i){let a=e<=0&&n>=this.length?this:new Vr(fU(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let s=r.pop(),o=sS(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Vr(o,s.length+a.length));else{let c=o.length>>1;r.push(new Vr(o.slice(0,c)),new Vr(o.slice(c)))}}else r.push(a)}replace(e,n,r){if(!(r instanceof Vr))return super.replace(e,n,r);[e,n]=zp(this,e,n);let i=sS(this.text,sS(r.text,fU(this.text,0,e)),n),a=this.length+r.length-(n-e);return i.length<=32?new Vr(i,a):Il.from(Vr.split(i,[]),a)}sliceString(e,n=this.length,r=`
`){[e,n]=zp(this,e,n);let i="";for(let a=0,s=0;a<=n&&s<this.text.length;s++){let o=this.text[s],c=a+o.length;a>e&&s&&(i+=r),e<c&&n>a&&(i+=o.slice(Math.max(0,e-a),n-a)),a=c+1}return i}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let a of e)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Vr(r,i)),r=[],i=-1);return i>-1&&n.push(new Vr(r,i)),n}}class Il extends pn{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,c=r+s.lines-1;if((n?c:o)>=e)return s.lineInner(e,n,r,i);i=o+1,r=c+1}}decompose(e,n,r,i){for(let a=0,s=0;s<=n&&a<this.children.length;a++){let o=this.children[a],c=s+o.length;if(e<=c&&n>=s){let d=i&((s<=e?1:0)|(c>=n?2:0));s>=e&&c<=n&&!d?r.push(o):o.decompose(e-s,n-s,r,d)}s=c+1}}replace(e,n,r){if([e,n]=zp(this,e,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let s=this.children[i],o=a+s.length;if(e>=a&&n<=o){let c=s.replace(e-a,n-a,r),d=this.lines-s.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let f=this.children.slice();return f[i]=c,new Il(f,this.length-(n-e)+r.length)}return super.replace(a,o,c)}a=o+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
`){[e,n]=zp(this,e,n);let i="";for(let a=0,s=0;a<this.children.length&&s<=n;a++){let o=this.children[a],c=s+o.length;s>e&&a&&(i+=r),e<c&&n>s&&(i+=o.sliceString(e-s,n-s,r)),s=c+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof Il))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let c=this.children[i],d=e.children[a];if(c!=d)return r+c.scanIdentical(d,n);r+=c.length+1}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of e)r+=g.lines;if(r<32){let g=[];for(let b of e)b.flatten(g);return new Vr(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],c=0,d=-1,f=[];function p(g){let b;if(g.lines>a&&g instanceof Il)for(let S of g.children)p(S);else g.lines>s&&(c>s||!c)?(m(),o.push(g)):g instanceof Vr&&c&&(b=f[f.length-1])instanceof Vr&&g.lines+b.lines<=32?(c+=g.lines,d+=g.length+1,f[f.length-1]=new Vr(b.text.concat(g.text),b.length+1+g.length)):(c+g.lines>i&&m(),c+=g.lines,d+=g.length+1,f.push(g))}function m(){c!=0&&(o.push(f.length==1?f[0]:Il.from(f,d)),d=-1,c=f.length=0)}for(let g of e)p(g);return m(),o.length==1?o[0]:new Il(o,n)}}pn.empty=new Vr([""],0);function lge(t){let e=-1;for(let n of t)e+=n.length+1;return e}function sS(t,e,n=0,r=1e9){for(let i=0,a=0,s=!0;a<t.length&&i<=r;a++){let o=t[a],c=i+o.length;c>=n&&(c>r&&(o=o.slice(0,r-i)),i<n&&(o=o.slice(n-i)),s?(e[e.length-1]+=o,s=!1):e.push(o)),i=c+1}return e}function fU(t,e,n){return sS(t,[""],e,n)}class d_{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof Vr?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof Vr?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(i instanceof Vr){let c=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,c.length>Math.max(0,e))return this.value=e==0?c:n>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=i.children[s+(n<0?-1:0)];e>c.length?(e-=c.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(c),this.offsets.push(n>0?1:(c instanceof Vr?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class _V{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new d_(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class bV{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:r,value:i}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(pn.prototype[Symbol.iterator]=function(){return this.iter()},d_.prototype[Symbol.iterator]=_V.prototype[Symbol.iterator]=bV.prototype[Symbol.iterator]=function(){return this});class cge{constructor(e,n,r,i){this.from=e,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function zp(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}function ta(t,e,n=!0,r=!0){return sge(t,e,n,r)}function uge(t){return t>=56320&&t<57344}function dge(t){return t>=55296&&t<56320}function es(t,e){let n=t.charCodeAt(e);if(!dge(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return uge(r)?(n-55296<<10)+(r-56320)+65536:n}function VL(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Ml(t){return t<65536?1:2}const tD=/\r\n?|\n/;var ea=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(ea||(ea={}));class jl{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];e+=r<0?this.sections[n]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,r=0,i=0;n<this.sections.length;){let a=this.sections[n++],s=this.sections[n++];s<0?(e(r,i,a),i+=a):i+=s,r+=a}}iterChangedRanges(e,n=!1){nD(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?e.push(r,i):e.push(i,r)}return new jl(e)}composeDesc(e){return this.empty?e:e.empty?this:vV(this,e)}mapDesc(e,n=!1){return e.empty?this:rD(this,e,n)}mapPos(e,n=-1,r=ea.Simple){let i=0,a=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],c=this.sections[s++],d=i+o;if(c<0){if(d>e)return a+(e-i);a+=o}else{if(r!=ea.Simple&&d>=e&&(r==ea.TrackDel&&i<e&&d>e||r==ea.TrackBefore&&i<e||r==ea.TrackAfter&&d>e))return null;if(d>e||d==e&&n<0&&!o)return e==i||n<0?a:a+c;a+=c}i=d}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return a}touchesRange(e,n=e){for(let r=0,i=0;r<this.sections.length&&i<=n;){let a=this.sections[r++],s=this.sections[r++],o=i+a;if(s>=0&&i<=n&&o>=e)return i<e&&o>n?"cover":!0;i=o}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];e+=(e?" ":"")+r+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new jl(e)}static create(e){return new jl(e)}}class vi extends jl{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return nD(this,(n,r,i,a,s)=>e=e.replace(i,i+(r-n),s),!1),e}mapDesc(e,n=!1){return rD(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,a=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o>=0){n[i]=o,n[i+1]=s;let c=i>>1;for(;r.length<c;)r.push(pn.empty);r.push(s?e.slice(a,a+s):pn.empty)}a+=s}return new vi(n,r)}compose(e){return this.empty?e:e.empty?this:vV(this,e,!0)}map(e,n=!1){return e.empty?this:rD(this,e,n,!0)}iterChanges(e,n=!1){nD(this,e,n)}get desc(){return jl.create(this.sections)}filter(e){let n=[],r=[],i=[],a=new U_(this);e:for(let s=0,o=0;;){let c=s==e.length?1e9:e[s++];for(;o<c||o==c&&a.len==0;){if(a.done)break e;let f=Math.min(a.len,c-o);va(i,f,-1);let p=a.ins==-1?-1:a.off==0?a.ins:0;va(n,f,p),p>0&&ed(r,n,a.text),a.forward(f),o+=f}let d=e[s++];for(;o<d;){if(a.done)break e;let f=Math.min(a.len,d-o);va(n,f,-1),va(i,f,a.ins==-1?-1:a.off==0?a.ins:0),a.forward(f),o+=f}}return{changes:new vi(n,r),filtered:jl.create(i)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?e.push(r):i==0?e.push([r]):e.push([r].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,r){let i=[],a=[],s=0,o=null;function c(f=!1){if(!f&&!i.length)return;s<n&&va(i,n-s,-1);let p=new vi(i,a);o=o?o.compose(p.map(o)):p,i=[],a=[],s=0}function d(f){if(Array.isArray(f))for(let p of f)d(p);else if(f instanceof vi){if(f.length!=n)throw new RangeError(`Mismatched change set length (got ${f.length}, expected ${n})`);c(),o=o?o.compose(f.map(o)):f}else{let{from:p,to:m=p,insert:g}=f;if(p>m||p<0||m>n)throw new RangeError(`Invalid change range ${p} to ${m} (in doc of length ${n})`);let b=g?typeof g=="string"?pn.of(g.split(r||tD)):g:pn.empty,S=b.length;if(p==m&&S==0)return;p<s&&c(),p>s&&va(i,p-s,-1),va(i,m-p,S),ed(a,i,b),s=m}}return d(e),c(!o),o}static empty(e){return new vi(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i];if(typeof a=="number")n.push(a,-1);else{if(!Array.isArray(a)||typeof a[0]!="number"||a.some((s,o)=>o&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length<i;)r.push(pn.empty);r[i]=pn.of(a.slice(1)),n.push(a[0],r[i].length)}}}return new vi(n,r)}static createSet(e,n){return new vi(e,n)}}function va(t,e,n,r=!1){if(e==0&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:i>=0&&e==0&&t[i]==0?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function ed(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(pn.empty);t.push(n)}}function nD(t,e,n){let r=t.inserted;for(let i=0,a=0,s=0;s<t.sections.length;){let o=t.sections[s++],c=t.sections[s++];if(c<0)i+=o,a+=o;else{let d=i,f=a,p=pn.empty;for(;d+=o,f+=c,c&&r&&(p=p.append(r[s-2>>1])),!(n||s==t.sections.length||t.sections[s+1]<0);)o=t.sections[s++],c=t.sections[s++];e(i,d,a,f,p),i=d,a=f}}}function rD(t,e,n,r=!1){let i=[],a=r?[]:null,s=new U_(t),o=new U_(e);for(let c=-1;;){if(s.done&&o.len||o.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&o.ins==-1){let d=Math.min(s.len,o.len);va(i,d,-1),s.forward(d),o.forward(d)}else if(o.ins>=0&&(s.ins<0||c==s.i||s.off==0&&(o.len<s.len||o.len==s.len&&!n))){let d=o.len;for(va(i,o.ins,-1);d;){let f=Math.min(s.len,d);s.ins>=0&&c<s.i&&s.len<=f&&(va(i,0,s.ins),a&&ed(a,i,s.text),c=s.i),s.forward(f),d-=f}o.next()}else if(s.ins>=0){let d=0,f=s.len;for(;f;)if(o.ins==-1){let p=Math.min(f,o.len);d+=p,f-=p,o.forward(p)}else if(o.ins==0&&o.len<f)f-=o.len,o.next();else break;va(i,d,c<s.i?s.ins:0),a&&c<s.i&&ed(a,i,s.text),c=s.i,s.forward(s.len-f)}else{if(s.done&&o.done)return a?vi.createSet(i,a):jl.create(i);throw new Error("Mismatched change set lengths")}}}function vV(t,e,n=!1){let r=[],i=n?[]:null,a=new U_(t),s=new U_(e);for(let o=!1;;){if(a.done&&s.done)return i?vi.createSet(r,i):jl.create(r);if(a.ins==0)va(r,a.len,0,o),a.next();else if(s.len==0&&!s.done)va(r,0,s.ins,o),i&&ed(i,r,s.text),s.next();else{if(a.done||s.done)throw new Error("Mismatched change set lengths");{let c=Math.min(a.len2,s.len),d=r.length;if(a.ins==-1){let f=s.ins==-1?-1:s.off?0:s.ins;va(r,c,f,o),i&&f&&ed(i,r,s.text)}else s.ins==-1?(va(r,a.off?0:a.len,c,o),i&&ed(i,r,a.textBit(c))):(va(r,a.off?0:a.len,s.off?0:s.ins,o),i&&!s.off&&ed(i,r,s.text));o=(a.ins>c||s.ins>=0&&s.len>c)&&(o||r.length>d),a.forward2(c),s.forward(c)}}}}class U_{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?pn.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?pn.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Sf{constructor(e,n,r){this.from=e,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Sf(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return Be.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return Be.range(this.anchor,r)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Be.range(e.anchor,e.head)}static create(e,n,r){return new Sf(e,n,r)}}class Be{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:Be.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Be([this.main],0)}addRange(e,n=!0){return Be.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,Be.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Be(e.ranges.map(n=>Sf.fromJSON(n)),e.main)}static single(e,n=e){return new Be([Be.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<e.length;i++){let a=e[i];if(a.empty?a.from<=r:a.from<r)return Be.normalized(e.slice(),n);r=a.to}return new Be(e,n)}static cursor(e,n=0,r,i){return Sf.create(e,e,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(e,n,r,i){let a=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<e?Sf.create(n,e,48|a):Sf.create(e,n,(n>e?8:0)|a)}static normalized(e,n=0){let r=e[n];e.sort((i,a)=>i.from-a.from),n=e.indexOf(r);for(let i=1;i<e.length;i++){let a=e[i],s=e[i-1];if(a.empty?a.from<=s.to:a.from<s.to){let o=s.from,c=Math.max(a.to,s.to);i<=n&&n--,e.splice(--i,2,a.anchor>a.head?Be.range(c,o):Be.range(o,c))}}return new Be(e,n)}}function SV(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let WL=0;class ft{constructor(e,n,r,i,a){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=WL++,this.default=e([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(e={}){return new ft(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:QL),!!e.static,e.enables)}of(e){return new oS([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new oS(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new oS(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function QL(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class oS{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=WL++}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=e[a]>>1,o=this.type==2,c=!1,d=!1,f=[];for(let p of this.dependencies)p=="doc"?c=!0:p=="selection"?d=!0:(((n=e[p.id])!==null&&n!==void 0?n:1)&1)==0&&f.push(e[p.id]);return{create(p){return p.values[s]=r(p),1},update(p,m){if(c&&m.docChanged||d&&(m.docChanged||m.selection)||iD(p,f)){let g=r(p);if(o?!hU(g,p.values[s],i):!i(g,p.values[s]))return p.values[s]=g,1}return 0},reconfigure:(p,m)=>{let g,b=m.config.address[a];if(b!=null){let S=rE(m,b);if(this.dependencies.every(y=>y instanceof ft?m.facet(y)===p.facet(y):y instanceof ji?m.field(y,!1)==p.field(y,!1):!0)||(o?hU(g=r(p),S,i):i(g=r(p),S)))return p.values[s]=S,0}else g=r(p);return p.values[s]=g,1}}}}function hU(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function iD(t,e){let n=!1;for(let r of e)f_(t,r)&1&&(n=!0);return n}function fge(t,e,n){let r=n.map(c=>t[c.id]),i=n.map(c=>c.type),a=r.filter(c=>!(c&1)),s=t[e.id]>>1;function o(c){let d=[];for(let f=0;f<r.length;f++){let p=rE(c,r[f]);if(i[f]==2)for(let m of p)d.push(m);else d.push(p)}return e.combine(d)}return{create(c){for(let d of r)f_(c,d);return c.values[s]=o(c),1},update(c,d){if(!iD(c,a))return 0;let f=o(c);return e.compare(f,c.values[s])?0:(c.values[s]=f,1)},reconfigure(c,d){let f=iD(c,r),p=d.config.facets[e.id],m=d.facet(e);if(p&&!f&&QL(n,p))return c.values[s]=m,0;let g=o(c);return e.compare(g,m)?(c.values[s]=m,0):(c.values[s]=g,1)}}}const pU=ft.define({static:!0});class ji{constructor(e,n,r,i,a){this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=a,this.provides=void 0}static define(e){let n=new ji(WL++,e.create,e.update,e.compare||((r,i)=>r===i),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(pU).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(e){return[this,pU.of({field:this,create:e})]}get extension(){return this}}const pf={lowest:4,low:3,default:2,high:1,highest:0};function Mg(t){return e=>new EV(e,t)}const Kc={highest:Mg(pf.highest),high:Mg(pf.high),default:Mg(pf.default),low:Mg(pf.low),lowest:Mg(pf.lowest)};class EV{constructor(e,n){this.inner=e,this.prec=n}}class Qy{of(e){return new aD(this,e)}reconfigure(e){return Qy.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class aD{constructor(e,n){this.compartment=e,this.inner=n}}class nE{constructor(e,n,r,i,a,s){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,r){let i=[],a=Object.create(null),s=new Map;for(let m of hge(e,n,s))m instanceof ji?i.push(m):(a[m.facet.id]||(a[m.facet.id]=[])).push(m);let o=Object.create(null),c=[],d=[];for(let m of i)o[m.id]=d.length<<1,d.push(g=>m.slot(g));let f=r==null?void 0:r.config.facets;for(let m in a){let g=a[m],b=g[0].facet,S=f&&f[m]||[];if(g.every(y=>y.type==0))if(o[b.id]=c.length<<1|1,QL(S,g))c.push(r.facet(b));else{let y=b.combine(g.map(E=>E.value));c.push(r&&b.compare(y,r.facet(b))?r.facet(b):y)}else{for(let y of g)y.type==0?(o[y.id]=c.length<<1|1,c.push(y.value)):(o[y.id]=d.length<<1,d.push(E=>y.dynamicSlot(E)));o[b.id]=d.length<<1,d.push(y=>fge(y,b,g))}}let p=d.map(m=>m(o));return new nE(e,s,p,o,c,a)}}function hge(t,e,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let c=i.get(s);if(c!=null){if(c<=o)return;let d=r[c].indexOf(s);d>-1&&r[c].splice(d,1),s instanceof aD&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let d of s)a(d,o);else if(s instanceof aD){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let d=e.get(s.compartment)||s.inner;n.set(s.compartment,d),a(d,o)}else if(s instanceof EV)a(s.inner,s.prec);else if(s instanceof ji)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof oS)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,pf.default);else{let d=s.extension;if(!d)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(d,o)}}return a(t,pf.default),r.reduce((s,o)=>s.concat(o))}function f_(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function rE(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const yV=ft.define(),sD=ft.define({combine:t=>t.some(e=>e),static:!0}),TV=ft.define({combine:t=>t.length?t[0]:void 0,static:!0}),xV=ft.define(),CV=ft.define(),OV=ft.define(),RV=ft.define({combine:t=>t.length?t[0]:!1});class Ql{constructor(e,n){this.type=e,this.value=n}static define(){return new pge}}class pge{of(e){return new Ql(this,e)}}class mge{constructor(e){this.map=e}of(e){return new Pt(this,e)}}class Pt{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Pt(this.type,n)}is(e){return this.type==e}static define(e={}){return new mge(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let a=i.map(n);a&&r.push(a)}return r}}Pt.reconfigure=Pt.define();Pt.appendConfig=Pt.define();class oi{constructor(e,n,r,i,a,s){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&SV(r,n.newLength),a.some(o=>o.type==oi.time)||(this.annotations=a.concat(oi.time.of(Date.now())))}static create(e,n,r,i,a,s){return new oi(e,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(oi.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}oi.time=Ql.define();oi.userEvent=Ql.define();oi.addToHistory=Ql.define();oi.remote=Ql.define();function gge(t,e){let n=[];for(let r=0,i=0;;){let a,s;if(r<t.length&&(i==e.length||e[i]>=t[r]))a=t[r++],s=t[r++];else if(i<e.length)a=e[i++],s=e[i++];else return n;!n.length||n[n.length-1]<a?n.push(a,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function NV(t,e,n){var r;let i,a,s;return n?(i=e.changes,a=vi.empty(e.changes.length),s=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),a=t.changes.mapDesc(e.changes,!0),s=t.changes.compose(i)),{changes:s,selection:e.selection?e.selection.map(a):(r=t.selection)===null||r===void 0?void 0:r.map(i),effects:Pt.mapEffects(t.effects,i).concat(Pt.mapEffects(e.effects,a)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function oD(t,e,n){let r=e.selection,i=dp(e.annotations);return e.userEvent&&(i=i.concat(oi.userEvent.of(e.userEvent))),{changes:e.changes instanceof vi?e.changes:vi.of(e.changes||[],n,t.facet(TV)),selection:r&&(r instanceof Be?r:Be.single(r.anchor,r.head)),effects:dp(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function AV(t,e,n){let r=oD(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let a=1;a<e.length;a++){e[a].filter===!1&&(n=!1);let s=!!e[a].sequential;r=NV(r,oD(t,e[a],s?r.changes.newLength:t.doc.length),s)}let i=oi.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return bge(n?_ge(i):i)}function _ge(t){let e=t.startState,n=!0;for(let i of e.facet(xV)){let a=i(t);if(a===!1){n=!1;break}Array.isArray(a)&&(n=n===!0?a:gge(n,a))}if(n!==!0){let i,a;if(n===!1)a=t.changes.invertedDesc,i=vi.empty(e.doc.length);else{let s=t.changes.filter(n);i=s.changes,a=s.filtered.mapDesc(s.changes).invertedDesc}t=oi.create(e,i,t.selection&&t.selection.map(a),Pt.mapEffects(t.effects,a),t.annotations,t.scrollIntoView)}let r=e.facet(CV);for(let i=r.length-1;i>=0;i--){let a=r[i](t);a instanceof oi?t=a:Array.isArray(a)&&a.length==1&&a[0]instanceof oi?t=a[0]:t=AV(e,dp(a),!1)}return t}function bge(t){let e=t.startState,n=e.facet(OV),r=t;for(let i=n.length-1;i>=0;i--){let a=n[i](t);a&&Object.keys(a).length&&(r=NV(r,oD(e,a,t.changes.newLength),!0))}return r==t?t:oi.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const vge=[];function dp(t){return t==null?vge:Array.isArray(t)?t:[t]}var Er=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Er||(Er={}));const Sge=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let lD;try{lD=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Ege(t){if(lD)return lD.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Sge.test(n)))return!0}return!1}function yge(t){return e=>{if(!/\S/.test(e))return Er.Space;if(Ege(e))return Er.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Er.Word;return Er.Other}}class ln{constructor(e,n,r,i,a,s){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)f_(this,o<<1);this.computeSlot=null}field(e,n=!0){let r=this.config.address[e.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return f_(this,r),rE(this,r)}update(...e){return AV(this,e,!0)}applyTransaction(e){let n=this.config,{base:r,compartments:i}=n;for(let o of e.effects)o.is(Qy.reconfigure)?(n&&(i=new Map,n.compartments.forEach((c,d)=>i.set(d,c)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(Pt.reconfigure)?(n=null,r=o.value):o.is(Pt.appendConfig)&&(n=null,r=dp(r).concat(o.value));let a;n?a=e.startState.values.slice():(n=nE.resolve(r,i,this),a=new ln(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(c,d)=>d.reconfigure(c,this),null).values);let s=e.startState.facet(sD)?e.newSelection:e.newSelection.asSingle();new ln(n,e.newDoc,s,a,(o,c)=>c.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Be.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=dp(r.effects);for(let o=1;o<n.ranges.length;o++){let c=e(n.ranges[o]),d=this.changes(c.changes),f=d.map(i);for(let m=0;m<o;m++)a[m]=a[m].map(f);let p=i.mapDesc(d,!0);a.push(c.range.map(p)),i=i.compose(f),s=Pt.mapEffects(s,f).concat(Pt.mapEffects(dp(c.effects),p))}return{changes:i,selection:Be.create(a,n.mainIndex),effects:s}}changes(e=[]){return e instanceof vi?e:vi.of(e,this.doc.length,this.facet(ln.lineSeparator))}toText(e){return pn.of(e.split(this.facet(ln.lineSeparator)||tD))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(f_(this,n),rE(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let i=e[r];i instanceof ji&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(e[r]),this))}return n}static fromJSON(e,n={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let a in r)if(Object.prototype.hasOwnProperty.call(e,a)){let s=r[a],o=e[a];i.push(s.init(c=>s.spec.fromJSON(o,c)))}}return ln.create({doc:e.doc,selection:Be.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=nE.resolve(e.extensions||[],new Map),r=e.doc instanceof pn?e.doc:pn.of((e.doc||"").split(n.staticFacet(ln.lineSeparator)||tD)),i=e.selection?e.selection instanceof Be?e.selection:Be.single(e.selection.anchor,e.selection.head):Be.single(0);return SV(i,r.length),n.staticFacet(sD)||(i=i.asSingle()),new ln(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(ln.tabSize)}get lineBreak(){return this.facet(ln.lineSeparator)||`
`}get readOnly(){return this.facet(RV)}phrase(e,...n){for(let r of this.facet(ln.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let a of this.facet(yV))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,e)&&i.push(s[e]);return i}charCategorizer(e){return yge(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),a=this.charCategorizer(e),s=e-r,o=e-r;for(;s>0;){let c=ta(n,s,!1);if(a(n.slice(c,s))!=Er.Word)break;s=c}for(;o<i;){let c=ta(n,o);if(a(n.slice(o,c))!=Er.Word)break;o=c}return s==o?null:Be.range(s+r,o+r)}}ln.allowMultipleSelections=sD;ln.tabSize=ft.define({combine:t=>t.length?t[0]:4});ln.lineSeparator=TV;ln.readOnly=RV;ln.phrases=ft.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(i=>t[i]==e[i])}});ln.languageData=yV;ln.changeFilter=xV;ln.transactionFilter=CV;ln.transactionExtender=OV;Qy.reconfigure=Pt.define();function Kl(t,e,n={}){let r={};for(let i of t)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class Hf{eq(e){return this==e}range(e,n=e){return j_.create(e,n,this)}}Hf.prototype.startSide=Hf.prototype.endSide=0;Hf.prototype.point=!1;Hf.prototype.mapMode=ea.TrackDel;class j_{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new j_(e,n,r)}}function cD(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class KL{constructor(e,n,r,i){this.from=e,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let c=s+o>>1,d=a[c]-e||(r?this.value[c].endSide:this.value[c].startSide)-n;if(c==s)return d>=0?s:o;d>=0?o=c:s=c+1}}between(e,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);a<s;a++)if(i(this.from[a]+e,this.to[a]+e,this.value[a])===!1)return!1}map(e,n){let r=[],i=[],a=[],s=-1,o=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],f=this.from[c]+e,p=this.to[c]+e,m,g;if(f==p){let b=n.mapPos(f,d.startSide,d.mapMode);if(b==null||(m=g=b,d.startSide!=d.endSide&&(g=n.mapPos(f,d.endSide),g<m)))continue}else if(m=n.mapPos(f,d.startSide),g=n.mapPos(p,d.endSide),m>g||m==g&&d.startSide>0&&d.endSide<=0)continue;(g-m||d.endSide-d.startSide)<0||(s<0&&(s=m),d.point&&(o=Math.max(o,g-m)),r.push(d),i.push(m-s),a.push(g-s))}return{mapped:r.length?new KL(i,a,r,o):null,pos:s}}}class _n{constructor(e,n,r,i){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(e,n,r,i){return new _n(e,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=e,s=e.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(cD)),this.isEmpty)return n.length?_n.of(n):this;let o=new wV(this,null,-1).goto(0),c=0,d=[],f=new qc;for(;o.value||c<n.length;)if(c<n.length&&(o.from-n[c].from||o.startSide-n[c].value.startSide)>=0){let p=n[c++];f.addInner(p.from,p.to,p.value)||d.push(p)}else o.rangeIndex==1&&o.chunkIndex<this.chunk.length&&(c==n.length||this.chunkEnd(o.chunkIndex)<n[c].from)&&(!s||i>this.chunkEnd(o.chunkIndex)||a<this.chunkPos[o.chunkIndex])&&f.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||i>o.to||a<o.from||s(o.from,o.to,o.value))&&(f.addInner(o.from,o.to,o.value)||d.push(j_.create(o.from,o.to,o.value))),o.next());return f.finishInner(this.nextLayer.isEmpty&&!d.length?_n.empty:this.nextLayer.update({add:d,filter:s,filterFrom:i,filterTo:a}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let s=0;s<this.chunk.length;s++){let o=this.chunkPos[s],c=this.chunk[s],d=e.touchesRange(o,o+c.length);if(d===!1)i=Math.max(i,c.maxPoint),n.push(c),r.push(e.mapPos(o));else if(d===!0){let{mapped:f,pos:p}=c.map(o,e);f&&(i=Math.max(i,f.maxPoint),n.push(f),r.push(p))}}let a=this.nextLayer.map(e);return n.length==0?a:new _n(r,n,a||_n.empty,i)}between(e,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let a=this.chunkPos[i],s=this.chunk[i];if(n>=a&&e<=a+s.length&&s.between(a,e-a,n-a,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return G_.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return G_.from(e).goto(n)}static compare(e,n,r,i,a=-1){let s=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=a),o=n.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=a),c=mU(s,o,r),d=new Lg(s,c,a),f=new Lg(o,c,a);r.iterGaps((p,m,g)=>gU(d,p,f,m,g,i)),r.empty&&r.length==0&&gU(d,0,f,0,0,i)}static eq(e,n,r=0,i){i==null&&(i=999999999);let a=e.filter(f=>!f.isEmpty&&n.indexOf(f)<0),s=n.filter(f=>!f.isEmpty&&e.indexOf(f)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=mU(a,s),c=new Lg(a,o,0).goto(r),d=new Lg(s,o,0).goto(r);for(;;){if(c.to!=d.to||!uD(c.active,d.active)||c.point&&(!d.point||!c.point.eq(d.point)))return!1;if(c.to>i)return!0;c.next(),d.next()}}static spans(e,n,r,i,a=-1){let s=new Lg(e,null,a).goto(n),o=n,c=s.openStart;for(;;){let d=Math.min(s.to,r);if(s.point){let f=s.activeForPoint(s.to),p=s.pointFrom<n?f.length+1:s.point.startSide<0?f.length:Math.min(f.length,c);i.point(o,d,s.point,f,p,s.pointRank),c=Math.min(s.openEnd(d),f.length)}else d>o&&(i.span(o,d,s.active,c),c=s.openEnd(d));if(s.to>r)return c+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(e,n=!1){let r=new qc;for(let i of e instanceof j_?[e]:n?Tge(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return _n.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=_n.empty;i=i.nextLayer)n=new _n(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}_n.empty=new _n([],[],null,-1);function Tge(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(cD(e,r)>0)return t.slice().sort(cD);e=r}return t}_n.empty.nextLayer=_n.empty;class qc{finishChunk(e){this.chunks.push(new KL(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new qc)).add(e,n,r)}addInner(e,n,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,!0}finish(){return this.finishInner(_n.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=_n.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function mU(t,e,n){let r=new Map;for(let a of t)for(let s=0;s<a.chunk.length;s++)a.chunk[s].maxPoint<=0&&r.set(a.chunk[s],a.chunkPos[s]);let i=new Set;for(let a of e)for(let s=0;s<a.chunk.length;s++){let o=r.get(a.chunk[s]);o!=null&&(n?n.mapPos(o):o)==a.chunkPos[s]&&!(n!=null&&n.touchesRange(o,o+a.chunk[s].length))&&i.add(a.chunk[s])}return i}class wV{constructor(e,n,r,i=0){this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=e+n.from[this.rangeIndex];if(this.from=r,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class G_{constructor(e){this.heap=e}static from(e,n=null,r=-1){let i=[];for(let a=0;a<e.length;a++)for(let s=e[a];!s.isEmpty;s=s.nextLayer)s.maxPoint>=r&&i.push(new wV(s,n,r,a));return i.length==1?i[0]:new G_(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)iO(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)iO(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),iO(this.heap,0)}}}function iO(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}class Lg{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=G_.from(e,n,r)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){uv(this.active,e),uv(this.activeTo,e),uv(this.activeRank,e),this.minActive=_U(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n<this.activeRank.length&&(a-this.activeRank[n]||i-this.activeTo[n])>0;)n++;dv(this.active,n,r),dv(this.activeTo,n,i),dv(this.activeRank,n,a),e&&dv(e,n,this.cursor.from),this.minActive=_U(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&uv(r,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=a,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=a.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let i=r.length-1;i>=0&&r[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function gU(t,e,n,r,i,a){t.goto(e),n.goto(r);let s=r+i,o=r,c=r-e;for(;;){let d=t.to+c-n.to,f=d||t.endSide-n.endSide,p=f<0?t.to+c:n.to,m=Math.min(p,s);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&uD(t.activeForPoint(t.to),n.activeForPoint(n.to))||a.comparePoint(o,m,t.point,n.point):m>o&&!uD(t.active,n.active)&&a.compareRange(o,m,t.active,n.active),p>s)break;(d||t.openEnd!=n.openEnd)&&a.boundChange&&a.boundChange(p),o=p,f<=0&&t.next(),f>=0&&n.next()}}function uD(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function uv(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function dv(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function _U(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||t[i].endSide-t[n].endSide)<0&&(n=i,r=e[i]);return n}function ym(t,e,n=t.length){let r=0;for(let i=0;i<n;)t.charCodeAt(i)==9?(r+=e-r%e,i++):(r++,i=ta(t,i));return r}function dD(t,e,n,r){for(let i=0,a=0;;){if(a>=e)return i;if(i==t.length)break;a+=t.charCodeAt(i)==9?n-a%n:1,i=ta(t,i)}return r===!0?-1:t.length}const fD="ͼ",bU=typeof Symbol>"u"?"__"+fD:Symbol.for(fD),hD=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),vU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class dd{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,c,d){let f=[],p=/^@(\w+)\b/.exec(s[0]),m=p&&p[1]=="keyframes";if(p&&o==null)return c.push(s[0]+";");for(let g in o){let b=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(y=>S.replace(/&/,y))).reduce((S,y)=>S.concat(y)),b,c);else if(b&&typeof b=="object"){if(!p)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),b,f,m)}else b!=null&&f.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+b+";")}(f.length||m)&&c.push((r&&!p&&!d?s.map(r):s).join(", ")+" {"+f.join(" ")+"}")}for(let s in e)a(i(s),e[s],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let e=vU[bU]||1;return vU[bU]=e+1,fD+e.toString(36)}static mount(e,n,r){let i=e[hD],a=r&&r.nonce;i?a&&i.setNonce(a):i=new xge(e,a),i.mount(Array.isArray(n)?n:[n],e)}}let SU=new Map;class xge{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let a=SU.get(r);if(a)return e[hD]=a;this.sheet=new i.CSSStyleSheet,SU.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[hD]=this}mount(e,n){let r=this.sheet,i=0,a=0;for(let s=0;s<e.length;s++){let o=e[s],c=this.modules.indexOf(o);if(c<a&&c>-1&&(this.modules.splice(c,1),a--,c=-1),c==-1){if(this.modules.splice(a++,0,o),r)for(let d=0;d<o.rules.length;d++)r.insertRule(o.rules[d],i++)}else{for(;a<c;)i+=this.modules[a++].rules.length;i+=o.rules.length,a++}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let s="";for(let c=0;c<this.modules.length;c++)s+=this.modules[c].getRules()+`
`;this.styleTag.textContent=s;let o=n.head||n;this.styleTag.parentNode!=o&&o.insertBefore(this.styleTag,o.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var fd={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},q_={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Cge=typeof navigator<"u"&&/Mac/.test(navigator.platform),Oge=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ji=0;Ji<10;Ji++)fd[48+Ji]=fd[96+Ji]=String(Ji);for(var Ji=1;Ji<=24;Ji++)fd[Ji+111]="F"+Ji;for(var Ji=65;Ji<=90;Ji++)fd[Ji]=String.fromCharCode(Ji+32),q_[Ji]=String.fromCharCode(Ji);for(var aO in fd)q_.hasOwnProperty(aO)||(q_[aO]=fd[aO]);function Rge(t){var e=Cge&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Oge&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?q_:fd)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function $_(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function pD(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function lS(t,e){if(!e.anchorNode)return!1;try{return pD(t,e.anchorNode)}catch{return!1}}function Yp(t){return t.nodeType==3?Wf(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function h_(t,e,n,r){return n?EU(t,e,n,r,-1)||EU(t,e,n,r,1):!1}function Vf(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function iE(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function EU(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:$l(t))){if(t.nodeName=="DIV")return!1;let a=t.parentNode;if(!a||a.nodeType!=1)return!1;e=Vf(t)+(i<0?0:1),t=a}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=i<0?$l(t):0}else return!1}}function $l(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function A0(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Nge(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function DV(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Age(t,e,n,r,i,a,s,o){let c=t.ownerDocument,d=c.defaultView||window;for(let f=t,p=!1;f&&!p;)if(f.nodeType==1){let m,g=f==c.body,b=1,S=1;if(g)m=Nge(d);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(p=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let x=f.getBoundingClientRect();({scaleX:b,scaleY:S}=DV(f,x)),m={left:x.left,right:x.left+f.clientWidth*b,top:x.top,bottom:x.top+f.clientHeight*S}}let y=0,E=0;if(i=="nearest")e.top<m.top?(E=-(m.top-e.top+s),n>0&&e.bottom>m.bottom+E&&(E=e.bottom-m.bottom+E+s)):e.bottom>m.bottom&&(E=e.bottom-m.bottom+s,n<0&&e.top-E<m.top&&(E=-(m.top+E-e.top+s)));else{let x=e.bottom-e.top,C=m.bottom-m.top;E=(i=="center"&&x<=C?e.top+x/2-C/2:i=="start"||i=="center"&&n<0?e.top-s:e.bottom-C+s)-m.top}if(r=="nearest"?e.left<m.left?(y=-(m.left-e.left+a),n>0&&e.right>m.right+y&&(y=e.right-m.right+y+a)):e.right>m.right&&(y=e.right-m.right+a,n<0&&e.left<m.left+y&&(y=-(m.left+y-e.left+a))):y=(r=="center"?e.left+(e.right-e.left)/2-(m.right-m.left)/2:r=="start"==o?e.left-a:e.right-(m.right-m.left)+a)-m.left,y||E)if(g)d.scrollBy(y,E);else{let x=0,C=0;if(E){let R=f.scrollTop;f.scrollTop+=E/S,C=(f.scrollTop-R)*S}if(y){let R=f.scrollLeft;f.scrollLeft+=y/b,x=(f.scrollLeft-R)*b}e={left:e.left-x,top:e.top-C,right:e.right-x,bottom:e.bottom-C},x&&Math.abs(x-y)<1&&(r="nearest"),C&&Math.abs(C-E)<1&&(i="nearest")}if(g)break;f=f.assignedSlot||f.parentNode}else if(f.nodeType==11)f=f.host;else break}function wge(t){let e=t.ownerDocument,n,r;for(let i=t.parentNode;i&&!(i==e.body||n&&r);)if(i.nodeType==1)!r&&i.scrollHeight>i.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:n,y:r}}class Dge{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?$l(n):0),r,Math.min(e.focusOffset,r?$l(r):0))}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Uh=null;function IV(t){if(t.setActive)return t.setActive();if(Uh)return t.focus(Uh);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Uh==null?{get preventScroll(){return Uh={preventScroll:!0},!0}}:void 0),!Uh){Uh=!1;for(let n=0;n<e.length;){let r=e[n++],i=e[n++],a=e[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=a&&(r.scrollLeft=a)}}}let yU;function Wf(t,e,n=e){let r=yU||(yU=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function fp(t,e,n,r){let i={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let a=new KeyboardEvent("keydown",i);a.synthetic=!0,t.dispatchEvent(a);let s=new KeyboardEvent("keyup",i);return s.synthetic=!0,t.dispatchEvent(s),a.defaultPrevented||s.defaultPrevented}function Ige(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function MV(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function Mge(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,$l(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=$l(n))}else{if(n==t)return!0;r=Vf(n),n=n.parentNode}}function LV(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function kV(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=$l(n)}else if(n.parentNode&&!iE(n))r=Vf(n),n=n.parentNode;else return null}}function PV(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r<n.nodeValue.length)return{node:n,offset:r};if(n.nodeType==1&&r<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[r],r=0}else if(n.parentNode&&!iE(n))r=Vf(n)+1,n=n.parentNode;else return null}}class ya{constructor(e,n,r=!0){this.node=e,this.offset=n,this.precise=r}static before(e,n){return new ya(e.parentNode,Vf(e),n)}static after(e,n){return new ya(e.parentNode,Vf(e)+1,n)}}const XL=[];class Vn{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let r=this.dom,i=null,a;for(let s of this.children){if(s.flags&7){if(!s.dom&&(a=i?i.nextSibling:r.firstChild)){let o=Vn.get(a);(!o||!o.parent&&o.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(e,n),s.flags&=-8}if(a=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&a!=s.dom&&(n.written=!0),s.dom.parentNode==r)for(;a&&a!=s.dom;)a=TU(a);else r.insertBefore(s.dom,a);i=s.dom}for(a=i?i.nextSibling:r.firstChild,a&&n&&n.node==r&&(n.written=!0);a;)a=TU(a)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(e,n),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let r;if(e==this.dom)r=this.dom.childNodes[n];else{let i=$l(e)==0?0:n==0?-1:1;for(;;){let a=e.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(e==a.firstChild?i=-1:i=1),e=a}i<0?r=e:r=e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Vn.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,a=0;;i++){let s=this.children[i];if(s.dom==r)return a;a+=s.length+s.breakAfter}}domBoundsAround(e,n,r=0){let i=-1,a=-1,s=-1,o=-1;for(let c=0,d=r,f=r;c<this.children.length;c++){let p=this.children[c],m=d+p.length;if(d<e&&m>n)return p.domBoundsAround(e,n,d);if(m>=e&&i==-1&&(i=c,a=d),d>n&&p.dom.parentNode==this.dom){s=c,o=f;break}f=m,d=m+p.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,r=XL){this.markDirty();for(let i=e;i<n;i++){let a=this.children[i];a.parent==this&&r.indexOf(a)<0&&a.destroy()}r.length<250?this.children.splice(e,n-e,...r):this.children=[].concat(this.children.slice(0,e),r,this.children.slice(n));for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new BV(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,r,i,a,s){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}Vn.prototype.breakAfter=0;function TU(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class BV{constructor(e,n,r){this.children=e,this.pos=n,this.i=r,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function FV(t,e,n,r,i,a,s,o,c){let{children:d}=t,f=d.length?d[e]:null,p=a.length?a[a.length-1]:null,m=p?p.breakAfter:s;if(!(e==r&&f&&!s&&!m&&a.length<2&&f.merge(n,i,a.length?p:null,n==0,o,c))){if(r<d.length){let g=d[r];g&&(i<g.length||g.breakAfter&&(p!=null&&p.breakAfter))?(e==r&&(g=g.split(i),i=0),!m&&p&&g.merge(0,i,p,!0,0,c)?a[a.length-1]=g:((i||g.children.length&&!g.children[0].length)&&g.merge(0,i,null,!1,0,c),a.push(g))):g!=null&&g.breakAfter&&(p?p.breakAfter=1:s=1),r++}for(f&&(f.breakAfter=s,n>0&&(!s&&a.length&&f.merge(n,f.length,a[0],!1,o,0)?f.breakAfter=a.shift().breakAfter:(n<f.length||f.children.length&&f.children[f.children.length-1].length==0)&&f.merge(n,f.length,null,!1,o,0),e++));e<r&&a.length;)if(d[r-1].become(a[a.length-1]))r--,a.pop(),c=a.length?0:o;else if(d[e].become(a[0]))e++,a.shift(),o=a.length?0:c;else break;!a.length&&e&&r<d.length&&!d[e-1].breakAfter&&d[r].merge(0,0,d[e-1],!1,o,c)&&e--,(e<r||a.length)&&t.replaceChildren(e,r,a)}}function UV(t,e,n,r,i,a){let s=t.childCursor(),{i:o,off:c}=s.findPos(n,1),{i:d,off:f}=s.findPos(e,-1),p=e-n;for(let m of r)p+=m.length;t.length+=p,FV(t,d,f,o,c,r,0,i,a)}let ts=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},mD=typeof document<"u"?document:{documentElement:{style:{}}};const gD=/Edge\/(\d+)/.exec(ts.userAgent),jV=/MSIE \d/.test(ts.userAgent),_D=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ts.userAgent),Ky=!!(jV||_D||gD),xU=!Ky&&/gecko\/(\d+)/i.test(ts.userAgent),sO=!Ky&&/Chrome\/(\d+)/.exec(ts.userAgent),CU="webkitFontSmoothing"in mD.documentElement.style,GV=!Ky&&/Apple Computer/.test(ts.vendor),OU=GV&&(/Mobile\/\w+/.test(ts.userAgent)||ts.maxTouchPoints>2);var ut={mac:OU||/Mac/.test(ts.platform),windows:/Win/.test(ts.platform),linux:/Linux|X11/.test(ts.platform),ie:Ky,ie_version:jV?mD.documentMode||6:_D?+_D[1]:gD?+gD[1]:0,gecko:xU,gecko_version:xU?+(/Firefox\/(\d+)/.exec(ts.userAgent)||[0,0])[1]:0,chrome:!!sO,chrome_version:sO?+sO[1]:0,ios:OU,android:/Android\b/.test(ts.userAgent),webkit:CU,safari:GV,webkit_version:CU?+(/\bAppleWebKit\/(\d+)/.exec(ts.userAgent)||[0,0])[1]:0,tabSize:mD.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Lge=256;class el extends Vn{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,r){return this.flags&8||r&&(!(r instanceof el)||this.length-(n-e)+r.length>Lge||r.flags&8)?!1:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new el(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new ya(this.dom,e)}domBoundsAround(e,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return kge(this.dom,e,n)}}class $c extends Vn{constructor(e,n=[],r=0){super(),this.mark=e,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(e){if(MV(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,r,i,a,s){return r&&(!(r instanceof $c&&r.mark.eq(this.mark))||e&&a<=0||n<this.length&&s<=0)?!1:(UV(this,e,n,r?r.children.slice():[],a-1,s-1),this.markDirty(),!0)}split(e){let n=[],r=0,i=-1,a=0;for(let o of this.children){let c=r+o.length;c>e&&n.push(r<e?o.split(e-r):o),i<0&&r>=e&&(i=a),r=c,a++}let s=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new $c(this.mark,n,s)}domAtPos(e){return qV(this,e)}coordsAt(e,n){return zV(this,e,n)}}function kge(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,a=e,s=0;e==0&&n<0||e==r&&n>=0?ut.chrome||ut.gecko||(e?(i--,s=1):a<r&&(a++,s=-1)):n<0?i--:a<r&&a++;let o=Wf(t,i,a).getClientRects();if(!o.length)return null;let c=o[(s?s<0:n>=0)?0:o.length-1];return ut.safari&&!s&&c.width==0&&(c=Array.prototype.find.call(o,d=>d.width)||c),s?A0(c,s<0):c||null}class td extends Vn{static create(e,n,r){return new td(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null}split(e){let n=td.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,r,i,a,s){return r&&(!(r instanceof td)||!this.widget.compare(r.widget)||e>0&&a<=0||n<this.length&&s<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}become(e){return e instanceof td&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return pn.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):pn.empty}domAtPos(e){return(this.length?e==0:this.side>0)?ya.before(this.dom):ya.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:e>0;for(let o=s?i.length-1:0;a=i[o],!(e>0?o==0:o==i.length-1||a.top<a.bottom);o+=s?-1:1);return A0(a,!s)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Hp extends Vn{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Hp&&e.side==this.side}split(){return new Hp(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?ya.before(this.dom):ya.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return pn.empty}get isHidden(){return!0}}el.prototype.children=td.prototype.children=Hp.prototype.children=XL;function qV(t,e){let n=t.dom,{children:r}=t,i=0;for(let a=0;i<r.length;i++){let s=r[i],o=a+s.length;if(!(o==a&&s.getSide()<=0)){if(e>a&&e<o&&s.dom.parentNode==n)return s.domAtPos(e-a);if(e<=a)break;a=o}}for(let a=i;a>0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a<r.length;a++){let s=r[a];if(s.dom.parentNode==n)return s.domAtPos(0)}return new ya(n,0)}function $V(t,e,n){let r,{children:i}=t;n>0&&e instanceof $c&&i.length&&(r=i[i.length-1])instanceof $c&&r.mark.eq(e.mark)?$V(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function zV(t,e,n){let r=null,i=-1,a=null,s=-1;function o(d,f){for(let p=0,m=0;p<d.children.length&&m<=f;p++){let g=d.children[p],b=m+g.length;b>=f&&(g.children.length?o(g,f-m):(!a||a.isHidden&&n>0)&&(b>f||m==b&&g.getSide()>0)?(a=g,s=f-m):(m<f||m==b&&g.getSide()<0&&!g.isHidden)&&(r=g,i=f-m)),m=b}}o(t,e);let c=(n<0?r:a)||r||a;return c?c.coordsAt(Math.max(0,c==r?i:s),n):Pge(t)}function Pge(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=Yp(e);return n[n.length-1]||null}function bD(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const RU=Object.create(null);function aE(t,e,n){if(t==e)return!0;t||(t=RU),e||(e=RU);let r=Object.keys(t),i=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||t[a]!==e[a]))return!1;return!0}function vD(t,e,n){let r=!1;if(e)for(let i in e)n&&i in n||(r=!0,i=="style"?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=!0,i=="style"?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function Bge(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}class Xl{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Ga=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Ga||(Ga={}));class Ct extends Hf{constructor(e,n,r,i){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(e){return new w0(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new hd(e,n,n,r,e.widget||null,!1)}static replace(e){let n=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=YV(e,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new hd(e,r,i,n,e.widget||null,!0)}static line(e){return new D0(e)}static set(e,n=!1){return _n.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ct.none=_n.empty;class w0 extends Ct{constructor(e){let{start:n,end:r}=YV(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,r;return this==e||e instanceof w0&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((r=e.attrs)===null||r===void 0?void 0:r.class))&&aE(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}w0.prototype.point=!1;class D0 extends Ct{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof D0&&this.spec.class==e.spec.class&&aE(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}D0.prototype.mapMode=ea.TrackBefore;D0.prototype.point=!0;class hd extends Ct{constructor(e,n,r,i,a,s){super(n,r,a,e),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?ea.TrackBefore:ea.TrackAfter:ea.TrackDel}get type(){return this.startSide!=this.endSide?Ga.WidgetRange:this.startSide<=0?Ga.WidgetBefore:Ga.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof hd&&Fge(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}hd.prototype.point=!0;function YV(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function Fge(t,e){return t==e||!!(t&&e&&t.compare(e))}function cS(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e)}class ii extends Vn{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,r,i,a,s){if(r){if(!(r instanceof ii))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),UV(this,e,n,r?r.children.slice():[],a,s),!0}split(e){let n=new ii;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(e);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let a=r;a<this.children.length;a++)n.append(this.children[a],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){aE(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){$V(this,e,n)}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=bD(n,this.attrs||{})),r&&(this.attrs=bD({class:r},this.attrs||{}))}domAtPos(e){return qV(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var r;this.dom?this.flags&4&&(MV(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(vD(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let i=this.dom.lastChild;for(;i&&Vn.get(i)instanceof $c;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Vn.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!ut.ios||!this.children.some(a=>a instanceof el))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof el)||/[^ -~]/.test(r.text))return null;let i=Yp(r.dom);if(i.length!=1)return null;e+=i[0].width,n=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let r=zV(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight<a){let s=(a-i.textHeight)/2;return{top:r.top+s,bottom:r.bottom-s,left:r.left,right:r.left}}}return r}become(e){return e instanceof ii&&this.children.length==0&&e.children.length==0&&aE(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,n){for(let r=0,i=0;r<e.children.length;r++){let a=e.children[r],s=i+a.length;if(s>=n){if(a instanceof ii)return a;if(s>n)break}i=s+a.breakAfter}return null}}class Lc extends Vn{constructor(e,n,r){super(),this.widget=e,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,n,r,i,a,s){return r&&(!(r instanceof Lc)||!this.widget.compare(r.widget)||e>0&&a<=0||n<this.length&&s<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?ya.before(this.dom):ya.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let r=new Lc(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return XL}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):pn.empty}domBoundsAround(){return null}become(e){return e instanceof Lc&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);return r||(this.widget instanceof SD?null:A0(this.dom.getBoundingClientRect(),this.length?e==0:n<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:r}=this.deco;return n==r?!1:e<0?n<0:r>0}}class SD extends Xl{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class p_{constructor(e,n,r,i){this.doc=e,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Lc&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ii),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(fv(new Hp(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Lc)&&this.getLine()}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(fv(new el(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,e-=i,r=0}}span(e,n,r,i){this.buildText(n-e,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(e,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof hd){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-e;if(r instanceof hd)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Lc(r.widget||Vp.block,o,r));else{let c=td.create(r.widget||Vp.inline,o,o?0:r.startSide),d=this.atCursorPos&&!c.isEditable&&a<=i.length&&(e<n||r.startSide>0),f=!c.isEditable&&(e<n||a>i.length||r.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!d&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),d&&(p.append(fv(new Hp(1),i),a),a=i.length+Math.max(0,a-i.length)),p.append(fv(c,i),a),this.atCursorPos=f,this.pendingBuffer=f?e<n||a>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(e,n,r,i,a){let s=new p_(e,n,r,a);return s.openEnd=_n.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function fv(t,e){for(let n of e)t=new $c(n,[t],t.length);return t}class Vp extends Xl{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Vp.inline=new Vp("span");Vp.block=new Vp("div");var br=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(br||(br={}));const Qf=br.LTR,ZL=br.RTL;function HV(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const Uge=HV("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),jge=HV("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),ED=Object.create(null),El=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);ED[e]=n,ED[n]=-e}function VV(t){return t<=247?Uge[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?jge[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const Gge=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class nd{get dir(){return this.level%2?ZL:Qf}constructor(e,n,r){this.from=e,this.to=n,this.level=r}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,r,i){let a=-1;for(let s=0;s<e.length;s++){let o=e[s];if(o.from<=n&&o.to>=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.from<n:o.to>n:e[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function WV(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!WV(r.inner,i.inner))return!1}return!0}const Yn=[];function qge(t,e,n,r,i){for(let a=0;a<=r.length;a++){let s=a?r[a-1].to:e,o=a<r.length?r[a].from:n,c=a?256:i;for(let d=s,f=c,p=c;d<o;d++){let m=VV(t.charCodeAt(d));m==512?m=f:m==8&&p==4&&(m=16),Yn[d]=m==4?2:m,m&7&&(p=m),f=m}for(let d=s,f=c,p=c;d<o;d++){let m=Yn[d];if(m==128)d<o-1&&f==Yn[d+1]&&f&24?m=Yn[d]=f:Yn[d]=256;else if(m==64){let g=d+1;for(;g<o&&Yn[g]==64;)g++;let b=d&&f==8||g<n&&Yn[g]==8?p==1?1:8:256;for(let S=d;S<g;S++)Yn[S]=b;d=g-1}else m==8&&p==1&&(Yn[d]=1);f=m,m&7&&(p=m)}}}function $ge(t,e,n,r,i){let a=i==1?2:1;for(let s=0,o=0,c=0;s<=r.length;s++){let d=s?r[s-1].to:e,f=s<r.length?r[s].from:n;for(let p=d,m,g,b;p<f;p++)if(g=ED[m=t.charCodeAt(p)])if(g<0){for(let S=o-3;S>=0;S-=3)if(El[S+1]==-g){let y=El[S+2],E=y&2?i:y&4?y&1?a:i:0;E&&(Yn[p]=Yn[El[S]]=E),o=S;break}}else{if(El.length==189)break;El[o++]=p,El[o++]=m,El[o++]=c}else if((b=Yn[p])==2||b==1){let S=b==i;c=S?0:1;for(let y=o-3;y>=0;y-=3){let E=El[y+2];if(E&2)break;if(S)El[y+2]|=2;else{if(E&4)break;El[y+2]|=4}}}}}function zge(t,e,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:t,o=i<n.length?n[i].from:e;for(let c=s;c<o;){let d=Yn[c];if(d==256){let f=c+1;for(;;)if(f==o){if(i==n.length)break;f=n[i++].to,o=i<n.length?n[i].from:e}else if(Yn[f]==256)f++;else break;let p=a==1,m=(f<e?Yn[f]:r)==1,g=p==m?p?1:2:r;for(let b=f,S=i,y=S?n[S-1].to:t;b>c;)b==y&&(b=n[--S].from,y=S?n[S-1].to:t),Yn[--b]=g;c=f}else a=d,c++}}}function yD(t,e,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let c=e,d=0;c<n;){let f=!0,p=!1;if(d==a.length||c<a[d].from){let S=Yn[c];S!=o&&(f=!1,p=S==16)}let m=!f&&o==1?[]:null,g=f?r:r+1,b=c;e:for(;;)if(d<a.length&&b==a[d].from){if(p)break e;let S=a[d];if(!f)for(let y=S.to,E=d+1;;){if(y==n)break e;if(E<a.length&&a[E].from==y)y=a[E++].to;else{if(Yn[y]==o)break e;break}}if(d++,m)m.push(S);else{S.from>c&&s.push(new nd(c,S.from,g));let y=S.direction==Qf!=!(g%2);TD(t,y?r+1:r,i,S.inner,S.from,S.to,s),c=S.to}b=S.to}else{if(b==n||(f?Yn[b]!=o:Yn[b]==o))break;b++}m?yD(t,c,b,r+1,i,m,s):c<b&&s.push(new nd(c,b,g)),c=b}else for(let c=n,d=a.length;c>e;){let f=!0,p=!1;if(!d||c>a[d-1].to){let S=Yn[c-1];S!=o&&(f=!1,p=S==16)}let m=!f&&o==1?[]:null,g=f?r:r+1,b=c;e:for(;;)if(d&&b==a[d-1].to){if(p)break e;let S=a[--d];if(!f)for(let y=S.from,E=d;;){if(y==e)break e;if(E&&a[E-1].to==y)y=a[--E].from;else{if(Yn[y-1]==o)break e;break}}if(m)m.push(S);else{S.to<c&&s.push(new nd(S.to,c,g));let y=S.direction==Qf!=!(g%2);TD(t,y?r+1:r,i,S.inner,S.from,S.to,s),c=S.from}b=S.from}else{if(b==e||(f?Yn[b-1]!=o:Yn[b-1]==o))break;b--}m?yD(t,b,c,r+1,i,m,s):b<c&&s.push(new nd(b,c,g)),c=b}}function TD(t,e,n,r,i,a,s){let o=e%2?2:1;qge(t,i,a,r,o),$ge(t,i,a,r,o),zge(i,a,r,o),yD(t,i,a,e,n,r,s)}function Yge(t,e,n){if(!t)return[new nd(0,0,e==ZL?1:0)];if(e==Qf&&!n.length&&!Gge.test(t))return QV(t.length);if(n.length)for(;t.length>Yn.length;)Yn[Yn.length]=256;let r=[],i=e==Qf?0:1;return TD(t,i,i,n,0,t.length,r),r}function QV(t){return[new nd(0,t,0)]}let KV="";function Hge(t,e,n,r,i){var a;let s=r.head-t.from,o=nd.find(e,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),c=e[o],d=c.side(i,n);if(s==d){let m=o+=i?1:-1;if(m<0||m>=e.length)return null;c=e[o=m],s=c.side(!i,n),d=c.side(i,n)}let f=ta(t.text,s,c.forward(i,n));(f<c.from||f>c.to)&&(f=d),KV=t.text.slice(Math.min(s,f),Math.max(s,f));let p=o==(i?e.length-1:0)?null:e[o+(i?1:-1)];return p&&f==d&&p.level+(i?0:1)<c.level?Be.cursor(p.side(!i,n)+t.from,p.forward(i,n)?1:-1,p.level):Be.cursor(f+t.from,c.forward(i,n)?-1:1,c.level)}function Vge(t,e,n){for(let r=e;r<n;r++){let i=VV(t.charCodeAt(r));if(i==1)return Qf;if(i==2||i==4)return ZL}return Qf}const XV=ft.define(),ZV=ft.define(),JV=ft.define(),e7=ft.define(),xD=ft.define(),t7=ft.define(),n7=ft.define(),JL=ft.define(),ek=ft.define(),r7=ft.define({combine:t=>t.some(e=>e)}),i7=ft.define({combine:t=>t.some(e=>e)}),a7=ft.define();class hp{constructor(e,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(e){return e.empty?this:new hp(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new hp(Be.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const hv=Pt.define({map:(t,e)=>t.map(e)}),s7=Pt.define();function ja(t,e,n){let r=t.facet(e7);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Nc=ft.define({combine:t=>t.length?t[0]:!0});let Wge=0;const Wg=ft.define();class Gr{constructor(e,n,r,i,a){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new Gr(Wge++,e,r,i,o=>{let c=[Wg.of(o)];return s&&c.push(z_.of(d=>{let f=d.plugin(o);return f?s(f):Ct.none})),a&&c.push(a(o)),c})}static fromClass(e,n){return Gr.define(r=>new e(r),n)}}class oO{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(ja(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){ja(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){ja(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const o7=ft.define(),tk=ft.define(),z_=ft.define(),l7=ft.define(),nk=ft.define(),c7=ft.define();function NU(t,e){let n=t.state.facet(c7);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(t):a),i=[];return _n.spans(r,e.from,e.to,{point(){},span(a,s,o,c){let d=a-e.from,f=s-e.from,p=i;for(let m=o.length-1;m>=0;m--,c--){let g=o[m].spec.bidiIsolate,b;if(g==null&&(g=Vge(e.text,d,f)),c>0&&p.length&&(b=p[p.length-1]).to==d&&b.direction==g)b.to=f,p=b.inner;else{let S={from:d,to:f,direction:g,inner:[]};p.push(S),p=S.inner}}}}),i}const u7=ft.define();function rk(t){let e=0,n=0,r=0,i=0;for(let a of t.state.facet(u7)){let s=a(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:e,right:n,top:r,bottom:i}}const Qg=ft.define();class ao{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}join(e){return new ao(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let i=e[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),e.splice(n-1,1)}}return e.splice(n,0,r),e}static extendWithRanges(e,n){if(n.length==0)return e;let r=[];for(let i=0,a=0,s=0,o=0;;i++){let c=i==e.length?null:e[i],d=s-o,f=c?c.fromB:1e9;for(;a<n.length&&n[a]<f;){let p=n[a],m=n[a+1],g=Math.max(o,p),b=Math.min(f,m);if(g<=b&&new ao(g+d,b+d,g,b).addToSet(r),m>f)break;a+=2}if(!c)return r;new ao(c.fromA,c.toA,c.fromB,c.toB).addToSet(r),s=c.toA,o=c.toB}}}class sE{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=vi.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,c)=>i.push(new ao(a,s,o,c))),this.changedRanges=i}static create(e,n,r){return new sE(e,n,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class AU extends Vn{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=Ct.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ii],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ao(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:d,toA:f})=>f<this.minWidthFrom||d>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!t_e(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let a=i>-1?Kge(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:d,to:f}=this.hasComposition;r=new ao(d,f,e.changes.mapPos(d,-1),e.changes.mapPos(f,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(ut.ie||ut.chrome)&&!a&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),c=Jge(s,o,e.changes);return r=ao.extendWithRanges(r,c),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,e.startState.doc.length,a),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=ut.chrome||ut.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.children)s instanceof Lc&&s.widget instanceof SD&&a.push(s.dom);i.updateGaps(a)}updateChildren(e,n,r){let i=r?r.range.addToSet(e.slice()):e,a=this.childCursor(n);for(let s=i.length-1;;s--){let o=s>=0?i[s]:null;if(!o)break;let{fromA:c,toA:d,fromB:f,toB:p}=o,m,g,b,S;if(r&&r.range.fromB<p&&r.range.toB>f){let R=p_.build(this.view.state.doc,f,r.range.fromB,this.decorations,this.dynamicDecorationMap),T=p_.build(this.view.state.doc,r.range.toB,p,this.decorations,this.dynamicDecorationMap);g=R.breakAtStart,b=R.openStart,S=T.openEnd;let N=this.compositionView(r);T.breakAtStart?N.breakAfter=1:T.content.length&&N.merge(N.length,N.length,T.content[0],!1,T.openStart,0)&&(N.breakAfter=T.content[0].breakAfter,T.content.shift()),R.content.length&&N.merge(0,0,R.content[R.content.length-1],!0,0,R.openEnd)&&R.content.pop(),m=R.content.concat(N).concat(T.content)}else({content:m,breakAtStart:g,openStart:b,openEnd:S}=p_.build(this.view.state.doc,f,p,this.decorations,this.dynamicDecorationMap));let{i:y,off:E}=a.findPos(d,1),{i:x,off:C}=a.findPos(c,-1);FV(this,x,C,y,E,m,g,b,S)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(s7)&&(this.editContextFormatting=r.value)}compositionView(e){let n=new el(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new $c(i,[n],n.length);let r=new ii;return r.append(n,0),r}fixCompositionDOM(e){let n=(a,s)=>{s.flags|=8|(s.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(s);let o=Vn.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let a=e.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?e.marks[a].node:e.text,i)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&!(this.view.state.facet(Nc)||this.dom.tabIndex>-1)&&lS(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(o.anchor)),d=o.empty?c:this.moveToLine(this.domAtPos(o.head));if(ut.gecko&&o.empty&&!this.hasComposition&&Qge(c)){let p=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(p,c.node.childNodes[c.offset]||null)),c=d=new ya(p,0),s=!0}let f=this.view.observer.selectionRange;(s||!f.focusNode||(!h_(c.node,c.offset,f.anchorNode,f.anchorOffset)||!h_(d.node,d.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,o))&&(this.view.observer.ignore(()=>{ut.android&&ut.chrome&&this.dom.contains(f.focusNode)&&e_e(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=$_(this.view.root);if(p)if(o.empty){if(ut.gecko){let m=Xge(c.node,c.offset);if(m&&m!=3){let g=(m==1?kV:PV)(c.node,c.offset);g&&(c=new ya(g.node,g.offset))}}p.collapse(c.node,c.offset),o.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=o.bidiLevel)}else if(p.extend){p.collapse(c.node,c.offset);try{p.extend(d.node,d.offset)}catch{}}else{let m=document.createRange();o.anchor>o.head&&([c,d]=[d,c]),m.setEnd(d.node,d.offset),m.setStart(c.node,c.offset),p.removeAllRanges(),p.addRange(m)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(c,d)),this.impreciseAnchor=c.precise?null:new ya(f.anchorNode,f.anchorOffset),this.impreciseHead=d.precise?null:new ya(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&h_(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,r=$_(e.root),{anchorNode:i,anchorOffset:a}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=ii.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let c=this.coordsAt(n.head,-1),d=this.coordsAt(n.head,1);if(!c||!d||c.bottom>d.top)return;let f=this.domAtPos(n.head+n.assoc);r.collapse(f.node,f.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(e){let n=this.dom,r;if(e.node!=n)return e;for(let i=e.offset;!r&&i<n.childNodes.length;i++){let a=Vn.get(n.childNodes[i]);a instanceof ii&&(r=a.domAtPos(0))}for(let i=e.offset-1;!r&&i>=0;i--){let a=Vn.get(n.childNodes[i]);a instanceof ii&&(r=a.domAtPos(a.length))}return r?new ya(r.node,r.offset,!0):e}nearest(e){for(let n=e;n;){let r=Vn.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(e,n){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,n)+r.posAtStart}domAtPos(e){let{i:n,off:r}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof ii)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(e,n){let r=null,i=0;for(let a=this.length,s=this.children.length-1;s>=0;s--){let o=this.children[s],c=a-o.breakAfter,d=c-o.length;if(c<e)break;if(d<=e&&(d<e||o.covers(-1))&&(c>e||o.covers(1))&&(!r||o instanceof ii&&!(r instanceof ii&&n>=0)))r=o,i=d;else if(r&&d==e&&c==e&&o instanceof Lc&&Math.abs(n)<2){if(o.deco.startSide<0)break;s&&(r=null)}a=d}return r?r.coordsAt(e-i,n):null}coordsForChar(e){let{i:n,off:r}=this.childPos(e,1),i=this.children[n];if(!(i instanceof ii))return null;for(;i.children.length;){let{i:o,off:c}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=c}if(!(i instanceof el))return null;let a=ta(i.text,r);if(a==r)return null;let s=Wf(i.dom,r,a).getClientRects();for(let o=0;o<s.length;o++){let c=s[o];if(o==s.length-1||c.top<c.bottom&&c.left<c.right)return c}return null}measureVisibleLineHeights(e){let n=[],{from:r,to:i}=e,a=this.view.contentDOM.clientWidth,s=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,c=this.view.textDirection==br.LTR;for(let d=0,f=0;f<this.children.length;f++){let p=this.children[f],m=d+p.length;if(m>i)break;if(d>=r){let g=p.dom.getBoundingClientRect();if(n.push(g.height),s){let b=p.dom.lastChild,S=b?Yp(b):[];if(S.length){let y=S[S.length-1],E=c?y.right-g.left:g.right-y.left;E>o&&(o=E,this.minWidth=a,this.minWidthFrom=d,this.minWidthTo=m)}}}d=m+p.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?br.RTL:br.LTR}measureTextSize(){for(let a of this.children)if(a instanceof ii){let s=a.measureTextSize();if(s)return s}let e=document.createElement("div"),n,r,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let a=Yp(e.firstChild)[0];n=e.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,e.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new BV(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(Ct.replace({widget:new SD(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return Ct.set(e)}updateDeco(){let e=1,n=this.view.state.facet(z_).map(a=>(this.dynamicDecorationMap[e++]=typeof a=="function")?a(this.view):a),r=!1,i=this.view.state.facet(l7).map((a,s)=>{let o=typeof a=="function";return o&&(r=!0),o?a(this.view):a});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(_n.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let d=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=d.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let d of this.view.state.facet(a7))try{if(d(this.view,e.range,e))return!0}catch(f){ja(this.view.state,f,"scroll handler")}let{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=rk(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:c}=this.view.scrollDOM;Age(this.view.scrollDOM,s,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,o),-o),Math.max(Math.min(e.yMargin,c),-c),this.view.textDirection==br.LTR)}}function Qge(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function d7(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=kV(n.focusNode,n.focusOffset),i=PV(n.focusNode,n.focusOffset),a=r||i;if(i&&r&&i.node!=r.node){let o=Vn.get(i.node);if(!o||o instanceof el&&o.text!=i.node.nodeValue)a=i;else if(t.docView.lastCompositionAfterCursor){let c=Vn.get(r.node);!c||c instanceof el&&c.text!=r.node.nodeValue||(a=i)}}if(t.docView.lastCompositionAfterCursor=a!=r,!a)return null;let s=e-a.offset;return{from:s,to:s+a.node.nodeValue.length,node:a.node}}function Kge(t,e,n){let r=d7(t,n);if(!r)return null;let{node:i,from:a,to:s}=r,o=i.nodeValue;if(/[\n\r]/.test(o)||t.state.doc.sliceString(r.from,r.to)!=o)return null;let c=e.invertedDesc,d=new ao(c.mapPos(a),c.mapPos(s),a,s),f=[];for(let p=i.parentNode;;p=p.parentNode){let m=Vn.get(p);if(m instanceof $c)f.push({node:p,deco:m.mark});else{if(m instanceof ii||p.nodeName=="DIV"&&p.parentNode==t.contentDOM)return{range:d,text:i,marks:f,line:p};if(p!=t.contentDOM)f.push({node:p,deco:new w0({inclusive:!0,attributes:Bge(p),tagName:p.tagName.toLowerCase()})});else return null}}}function Xge(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let Zge=class{constructor(){this.changes=[]}compareRange(e,n){cS(e,n,this.changes)}comparePoint(e,n){cS(e,n,this.changes)}boundChange(e){cS(e,e,this.changes)}};function Jge(t,e,n){let r=new Zge;return _n.compare(t,e,n,r),r.changes}function e_e(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function t_e(t,e){let n=!1;return e&&t.iterChangedRanges((r,i)=>{r<e.to&&i>e.from&&(n=!0)}),n}function n_e(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),a=e-i.from;if(i.length==0)return Be.cursor(e);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=ta(i.text,a,!1):o=ta(i.text,a);let c=r(i.text.slice(s,o));for(;s>0;){let d=ta(i.text,s,!1);if(r(i.text.slice(d,s))!=c)break;s=d}for(;o<i.length;){let d=ta(i.text,o);if(r(i.text.slice(o,d))!=c)break;o=d}return Be.range(s+i.from,o+i.from)}function r_e(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function i_e(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function lO(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function wU(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function DU(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function CD(t,e,n){let r,i,a,s,o=!1,c,d,f,p;for(let b=t.firstChild;b;b=b.nextSibling){let S=Yp(b);for(let y=0;y<S.length;y++){let E=S[y];i&&lO(i,E)&&(E=wU(DU(E,i.bottom),i.top));let x=r_e(e,E),C=i_e(n,E);if(x==0&&C==0)return b.nodeType==3?IU(b,e,n):CD(b,e,n);if(!r||s>C||s==C&&a>x){r=b,i=E,a=x,s=C;let R=C?n<E.top?-1:1:x?e<E.left?-1:1:0;o=!R||(R>0?y<S.length-1:y>0)}x==0?n>E.bottom&&(!f||f.bottom<E.bottom)?(c=b,f=E):n<E.top&&(!p||p.top>E.top)&&(d=b,p=E):f&&lO(f,E)?f=DU(f,E.bottom):p&&lO(p,E)&&(p=wU(p,E.top))}}if(f&&f.bottom>=n?(r=c,i=f):p&&p.top<=n&&(r=d,i=p),!r)return{node:t,offset:0};let m=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return IU(r,m,n);if(o&&r.contentEditable!="false")return CD(r,m,n);let g=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:g}}function IU(t,e,n){let r=t.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;o<r;o++){let c=Wf(t,o,o+1).getClientRects();for(let d=0;d<c.length;d++){let f=c[d];if(f.top==f.bottom)continue;s||(s=e-f.left);let p=(f.top>n?f.top-n:n-f.bottom)-1;if(f.left-1<=e&&f.right+1>=e&&p<a){let m=e>=(f.left+f.right)/2,g=m;if((ut.chrome||ut.gecko)&&Wf(t,o).getBoundingClientRect().left==f.right&&(g=!m),p<=0)return{node:t,offset:o+(g?1:0)};i=o+(g?1:0),a=p}}}return{node:t,offset:i>-1?i:s>0?t.nodeValue.length:0}}function f7(t,e,n,r=-1){var i,a;let s=t.contentDOM.getBoundingClientRect(),o=s.top+t.viewState.paddingTop,c,{docHeight:d}=t.viewState,{x:f,y:p}=e,m=p-o;if(m<0)return 0;if(m>d)return t.state.doc.length;for(let R=t.viewState.heightOracle.textHeight/2,T=!1;c=t.elementAtHeight(m),c.type!=Ga.Text;)for(;m=r>0?c.bottom+R:c.top-R,!(m>=0&&m<=d);){if(T)return n?null:0;T=!0,r=-r}p=o+m;let g=c.from;if(g<t.viewport.from)return t.viewport.from==0?0:n?null:MU(t,s,c,f,p);if(g>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:MU(t,s,c,f,p);let b=t.dom.ownerDocument,S=t.root.elementFromPoint?t.root:b,y=S.elementFromPoint(f,p);y&&!t.contentDOM.contains(y)&&(y=null),y||(f=Math.max(s.left+1,Math.min(s.right-1,f)),y=S.elementFromPoint(f,p),y&&!t.contentDOM.contains(y)&&(y=null));let E,x=-1;if(y&&((i=t.docView.nearest(y))===null||i===void 0?void 0:i.isEditable)!=!1){if(b.caretPositionFromPoint){let R=b.caretPositionFromPoint(f,p);R&&({offsetNode:E,offset:x}=R)}else if(b.caretRangeFromPoint){let R=b.caretRangeFromPoint(f,p);R&&({startContainer:E,startOffset:x}=R,(!t.contentDOM.contains(E)||ut.safari&&a_e(E,x,f)||ut.chrome&&s_e(E,x,f))&&(E=void 0))}E&&(x=Math.min($l(E),x))}if(!E||!t.docView.dom.contains(E)){let R=ii.find(t.docView,g);if(!R)return m>c.top+c.height/2?c.to:c.from;({node:E,offset:x}=CD(R.dom,f,p))}let C=t.docView.nearest(E);if(!C)return null;if(C.isWidget&&((a=C.dom)===null||a===void 0?void 0:a.nodeType)==1){let R=C.dom.getBoundingClientRect();return e.y<R.top||e.y<=R.bottom&&e.x<=(R.left+R.right)/2?C.posAtStart:C.posAtEnd}else return C.localPosFromDOM(E,x)+C.posAtStart}function MU(t,e,n,r,i){let a=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let o=t.viewState.heightOracle.textHeight,c=Math.floor((i-n.top-(t.defaultLineHeight-o)*.5)/o);a+=c*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(n.from,n.to);return n.from+dD(s,a,t.state.tabSize)}function a_e(t,e,n){let r;if(t.nodeType!=3||e!=(r=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return Wf(t,r-1,r).getBoundingClientRect().left>n}function s_e(t,e,n){if(e!=0)return!1;for(let i=t;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=t.nodeType==1?t.getBoundingClientRect():Wf(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function OD(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>e||r.to==e&&(r.to==n.to||r.type==Ga.Text))return r}return n}function o_e(t,e,n,r){let i=OD(t,e.head),a=!r||i.type!=Ga.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(a){let s=t.dom.getBoundingClientRect(),o=t.textDirectionAt(i.from),c=t.posAtCoords({x:n==(o==br.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(c!=null)return Be.cursor(c,n?-1:1)}return Be.cursor(n?i.to:i.from,n?-1:1)}function LU(t,e,n,r){let i=t.state.doc.lineAt(e.head),a=t.bidiSpans(i),s=t.textDirectionAt(i.from);for(let o=e,c=null;;){let d=Hge(i,a,s,o,n),f=KV;if(!d){if(i.number==(n?t.state.doc.lines:1))return o;f=`
`,i=t.state.doc.line(i.number+(n?1:-1)),a=t.bidiSpans(i),d=t.visualLineSide(i,!n)}if(c){if(!c(f))return o}else{if(!r)return d;c=r(f)}o=d}}function l_e(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return a=>{let s=r(a);return i==Er.Space&&(i=s),i==s}}function c_e(t,e,n,r){let i=e.head,a=n?1:-1;if(i==(n?t.state.doc.length:0))return Be.cursor(i,e.assoc);let s=e.goalColumn,o,c=t.contentDOM.getBoundingClientRect(),d=t.coordsAtPos(i,e.assoc||-1),f=t.documentTop;if(d)s==null&&(s=d.left-c.left),o=a<0?d.top:d.bottom;else{let g=t.viewState.lineBlockAt(i);s==null&&(s=Math.min(c.right-c.left,t.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+f}let p=c.left+s,m=r??t.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let b=o+(m+g)*a,S=f7(t,{x:p,y:b},!1,a);if(b<c.top||b>c.bottom||(a<0?S<i:S>i)){let y=t.docView.coordsForChar(S),E=!y||b<y.top?-1:1;return Be.cursor(S,E,void 0,s)}}}function uS(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,(a,s,o)=>{if(e>a&&e<s){let c=r||n||(e-a<s-e?-1:1);e=c<0?a:s,r=c}});if(!r)return e}}function cO(t,e,n){let r=uS(t.state.facet(nk).map(i=>i(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:Be.cursor(r,r<n.from?1:-1)}const Kg="";class u_e{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(ln.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Kg}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let s=i.nextSibling;if(s==n)break;let o=Vn.get(i),c=Vn.get(s);(o&&c?o.breakAfter:(o?o.breakAfter:iE(i))||iE(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=s-1);r=a+s}}readNode(e){if(e.cmIgnore)return;let n=Vn.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(e,n){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(d_e(e,r.node,r.offset)?n:0))}}function d_e(t,e,n){for(;;){if(!e||n<$l(e))return!1;if(e==t)return!0;n=Vf(e)+1,e=e.parentNode}}class kU{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class f_e{constructor(e,n,r,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:a,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,r,0))){let o=a||s?[]:m_e(e),c=new u_e(o,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=g_e(o,this.bounds.from)}else{let o=e.observer.selectionRange,c=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!pD(e.contentDOM,o.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(o.focusNode,o.focusOffset),d=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!pD(e.contentDOM,o.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(o.anchorNode,o.anchorOffset),f=e.viewport;if((ut.ios||ut.chrome)&&e.state.selection.main.empty&&c!=d&&(f.from>0||f.to<e.state.doc.length)){let p=Math.min(c,d),m=Math.max(c,d),g=f.from-p,b=f.to-m;(g==0||g==1||p==0)&&(b==0||b==-1||m==e.state.doc.length)&&(c=0,d=e.state.doc.length)}this.newSel=Be.single(d,c)}}}function h7(t,e){let n,{newSel:r}=e,i=t.state.selection.main,a=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:o}=e.bounds,c=i.from,d=null;(a===8||ut.android&&e.text.length<o-s)&&(c=i.to,d="end");let f=p_e(t.state.doc.sliceString(s,o,Kg),e.text,c-s,d);f&&(ut.chrome&&a==13&&f.toB==f.from+2&&e.text.slice(f.from,f.toB)==Kg+Kg&&f.toB--,n={from:s+f.from,to:s+f.toA,insert:pn.of(e.text.slice(f.from,f.toB).split(Kg))})}else r&&(!t.hasFocus&&t.state.facet(Nc)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&e.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:(ut.mac||ut.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Be.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:pn.of([n.insert.toString().replace("."," ")])}):n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:ut.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
 `&&t.lineWrapping&&(r&&(r=Be.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:pn.of([" "])}),n)return ik(t,n,r,a);if(r&&!r.main.eq(i)){let s=!1,o="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),o=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function ik(t,e,n,r=-1){if(ut.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(ut.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&t.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&fp(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&fp(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&fp(t.contentDOM,"Delete",46)))return!0;let a=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let s,o=()=>s||(s=h_e(t,e,n));return t.state.facet(t7).some(c=>c(t,e.from,e.to,a,o))||t.dispatch(o()),!0}function h_e(t,e,n){let r,i=t.state,a=i.selection.main;if(e.from>=a.from&&e.to<=a.to&&e.to-e.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let o=a.from<e.from?i.sliceDoc(a.from,e.from):"",c=a.to>e.to?i.sliceDoc(e.to,a.to):"";r=i.replaceSelection(t.state.toText(o+e.insert.sliceString(0,void 0,t.state.lineBreak)+c))}else{let o=i.changes(e),c=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=a.to&&e.to>=a.to-10){let d=t.state.sliceDoc(e.from,e.to),f,p=n&&d7(t,n.main.head);if(p){let b=e.insert.length-(e.to-e.from);f={from:p.from,to:p.to-b}}else f=t.state.doc.lineAt(a.head);let m=a.to-e.to,g=a.to-a.from;r=i.changeByRange(b=>{if(b.from==a.from&&b.to==a.to)return{changes:o,range:c||b.map(o)};let S=b.to-m,y=S-d.length;if(b.to-b.from!=g||t.state.sliceDoc(y,S)!=d||b.to>=f.from&&b.from<=f.to)return{range:b};let E=i.changes({from:y,to:S,insert:e.insert}),x=b.to-a.to;return{changes:E,range:c?Be.range(Math.max(0,c.anchor+x),Math.max(0,c.head+x)):b.map(E)}})}else r={changes:o,selection:c&&i.selection.replaceRange(c)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function p_e(t,e,n,r){let i=Math.min(t.length,e.length),a=0;for(;a<i&&t.charCodeAt(a)==e.charCodeAt(a);)a++;if(a==i&&t.length==e.length)return null;let s=t.length,o=e.length;for(;s>0&&o>0&&t.charCodeAt(s-1)==e.charCodeAt(o-1);)s--,o--;if(r=="end"){let c=Math.max(0,a-Math.min(s,o));n-=s+c-a}if(s<a&&t.length<e.length){let c=n<=a&&n>=s?a-n:0;a-=c,o=a+(o-s),s=a}else if(o<a){let c=n<=a&&n>=o?a-n:0;a-=c,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function m_e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=t.observer.selectionRange;return n&&(e.push(new kU(n,r)),(i!=n||a!=r)&&e.push(new kU(i,a))),e}function g_e(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n>-1&&r>-1?Be.single(n+e,r+e):null}class __e{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,ut.safari&&e.contentDOM.addEventListener("input",()=>null),ut.gecko&&M_e(e.contentDOM.ownerDocument)}handleEvent(e){!C_e(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let r=this.handlers[e];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=b_e(e),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&m7.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),ut.android&&ut.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return ut.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=p7.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||v_e.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,fp(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:ut.safari&&!ut.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function PU(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){ja(n.state,i)}}}function b_e(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(PU(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(PU(r.value,s))}}for(let r in tl)n(r).handlers.push(tl[r]);for(let r in lo)n(r).observers.push(lo[r]);return e}const p7=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],v_e="dthko",m7=[16,17,18,20,91,92,224,225],pv=6;function mv(t){return Math.max(0,t)*.7+8}function S_e(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class E_e{constructor(e,n,r,i){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=wge(e.contentDOM),this.atoms=e.state.facet(nk).map(s=>s(e));let a=e.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(ln.allowMultipleSelections)&&y_e(e,n),this.dragging=x_e(e,n)&&b7(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&S_e(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,r=0,i=0,a=0,s=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:o}=this.scrollParents.y.getBoundingClientRect());let c=rk(this.view);e.clientX-c.left<=i+pv?n=-mv(i-e.clientX):e.clientX+c.right>=s-pv&&(n=mv(e.clientX-s)),e.clientY-c.top<=a+pv?r=-mv(a-e.clientY):e.clientY+c.bottom>=o-pv&&(r=mv(e.clientY-o)),this.setScrollSpeed(n,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let r=0;r<e.ranges.length;r++){let i=e.ranges[r],a=null;if(i.empty){let s=uS(this.atoms,i.from,0);s!=i.from&&(a=Be.cursor(s,-1))}else{let s=uS(this.atoms,i.from,-1),o=uS(this.atoms,i.to,1);(s!=i.from||o!=i.to)&&(a=Be.range(i.from==i.anchor?s:o,i.from==i.head?s:o))}a&&(n||(n=e.ranges.slice()),n[r]=a)}return n?Be.create(n,e.mainIndex):e}select(e){let{view:n}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function y_e(t,e){let n=t.state.facet(XV);return n.length?n[0](e):ut.mac?e.metaKey:e.ctrlKey}function T_e(t,e){let n=t.state.facet(ZV);return n.length?n[0](e):ut.mac?!e.altKey:!e.ctrlKey}function x_e(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=$_(t.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a<i.length;a++){let s=i[a];if(s.left<=e.clientX&&s.right>=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function C_e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=Vn.get(n))&&r.ignoreEvent(e))return!1;return!0}const tl=Object.create(null),lo=Object.create(null),g7=ut.ie&&ut.ie_version<15||ut.ios&&ut.webkit_version<604;function O_e(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),_7(t,n.value)},50)}function Xy(t,e,n){for(let r of t.facet(e))n=r(n,t);return n}function _7(t,e){e=Xy(t.state,JL,e);let{state:n}=t,r,i=1,a=n.toText(e),s=a.lines==n.selection.ranges.length;if(RD!=null&&n.selection.ranges.every(c=>c.empty)&&RD==a.toString()){let c=-1;r=n.changeByRange(d=>{let f=n.doc.lineAt(d.from);if(f.from==c)return{range:d};c=f.from;let p=n.toText((s?a.line(i++).text:e)+n.lineBreak);return{changes:{from:f.from,insert:p},range:Be.cursor(d.from+p.length)}})}else s?r=n.changeByRange(c=>{let d=a.line(i++);return{changes:{from:c.from,to:c.to,insert:d.text},range:Be.cursor(c.from+d.length)}}):r=n.replaceSelection(a);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}lo.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};tl.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);lo.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};lo.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};tl.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(JV))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=A_e(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new E_e(t,e,n,r)),r&&t.observer.ignore(()=>{IV(t.contentDOM);let a=t.root.activeElement;a&&!a.contains(t.contentDOM)&&a.blur()});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function BU(t,e,n,r){if(r==1)return Be.cursor(e,n);if(r==2)return n_e(t.state,e,n);{let i=ii.find(t.docView,e),a=t.state.doc.lineAt(i?i.posAtEnd:e),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return o<t.state.doc.length&&o==a.to&&o++,Be.range(s,o)}}let FU=(t,e,n)=>e>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function R_e(t,e,n,r){let i=ii.find(t.docView,e);if(!i)return 1;let a=e-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&FU(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&FU(n,r,o)?1:s&&s.bottom>=r?-1:1}function UU(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:R_e(t,n,e.clientX,e.clientY)}}const N_e=ut.ie&&ut.ie_version<=11;let jU=null,GU=0,qU=0;function b7(t){if(!N_e)return t.detail;let e=jU,n=qU;return jU=t,qU=Date.now(),GU=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(GU+1)%3:1}function A_e(t,e){let n=UU(t,e),r=b7(e),i=t.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let c=UU(t,a),d,f=BU(t,c.pos,c.bias,r);if(n.pos!=c.pos&&!s){let p=BU(t,n.pos,n.bias,r),m=Math.min(p.from,f.from),g=Math.max(p.to,f.to);f=m<f.from?Be.range(m,g):Be.range(g,m)}return s?i.replaceRange(i.main.extend(f.from,f.to)):o&&r==1&&i.ranges.length>1&&(d=w_e(i,c.pos))?d:o?i.addRange(f):Be.create([f])}}}function w_e(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:i}=t.ranges[n];if(r<=e&&i>=e)return Be.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}tl.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=Be.range(a,s))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",Xy(t.state,ek,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};tl.dragend=t=>(t.inputState.draggedContent=null,!1);function $U(t,e,n,r){if(n=Xy(t.state,JL,n),!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:a}=t.inputState,s=r&&a&&T_e(t,e)?{from:a.from,to:a.to}:null,o={from:i,insert:n},c=t.state.changes(s?[s,o]:o);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(i,-1),head:c.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}tl.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&$U(t,e,r.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s<n.length;s++){let o=new FileReader;o.onerror=a,o.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return $U(t,e,r,!0),!0}return!1};tl.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=g7?null:e.clipboardData;return n?(_7(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(O_e(t),!1)};function D_e(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function I_e(t){let e=[],n=[],r=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:a}of t.selection.ranges){let s=t.doc.lineAt(a);s.number>i&&(e.push(s.text),n.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),i=s.number}r=!0}return{text:Xy(t,ek,e.join(t.lineBreak)),ranges:n,linewise:r}}let RD=null;tl.copy=tl.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=I_e(t.state);if(!n&&!i)return!1;RD=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=g7?null:e.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(D_e(t,n),!1)};const v7=Ql.define();function S7(t,e){let n=[];for(let r of t.facet(n7)){let i=r(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:v7.of(!0)}):null}function E7(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=S7(t.state,e);n?t.dispatch(n):t.update([])}},10)}lo.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),E7(t)};lo.blur=t=>{t.observer.clearSelectionRange(),E7(t)};lo.compositionstart=lo.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};lo.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,ut.chrome&&ut.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};lo.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};tl.beforeinput=(t,e)=>{var n,r;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let a=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),s=e.getTargetRanges();if(a&&s.length){let o=s[0],c=t.posAtDOM(o.startContainer,o.startOffset),d=t.posAtDOM(o.endContainer,o.endOffset);return ik(t,{from:c,to:d,insert:t.state.toText(a)},null),!0}}let i;if(ut.chrome&&ut.android&&(i=p7.find(a=>a.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let a=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>a+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return ut.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),ut.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>lo.compositionend(t,e),20),!1};const zU=new Set;function M_e(t){zU.has(t)||(zU.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const YU=["pre-wrap","normal","pre-line","break-spaces"];let Wp=!1;function HU(){Wp=!1}class L_e{constructor(e){this.lineWrapping=e,this.doc=pn.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return YU.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(e,n,r,i,a,s){let o=YU.indexOf(e)>-1,c=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,c){this.heightSamples={};for(let d=0;d<s.length;d++){let f=s[d];f<0?d++:this.heightSamples[Math.floor(f*10)]=!0}}return c}}class k_e{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class Ll{constructor(e,n,r,i,a){this.from=e,this.length=n,this.top=r,this.height=i,this._content=a}get type(){return typeof this._content=="number"?Ga.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof hd?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Ll(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var fr=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(fr||(fr={}));const dS=.001;class qa{constructor(e,n,r=2){this.length=e,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>dS&&(Wp=!0),this.height=e)}replace(e,n,r){return qa.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:c,toA:d,fromB:f,toB:p}=i[o],m=a.lineAt(c,fr.ByPosNoHeight,r.setDoc(n),0,0),g=m.to>=d?m:a.lineAt(d,fr.ByPosNoHeight,r,0,0);for(p+=g.to-d,d=g.to;o>0&&m.from<=i[o-1].toA;)c=i[o-1].fromA,f=i[o-1].fromB,o--,c<m.from&&(m=a.lineAt(c,fr.ByPosNoHeight,r,0,0));f+=m.from-c,c=m.from;let b=ak.build(r.setDoc(s),e,f,p);a=oE(a,a.replace(c,d,b))}return a.updateHeight(r,0)}static empty(){return new Os(0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,i=0,a=0;for(;;)if(n==r)if(i>a*2){let o=e[n-1];o.break?e.splice(--n,1,o.left,null,o.right):e.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=e[r];o.break?e.splice(r,1,o.left,null,o.right):e.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i<a){let o=e[n++];o&&(i+=o.size)}else{let o=e[--r];o&&(a+=o.size)}let s=0;return e[n-1]==null?(s=1,n--):e[n]==null&&(s=1,r++),new P_e(qa.of(e.slice(0,n)),s,qa.of(e.slice(r)))}}function oE(t,e){return t==e?t:(t.constructor!=e.constructor&&(Wp=!0),e)}qa.prototype.size=1;class y7 extends qa{constructor(e,n,r){super(e,n),this.deco=r}blockAt(e,n,r,i){return new Ll(i,this.length,r,this.height,this.deco||0)}lineAt(e,n,r,i,a){return this.blockAt(0,r,i,a)}forEachLine(e,n,r,i,a,s){e<=a+this.length&&n>=a&&s(this.blockAt(0,r,i,a))}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Os extends y7{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,r,i){return new Ll(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof Os||i instanceof Qi&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Qi?i=new Os(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):qa.of(r)}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(i.heights[i.index++]):(r||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Qi extends qa{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*a);s=c/a,this.length>a+1&&(o=(this.height-c)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(e,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:c}=this.heightMetrics(n,i);if(n.lineWrapping){let d=i+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),f=n.doc.lineAt(d),p=o+f.length*c,m=Math.max(r,e-p/2);return new Ll(f.from,f.length,m,p,0)}else{let d=Math.max(0,Math.min(s-a,Math.floor((e-r)/o))),{from:f,length:p}=n.doc.line(a+d);return new Ll(f,p,r+o*d,o,0)}}lineAt(e,n,r,i,a){if(n==fr.ByHeight)return this.blockAt(e,r,i,a);if(n==fr.ByPosNoHeight){let{from:g,to:b}=r.doc.lineAt(e);return new Ll(g,b-g,0,0,0)}let{firstLine:s,perLine:o,perChar:c}=this.heightMetrics(r,a),d=r.doc.lineAt(e),f=o+d.length*c,p=d.number-s,m=i+o*p+c*(d.from-a-p);return new Ll(d.from,d.length,Math.max(i,Math.min(m,i+this.height-f)),f,0)}forEachLine(e,n,r,i,a,s){e=Math.max(e,a),n=Math.min(n,a+this.length);let{firstLine:o,perLine:c,perChar:d}=this.heightMetrics(r,a);for(let f=e,p=i;f<=n;){let m=r.doc.lineAt(f);if(f==e){let b=m.number-o;p+=c*b+d*(e-a-b)}let g=c+d*m.length;s(new Ll(m.from,m.length,p,g,0)),p+=g,f=m.to+1}}replace(e,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof Qi?r[r.length-1]=new Qi(a.length+i):r.push(null,new Qi(i-1))}if(e>0){let a=r[0];a instanceof Qi?r[0]=new Qi(e+a.length):r.unshift(new Qi(e-1),null)}return qa.of(r)}decomposeLeft(e,n){n.push(new Qi(e-1),null)}decomposeRight(e,n){n.push(null,new Qi(this.length-e-1))}updateHeight(e,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),c=-1;for(i.from>n&&s.push(new Qi(i.from-n-1).updateHeight(e,n));o<=a&&i.more;){let f=e.doc.lineAt(o).length;s.length&&s.push(null);let p=i.heights[i.index++];c==-1?c=p:Math.abs(p-c)>=dS&&(c=-2);let m=new Os(f,p);m.outdated=!1,s.push(m),o+=f+1}o<=a&&s.push(null,new Qi(a-o).updateHeight(e,o));let d=qa.of(s);return(c<0||Math.abs(d.height-this.height)>=dS||Math.abs(c-this.heightMetrics(e,n).perLine)>=dS)&&(Wp=!0),oE(this,d)}else(r||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class P_e extends qa{constructor(e,n,r){super(e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,n,r,i){let a=r+this.left.height;return e<a?this.left.blockAt(e,n,r,i):this.right.blockAt(e,n,a,i+this.left.length+this.break)}lineAt(e,n,r,i,a){let s=i+this.left.height,o=a+this.left.length+this.break,c=n==fr.ByHeight?e<s:e<o,d=c?this.left.lineAt(e,n,r,i,a):this.right.lineAt(e,n,r,s,o);if(this.break||(c?d.to<o:d.from>o))return d;let f=n==fr.ByPosNoHeight?fr.ByPosNoHeight:fr.ByPos;return c?d.join(this.right.lineAt(o,f,r,s,o)):this.left.lineAt(o,f,r,i,a).join(d)}forEachLine(e,n,r,i,a,s){let o=i+this.left.height,c=a+this.left.length+this.break;if(this.break)e<c&&this.left.forEachLine(e,n,r,i,a,s),n>=c&&this.right.forEachLine(e,n,r,o,c,s);else{let d=this.lineAt(c,fr.ByPos,r,i,a);e<d.from&&this.left.forEachLine(e,d.from-1,r,i,a,s),d.to>=e&&d.from<=n&&s(d),n>d.to&&this.right.forEachLine(d.to+1,n,r,o,c,s)}}replace(e,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(e,n,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,n-i,r));let a=[];e>0&&this.decomposeLeft(e,a);let s=a.length;for(let o of r)a.push(o);if(e>0&&VU(a,s-1),n<this.length){let o=a.length;this.decomposeRight(n,a),VU(a,o)}return qa.of(a)}decomposeLeft(e,n){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(r++,e>=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n)}decomposeRight(e,n){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,n);e<r&&this.left.decomposeRight(e,n),this.break&&e<i&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?qa.of(this.break?[e,null,n]:[e,n]):(this.left=oE(this.left,e),this.right=oE(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,c=null;return i&&i.from<=n+a.length&&i.more?c=a=a.updateHeight(e,n,r,i):a.updateHeight(e,n,r),i&&i.from<=o+s.length&&i.more?c=s=s.updateHeight(e,o,r,i):s.updateHeight(e,o,r),c?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function VU(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof Qi&&(r=t[e+1])instanceof Qi&&t.splice(e-1,3,new Qi(n.length+1+r.length))}const B_e=5;class ak{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Os?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Os(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,r){if(e<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,a=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let s=n-e;r.block?this.addBlock(new y7(s,i,r)):(s||a||i>=B_e)&&this.addLineDeco(i,a,s)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Os(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let r=new Qi(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Os)return e;let n=new Os(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Os)&&!this.isCovered?this.nodes.push(new Os(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let i of this.nodes)i instanceof Os&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,n,r,i){let a=new ak(r,e);return _n.spans(n,r,i,a,0),a.finish(r)}}function F_e(t,e,n){let r=new U_e;return _n.compare(t,e,n,r,0),r.changes}class U_e{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,r,i){(e<n||r&&r.heightRelevant||i&&i.heightRelevant)&&cS(e,n,this.changes,5)}}function j_e(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,a=Math.max(0,n.left),s=Math.min(i.innerWidth,n.right),o=Math.max(0,n.top),c=Math.min(i.innerHeight,n.bottom);for(let d=t.parentNode;d&&d!=r.body;)if(d.nodeType==1){let f=d,p=window.getComputedStyle(f);if((f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth)&&p.overflow!="visible"){let m=f.getBoundingClientRect();a=Math.max(a,m.left),s=Math.min(s,m.right),o=Math.max(o,m.top),c=Math.min(d==t.parentNode?i.innerHeight:c,m.bottom)}d=p.position=="absolute"||p.position=="fixed"?f.offsetParent:f.parentNode}else if(d.nodeType==11)d=d.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+e),bottom:Math.max(o,c)-(n.top+e)}}function G_e(t){let e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView||window;return e.left<n.innerWidth&&e.right>0&&e.top<n.innerHeight&&e.bottom>0}function q_e(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class uO{constructor(e,n,r,i){this.from=e,this.to=n,this.size=r,this.displaySize=i}static same(e,n){if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],a=n[r];if(i.from!=a.from||i.to!=a.to||i.size!=a.size)return!1}return!0}draw(e,n){return Ct.replace({widget:new $_e(this.displaySize*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class $_e extends Xl{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class WU{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=QU,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=br.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(tk).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new L_e(n),this.stateDeco=e.facet(z_).filter(r=>typeof r!="function"),this.heightMap=qa.empty().applyChanges(this.stateDeco,pn.empty,this.heightOracle.setDoc(e.doc),[new ao(0,0,0,e.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ct.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!e.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);e.push(new gv(a,s))}}return this.viewports=e.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?QU:new sk(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Xg(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(z_).filter(f=>typeof f!="function");let i=e.changedRanges,a=ao.extendWithRanges(i,F_e(r,this.stateDeco,e?e.changes:vi.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);HU(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),a),(this.heightMap.height!=s||Wp)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=a.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<c.from||n.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,n));let d=c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,e.flags|=this.updateForViewport(),(d||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(i7)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?br.RTL:br.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),c=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let d=0,f=0;if(o.width&&o.height){let{scaleX:R,scaleY:T}=DV(n,o);(R>.005&&Math.abs(this.scaleX-R)>.005||T>.005&&Math.abs(this.scaleY-T)>.005)&&(this.scaleX=R,this.scaleY=T,d|=16,s=c=!0)}let p=(parseInt(r.paddingTop)||0)*this.scaleY,m=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=m)&&(this.paddingTop=p,this.paddingBottom=m,d|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,d|=16);let g=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=LV(e.scrollDOM);let b=(this.printing?q_e:j_e)(n,this.paddingTop),S=b.top-this.pixelViewport.top,y=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let E=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(E!=this.inView&&(this.inView=E,E&&(c=!0)),!this.inView&&!this.scrollTarget&&!G_e(e.dom))return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,d|=16),c){let R=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(R)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:T,charWidth:N,textHeight:w}=e.docView.measureTextSize();s=T>0&&i.refresh(a,T,N,w,x/N,R),s&&(e.docView.minWidth=0,d|=16)}S>0&&y>0?f=Math.max(S,y):S<0&&y<0&&(f=Math.min(S,y)),HU();for(let T of this.viewports){let N=T.from==this.viewport.from?R:e.docView.measureVisibleLineHeights(T);this.heightMap=(s?qa.empty().applyChanges(this.stateDeco,pn.empty,this.heightOracle,[new ao(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new k_e(T.from,N))}Wp&&(d|=2)}let C=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return C&&(d&2&&(d|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),d|=this.updateForViewport()),(d&2||C)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),d|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),d}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,c=new gv(i.lineAt(s-r*1e3,fr.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,fr.ByHeight,a,0,0).to);if(n){let{head:d}=n.range;if(d<c.from||d>c.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=i.lineAt(d,fr.ByPos,a,0,0),m;n.y=="center"?m=(p.top+p.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&d<c.from?m=p.top:m=p.bottom-f,c=new gv(i.lineAt(m-1e3/2,fr.ByHeight,a,0,0).from,i.lineAt(m+f+1e3/2,fr.ByHeight,a,0,0).to)}}return c}mapViewport(e,n){let r=n.mapPos(e.from,-1),i=n.mapPos(e.to,1);return new gv(this.heightMap.lineAt(r,fr.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,fr.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,fr.ByPos,this.heightOracle,0,0),{bottom:a}=this.heightMap.lineAt(n,fr.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:o}=this;return(e==0||i<=s-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||a>=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a<o+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let r=[];for(let i of e)n.touchesRange(i.from,i.to)||r.push(new uO(n.mapPos(i.from),n.mapPos(i.to),i.size,i.displaySize));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,a=i>>1,s=i<<1;if(this.defaultTextDirection!=br.LTR&&!r)return[];let o=[],c=(f,p,m,g)=>{if(p-f<a)return;let b=this.state.selection.main,S=[b.from];b.empty||S.push(b.to);for(let E of S)if(E>f&&E<p){c(f,E-10,m,g),c(E+10,p,m,g);return}let y=Y_e(e,E=>E.from>=m.from&&E.to<=m.to&&Math.abs(E.from-f)<a&&Math.abs(E.to-p)<a&&!S.some(x=>E.from<x&&E.to>x));if(!y){if(p<m.to&&n&&r&&n.visibleRanges.some(C=>C.from<=p&&C.to>=p)){let C=n.moveToLineBoundary(Be.cursor(p),!1,!0).head;C>f&&(p=C)}let E=this.gapSize(m,f,p,g),x=r||E<2e6?E:2e6;y=new uO(f,p,E,x)}o.push(y)},d=f=>{if(f.length<s||f.type!=Ga.Text)return;let p=z_e(f.from,f.to,this.stateDeco);if(p.total<s)return;let m=this.scrollTarget?this.scrollTarget.range.head:null,g,b;if(r){let S=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,y,E;if(m!=null){let x=bv(p,m),C=((this.visibleBottom-this.visibleTop)/2+S)/f.height;y=x-C,E=x+C}else y=(this.visibleTop-f.top-S)/f.height,E=(this.visibleBottom-f.top+S)/f.height;g=_v(p,y),b=_v(p,E)}else{let S=p.total*this.heightOracle.charWidth,y=i*this.heightOracle.charWidth,E=0;if(S>2e6)for(let N of e)N.from>=f.from&&N.from<f.to&&N.size!=N.displaySize&&N.from*this.heightOracle.charWidth+E<this.pixelViewport.left&&(E=N.size-N.displaySize);let x=this.pixelViewport.left+E,C=this.pixelViewport.right+E,R,T;if(m!=null){let N=bv(p,m),w=((C-x)/2+y)/S;R=N-w,T=N+w}else R=(x-y)/S,T=(C+y)/S;g=_v(p,R),b=_v(p,T)}g>f.from&&c(f.from,g,f,p),b<f.to&&c(b,f.to,f,p)};for(let f of this.viewportLines)Array.isArray(f.type)?f.type.forEach(d):d(f);return o}gapSize(e,n,r,i){let a=bv(i,r)-bv(i,n);return this.heightOracle.lineWrapping?e.height*a:i.total*this.heightOracle.charWidth*a}updateLineGaps(e){uO.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Ct.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];_n.spans(n,this.viewport.from,this.viewport.to,{span(a,s){r.push({from:a,to:s})},point(){}},20);let i=0;if(r.length!=this.visibleRanges.length)i=12;else for(let a=0;a<r.length&&!(i&8);a++){let s=this.visibleRanges[a],o=r[a];(s.from!=o.from||s.to!=o.to)&&(i|=4,e&&e.mapPos(s.from,-1)==o.from&&e.mapPos(s.to,1)==o.to||(i|=8))}return this.visibleRanges=r,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||Xg(this.heightMap.lineAt(e,fr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||Xg(this.heightMap.lineAt(this.scaler.fromDOM(e),fr.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return Xg(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class gv{constructor(e,n){this.from=e,this.to=n}}function z_e(t,e,n){let r=[],i=t,a=0;return _n.spans(n,t,e,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i<e&&(r.push({from:i,to:e}),a+=e-i),{total:a,ranges:r}}function _v({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:a,to:s}=e[i],o=s-a;if(r<=o)return a+r;r-=o}}function bv(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r}return n/t.total}function Y_e(t,e){for(let n of t)if(e(n))return n}const QU={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class sk{constructor(e,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:c})=>{let d=n.lineAt(o,fr.ByPos,e,0,0).top,f=n.lineAt(c,fr.ByPos,e,0,0).bottom;return i+=f-d,{from:o,to:c,top:d,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(e){for(let n=0,r=0,i=0;;n++){let a=n<this.viewports.length?this.viewports[n]:null;if(!a||e<a.top)return i+(e-r)*this.scale;if(e<=a.bottom)return a.domTop+(e-a.top);r=a.bottom,i=a.domBottom}}fromDOM(e){for(let n=0,r=0,i=0;;n++){let a=n<this.viewports.length?this.viewports[n]:null;if(!a||e<a.domTop)return r+(e-i)/this.scale;if(e<=a.domBottom)return a.top+(e-a.domTop);r=a.bottom,i=a.domBottom}}eq(e){return e instanceof sk?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,r)=>n.from==e.viewports[r].from&&n.to==e.viewports[r].to):!1}}function Xg(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new Ll(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>Xg(i,e)):t._content)}const vv=ft.define({combine:t=>t.join(" ")}),ND=ft.define({combine:t=>t.indexOf(!0)>-1}),AD=dd.newName(),T7=dd.newName(),x7=dd.newName(),C7={"&light":"."+T7,"&dark":"."+x7};function wD(t,e,n){return new dd(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return t;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):t+" "+r}})}const H_e=wD("."+AD,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},C7),V_e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},dO=ut.ie&&ut.ie_version<=11;class W_e{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Dge,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(ut.ie&&ut.ie_version<=11||ut.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(ut.chrome&&ut.chrome_version<126)&&(this.editContext=new K_e(e),e.state.facet(Nc)&&(e.contentDOM.editContext=this.editContext.editContext)),dO&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Nc)?r.root.activeElement!=this.dom:!lS(this.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(ut.ie&&ut.ie_version<=11||ut.android&&ut.chrome)&&!r.state.selection.main.empty&&i.focusNode&&h_(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=$_(e.root);if(!n)return!1;let r=ut.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Q_e(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=lS(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Mge(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,V_e),dO&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),dO&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var r;if(!this.delayedAndroidKey){let i=()=>{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&fp(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of e){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&lS(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new f_e(this.view,e,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=h7(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let r=KU(n,e.previousSibling||e.target.previousSibling,-1),i=KU(n,e.nextSibling||e.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Nc)!=e.state.facet(Nc)&&(e.view.contentDOM.editContext=e.state.facet(Nc)?this.editContext.editContext:null))}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function KU(t,e,n){for(;e;){let r=Vn.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function XU(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,a=e.endOffset,s=t.docView.domAtPos(t.state.selection.main.anchor);return h_(s.node,s.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function Q_e(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return XU(t,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?XU(t,n):null}class K_e{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=r=>{let i=e.state.selection.main,{anchor:a,head:s}=i,o=this.toEditorPos(r.updateRangeStart),c=this.toEditorPos(r.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:o,drifted:!1});let d={from:o,to:c,insert:pn.of(r.text.split(`
`))};if(d.from==this.from&&a<this.from?d.from=a:d.to==this.to&&a>this.to&&(d.to=a),d.from==d.to&&!d.insert.length){let f=Be.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));f.main.eq(i)||e.dispatch({selection:f,userEvent:"select"});return}if((ut.mac||ut.android)&&d.from==s-1&&/^\. ?$/.test(r.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(d={from:o,to:c,insert:pn.of([r.text.replace("."," ")])}),this.pendingContextChange=d,!e.state.readOnly){let f=this.to-this.from+(d.to-d.from+d.insert.length);ik(e,d,Be.single(this.toEditorPos(r.selectionStart,f),this.toEditorPos(r.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=r=>{let i=[],a=null;for(let s=this.toEditorPos(r.rangeStart),o=this.toEditorPos(r.rangeEnd);s<o;s++){let c=e.coordsForChar(s);a=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||a||new DOMRect,i.push(a)}n.updateCharacterBounds(r.rangeStart,i)},this.handlers.textformatupdate=r=>{let i=[];for(let a of r.getTextFormats()){let s=a.underlineStyle,o=a.underlineThickness;if(s!="None"&&o!="None"){let c=this.toEditorPos(a.rangeStart),d=this.toEditorPos(a.rangeEnd);if(c<d){let f=`text-decoration: underline ${s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${o=="Thin"?1:2}px`;i.push(Ct.mark({attributes:{style:f}}).range(c,d))}}}e.dispatch({effects:s7.of(Ct.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(e.state)}};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=$_(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,r=!1,i=this.pendingContextChange;return e.changes.iterChanges((a,s,o,c,d)=>{if(r)return;let f=d.length-(s-a);if(i&&s>=i.to)if(i.from==a&&i.to==s&&i.insert.eq(d)){i=this.pendingContextChange=null,n+=f,this.to+=f;return}else i=null,this.revertPending(e.state);if(a+=n,s+=n,s<=this.from)this.from+=f,this.to+=f;else if(a<this.to){if(a<this.from||s>this.to||this.to-this.from+d.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(a),this.toContextPos(s),d.toString()),this.to+=f}n+=f}),i&&!r&&this.revertPending(e.state),!r}update(e){let n=this.pendingContextChange;this.composing&&(this.composing.drifted||e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e,n=this.to-this.from){e=Math.min(e,n);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let n=this.composing;return n&&n.drifted?n.contextBase+(e-n.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class et{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(i=>i.forEach(a=>r(a,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Ige(e.parent)||document,this.viewState=new WU(e.state||ln.create(e)),e.scrollTo&&e.scrollTo.is(hv)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Wg).map(i=>new oO(i));for(let i of this.plugins)i.update(this);this.observer=new W_e(this),this.inputState=new __e(this),this.inputState.ensureHandlers(this.plugins),this.docView=new AU(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let n=e.length==1&&e[0]instanceof oi?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let m of e){if(m.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=m.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,c=null;e.some(m=>m.annotation(v7))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,c=S7(a,s),c||(o=1));let d=this.observer.delayedAndroidKey,f=null;if(d?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(f=null)):this.observer.clear(),a.facet(ln.phrases)!=this.state.facet(ln.phrases))return this.setState(a);i=sE.create(this,a,e),i.flags|=o;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let m of e){if(p&&(p=p.map(m.changes)),m.scrollIntoView){let{main:g}=m.state.selection;p=new hp(g.empty?g:Be.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of m.effects)g.is(hv)&&(p=g.value.clip(this.state))}this.viewState.update(i,p),this.bidiCache=lE.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Qg)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(m=>m.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(vv)!=i.state.facet(vv)&&(this.viewState.mustMeasureContent=!0),(n||r||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let m of this.state.facet(xD))try{m(i)}catch(g){ja(this.state,g,"update listener")}(c||f)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),f&&!h7(this,f)&&d.force&&fp(this.contentDOM,d.key,d.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new WU(e),this.plugins=e.facet(Wg).map(r=>new oO(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new AU(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(Wg),r=e.state.facet(Wg);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new oO(a));else{let o=this.plugins[s];o.mustUpdate=e,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=e&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(r){ja(this.state,r,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(LV(r))a=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(i);a=g.from,s=g.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let d=[];c&4||([this.measureRequests,d]=[d,this.measureRequests]);let f=d.map(g=>{try{return g.read(this)}catch(b){return ja(this.state,b),ZU}}),p=sE.create(this,this.state,[]),m=!1;p.flags|=c,n?n.flags|=c:n=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),m=this.docView.update(p),m&&this.docViewUpdate());for(let g=0;g<d.length;g++)if(f[g]!=ZU)try{let b=d[g];b.write&&b.write(f[g],this)}catch(b){ja(this.state,b)}if(m&&this.docView.updateSelection(!0),!p.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}else{let b=(a<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(a).top)-s;if(b>1||b<-1){i=i+b,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(xD))o(n)}get themeClasses(){return AD+" "+(this.state.facet(ND)?x7:T7)+" "+this.state.facet(vv)}updateAttrs(){let e=JU(this,o7,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Nc)?"true":"false",class:"cm-content",style:`${ut.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),JU(this,tk,n);let r=this.observer.ignore(()=>{let i=vD(this.contentDOM,this.contentAttrs,n),a=vD(this.dom,this.editorAttrs,e);return i||a});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let i of r.effects)if(i.is(et.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Qg);let e=this.state.facet(et.cspNonce);dd.mount(this.root,this.styleModules.concat(H_e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(r=>r.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return cO(this,e,LU(this,e,n,r))}moveByGroup(e,n){return cO(this,e,LU(this,e,n,r=>l_e(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),a=r[n?r.length-1:0];return Be.cursor(a.side(n,i)+e.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=!0){return o_e(this,e,n,r)}moveVertically(e,n,r){return cO(this,e,c_e(this,e,n,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),f7(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.docView.coordsAt(e,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),a=this.bidiSpans(i),s=a[nd.find(a,e-i.from,-1,n)];return A0(r,s.dir==br.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(r7)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>X_e)return QV(e.length);let n=this.textDirectionAt(e.from),r;for(let a of this.bidiCache)if(a.from==e.from&&a.dir==n&&(a.fresh||WV(a.isolates,r=NU(this,e))))return a.order;r||(r=NU(this,e));let i=Yge(e.text,n,r);return this.bidiCache.push(new lE(e.from,e.to,n,r,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ut.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{IV(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return hv.of(new hp(typeof e=="number"?Be.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return hv.of(new hp(Be.cursor(r.from),"start","start",r.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Gr.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Gr.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=dd.newName(),i=[vv.of(r),Qg.of(wD(`.${r}`,e))];return n&&n.dark&&i.push(ND.of(!0)),i}static baseTheme(e){return Kc.lowest(Qg.of(wD("."+AD,e,C7)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&Vn.get(r)||Vn.get(e);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}et.styleModule=Qg;et.inputHandler=t7;et.clipboardInputFilter=JL;et.clipboardOutputFilter=ek;et.scrollHandler=a7;et.focusChangeEffect=n7;et.perLineTextDirection=r7;et.exceptionSink=e7;et.updateListener=xD;et.editable=Nc;et.mouseSelectionStyle=JV;et.dragMovesSelection=ZV;et.clickAddsSelectionRange=XV;et.decorations=z_;et.outerDecorations=l7;et.atomicRanges=nk;et.bidiIsolatedRanges=c7;et.scrollMargins=u7;et.darkTheme=ND;et.cspNonce=ft.define({combine:t=>t.length?t[0]:""});et.contentAttributes=tk;et.editorAttributes=o7;et.lineWrapping=et.contentAttributes.of({class:"cm-lineWrapping"});et.announce=Pt.define();const X_e=4096,ZU={};class lE{constructor(e,n,r,i,a,s){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(e,n){if(n.empty&&!e.some(a=>a.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:br.LTR;for(let a=Math.max(0,e.length-10);a<e.length;a++){let s=e[a];s.dir==i&&!n.touchesRange(s.from,s.to)&&r.push(new lE(n.mapPos(s.from,1),n.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return r}}function JU(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let a=r[i],s=typeof a=="function"?a(t):a;s&&bD(s,n)}return n}const Z_e=ut.mac?"mac":ut.windows?"win":ut.linux?"linux":"key";function J_e(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let c=0;c<n.length-1;++c){const d=n[c];if(/^(cmd|meta|m)$/i.test(d))o=!0;else if(/^a(lt)?$/i.test(d))i=!0;else if(/^(c|ctrl|control)$/i.test(d))a=!0;else if(/^s(hift)?$/i.test(d))s=!0;else if(/^mod$/i.test(d))e=="mac"?o=!0:a=!0;else throw new Error("Unrecognized modifier name: "+d)}return i&&(r="Alt-"+r),a&&(r="Ctrl-"+r),o&&(r="Meta-"+r),s&&(r="Shift-"+r),r}function Sv(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const e0e=Kc.default(et.domEventHandlers({keydown(t,e){return R7(O7(e.state),t,e,"editor")}})),rd=ft.define({enables:e0e}),ej=new WeakMap;function O7(t){let e=t.facet(rd),n=ej.get(e);return n||ej.set(e,n=r0e(e.reduce((r,i)=>r.concat(i),[]))),n}function t0e(t,e,n){return R7(O7(t.state),e,t,n)}let qu=null;const n0e=4e3;function r0e(t,e=Z_e){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let c=r[s];if(c==null)r[s]=o;else if(c!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,c,d,f)=>{var p,m;let g=n[s]||(n[s]=Object.create(null)),b=o.split(/ (?!$)/).map(E=>J_e(E,e));for(let E=1;E<b.length;E++){let x=b.slice(0,E).join(" ");i(x,!0),g[x]||(g[x]={preventDefault:!0,stopPropagation:!1,run:[C=>{let R=qu={view:C,prefix:x,scope:s};return setTimeout(()=>{qu==R&&(qu=null)},n0e),!0}]})}let S=b.join(" ");i(S,!1);let y=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((m=(p=g._any)===null||p===void 0?void 0:p.run)===null||m===void 0?void 0:m.slice())||[]});c&&y.run.push(c),d&&(y.preventDefault=!0),f&&(y.stopPropagation=!0)};for(let s of t){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let d of o){let f=n[d]||(n[d]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:p}=s;for(let m in f)f[m].run.push(g=>p(g,DD))}let c=s[e]||s.key;if(c)for(let d of o)a(d,c,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(d,"Shift-"+c,s.shift,s.preventDefault,s.stopPropagation)}return n}let DD=null;function R7(t,e,n,r){DD=e;let i=Rge(e),a=es(i,0),s=Ml(a)==i.length&&i!=" ",o="",c=!1,d=!1,f=!1;qu&&qu.view==n&&qu.scope==r&&(o=qu.prefix+" ",m7.indexOf(e.keyCode)<0&&(d=!0,qu=null));let p=new Set,m=y=>{if(y){for(let E of y.run)if(!p.has(E)&&(p.add(E),E(n)))return y.stopPropagation&&(f=!0),!0;y.preventDefault&&(y.stopPropagation&&(f=!0),d=!0)}return!1},g=t[r],b,S;return g&&(m(g[o+Sv(i,e,!s)])?c=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ut.windows&&e.ctrlKey&&e.altKey)&&(b=fd[e.keyCode])&&b!=i?(m(g[o+Sv(b,e,!0)])||e.shiftKey&&(S=q_[e.keyCode])!=i&&S!=b&&m(g[o+Sv(S,e,!1)]))&&(c=!0):s&&e.shiftKey&&m(g[o+Sv(i,e,!0)])&&(c=!0),!c&&m(g._any)&&(c=!0)),d&&(c=!0),c&&f&&e.stopPropagation(),DD=null,c}class I0{constructor(e,n,r,i,a){this.className=e,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=N7(e);return[new I0(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return i0e(e,n,r)}}function N7(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==br.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function tj(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let a=t.dom.getBoundingClientRect(),s=(i.top+i.bottom)/2,o=t.posAtCoords({x:a.left+1,y:s}),c=t.posAtCoords({x:a.right-1,y:s});return o==null||c==null?r:{from:Math.max(r.from,Math.min(o,c)),to:Math.min(r.to,Math.max(o,c))}}function i0e(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),a=t.textDirection==br.LTR,s=t.contentDOM,o=s.getBoundingClientRect(),c=N7(t),d=s.querySelector(".cm-line"),f=d&&window.getComputedStyle(d),p=o.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0),m=o.right-(f?parseInt(f.paddingRight):0),g=OD(t,r),b=OD(t,i),S=g.type==Ga.Text?g:null,y=b.type==Ga.Text?b:null;if(S&&(t.lineWrapping||g.widgetLineBreaks)&&(S=tj(t,r,1,S)),y&&(t.lineWrapping||b.widgetLineBreaks)&&(y=tj(t,i,-1,y)),S&&y&&S.from==y.from&&S.to==y.to)return x(C(n.from,n.to,S));{let T=S?C(n.from,null,S):R(g,!1),N=y?C(null,n.to,y):R(b,!0),w=[];return(S||g).to<(y||b).from-(S&&y?1:0)||g.widgetLineBreaks>1&&T.bottom+t.defaultLineHeight/2<N.top?w.push(E(p,T.bottom,m,N.top)):T.bottom<N.top&&t.elementAtHeight((T.bottom+N.top)/2).type==Ga.Text&&(T.bottom=N.top=(T.bottom+N.top)/2),x(T).concat(w).concat(x(N))}function E(T,N,w,D){return new I0(e,T-c.left,N-c.top,w-T,D-N)}function x({top:T,bottom:N,horizontal:w}){let D=[];for(let L=0;L<w.length;L+=2)D.push(E(w[L],T,w[L+1],N));return D}function C(T,N,w){let D=1e9,L=-1e9,k=[];function M(Y,G,F,q,z){let H=t.coordsAtPos(Y,Y==w.to?-2:2),U=t.coordsAtPos(F,F==w.from?2:-2);!H||!U||(D=Math.min(H.top,U.top,D),L=Math.max(H.bottom,U.bottom,L),z==br.LTR?k.push(a&&G?p:H.left,a&&q?m:U.right):k.push(!a&&q?p:U.left,!a&&G?m:H.right))}let P=T??w.from,V=N??w.to;for(let Y of t.visibleRanges)if(Y.to>P&&Y.from<V)for(let G=Math.max(Y.from,P),F=Math.min(Y.to,V);;){let q=t.state.doc.lineAt(G);for(let z of t.bidiSpans(q)){let H=z.from+q.from,U=z.to+q.from;if(H>=F)break;U>G&&M(Math.max(H,G),T==null&&H<=P,Math.min(U,F),N==null&&U>=V,z.dir)}if(G=q.to+1,G>=F)break}return k.length==0&&M(P,T==null,V,N==null,t.textDirection),{top:D,bottom:L,horizontal:k}}function R(T,N){let w=o.top+(N?T.top:T.bottom);return{top:w,bottom:w,horizontal:[]}}}function a0e(t,e){return t.constructor==e.constructor&&t.eq(e)}class s0e{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(fS)!=e.state.facet(fS)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,r=e.facet(fS);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,r)=>!a0e(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of e)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const fS=ft.define();function A7(t){return[Gr.define(e=>new s0e(e,t)),fS.of(t)]}const w7=!(ut.ios&&ut.webkit&&ut.webkit_version<534),Y_=ft.define({combine(t){return Kl(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function o0e(t={}){return[Y_.of(t),l0e,c0e,u0e,i7.of(!0)]}function D7(t){return t.startState.facet(Y_)!=t.state.facet(Y_)}const l0e=A7({above:!0,markers(t){let{state:e}=t,n=e.facet(Y_),r=[];for(let i of e.selection.ranges){let a=i==e.selection.main;if(i.empty?!a||w7:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:Be.cursor(i.head,i.head>i.anchor?-1:1);for(let c of I0.forRange(t,s,o))r.push(c)}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=D7(t);return n&&nj(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){nj(e.state,t)},class:"cm-cursorLayer"});function nj(t,e){e.style.animationDuration=t.facet(Y_).cursorBlinkRate+"ms"}const c0e=A7({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:I0.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||D7(t)},class:"cm-selectionLayer"}),ID={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};w7&&(ID[".cm-line"].caretColor=ID[".cm-content"].caretColor="transparent !important");const u0e=Kc.highest(et.theme(ID)),I7=Pt.define({map(t,e){return t==null?null:e.mapPos(t)}}),Zg=ji.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(I7)?r.value:n,t)}}),d0e=Gr.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(Zg);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Zg)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Zg),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Zg)!=t&&this.view.dispatch({effects:I7.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function f0e(){return[Zg,d0e]}function rj(t,e,n,r,i){e.lastIndex=0;for(let a=t.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=e.exec(a.value);)i(s+o.index,o)}function h0e(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),a=Math.min(t.state.doc.lineAt(a).to,a+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class p0e{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,c,d,f)=>i(f,d,d+o[0].length,o,c);else if(typeof r=="function")this.addMatch=(o,c,d,f)=>{let p=r(o,c,d);p&&f(d,d+o[0].length,p)};else if(r)this.addMatch=(o,c,d,f)=>f(d,d+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(e){let n=new qc,r=n.add.bind(n);for(let{from:i,to:a}of h0e(e,this.maxLength))rj(e.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,e,s,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((a,s,o,c)=>{c>=e.view.viewport.from&&o<=e.view.viewport.to&&(r=Math.min(o,r),i=Math.max(c,i))}),e.viewportMoved||i-r>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,n.map(e.changes),r,i):n}updateRange(e,n,r,i){for(let a of e.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let c=e.state.doc.lineAt(s),d=c.to<o?e.state.doc.lineAt(o):c,f=Math.max(a.from,c.from),p=Math.min(a.to,d.to);if(this.boundary){for(;s>c.from;s--)if(this.boundary.test(c.text[s-1-c.from])){f=s;break}for(;o<d.to;o++)if(this.boundary.test(d.text[o-d.from])){p=o;break}}let m=[],g,b=(S,y,E)=>m.push(E.range(S,y));if(c==d)for(this.regexp.lastIndex=f-c.from;(g=this.regexp.exec(c.text))&&g.index<p-c.from;)this.addMatch(g,e,g.index+c.from,b);else rj(e.state.doc,this.regexp,f,p,(S,y)=>this.addMatch(y,e,S,b));n=n.update({filterFrom:f,filterTo:p,filter:(S,y)=>S<f||y>p,add:m})}}return n}}const MD=/x/.unicode!=null?"gu":"g",m0e=new RegExp(`[\0-\b
--­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF￹-￼]`,MD),g0e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let fO=null;function _0e(){var t;if(fO==null&&typeof document<"u"&&document.body){let e=document.body.style;fO=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return fO||!1}const hS=ft.define({combine(t){let e=Kl(t,{render:null,specialChars:m0e,addSpecialChars:null});return(e.replaceTabs=!_0e())&&(e.specialChars=new RegExp("	|"+e.specialChars.source,MD)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,MD)),e}});function M7(t={}){return[hS.of(t),b0e()]}let ij=null;function b0e(){return ij||(ij=Gr.fromClass(class{constructor(t){this.view=t,this.decorations=Ct.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(hS)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new p0e({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,a=es(e[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,c=ym(s.text,o,r-s.from);return Ct.replace({widget:new y0e((o-c%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=Ct.replace({widget:new E0e(t,a)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(hS);t.startState.facet(hS)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const v0e="•";function S0e(t){return t>=32?v0e:t==10?"␤":String.fromCharCode(9216+t)}class E0e extends Xl{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=S0e(this.code),r=e.state.phrase("Control character")+" "+(g0e[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class y0e extends Xl{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="	",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function T0e(){return C0e}const x0e=Ct.line({class:"cm-activeLine"}),C0e=Gr.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(x0e.range(i.from)),e=i.from)}return Ct.set(n)}},{decorations:t=>t.decorations});class O0e extends Xl{constructor(e){super(),this.content=e}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),typeof this.content=="string"?n.setAttribute("aria-label","placeholder "+this.content):n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?Yp(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=A0(n[0],r.direction!="rtl"),a=parseInt(r.lineHeight);return i.bottom-i.top>a*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+a}:i}ignoreEvent(){return!1}}function L7(t){return Gr.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Ct.set([Ct.widget({widget:new O0e(t),side:1}).range(0)]):Ct.none}get decorations(){return this.view.state.doc.length?Ct.none:this.placeholder}},{decorations:e=>e.decorations})}const LD=2e3;function R0e(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),a=[];if(e.off>LD||n.off>LD||e.col<0||n.col<0){let s=Math.min(e.off,n.off),o=Math.max(e.off,n.off);for(let c=r;c<=i;c++){let d=t.doc.line(c);d.length<=o&&a.push(Be.range(d.from+s,d.to+o))}}else{let s=Math.min(e.col,n.col),o=Math.max(e.col,n.col);for(let c=r;c<=i;c++){let d=t.doc.line(c),f=dD(d.text,s,t.tabSize,!0);if(f<0)a.push(Be.cursor(d.to));else{let p=dD(d.text,o,t.tabSize);a.push(Be.range(d.from+f,d.from+p))}}}return a}function N0e(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function aj(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,a=i>LD?-1:i==r.length?N0e(t,e.clientX):ym(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function A0e(t,e){let n=aj(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=aj(t,i);if(!o)return r;let c=R0e(t.state,n,o);return c.length?s?Be.create(c.concat(r.ranges)):Be.create(c):r}}:null}function w0e(t){let e=n=>n.altKey&&n.button==0;return et.mouseSelectionStyle.of((n,r)=>e(r)?A0e(n,r):null)}const D0e={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},I0e={style:"cursor: crosshair"};function M0e(t={}){let[e,n]=D0e[t.key||"Alt"],r=Gr.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||n(i))},keyup(i){(i.keyCode==e||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,et.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?I0e:null})]}const kg="-10000px";class k7{constructor(e,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(s=>s);let a=null;this.tooltipViews=this.tooltips.map(s=>a=r(s,a))}update(e,n){var r;let i=e.state.facet(this.facet),a=i.filter(c=>c);if(i===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let s=[],o=n?[]:null;for(let c=0;c<a.length;c++){let d=a[c],f=-1;if(d){for(let p=0;p<this.tooltips.length;p++){let m=this.tooltips[p];m&&m.create==d.create&&(f=p)}if(f<0)s[c]=this.createTooltipView(d,c?s[c-1]:null),o&&(o[c]=!!d.above);else{let p=s[c]=this.tooltipViews[f];o&&(o[c]=n[f]),p.update&&p.update(e)}}}for(let c of this.tooltipViews)s.indexOf(c)<0&&(this.removeTooltipView(c),(r=c.destroy)===null||r===void 0||r.call(c));return n&&(o.forEach((c,d)=>n[d]=c),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function L0e(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const hO=ft.define({combine:t=>{var e,n,r;return{position:ut.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||L0e}}}),sj=new WeakMap,ok=Gr.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(hO);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new k7(t,lk,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(hO);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=kg,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:a}=this.manager.tooltipViews[0];if(ut.gecko)n=a.offsetParent!=this.container.ownerDocument.body;else if(a.style.top==kg&&a.style.left=="0px"){let s=a.getBoundingClientRect();n=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(n||this.position=="absolute")if(this.parent){let a=this.parent.getBoundingClientRect();a.width&&a.height&&(t=a.width/this.parent.offsetWidth,e=a.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=rk(this.view);return{visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((a,s)=>{let o=this.manager.tooltipViews[s];return o.getCoords?o.getCoords(a.pos):this.view.coordsAtPos(a.pos)}),size:this.manager.tooltipViews.map(({dom:a})=>a.getBoundingClientRect()),space:this.view.state.facet(hO).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{visible:n,space:r,scaleX:i,scaleY:a}=t,s=[];for(let o=0;o<this.manager.tooltips.length;o++){let c=this.manager.tooltips[o],d=this.manager.tooltipViews[o],{dom:f}=d,p=t.pos[o],m=t.size[o];if(!p||c.clip!==!1&&(p.bottom<=Math.max(n.top,r.top)||p.top>=Math.min(n.bottom,r.bottom)||p.right<Math.max(n.left,r.left)-.1||p.left>Math.min(n.right,r.right)+.1)){f.style.top=kg;continue}let g=c.arrow?d.dom.querySelector(".cm-tooltip-arrow"):null,b=g?7:0,S=m.right-m.left,y=(e=sj.get(d))!==null&&e!==void 0?e:m.bottom-m.top,E=d.offset||P0e,x=this.view.textDirection==br.LTR,C=m.width>r.right-r.left?x?r.left:r.right-m.width:x?Math.max(r.left,Math.min(p.left-(g?14:0)+E.x,r.right-S)):Math.min(Math.max(r.left,p.left-S+(g?14:0)-E.x),r.right-S),R=this.above[o];!c.strictSide&&(R?p.top-y-b-E.y<r.top:p.bottom+y+b+E.y>r.bottom)&&R==r.bottom-p.bottom>p.top-r.top&&(R=this.above[o]=!R);let T=(R?p.top-r.top:r.bottom-p.bottom)-b;if(T<y&&d.resize!==!1){if(T<this.view.defaultLineHeight){f.style.top=kg;continue}sj.set(d,y),f.style.height=(y=T)/a+"px"}else f.style.height&&(f.style.height="");let N=R?p.top-y-b-E.y:p.bottom+b+E.y,w=C+S;if(d.overlap!==!0)for(let D of s)D.left<w&&D.right>C&&D.top<N+y&&D.bottom>N&&(N=R?D.top-y-2-b:D.bottom+b+2);if(this.position=="absolute"?(f.style.top=(N-t.parent.top)/a+"px",oj(f,(C-t.parent.left)/i)):(f.style.top=N/a+"px",oj(f,C/i)),g){let D=p.left+(x?E.x:-E.x)-(C+14-7);g.style.left=D/i+"px"}d.overlap!==!0&&s.push({left:C,top:N,right:w,bottom:N+y}),f.classList.toggle("cm-tooltip-above",R),f.classList.toggle("cm-tooltip-below",!R),d.positioned&&d.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=kg}},{eventObservers:{scroll(){this.maybeMeasure()}}});function oj(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px")}const k0e=et.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),P0e={x:0,y:0},lk=ft.define({enables:[ok,k0e]}),cE=ft.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class Zy{static create(e){return new Zy(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new k7(e,cE,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let r of this.manager.tooltipViews){let i=r[e];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const B0e=lk.compute([cE],t=>{let e=t.facet(cE);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:Zy.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class F0e{constructor(e,n,r,i,a){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,r=e.docView.nearest(n.target);if(!r)return;let i,a=1;if(r instanceof td)i=r.posAtStart;else{if(i=e.posAtCoords(n),i==null)return;let o=e.coordsAtPos(i);if(!o||n.y<o.top||n.y>o.bottom||n.x<o.left-e.defaultCharacterWidth||n.x>o.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(i)).find(f=>f.from<=i&&f.to>=i),d=c&&c.dir==br.RTL?-1:1;a=n.x<o.left?-d:d}let s=this.source(e,i,a);if(s!=null&&s.then){let o=this.pending={pos:i};s.then(c=>{this.pending==o&&(this.pending=null,c&&!(Array.isArray(c)&&!c.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(c)?c:[c])}))},c=>ja(e.state,c,"hover tooltip"))}else s&&!(Array.isArray(s)&&!s.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let e=this.view.plugin(ok),n=e?e.manager.tooltips.findIndex(r=>r.create==Zy.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:a}=this;if(i.length&&a&&!U0e(a.dom,e)||this.pending){let{pos:s}=i[0]||this.pending,o=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!j0e(this.view,s,o,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Ev=4;function U0e(t,e){let{left:n,right:r,top:i,bottom:a}=t.getBoundingClientRect(),s;if(s=t.querySelector(".cm-tooltip-arrow")){let o=s.getBoundingClientRect();i=Math.min(o.top,i),a=Math.max(o.bottom,a)}return e.clientX>=n-Ev&&e.clientX<=r+Ev&&e.clientY>=i-Ev&&e.clientY<=a+Ev}function j0e(t,e,n,r,i,a){let s=t.scrollDOM.getBoundingClientRect(),o=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>r||s.right<r||s.top>i||Math.min(s.bottom,o)<i)return!1;let c=t.posAtCoords({x:r,y:i},!1);return c>=e&&c<=n}function G0e(t,e={}){let n=Pt.define(),r=ji.define({create(){return[]},update(i,a){if(i.length&&(e.hideOnChange&&(a.docChanged||a.selection)?i=[]:e.hideOn&&(i=i.filter(s=>!e.hideOn(a,s))),a.docChanged)){let s=[];for(let o of i){let c=a.changes.mapPos(o.pos,-1,ea.TrackDel);if(c!=null){let d=Object.assign(Object.create(null),o);d.pos=c,d.end!=null&&(d.end=a.changes.mapPos(d.end)),s.push(d)}}i=s}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(q0e)&&(i=[]);return i},provide:i=>cE.from(i)});return{active:r,extension:[r,Gr.define(i=>new F0e(i,t,r,n,e.hoverTime||300)),B0e]}}function P7(t,e){let n=t.plugin(ok);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const q0e=Pt.define(),lj=ft.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function H_(t,e){let n=t.plugin(B7),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const B7=Gr.fromClass(class{constructor(t){this.input=t.state.facet(V_),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(lj);this.top=new yv(t,!0,e.topContainer),this.bottom=new yv(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(lj);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new yv(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new yv(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(V_);if(n!=this.input){let r=n.filter(c=>c),i=[],a=[],s=[],o=[];for(let c of r){let d=this.specs.indexOf(c),f;d<0?(f=c(t.view),o.push(f)):(f=this.panels[d],f.update&&f.update(t)),i.push(f),(f.top?a:s).push(f)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let c of o)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>et.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class yv{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=cj(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=cj(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function cj(t){let e=t.nextSibling;return t.remove(),e}const V_=ft.define({enables:B7});class zc extends Hf{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}zc.prototype.elementClass="";zc.prototype.toDOM=void 0;zc.prototype.mapMode=ea.TrackBefore;zc.prototype.startSide=zc.prototype.endSide=-1;zc.prototype.point=!0;const pS=ft.define(),$0e=ft.define(),z0e={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>_n.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},m_=ft.define();function Y0e(t){return[F7(),m_.of(Object.assign(Object.assign({},z0e),t))]}const uj=ft.define({combine:t=>t.some(e=>e)});function F7(t){return[H0e]}const H0e=Gr.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(m_).map(e=>new fj(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(uj),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(uj)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=_n.iter(this.view.state.facet(pS),this.view.viewport.from),r=[],i=this.gutters.map(a=>new V0e(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==Ga.Text&&s){kD(n,r,o.from);for(let c of i)c.line(this.view,o,r);s=!1}else if(o.widget)for(let c of i)c.widget(this.view,o)}else if(a.type==Ga.Text){kD(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(m_),n=t.state.facet(m_),r=t.docChanged||t.heightChanged||t.viewportChanged||!_n.eq(t.startState.facet(pS),t.state.facet(pS),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=e.indexOf(a);s<0?i.push(new fj(this.view,a)):(this.gutters[s].update(t),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>et.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==br.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function dj(t){return Array.isArray(t)?t:[t]}function kD(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class V0e{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=_n.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:i}=this,a=(n.top-this.height)/e.scaleY,s=n.height/e.scaleY;if(this.i==i.elements.length){let o=new U7(e,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(e,s,a,r);this.height=n.bottom,this.i++}line(e,n,r){let i=[];kD(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(e,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(e,n,i)}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n),i=r?[r]:null;for(let a of e.state.facet($0e)){let s=a(e,n.widget,n);s&&(i||(i=[])).push(s)}i&&this.addElement(e,n,i)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class fj{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let c=a.getBoundingClientRect();s=(c.top+c.bottom)/2}else s=i.clientY;let o=e.lineBlockAtHeight(s-e.documentTop);n.domEventHandlers[r](e,o,i)&&i.preventDefault()});this.markers=dj(n.markers(e)),n.initialSpacer&&(this.spacer=new U7(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=dj(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let r=e.view.viewport;return!_n.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class U7{constructor(e,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,i)}update(e,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),W0e(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,c=a<n.length?n[a++]:null,d=!1;if(c){let f=c.elementClass;f&&(r+=" "+f);for(let p=s;p<this.markers.length;p++)if(this.markers[p].compare(c)){o=p,d=!0;break}}else o=this.markers.length;for(;s<o;){let f=this.markers[s++];if(f.toDOM){f.destroy(i);let p=i.nextSibling;i.remove(),i=p}}if(!c)break;c.toDOM&&(d?i=i.nextSibling:this.dom.insertBefore(c.toDOM(e),i)),d&&s++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function W0e(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const Q0e=ft.define(),K0e=ft.define(),Zh=ft.define({combine(t){return Kl(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let i in n){let a=r[i],s=n[i];r[i]=a?(o,c,d)=>a(o,c,d)||s(o,c,d):s}return r}})}});class pO extends zc{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function mO(t,e){return t.state.facet(Zh).formatNumber(e,t.state)}const X0e=m_.compute([Zh],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Q0e)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new pO(mO(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,r)=>{for(let i of e.state.facet(K0e)){let a=i(e,n,r);if(a)return a}return null},lineMarkerChange:e=>e.startState.facet(Zh)!=e.state.facet(Zh),initialSpacer(e){return new pO(mO(e,hj(e.state.doc.lines)))},updateSpacer(e,n){let r=mO(n.view,hj(n.view.state.doc.lines));return r==e.number?e:new pO(r)},domEventHandlers:t.facet(Zh).domEventHandlers}));function Z0e(t={}){return[Zh.of(t),F7(),X0e]}function hj(t){let e=9;for(;e<t;)e=e*10+9;return e}const J0e=new class extends zc{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},ebe=pS.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(J0e.range(i)))}return _n.of(e)});function tbe(){return ebe}var gO;const Jh=new nn;function nbe(t){return ft.define({combine:t?e=>e.concat(t):void 0})}const rbe=new nn;class Vo{constructor(e,n,r=[],i=""){this.data=e,this.name=i,ln.prototype.hasOwnProperty("tree")||Object.defineProperty(ln.prototype,"tree",{get(){return Ti(this)}}),this.parser=n,this.extension=[pd.of(this),ln.languageData.of((a,s,o)=>{let c=pj(a,s,o),d=c.type.prop(Jh);if(!d)return[];let f=a.facet(d),p=c.type.prop(rbe);if(p){let m=c.resolve(s-c.from,o);for(let g of p)if(g.test(m,a)){let b=a.facet(g.facet);return g.type=="replace"?b:b.concat(f)}}return f})].concat(r)}isActiveAt(e,n,r=-1){return pj(e,n,r).type.prop(Jh)==this.data}findRegions(e){let n=e.facet(pd);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(Jh)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(nn.mounted);if(o){if(o.tree.prop(Jh)==this.data){if(o.overlay)for(let c of o.overlay)r.push({from:c.from+s,to:c.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let c=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>c)return}}for(let c=0;c<a.children.length;c++){let d=a.children[c];d instanceof si&&i(d,a.positions[c]+s)}};return i(Ti(e),0),r}get allowsNesting(){return!0}}Vo.setState=Pt.define();function pj(t,e,n){let r=t.facet(pd),i=Ti(t).topNode;if(!r||r.allowsNesting)for(let a=i;a;a=a.enter(e,n,Li.ExcludeBuffers))a.type.isTop&&(i=a);return i}class uE extends Vo{constructor(e,n,r){super(e,n,[],r),this.parser=n}static define(e){let n=nbe(e.languageData);return new uE(n,e.parser.configure({props:[Jh.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new uE(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ti(t){let e=t.field(Vo.state,!1);return e?e.tree:si.empty}class ibe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let r=this.cursorPos-this.string.length;return e<r||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let Pg=null;class dE{constructor(e,n,r=[],i,a,s,o,c){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new dE(e,n,[],si.empty,0,r,[],null)}startParse(){return this.parser.startParse(new ibe(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=si.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(Ff.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Ff.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=Pg;Pg=this;try{return e()}finally{Pg=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=mj(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((d,f,p,m)=>c.push({fromA:d,toA:f,fromB:p,toB:m})),r=Ff.applyChanges(r,c),i=si.empty,a=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){o=[];for(let d of this.skipped){let f=e.mapPos(d.from,1),p=e.mapPos(d.to,-1);f<p&&o.push({from:f,to:p})}}}return new dE(this.parser,n,r,i,a,s,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:a}=this.skipped[r];i<e.to&&a>e.from&&(this.fragments=mj(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends Q9{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let c=Pg;if(c){for(let d of i)c.tempSkipped.push(d);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=s,new si(ls.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return Pg}}function mj(t,e,n){return Ff.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Qp{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new Qp(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=dE.create(e.facet(pd).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Qp(r)}}Vo.state=ji.define({create:Qp.init,update(t,e){for(let n of e.effects)if(n.is(Vo.setState))return n.value;return e.startState.facet(pd)!=e.state.facet(pd)?Qp.init(e.state):t.apply(e)}});let j7=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(j7=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const _O=typeof navigator<"u"&&(!((gO=navigator.scheduling)===null||gO===void 0)&&gO.isInputPending)?()=>navigator.scheduling.isInputPending():null,abe=Gr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Vo.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Vo.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=j7(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,a=r.field(Vo.state);if(a.tree==a.context.tree&&a.context.isDone(i+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!_O?Math.max(25,e.timeRemaining()-5):1e9),o=a.context.treeLen<i&&r.doc.length>i+1e3,c=a.context.work(()=>_O&&_O()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(c||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:Vo.setState.of(new Qp(a.context))})),this.chunkBudget>0&&!(c&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>ja(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),pd=ft.define({combine(t){return t.length?t[0]:null},enables:t=>[Vo.state,abe,et.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]}),sbe=ft.define(),M0=ft.define({combine:t=>{if(!t.length)return"  ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function fE(t){let e=t.facet(M0);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function W_(t,e){let n="",r=t.tabSize,i=t.facet(M0)[0];if(i=="	"){for(;e>=r;)n+="	",e-=r;i=" "}for(let a=0;a<e;a++)n+=i;return n}function ck(t,e){t instanceof ln&&(t=new Jy(t));for(let r of t.state.facet(sbe)){let i=r(t,e);if(i!==void 0)return i}let n=Ti(t.state);return n.length>=e?lbe(t,n,e):null}class Jy{constructor(e,n={}){this.state=e,this.options=n,this.unit=fE(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==e?{text:"",from:e}:(n<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,n);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,n=1){let{text:r,from:i}=this.lineAt(e,n),a=this.countColumn(r,e-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(e,n=e.length){return ym(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const obe=new nn;function lbe(t,e,n){let r=e.resolveStack(n),i=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s&&!(s.from==r.node.from&&s.type==r.node.type);s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return G7(r,t,n)}function G7(t,e,n){for(let r=t;r;r=r.next){let i=ube(r.node);if(i)return i(uk.create(e,n,r))}return 0}function cbe(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function ube(t){let e=t.type.prop(obe);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(nn.closedBy))){let i=t.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>pbe(s,!0,1,void 0,a&&!cbe(s)?i.from:void 0)}return t.parent==null?dbe:null}function dbe(){return 0}class uk extends Jy{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r}get node(){return this.context.node}static create(e,n,r){return new uk(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(fbe(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return G7(this.context.next,this.base,this.pos)}}function fbe(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function hbe(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,a=t.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let c=e.childAfter(o);if(!c||c==r)return null;if(!c.type.isSkipped){if(c.from>=s)return null;let d=/^ */.exec(a.text.slice(n.to-a.from))[0].length;return{from:n.from,to:n.to+d}}o=c.to}}function pbe(t,e,n,r,i){let a=t.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==t.pos+s,c=hbe(t);return c?o?t.column(c.from):t.column(c.to):t.baseIndent+(o?0:t.unit*n)}const mbe=200;function q7(){return ln.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+mbe)return t;let a=n.sliceString(i.from,r);if(!e.some(d=>d.test(a)))return t;let{state:s}=t,o=-1,c=[];for(let{head:d}of s.selection.ranges){let f=s.doc.lineAt(d);if(f.from==o)continue;o=f.from;let p=ck(s,f.from);if(p==null)continue;let m=/^\s*/.exec(f.text)[0],g=W_(s,p);m!=g&&c.push({from:f.from,to:f.from+m.length,insert:g})}return c.length?[t,{changes:c,sequential:!0}]:t})}const gbe=ft.define(),_be=new nn;function bbe(t,e,n){let r=Ti(t);if(r.length<n)return null;let i=r.resolveStack(n,1),a=null;for(let s=i;s;s=s.next){let o=s.node;if(o.to<=n||o.from>n)continue;if(a&&o.from<e)break;let c=o.type.prop(_be);if(c&&(o.to<r.length-50||r.length==t.doc.length||!vbe(o))){let d=c(o,t);d&&d.from<=n&&d.from>=e&&d.to>n&&(a=d)}}return a}function vbe(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function hE(t,e,n){for(let r of t.facet(gbe)){let i=r(t,e,n);if(i)return i}return bbe(t,e,n)}function $7(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const eT=Pt.define({map:$7}),L0=Pt.define({map:$7});function z7(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const Kf=ji.define({create(){return Ct.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(eT)&&!Sbe(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(V7),i=r?Ct.replace({widget:new Rbe(r(e.state,n.value))}):gj;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(L0)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(i,a)=>{i<r&&a>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return t},provide:t=>et.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(gj.range(r,i))}return Ct.set(e,!0)}});function pE(t,e,n){var r;let i=null;return(r=t.field(Kf,!1))===null||r===void 0||r.between(e,n,(a,s)=>{(!i||i.from>a)&&(i={from:a,to:s})}),i}function Sbe(t,e,n){let r=!1;return t.between(e,e,(i,a)=>{i==e&&a==n&&(r=!0)}),r}function Y7(t,e){return t.field(Kf,!1)?e:e.concat(Pt.appendConfig.of(W7()))}const Ebe=t=>{for(let e of z7(t)){let n=hE(t.state,e.from,e.to);if(n)return t.dispatch({effects:Y7(t.state,[eT.of(n),H7(t,n)])}),!0}return!1},ybe=t=>{if(!t.state.field(Kf,!1))return!1;let e=[];for(let n of z7(t)){let r=pE(t.state,n.from,n.to);r&&e.push(L0.of(r),H7(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function H7(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return et.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const Tbe=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),a=hE(e,i.from,i.to);a&&n.push(eT.of(a)),r=(a?t.lineBlockAt(a.to):i).to+1}return n.length&&t.dispatch({effects:Y7(t.state,n)}),!!n.length},xbe=t=>{let e=t.state.field(Kf,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push(L0.of({from:r,to:i}))}),t.dispatch({effects:n}),!0},Cbe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Ebe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:ybe},{key:"Ctrl-Alt-[",run:Tbe},{key:"Ctrl-Alt-]",run:xbe}],Obe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},V7=ft.define({combine(t){return Kl(t,Obe)}});function W7(t){return[Kf,wbe]}function Q7(t,e){let{state:n}=t,r=n.facet(V7),i=s=>{let o=t.lineBlockAt(t.posAtDOM(s.target)),c=pE(t.state,o.from,o.to);c&&t.dispatch({effects:L0.of(c)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const gj=Ct.replace({widget:new class extends Xl{toDOM(t){return Q7(t,null)}}});class Rbe extends Xl{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Q7(e,this.value)}}const Nbe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class bO extends zc{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function Abe(t={}){let e=Object.assign(Object.assign({},Nbe),t),n=new bO(e,!0),r=new bO(e,!1),i=Gr.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(pd)!=s.state.facet(pd)||s.startState.field(Kf,!1)!=s.state.field(Kf,!1)||Ti(s.startState)!=Ti(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new qc;for(let c of s.viewportLineBlocks){let d=pE(s.state,c.from,c.to)?r:hE(s.state,c.from,c.to)?n:null;d&&o.add(c.from,c.from,d)}return o.finish()}}),{domEventHandlers:a}=e;return[i,Y0e({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||_n.empty},initialSpacer(){return new bO(e,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,c)=>{if(a.click&&a.click(s,o,c))return!0;let d=pE(s.state,o.from,o.to);if(d)return s.dispatch({effects:L0.of(d)}),!0;let f=hE(s.state,o.from,o.to);return f?(s.dispatch({effects:eT.of(f)}),!0):!1}})}),W7()]}const wbe=et.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class rh{constructor(e,n){this.specs=e;let r;function i(o){let c=dd.newName();return(r||(r=Object.create(null)))["."+c]=o,c}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof Vo?o=>o.prop(Jh)==s.data:s?o=>o==s:void 0,this.style=Z9(e.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new dd(r):null,this.themeType=n.themeType}static define(e,n){return new rh(e,n||{})}}const PD=ft.define(),K7=ft.define({combine(t){return t.length?[t[0]]:null}});function vO(t){let e=t.facet(PD);return e.length?e:t.facet(K7)}function tT(t,e){let n=[Ibe],r;return t instanceof rh&&(t.module&&n.push(et.styleModule.of(t.module)),r=t.themeType),e!=null&&e.fallback?n.push(K7.of(t)):r?n.push(PD.computeN([et.darkTheme],i=>i.facet(et.darkTheme)==(r=="dark")?[t]:[])):n.push(PD.of(t)),n}class Dbe{constructor(e){this.markCache=Object.create(null),this.tree=Ti(e.state),this.decorations=this.buildDeco(e,vO(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Ti(e.state),r=vO(e.state),i=r!=vO(e.startState),{viewport:a}=e.view,s=e.changes.mapPos(this.decoratedTo,1);n.length<a.to&&!i&&n.type==this.tree.type&&s>=a.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=a.to)}buildDeco(e,n){if(!n||!this.tree.length)return Ct.none;let r=new qc;for(let{from:i,to:a}of e.visibleRanges)Phe(this.tree,n,(s,o,c)=>{r.add(s,o,this.markCache[c]||(this.markCache[c]=Ct.mark({class:c})))},i,a);return r.finish()}}const Ibe=Kc.high(Gr.fromClass(Dbe,{decorations:t=>t.decorations})),Mbe=rh.define([{tag:pe.meta,color:"#404740"},{tag:pe.link,textDecoration:"underline"},{tag:pe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:pe.emphasis,fontStyle:"italic"},{tag:pe.strong,fontWeight:"bold"},{tag:pe.strikethrough,textDecoration:"line-through"},{tag:pe.keyword,color:"#708"},{tag:[pe.atom,pe.bool,pe.url,pe.contentSeparator,pe.labelName],color:"#219"},{tag:[pe.literal,pe.inserted],color:"#164"},{tag:[pe.string,pe.deleted],color:"#a11"},{tag:[pe.regexp,pe.escape,pe.special(pe.string)],color:"#e40"},{tag:pe.definition(pe.variableName),color:"#00f"},{tag:pe.local(pe.variableName),color:"#30a"},{tag:[pe.typeName,pe.namespace],color:"#085"},{tag:pe.className,color:"#167"},{tag:[pe.special(pe.variableName),pe.macroName],color:"#256"},{tag:pe.definition(pe.propertyName),color:"#00c"},{tag:pe.comment,color:"#940"},{tag:pe.invalid,color:"#f00"}]),Lbe=et.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),X7=1e4,Z7="()[]{}",J7=ft.define({combine(t){return Kl(t,{afterCursor:!0,brackets:Z7,maxScanDistance:X7,renderMatch:Bbe})}}),kbe=Ct.mark({class:"cm-matchingBracket"}),Pbe=Ct.mark({class:"cm-nonmatchingBracket"});function Bbe(t){let e=[],n=t.matched?kbe:Pbe;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const Fbe=ji.define({create(){return Ct.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(J7);for(let i of e.state.selection.ranges){if(!i.empty)continue;let a=kl(e.state,i.head,-1,r)||i.head>0&&kl(e.state,i.head-1,1,r)||r.afterCursor&&(kl(e.state,i.head,1,r)||i.head<e.state.doc.length&&kl(e.state,i.head+1,-1,r));a&&(n=n.concat(r.renderMatch(a,e.state)))}return Ct.set(n,!0)},provide:t=>et.decorations.from(t)}),Ube=[Fbe,Lbe];function eW(t={}){return[J7.of(t),Ube]}const jbe=new nn;function BD(t,e,n){let r=t.prop(e<0?nn.openedBy:nn.closedBy);if(r)return r;if(t.name.length==1){let i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function FD(t){let e=t.type.prop(jbe);return e?e(t.node):t}function kl(t,e,n,r={}){let i=r.maxScanDistance||X7,a=r.brackets||Z7,s=Ti(t),o=s.resolveInner(e,n);for(let c=o;c;c=c.parent){let d=BD(c.type,n,a);if(d&&c.from<c.to){let f=FD(c);if(f&&(n>0?e>=f.from&&e<f.to:e>f.from&&e<=f.to))return Gbe(t,e,n,c,f,d,a)}}return qbe(t,e,n,s,o.type,i,a)}function Gbe(t,e,n,r,i,a,s){let o=r.parent,c={from:i.from,to:i.to},d=0,f=o==null?void 0:o.cursor();if(f&&(n<0?f.childBefore(r.from):f.childAfter(r.to)))do if(n<0?f.to<=r.from:f.from>=r.to){if(d==0&&a.indexOf(f.type.name)>-1&&f.from<f.to){let p=FD(f);return{start:c,end:p?{from:p.from,to:p.to}:void 0,matched:!0}}else if(BD(f.type,n,s))d++;else if(BD(f.type,-n,s)){if(d==0){let p=FD(f);return{start:c,end:p&&p.from<p.to?{from:p.from,to:p.to}:void 0,matched:!1}}d--}}while(n<0?f.prevSibling():f.nextSibling());return{start:c,matched:!1}}function qbe(t,e,n,r,i,a,s){let o=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),c=s.indexOf(o);if(c<0||c%2==0!=n>0)return null;let d={from:n<0?e-1:e,to:n>0?e+1:e},f=t.doc.iterRange(e,n>0?t.doc.length:0),p=0;for(let m=0;!f.next().done&&m<=a;){let g=f.value;n<0&&(m+=g.length);let b=e+m*n;for(let S=n>0?0:g.length-1,y=n>0?g.length:-1;S!=y;S+=n){let E=s.indexOf(g[S]);if(!(E<0||r.resolveInner(b+S,1).type!=i))if(E%2==0==n>0)p++;else{if(p==1)return{start:d,end:{from:b+S,to:b+S+1},matched:E>>1==c>>1};p--}}n>0&&(m+=g.length)}return f.done?{start:d,matched:!1}:null}const $be=Object.create(null),_j=[ls.none],bj=[],vj=Object.create(null),zbe=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])zbe[t]=Ybe($be,e);function SO(t,e){bj.indexOf(t)>-1||(bj.push(t),console.warn(e))}function Ybe(t,e){let n=[];for(let o of e.split(" ")){let c=[];for(let d of o.split(".")){let f=t[d]||pe[d];f?typeof f=="function"?c.length?c=c.map(f):SO(d,`Modifier ${d} used at start of tag`):c.length?SO(d,`Tag ${d} used as modifier`):c=Array.isArray(f)?f:[f]:SO(d,`Unknown highlighting tag ${d}`)}for(let d of c)n.push(d)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=vj[i];if(a)return a.id;let s=vj[i]=ls.define({id:_j.length,name:r,props:[K9({[r]:n})]});return _j.push(s),s.id}br.RTL,br.LTR;function Hbe(t,e){if(!e||e.type.id!==cp)return null;const n={card:Dl.CardOneToOne,matchingLabels:[],on:!1,include:[]},r=e.getChild(Rpe);if(r){n.on=r.getChild(Spe)!==null;const a=r.getChild(c_),s=a?a.getChildren(M_):[];for(const f of s)n.matchingLabels.push(t.sliceDoc(f.from,f.to));const o=r.getChild(Epe),c=r.getChild(ype),d=o||c;if(d){n.card=o?Dl.CardManyToOne:Dl.CardOneToMany;const f=d.nextSibling,p=(f==null?void 0:f.getChildren(M_))||[];for(const m of p)n.include.push(t.sliceDoc(m.from,m.to))}}return Ju(e,GL,qL,$L)&&n.card===Dl.CardOneToOne&&(n.card=Dl.CardManyToMany),n}let Vbe=class{constructor(e){this.tree=Ti(e),this.state=e,this.diagnostics=[]}getDiagnostics(){return this.diagnostics.sort((e,n)=>e.from-n.from)}analyze(){this.checkAST(this.tree.topNode.firstChild),this.diagnoseAllErrorNodes()}diagnoseAllErrorNodes(){const e=this.tree.cursor();for(;e.next();)if(e.type.id===0&&e.to!==this.tree.topNode.to){const n=e.node.parent;this.diagnostics.push({severity:"error",message:"unexpected expression",from:n?n.from:e.from,to:n?n.to:e.to})}}checkAST(e){if(!e)return re.none;switch(e.type.id){case Wy:this.checkAggregationExpr(e);break;case cp:this.checkBinaryExpr(e);break;case aV:this.checkCallFunction(e);break;case sV:this.checkAST(e.getChild("Expr"));break;case oV:const n=this.checkAST(e.getChild("Expr"));n!==re.scalar&&n!==re.vector&&this.addDiagnostic(e,`unary expression only allowed on expressions of type scalar or instant vector, got ${n}`);break;case $p:const r=this.checkAST(e.getChild("Expr"));r!==re.vector&&this.addDiagnostic(e,`subquery is only allowed on instant vector, got ${r} in ${e.name} instead`);break;case B_:this.checkAST(e.getChild("Expr"));break;case R0:this.checkVectorSelector(e);break;case YL:const i=this.checkAST(e.getChild("Expr"));i!==re.vector&&i!==re.matrix&&this.addDiagnostic(e,"@ modifier must be preceded by an instant selector vector or range vector selector or a subquery");break}return of(e)}checkAggregationExpr(e){var n;const r=(n=e.firstChild)===null||n===void 0?void 0:n.firstChild;if(!r){this.addDiagnostic(e,"aggregation operator expected in aggregation expression but got nothing");return}const i=e.getChild(Uf),a=i?i.getChildren("Expr"):[];if(!a.length){this.addDiagnostic(e,"unable to find the parameter for the expression");return}this.expectType(a[a.length-1],re.vector,"aggregation expression"),(r.type.id===rV||r.type.id===J9||r.type.id===tV||r.type.id===nV||r.type.id===Tpe)&&this.expectType(a[0],re.scalar,"aggregation parameter"),r.type.id===eV&&this.expectType(a[0],re.string,"aggregation parameter")}checkBinaryExpr(e){const n=e.firstChild,r=e.lastChild;if(!n||!r){this.addDiagnostic(e,"left or right expression is missing in binary expression");return}const i=this.checkAST(n),a=this.checkAST(r),s=e.getChild(iV),o=Ju(e,Qw,P_,Zw,Jw,Kw,Xw),c=Ju(e,GL,qL,$L);s?o||this.addDiagnostic(e,"bool modifier can only be used on comparison operators"):o&&i===re.scalar&&a===re.scalar&&this.addDiagnostic(e,"comparisons between scalars must use BOOL modifier");const d=Hbe(this.state,e);if(d!==null&&d.on)for(const f of d.matchingLabels)for(const p of d.include)f===p&&this.addDiagnostic(e,`label "${f}" must not occur in ON and GROUP clause at once`);i!==re.scalar&&i!==re.vector&&this.addDiagnostic(n,"binary expression must contain only scalar and instant vector types"),a!==re.scalar&&a!==re.vector&&this.addDiagnostic(r,"binary expression must contain only scalar and instant vector types"),(i!==re.vector||a!==re.vector)&&d!==null?d.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"):c&&(((d==null?void 0:d.card)===Dl.CardOneToMany||(d==null?void 0:d.card)===Dl.CardManyToOne)&&this.addDiagnostic(e,"no grouping allowed for set operations"),(d==null?void 0:d.card)!==Dl.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")),(i===re.scalar||a===re.scalar)&&c&&this.addDiagnostic(e,"set operator not allowed in binary scalar expression")}checkCallFunction(e){var n;const r=(n=e.firstChild)===null||n===void 0?void 0:n.firstChild;if(!r){this.addDiagnostic(e,"function not defined");return}const i=e.getChild(Uf),a=i?i.getChildren("Expr"):[],s=uV(r.type.id),o=s.argTypes.length;if(s.variadic===0)a.length!==o&&this.addDiagnostic(e,`expected ${o} argument(s) in call to "${s.name}", got ${a.length}`);else{const d=o-1;if(d>a.length)this.addDiagnostic(e,`expected at least ${d} argument(s) in call to "${s.name}", got ${a.length}`);else{const f=d+s.variadic;s.variadic>0&&f<a.length&&this.addDiagnostic(e,`expected at most ${f} argument(s) in call to "${s.name}", got ${a.length}`)}}s.name==="info"&&a.length>1&&a[1].getChild(JS)&&this.addDiagnostic(e,`expected label selectors as the second argument to "info" function, got ${a[1].type}`);let c=0;for(let d=0;d<a.length;d++){if(c=d,c>=s.argTypes.length){if(s.variadic===0)break;c=s.argTypes.length-1}this.expectType(a[d],s.argTypes[c],`call to function "${s.name}"`)}}checkVectorSelector(e){const n=e.getChild(u_),r=[L_,up,vf];let i=[];for(const c of r)i=i.concat(fV(n?n.getChildren(c):[],this.state));let a="";const s=e.getChild(JS);if(s&&(a=this.state.sliceDoc(s.from,s.to)),a!==""){const c=i.find(d=>d.name==="__name__");c&&this.addDiagnostic(e,`metric name must not be set twice: ${a} or ${c.value}`),i.push(new dV(N0,"__name__",a))}else{const c=i.filter(d=>d.name==="__name__");c.length>1&&this.addDiagnostic(e,`metric name must not be set twice: ${c[0].value} or ${c[1].value}`)}i.every(c=>c.matchesEmpty())&&this.addDiagnostic(e,"vector selector must contain at least one non-empty matcher")}expectType(e,n,r){const i=this.checkAST(e);i!==n&&this.addDiagnostic(e,`expected type ${n} in ${r}, got ${i}`)}addDiagnostic(e,n){this.diagnostics.push({severity:"error",message:n,from:e.from,to:e.to})}};class tW{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let n=Ti(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search(nW(e,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,r){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function Sj(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Wbe(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let a=1;a<i.length;a++)n[i[a]]=!0}let r=Sj(e)+Sj(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function Qbe(t){let e=t.map(i=>typeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:Wbe(e);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:e,validFor:n}:null}}class Ej{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i}}function jf(t){return t.selection.main.from}function nW(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?t:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const dk=Ql.define();function Kbe(t,e,n,r){let{main:i}=t.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},t.changeByRange(o=>{if(o!=i&&n!=r&&t.sliceDoc(o.from+a,o.from+s)!=t.sliceDoc(n,r))return{range:o};let c=t.toText(e);return{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:c},range:Be.cursor(o.from+a+c.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const yj=new WeakMap;function Xbe(t){if(!Array.isArray(t))return t;let e=yj.get(t);return e||yj.set(t,e=Qbe(t)),e}const mE=Pt.define(),Q_=Pt.define();class Zbe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let r=es(e,n),i=Ml(r);this.chars.push(r);let a=e.slice(n,n+i),s=a.toUpperCase();this.folded.push(es(s==a?a.toLowerCase():s,0)),n+=i}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:r,any:i,precise:a,byWord:s}=this;if(n.length==1){let x=es(e,0),C=Ml(x),R=C==e.length?0:-100;if(x!=n[0])if(x==r[0])R+=-200;else return null;return this.ret(R,[0,C])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=n.length,d=0;if(o<0){for(let x=0,C=Math.min(e.length,200);x<C&&d<c;){let R=es(e,x);(R==n[d]||R==r[d])&&(i[d++]=x),x+=Ml(R)}if(d<c)return null}let f=0,p=0,m=!1,g=0,b=-1,S=-1,y=/[a-z]/.test(e),E=!0;for(let x=0,C=Math.min(e.length,200),R=0;x<C&&p<c;){let T=es(e,x);o<0&&(f<c&&T==n[f]&&(a[f++]=x),g<c&&(T==n[g]||T==r[g]?(g==0&&(b=x),S=x+1,g++):g=0));let N,w=T<255?T>=48&&T<=57||T>=97&&T<=122?2:T>=65&&T<=90?1:0:(N=VL(T))!=N.toLowerCase()?1:N!=N.toUpperCase()?2:0;(!x||w==1&&y||R==0&&w!=0)&&(n[p]==T||r[p]==T&&(m=!0)?s[p++]=x:s.length&&(E=!1)),R=w,x+=Ml(T)}return p==c&&s[0]==0&&E?this.result(-100+(m?-200:0),s,e):g==c&&b==0?this.ret(-200-e.length+(S==e.length?0:-100),[0,S]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):g==c?this.ret(-900-e.length,[b,S]):p==c?this.result(-100+(m?-200:0)+-700+(E?0:-1100),s,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?Ml(es(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(e-r.length,i)}}class Jbe{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),r=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return r==null?null:(this.matched=[0,n.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const ki=ft.define({combine(t){return Kl(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:eve,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>Tj(e(r),n(r)),optionClass:(e,n)=>r=>Tj(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function Tj(t,e){return t?e?t+" "+e:t:e}function eve(t,e,n,r,i,a){let s=t.textDirection==br.RTL,o=s,c=!1,d="top",f,p,m=e.left-i.left,g=i.right-e.right,b=r.right-r.left,S=r.bottom-r.top;if(o&&m<Math.min(b,g)?o=!1:!o&&g<Math.min(b,m)&&(o=!0),b<=(o?m:g))f=Math.max(i.top,Math.min(n.top,i.bottom-S))-e.top,p=Math.min(400,o?m:g);else{c=!0,p=Math.min(400,(s?e.right:i.right-e.left)-30);let x=i.bottom-e.bottom;x>=S||x>e.top?f=n.bottom-e.top:(d="bottom",f=e.bottom-n.top)}let y=(e.bottom-e.top)/a.offsetHeight,E=(e.right-e.left)/a.offsetWidth;return{style:`${d}: ${f/y}px; max-width: ${p/E}px`,class:"cm-completionInfo-"+(c?s?"left-narrow":"right-narrow":o?"left":"right")}}function tve(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,c=0;for(let d=0;d<a.length;){let f=a[d++],p=a[d++];f>c&&s.appendChild(document.createTextNode(o.slice(c,f)));let m=s.appendChild(document.createElement("span"));m.appendChild(document.createTextNode(o.slice(f,p))),m.className="cm-completionMatchedText",c=p}return c<o.length&&s.appendChild(document.createTextNode(o.slice(c))),s},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),e.sort((n,r)=>n.position-r.position).map(n=>n.render)}function EO(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class nve{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let i=e.state.field(n),{options:a,selected:s}=i.open,o=e.state.facet(ki);this.optionContent=tve(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=EO(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:d}=e.state.field(n).open;for(let f=c.target,p;f&&f!=this.dom;f=f.parentNode)if(f.nodeName=="LI"&&(p=/-(\d+)$/.exec(f.id))&&+p[1]<d.length){this.applyCompletion(e,d[+p[1]]),c.preventDefault();return}}),this.dom.addEventListener("focusout",c=>{let d=e.state.field(this.stateField,!1);d&&d.tooltip&&e.state.facet(ki).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:Q_.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let r=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=EO(a.length,s,e.state.facet(ki).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=EO(n.options.length,n.selected,this.view.state.facet(ki).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,r)}).catch(s=>ja(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:a}=e;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&ive(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottom<Math.max(a.top,n.top)+10?null:this.view.state.facet(ki).positionInfo(this.view,n,i,r,a,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,r){const i=document.createElement("ul");i.id=n,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));let a=null;for(let s=r.from;s<r.to;s++){let{completion:o,match:c}=e[s],{section:d}=o;if(d){let m=typeof d=="string"?d:d.name;if(m!=a&&(s>r.from||r.from==0))if(a=m,typeof d!="string"&&d.header)i.appendChild(d.header(d));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=m}}const f=i.appendChild(document.createElement("li"));f.id=n+"-"+s,f.setAttribute("role","option");let p=this.optionClass(o);p&&(f.className=p);for(let m of this.optionContent){let g=m(o,this.view.state,this.view,c);g&&f.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function rve(t,e){return n=>new nve(n,t,e)}function ive(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i)}function xj(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function ave(t,e){let n=[],r=null,i=d=>{n.push(d);let{section:f}=d.completion;if(f){r||(r=[]);let p=typeof f=="string"?f:f.name;r.some(m=>m.name==p)||r.push(typeof f=="string"?{name:p}:f)}},a=e.facet(ki);for(let d of t)if(d.hasResult()){let f=d.result.getMatch;if(d.result.filter===!1)for(let p of d.result.options)i(new Ej(p,d.source,f?f(p):[],1e9-n.length));else{let p=e.sliceDoc(d.from,d.to),m,g=a.filterStrict?new Jbe(p):new Zbe(p);for(let b of d.result.options)if(m=g.match(b.label)){let S=b.displayLabel?f?f(b,m.matched):[]:m.matched;i(new Ej(b,d.source,S,m.score+(b.boost||0)))}}}if(r){let d=Object.create(null),f=0,p=(m,g)=>{var b,S;return((b=m.rank)!==null&&b!==void 0?b:1e9)-((S=g.rank)!==null&&S!==void 0?S:1e9)||(m.name<g.name?-1:1)};for(let m of r.sort(p))f-=1e5,d[m.name]=f;for(let m of n){let{section:g}=m.completion;g&&(m.score+=d[typeof g=="string"?g:g.name])}}let s=[],o=null,c=a.compareCompletions;for(let d of n.sort((f,p)=>p.score-f.score||c(f.completion,p.completion))){let f=d.completion;!o||o.label!=f.label||o.detail!=f.detail||o.type!=null&&f.type!=null&&o.type!=f.type||o.apply!=f.apply||o.boost!=f.boost?s.push(d):xj(d.completion)>xj(o)&&(s[s.length-1]=d),o=d.completion}return s}class ep{constructor(e,n,r,i,a,s){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new ep(this.options,Cj(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,a,s){if(i&&!s&&e.some(d=>d.isPending))return i.setDisabled();let o=ave(e,n);if(!o.length)return i&&e.some(d=>d.isPending)?i.setDisabled():null;let c=n.facet(ki).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let d=i.options[i.selected].completion;for(let f=0;f<o.length;f++)if(o[f].completion==d){c=f;break}}return new ep(o,Cj(r,c),{pos:e.reduce((d,f)=>f.hasResult()?Math.min(d,f.from):d,1e8),create:dve,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(e){return new ep(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new ep(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class gE{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new gE(cve,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(ki),a=(r.override||n.languageDataAt("autocomplete",jf(n)).map(Xbe)).map(c=>(this.active.find(f=>f.source==c)||new no(c,this.active.some(f=>f.state!=0)?1:0)).update(e,r));a.length==this.active.length&&a.every((c,d)=>c==this.active[d])&&(a=this.active);let s=this.open,o=e.effects.some(c=>c.is(fk));s&&e.docChanged&&(s=s.map(e.changes)),e.selection||a.some(c=>c.hasResult()&&e.changes.touchesRange(c.from,c.to))||!sve(a,this.active)||o?s=ep.build(a,n,this.id,s,r,o):s&&s.disabled&&!a.some(c=>c.isPending)&&(s=null),!s&&a.every(c=>!c.isPending)&&a.some(c=>c.hasResult())&&(a=a.map(c=>c.hasResult()?new no(c.source,0):c));for(let c of e.effects)c.is(iW)&&(s=s&&s.setSelected(c.value,this.id));return a==this.active&&s==this.open?this:new gE(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?ove:lve}}function sve(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;r<e.length&&!e[r].hasResult();)r++;let i=n==t.length,a=r==e.length;if(i||a)return i==a;if(t[n++].result!=e[r++].result)return!1}}const ove={"aria-autocomplete":"list"},lve={};function Cj(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const cve=[];function rW(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(dk);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class no{constructor(e,n,r=!1){this.source=e,this.state=n,this.explicit=r}hasResult(){return!1}get isPending(){return this.state==1}update(e,n){let r=rW(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new no(i.source,0)),r&4&&i.state==0&&(i=new no(this.source,1)),i=i.updateFor(e,r);for(let a of e.effects)if(a.is(mE))i=new no(i.source,1,a.value);else if(a.is(Q_))i=new no(i.source,0);else if(a.is(fk))for(let s of a.value)s.source==i.source&&(i=s);return i}updateFor(e,n){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(jf(e.state))}}class pp extends no{constructor(e,n,r,i,a,s){super(e,3,n),this.limit=r,this.result=i,this.from=a,this.to=s}hasResult(){return!0}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let a=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),o=jf(e.state);if(o>s||!i||n&2&&(jf(e.startState)==this.from||o<this.limit))return new no(this.source,n&4?1:0);let c=e.changes.mapPos(this.limit);return uve(i.validFor,e.state,a,s)?new pp(this.source,this.explicit,c,i,a,s):i.update&&(i=i.update(i,a,s,new tW(e.state,o,!1)))?new pp(this.source,this.explicit,c,i,i.from,(r=i.to)!==null&&r!==void 0?r:jf(e.state)):new no(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new pp(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new no(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function uve(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):nW(t,!0).test(i)}const fk=Pt.define({map(t,e){return t.map(n=>n.map(e))}}),iW=Pt.define(),ns=ji.define({create(){return gE.start()},update(t,e){return t.update(e)},provide:t=>[lk.from(t,e=>e.tooltip),et.contentAttributes.from(t,e=>e.attrs)]});function hk(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(ns).active.find(i=>i.source==e.source);return r instanceof pp?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},Kbe(t.state,n,r.from,r.to)),{annotations:dk.of(e.completion)})):n(t,e.completion,r.from,r.to),!0):!1}const dve=rve(ns,hk);function Tv(t,e="option"){return n=>{let r=n.state.field(ns,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(ki).interactionDelay)return!1;let i=1,a;e=="page"&&(a=P7(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector("li").offsetHeight)-1));let{length:s}=r.open.options,o=r.open.selected>-1?r.open.selected+i*(t?1:-1):t?0:s-1;return o<0?o=e=="page"?0:s-1:o>=s&&(o=e=="page"?s-1:0),n.dispatch({effects:iW.of(o)}),!0}}const fve=t=>{let e=t.state.field(ns,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(ki).interactionDelay?!1:hk(t,e.open.options[e.open.selected])},Oj=t=>t.state.field(ns,!1)?(t.dispatch({effects:mE.of(!0)}),!0):!1,hve=t=>{let e=t.state.field(ns,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:Q_.of(null)}),!0)};class pve{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const mve=50,gve=1e3,_ve=Gr.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(ns).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(ns),n=t.state.facet(ki);if(!t.selectionSet&&!t.docChanged&&t.startState.field(ns)==e)return;let r=t.transactions.some(a=>{let s=rW(a,n);return s&8||(a.selection||a.docChanged)&&!(s&3)});for(let a=0;a<this.running.length;a++){let s=this.running[a];if(r||s.context.abortOnDocChange&&t.docChanged||s.updates.length+t.transactions.length>mve&&Date.now()-s.time>gve){for(let o of s.context.abortListeners)try{o()}catch(c){ja(this.view.state,c)}s.context.abortListeners=null,this.running.splice(a--,1)}else s.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(a=>a.effects.some(s=>s.is(mE)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(a=>a.isPending&&!this.running.some(s=>s.active.source==a.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let a of t.transactions)a.isUserEvent("input.type")?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(ns);for(let n of e.active)n.isPending&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ki).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=jf(e),r=new tW(e,n,t.explicit,this.view),i=new pve(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:Q_.of(null)}),ja(this.view.state,a)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ki).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(ki),r=this.view.state.field(ns);for(let i=0;i<this.running.length;i++){let a=this.running[i];if(a.done===void 0)continue;if(this.running.splice(i--,1),a.done){let o=jf(a.updates.length?a.updates[0].startState:this.view.state),c=Math.min(o,a.done.from+(a.active.explicit?0:1)),d=new pp(a.active.source,a.active.explicit,c,a.done,a.done.from,(t=a.done.to)!==null&&t!==void 0?t:o);for(let f of a.updates)d=d.update(f,n);if(d.hasResult()){e.push(d);continue}}let s=r.active.find(o=>o.source==a.active.source);if(s&&s.isPending)if(a.done==null){let o=new no(a.active.source,0);for(let c of a.updates)o=o.update(c,n);o.isPending||e.push(o)}else this.startQuery(s)}(e.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:fk.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(ns,!1);if(e&&e.tooltip&&this.view.state.facet(ki).closeOnBlur){let n=e.open&&P7(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Q_.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:mE.of(!1)}),20),this.composing=0}}}),bve=typeof navigator=="object"&&/Win/.test(navigator.platform),vve=Kc.highest(et.domEventHandlers({keydown(t,e){let n=e.state.field(ns,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(bve&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(s=>s.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(t.key)>-1&&hk(e,r),!1}})),aW=et.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Sve{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i}}class pk{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,ea.TrackDel),r=e.mapPos(this.to,1,ea.TrackDel);return n==null||r==null?null:new pk(this.field,n,r)}}class mk{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let c of this.lines){if(r.length){let d=s,f=/^\t*/.exec(c)[0].length;for(let p=0;p<f;p++)d+=e.facet(M0);i.push(n+d.length-f),c=d+c.slice(f)}r.push(c),n+=c.length+1}let o=this.fieldPositions.map(c=>new pk(c.field,i[c.line]+c.from,i[c.line]+c.to));return{text:r,ranges:o}}static parse(e){let n=[],r=[],i=[],a;for(let s of e.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let o=a[1]?+a[1]:null,c=a[2]||a[3]||"",d=-1,f=c.replace(/\\[{}]/g,p=>p[1]);for(let p=0;p<n.length;p++)(o!=null?n[p].seq==o:f&&n[p].name==f)&&(d=p);if(d<0){let p=0;for(;p<n.length&&(o==null||n[p].seq!=null&&n[p].seq<o);)p++;n.splice(p,0,{seq:o,name:f}),d=p;for(let m of i)m.field>=d&&m.field++}i.push(new Sve(d,r.length,a.index,a.index+f.length)),s=s.slice(0,a.index)+c+s.slice(a.index+a[0].length)}s=s.replace(/\\([{}])/g,(o,c,d)=>{for(let f of i)f.line==r.length&&f.from>d&&(f.from--,f.to--);return c}),r.push(s)}return new mk(r,i)}}let Eve=Ct.widget({widget:new class extends Xl{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),yve=Ct.mark({class:"cm-snippetField"});class Tm{constructor(e,n){this.ranges=e,this.active=n,this.deco=Ct.set(e.map(r=>(r.from==r.to?Eve:yve).range(r.from,r.to)))}map(e){let n=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;n.push(i)}return new Tm(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const k0=Pt.define({map(t,e){return t&&t.map(e)}}),Tve=Pt.define(),K_=ji.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(k0))return n.value;if(n.is(Tve)&&t)return new Tm(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>et.decorations.from(t,e=>e?e.deco:Ct.none)});function gk(t,e){return Be.create(t.filter(n=>n.field==e).map(n=>Be.range(n.from,n.to)))}function jh(t){let e=mk.parse(t);return(n,r,i,a)=>{let{text:s,ranges:o}=e.instantiate(n.state,i),{main:c}=n.state.selection,d={changes:{from:i,to:a==c.from?c.to:a,insert:pn.of(s)},scrollIntoView:!0,annotations:r?[dk.of(r),oi.userEvent.of("input.complete")]:void 0};if(o.length&&(d.selection=gk(o,0)),o.some(f=>f.field>0)){let f=new Tm(o,0),p=d.effects=[k0.of(f)];n.state.field(K_,!1)===void 0&&p.push(Pt.appendConfig.of([K_,Nve,Ave,aW]))}n.dispatch(n.state.update(d))}}function sW(t){return({state:e,dispatch:n})=>{let r=e.field(K_,!1);if(!r||t<0&&r.active==0)return!1;let i=r.active+t,a=t>0&&!r.ranges.some(s=>s.field==i+t);return n(e.update({selection:gk(r.ranges,i),effects:k0.of(a?null:new Tm(r.ranges,i)),scrollIntoView:!0})),!0}}const xve=({state:t,dispatch:e})=>t.field(K_,!1)?(e(t.update({effects:k0.of(null)})),!0):!1,Cve=sW(1),Ove=sW(-1),Rve=[{key:"Tab",run:Cve,shift:Ove},{key:"Escape",run:xve}],Rj=ft.define({combine(t){return t.length?t[0]:Rve}}),Nve=Kc.highest(rd.compute([Rj],t=>t.facet(Rj))),Ave=et.domEventHandlers({mousedown(t,e){let n=e.state.field(K_,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(e.dispatch({selection:gk(n.ranges,i.field),effects:k0.of(n.ranges.some(a=>a.field>i.field)?new Tm(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),X_={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Ef=Pt.define({map(t,e){let n=e.mapPos(t,-1,ea.TrackAfter);return n??void 0}}),_k=new class extends Hf{};_k.startSide=1;_k.endSide=-1;const oW=ji.define({create(){return _n.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of e.effects)n.is(Ef)&&(t=t.update({add:[_k.range(n.value,n.value+1)]}));return t}});function lW(){return[Dve,oW]}const yO="()[]{}<>";function cW(t){for(let e=0;e<yO.length;e+=2)if(yO.charCodeAt(e)==t)return yO.charAt(e+1);return VL(t<128?t:t+1)}function uW(t,e){return t.languageDataAt("closeBrackets",e)[0]||X_}const wve=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Dve=et.inputHandler.of((t,e,n,r)=>{if((wve?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||r.length==2&&Ml(es(r,0))==1||e!=i.from||n!=i.to)return!1;let a=Mve(t.state,r);return a?(t.dispatch(a),!0):!1}),Ive=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=uW(t,t.selection.main.head).brackets||X_.brackets,i=null,a=t.changeByRange(s=>{if(s.empty){let o=Lve(t.doc,s.head);for(let c of r)if(c==o&&nT(t.doc,s.head)==cW(es(c,0)))return{changes:{from:s.head-c.length,to:s.head+c.length},range:Be.cursor(s.head-c.length)}}return{range:i=s}});return i||e(t.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},dW=[{key:"Backspace",run:Ive}];function Mve(t,e){let n=uW(t,t.selection.main.head),r=n.brackets||X_.brackets;for(let i of r){let a=cW(es(i,0));if(e==i)return a==i?Bve(t,i,r.indexOf(i+i+i)>-1,n):kve(t,i,a,n.before||X_.before);if(e==a&&fW(t,t.selection.main.from))return Pve(t,i,a)}return null}function fW(t,e){let n=!1;return t.field(oW).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function nT(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Ml(es(n,0)))}function Lve(t,e){let n=t.sliceString(e-2,e);return Ml(es(n,0))==n.length?n:n.slice(1)}function kve(t,e,n,r){let i=null,a=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:n,from:s.to}],effects:Ef.of(s.to+e.length),range:Be.range(s.anchor+e.length,s.head+e.length)};let o=nT(t.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:e+n,from:s.head},effects:Ef.of(s.head+e.length),range:Be.cursor(s.head+e.length)}:{range:i=s}});return i?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function Pve(t,e,n){let r=null,i=t.changeByRange(a=>a.empty&&nT(t.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:Be.cursor(a.head+n.length)}:r={range:a});return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Bve(t,e,n,r){let i=r.stringPrefixes||X_.stringPrefixes,a=null,s=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:e,from:o.to}],effects:Ef.of(o.to+e.length),range:Be.range(o.anchor+e.length,o.head+e.length)};let c=o.head,d=nT(t.doc,c),f;if(d==e){if(Nj(t,c))return{changes:{insert:e+e,from:c},effects:Ef.of(c+e.length),range:Be.cursor(c+e.length)};if(fW(t,c)){let m=n&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+m.length,insert:m},range:Be.cursor(c+m.length)}}}else{if(n&&t.sliceDoc(c-2*e.length,c)==e+e&&(f=Aj(t,c-2*e.length,i))>-1&&Nj(t,f))return{changes:{insert:e+e+e+e,from:c},effects:Ef.of(c+e.length),range:Be.cursor(c+e.length)};if(t.charCategorizer(c)(d)!=Er.Word&&Aj(t,c,i)>-1&&!Fve(t,c,e,i))return{changes:{insert:e+e,from:c},effects:Ef.of(c+e.length),range:Be.cursor(c+e.length)}}return{range:a=o}});return a?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Nj(t,e){let n=Ti(t).resolveInner(e+1);return n.parent&&n.from==e}function Fve(t,e,n,r){let i=Ti(t).resolveInner(e,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),c=o.indexOf(n);if(!c||c>-1&&r.indexOf(o.slice(0,c))>-1){let f=i.firstChild;for(;f&&f.from==i.from&&f.to-f.from>n.length+c;){if(t.sliceDoc(f.to-n.length,f.to)==n)return!1;f=f.firstChild}return!0}let d=i.to==e&&i.parent;if(!d)break;i=d}return!1}function Aj(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Er.Word)return e;for(let i of n){let a=e-i.length;if(t.sliceDoc(a,e)==i&&r(t.sliceDoc(a-1,a))!=Er.Word)return a}return-1}function hW(t={}){return[vve,ns,ki.of(t),_ve,Uve,aW]}const bk=[{key:"Ctrl-Space",run:Oj},{mac:"Alt-`",run:Oj},{key:"Escape",run:hve},{key:"ArrowDown",run:Tv(!0)},{key:"ArrowUp",run:Tv(!1)},{key:"PageDown",run:Tv(!0,"page")},{key:"PageUp",run:Tv(!1,"page")},{key:"Enter",run:fve}],Uve=Kc.highest(rd.computeN([ki],t=>t.facet(ki).defaultKeymap?[bk]:[])),pW=[{label:"y"},{label:"w"},{label:"d"},{label:"h"},{label:"m"},{label:"s"},{label:"ms"}],jve=[{label:"="},{label:"!="},{label:"=~"},{label:"!~"}],mW=[{label:"^"},{label:"*"},{label:"/"},{label:"%"},{label:"+"},{label:"-"},{label:"=="},{label:">="},{label:">"},{label:"<"},{label:"<="},{label:"!="},{label:"atan2"},{label:"and"},{label:"or"},{label:"unless"}],Gve=[{label:"on",info:"Match only on specified labels",type:"keyword"},{label:"ignoring",info:"Ignore specified labels for matching",type:"keyword"},{label:"group_left",info:"Allow many-to-one matching",type:"keyword"},{label:"group_right",info:"Allow one-to-many matching",type:"keyword"}],qve=[{label:"start()",info:"resolve to the start of the query",type:"keyword"},{label:"end()",info:"resolve to the end of the query",type:"keyword"}],$ve=[{label:"abs",detail:"function",info:"Return absolute values of input series",type:"function"},{label:"absent",detail:"function",info:"Determine whether input vector is empty",type:"function"},{label:"absent_over_time",detail:"function",info:"Determine whether input range vector is empty",type:"function"},{label:"acos",detail:"function",info:"Calculate the arccosine, in radians, for input series",type:"function"},{label:"acosh",detail:"function",info:"Calculate the inverse hyperbolic cosine, in radians, for input series",type:"function"},{label:"asin",detail:"function",info:"Calculate the arcsine, in radians, for input series",type:"function"},{label:"asinh",detail:"function",info:"Calculate the inverse hyperbolic sine, in radians, for input series",type:"function"},{label:"atan",detail:"function",info:"Calculate the arctangent, in radians, for input series",type:"function"},{label:"atanh",detail:"function",info:"Calculate the inverse hyperbolic tangent, in radians, for input series",type:"function"},{label:"avg_over_time",detail:"function",info:"Average series values over time",type:"function"},{label:"ceil",detail:"function",info:"Round up values of input series to nearest integer",type:"function"},{label:"changes",detail:"function",info:"Return number of value changes in input series over time",type:"function"},{label:"clamp",detail:"function",info:"Limit the value of input series between a minimum and a maximum",type:"function"},{label:"clamp_max",detail:"function",info:"Limit the value of input series to a maximum",type:"function"},{label:"clamp_min",detail:"function",info:"Limit the value of input series to a minimum",type:"function"},{label:"cos",detail:"function",info:"Calculate the cosine, in radians, for input series",type:"function",boost:-1},{label:"cosh",detail:"function",info:"Calculate the hyperbolic cosine, in radians, for input series",type:"function",boost:-1},{label:"count_over_time",detail:"function",info:"Count the number of values for each input series",type:"function"},{label:"days_in_month",detail:"function",info:"Return the number of days in current month for provided timestamps",type:"function"},{label:"day_of_month",detail:"function",info:"Return the day of the month for provided timestamps",type:"function"},{label:"day_of_week",detail:"function",info:"Return the day of the week for provided timestamps",type:"function"},{label:"day_of_year",detail:"function",info:"Return the day of the year for provided timestamps",type:"function"},{label:"deg",detail:"function",info:"Convert radians to degrees for input series",type:"function",boost:-1},{label:"delta",detail:"function",info:"Calculate the difference between beginning and end of a range vector (for gauges)",type:"function"},{label:"deriv",detail:"function",info:"Calculate the per-second derivative over series in a range vector (for gauges)",type:"function"},{label:"exp",detail:"function",info:"Calculate exponential function for input vector values",type:"function"},{label:"floor",detail:"function",info:"Round down values of input series to nearest integer",type:"function"},{label:"histogram_avg",detail:"function",info:"Return the average of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_count",detail:"function",info:"Return the count of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_fraction",detail:"function",info:"Calculate fractions of observations within an interval from a native histogram (experimental feature)",type:"function"},{label:"histogram_quantile",detail:"function",info:"Calculate quantiles from native histograms (experimental) and from conventional histogram buckets",type:"function"},{label:"histogram_sum",detail:"function",info:"Return the sum of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_stddev",detail:"function",info:"Estimate the standard deviation of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_stdvar",detail:"function",info:"Estimate the standard variance of observations from a native histogram (experimental feature)",type:"function"},{label:"double_exponential_smoothing",detail:"function",info:"Calculate smoothed value of input series",type:"function"},{label:"hour",detail:"function",info:"Return the hour of the day for provided timestamps",type:"function"},{label:"idelta",detail:"function",info:"Calculate the difference between the last two samples of a range vector (for counters)",type:"function"},{label:"increase",detail:"function",info:"Calculate the increase in value over a range of time (for counters)",type:"function"},{label:"info",detail:"function",info:"Add data labels from corresponding info metrics",type:"function"},{label:"irate",detail:"function",info:"Calculate the per-second increase over the last two samples of a range vector (for counters)",type:"function"},{label:"label_replace",detail:"function",info:"Set or replace label values",type:"function"},{label:"label_join",detail:"function",info:"Join together label values into new label",type:"function"},{label:"last_over_time",detail:"function",info:"The most recent point value in specified interval.",type:"function"},{label:"ln",detail:"function",info:"Calculate natural logarithm of input series",type:"function"},{label:"log10",detail:"function",info:"Calulcate base-10 logarithm of input series",type:"function"},{label:"log2",detail:"function",info:"Calculate base-2 logarithm of input series",type:"function"},{label:"mad_over_time",detail:"function",info:"Return the median absolute deviation over time for input series",type:"function"},{label:"max_over_time",detail:"function",info:"Return the maximum value over time for input series",type:"function"},{label:"min_over_time",detail:"function",info:"Return the minimum value over time for input series",type:"function"},{label:"minute",detail:"function",info:"Return the minute of the hour for provided timestamps",type:"function"},{label:"month",detail:"function",info:"Return the month for provided timestamps",type:"function"},{label:"pi",detail:"function",info:"Return pi",type:"function"},{label:"predict_linear",detail:"function",info:"Predict the value of a gauge into the future",type:"function"},{label:"present_over_time",detail:"function",info:"the value 1 for any series in the specified interval",type:"function"},{label:"quantile_over_time",detail:"function",info:"Calculate value quantiles over time for input series",type:"function"},{label:"rad",detail:"function",info:"Convert degrees to radians for input series",type:"function",boost:-1},{label:"rate",detail:"function",info:"Calculate per-second increase over a range vector (for counters)",type:"function"},{label:"resets",detail:"function",info:"Return number of value decreases (resets) in input series of time",type:"function"},{label:"round",detail:"function",info:"Round values of input series to nearest integer",type:"function"},{label:"scalar",detail:"function",info:"Convert single-element series vector into scalar value",type:"function"},{label:"sgn",detail:"function",info:"Returns the sign of the instant vector",type:"function"},{label:"sin",detail:"function",info:"Calculate the sine, in radians, for input series",type:"function"},{label:"sinh",detail:"function",info:"Calculate the hyperbolic sine, in radians, for input series",type:"function"},{label:"sort",detail:"function",info:"Sort input series ascendingly by value",type:"function"},{label:"sort_desc",detail:"function",info:"Sort input series descendingly by value",type:"function"},{label:"sort_by_label",detail:"function",info:"Sort input series ascendingly by label value",type:"function"},{label:"sort_by_label_desc",detail:"function",info:"Sort input series descendingly by value value",type:"function"},{label:"sqrt",detail:"function",info:"Return the square root for input series",type:"function"},{label:"stddev_over_time",detail:"function",info:"Calculate the standard deviation within input series over time",type:"function"},{label:"stdvar_over_time",detail:"function",info:"Calculate the standard variance within input series over time",type:"function"},{label:"sum_over_time",detail:"function",info:"Calculate the sum over the values of input series over time",type:"function"},{label:"tan",detail:"function",info:"Calculate the tangent, in radians, for input series",type:"function"},{label:"tanh",detail:"function",info:"Calculate the hyperbolic tangent, in radians, for input series",type:"function"},{label:"time",detail:"function",info:"Return the Unix timestamp at the current evaluation time",type:"function"},{label:"timestamp",detail:"function",info:"Return the Unix timestamp for the samples in the input vector",type:"function"},{label:"vector",detail:"function",info:"Convert a scalar value into a single-element series vector",type:"function"},{label:"year",detail:"function",info:"Return the year for provided timestamps",type:"function"}],gW=[{label:"avg",detail:"aggregation",info:"Calculate the average over dimensions",type:"keyword"},{label:"bottomk",detail:"aggregation",info:"Smallest k elements by sample value",type:"keyword"},{label:"count",detail:"aggregation",info:"Count number of elements in the vector",type:"keyword"},{label:"count_values",detail:"aggregation",info:"Count number of elements with the same value",type:"keyword"},{label:"group",detail:"aggregation",info:"Group series, while setting the sample value to 1",type:"keyword"},{label:"limitk",detail:"aggregation",info:"Sample k elements",type:"keyword"},{label:"limit_ratio",detail:"aggregation",info:"Sample given ratio of elements",type:"keyword"},{label:"max",detail:"aggregation",info:"Select maximum over dimensions",type:"keyword"},{label:"min",detail:"aggregation",info:"Select minimum over dimensions",type:"keyword"},{label:"quantile",detail:"aggregation",info:"Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions",type:"keyword"},{label:"stddev",detail:"aggregation",info:"Calculate population standard deviation over dimensions",type:"keyword"},{label:"stdvar",detail:"aggregation",info:"Calculate population standard variance over dimensions",type:"keyword"},{label:"sum",detail:"aggregation",info:"Calculate sum over dimensions",type:"keyword"},{label:"topk",detail:"aggregation",info:"Largest k elements by sample value",type:"keyword"}],zve=[{label:"by",info:"Keep the listed labels, remove all others.",type:"keyword"},{label:"without",info:"Remove the listed labels, preserve all others.",type:"keyword"}],Yve=[{label:"nan",info:"Floating-point NaN value",type:"constant"},{label:"inf",info:"Floating-point infinity",type:"constant"}],Hve=[{label:"sum(rate(__input_vector__[5m]))",type:"function",detail:"snippet",info:"Sum over rates of increase",apply:jh("sum(rate(${__input_vector__}[5m]))")},{label:"histogram_quantile(__quantile__, sum by(le) (rate(__histogram_metric__[5m])))",type:"function",detail:"snippet",info:"Approximate a quantile value from an aggregated histogram",apply:jh("histogram_quantile(${__quantile__}, sum by(le) (rate(${__histogram_metric__}[5m])))")},{label:'label_replace(__input_vector__, "__dst__", "__replacement__", "__src__", "__regex__")',type:"function",detail:"snippet",info:"Set or replace a label value in an input vector",apply:jh('label_replace(${__input_vector__}, "${__dst__}", "${__replacement__}", "${__src__}", "${__regex__}")')},{label:"topk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Largest k elements by sample value",apply:jh("topk(${__rank_number__}, ${__input_vector__})")},{label:"bottomk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Smallest k elements by sample value",apply:jh("bottomk(${__rank_number__}, ${__input_vector__})")},{label:'count_values("__label_name__", __input_vector__)',type:"function",detail:"snippet",info:"Count the number of series per distinct sample value",apply:jh('count_values("${__label_name__}", ${__metric__})')}],Ec={matchOp:jve,binOp:mW,duration:pW,binOpModifier:Gve,atModifier:qve,functionIdentifier:$ve,aggregateOp:gW,aggregateOpModifier:zve,number:Yve};var bt;(function(t){t[t.MetricName=0]="MetricName",t[t.LabelName=1]="LabelName",t[t.LabelValue=2]="LabelValue",t[t.Function=3]="Function",t[t.Aggregation=4]="Aggregation",t[t.BinOpModifier=5]="BinOpModifier",t[t.BinOp=6]="BinOp",t[t.MatchOp=7]="MatchOp",t[t.AggregateOpModifier=8]="AggregateOpModifier",t[t.Duration=9]="Duration",t[t.Offset=10]="Offset",t[t.Bool=11]="Bool",t[t.AtModifiers=12]="AtModifiers",t[t.Number=13]="Number"})(bt||(bt={}));function Vve(t,e){const n=HL(t,Wy);if(!n)return"";let r="";return n.cursor().iterate(i=>{if(i.type.id===R0&&(r=Jg(i.node,e),r))return!1}),r}function Jg(t,e){let n=HL(t,R0);return!n||(n=n.getChild(JS),!n)?"":e.sliceDoc(n.from,n.to)}function Wve(t,e,n,r=!1,i=!0){const a=t;return r&&a.push(...Hve),{from:e,to:n,options:a,validFor:i?/^[a-zA-Z0-9_:]+$/:void 0}}function Qve(t,e){let n=t.from+1;return t.firstChild!==null&&(n=e),n}function Kve(t,e,n){var r,i,a,s,o,c,d;const f=t.doc.slice(e.from,n).toString();let p=e.from;return e.type.id===u_||e.type.id===c_?p=Qve(e,n):e.type.id===Uf&&e.firstChild===null||e.type.id===k_&&(((r=e.parent)===null||r===void 0?void 0:r.type.id)===vf||((i=e.parent)===null||i===void 0?void 0:i.type.id)===up)?p++:(e.type.id===F_||e.type.id===eE&&!pW.map(m=>m.label).includes(f[f.length-1])||e.type.id===zL&&((a=e.parent)===null||a===void 0?void 0:a.type.id)===0&&((s=e.parent.parent)===null||s===void 0?void 0:s.type.id)===$p||e.type.id===Uf&&_W(e)&&e.firstChild!==null||e.type.id===0&&(((o=e.parent)===null||o===void 0?void 0:o.type.id)===F_||((c=e.parent)===null||c===void 0?void 0:c.type.id)===B_||((d=e.parent)===null||d===void 0?void 0:d.type.id)===$p&&Ju(e.parent,eE)))&&(p=n),p}function _W(t){var e;const n=t.parent;if(n!==null&&((e=n.firstChild)===null||e===void 0?void 0:e.type.id)===Cpe){const r=n.firstChild.firstChild;if(r!==null&&[rV,J9,tV,nV,eV].includes(r.type.id))return!0}return!1}function Xve(t,e,n){var r,i,a,s,o,c,d,f,p,m,g,b,S,y,E,x,C,R,T,N,w;const D=[];switch(e.type.id){case 0:if(((r=e.parent)===null||r===void 0?void 0:r.type.id)===F_){D.push({kind:bt.Duration});break}if(((i=e.parent)===null||i===void 0?void 0:i.type.id)===vf||((a=e.parent)===null||a===void 0?void 0:a.type.id)===up){D.push({kind:bt.MatchOp});break}if(((s=e.parent)===null||s===void 0?void 0:s.type.id)===B_){D.push({kind:bt.Duration});break}if(((o=e.parent)===null||o===void 0?void 0:o.type.id)===$p&&Ju(e.parent,eE)){D.push({kind:bt.Duration});break}const L=t.sliceDoc(e.from,e.to);mW.filter(P=>P.label.includes(L)).length>0&&D.push({kind:bt.BinOp});break;case JS:if(((c=e.parent)===null||c===void 0?void 0:c.type.id)===0){const P=e.parent.parent;if((P==null?void 0:P.type.id)===YL){D.push({kind:bt.AtModifiers});break}if((P==null?void 0:P.type.id)===Wy){D.push({kind:bt.AggregateOpModifier},{kind:bt.BinOp});break}if((P==null?void 0:P.type.id)===R0){const V=Jg(e,t);gW.filter(Y=>Y.label===V).length>0&&D.push({kind:bt.AggregateOpModifier}),D.push({kind:bt.BinOp},{kind:bt.Offset});break}if(P&&lU(P,"Expr")){D.push({kind:bt.BinOp},{kind:bt.Offset});break}}const k=(d=e.parent)===null||d===void 0?void 0:d.parent;if(!k){D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to)});break}lU(k,"Expr","Expr")&&k.type.id!==Uf?k.type.id===cp&&!Ju(k,0)&&(D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to)},{kind:bt.Function},{kind:bt.Aggregation},{kind:bt.BinOpModifier},{kind:bt.Number}),Ju(k,Qw,Kw,Xw,Zw,Jw,P_)&&!Ju(k,iV)&&D.push({kind:bt.Bool})):(D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to)},{kind:bt.Function},{kind:bt.Aggregation}),k.type.id!==Uf&&k.type.id!==B_&&D.push({kind:bt.Number}));break;case xpe:e.firstChild!==null&&e.firstChild.type.id===0&&D.push({kind:bt.MetricName,metricName:""},{kind:bt.Function},{kind:bt.Aggregation},{kind:bt.Number});break;case c_:D.push({kind:bt.LabelName,metricName:Vve(e,t)});break;case u_:D.push({kind:bt.LabelName,metricName:Jg(e,t)});break;case M_:((f=e.parent)===null||f===void 0?void 0:f.type.id)===c_?D.push({kind:bt.LabelName}):((p=e.parent)===null||p===void 0?void 0:p.type.id)===vf&&D.push({kind:bt.LabelName,metricName:Jg(e,t)});break;case k_:if(((m=e.parent)===null||m===void 0?void 0:m.type.id)===vf||((g=e.parent)===null||g===void 0?void 0:g.type.id)===up){let P="";((b=e.parent.firstChild)===null||b===void 0?void 0:b.type.id)===M_?P=t.sliceDoc(e.parent.firstChild.from,e.parent.firstChild.to):((S=e.parent.firstChild)===null||S===void 0?void 0:S.type.id)===L_&&(P=t.sliceDoc(e.parent.firstChild.from,e.parent.firstChild.to).slice(1,-1));const V=Jg(e,t),Y=HL(e,u_),G=[L_,up,vf];let F=[];for(const q of G)F=F.concat(fV(Y?Y.getChildren(q):[],t));D.push({kind:bt.LabelValue,metricName:V,labelName:P,matchers:F})}else((E=(y=e.parent)===null||y===void 0?void 0:y.parent)===null||E===void 0?void 0:E.type.id)===c_?D.push({kind:bt.LabelName}):((C=(x=e.parent)===null||x===void 0?void 0:x.parent)===null||C===void 0?void 0:C.type.id)===u_&&D.push({kind:bt.MetricName,metricName:t.sliceDoc(e.from,e.to).slice(1,-1)});break;case zL:((R=e.parent)===null||R===void 0?void 0:R.type.id)===0&&((T=e.parent.parent)===null||T===void 0?void 0:T.type.id)===$p?D.push({kind:bt.Duration}):D.push({kind:bt.Number});break;case eE:case F_:D.push({kind:bt.Duration});break;case Uf:if(_W(e)){if(e.firstChild===null||e.firstChild.from<=n&&e.firstChild.to>=n){D.push({kind:bt.Number});break}D.push({kind:bt.MetricName,metricName:""},{kind:bt.Function},{kind:bt.Aggregation});break}D.push({kind:bt.MetricName,metricName:""},{kind:bt.Function},{kind:bt.Aggregation});break;case P_:((N=e.parent)===null||N===void 0?void 0:N.type.id)===tE?D.push({kind:bt.MatchOp}):((w=e.parent)===null||w===void 0?void 0:w.type.id)===cp&&D.push({kind:bt.BinOp});break;case N0:case lV:case cV:case tE:D.push({kind:bt.MatchOp});break;case Ope:case Npe:case Ape:case wpe:case Dpe:case Ipe:case Qw:case Kw:case Xw:case Zw:case Jw:case GL:case $L:case qL:case cp:D.push({kind:bt.BinOp});break}return D}class TO{constructor(e,n=1e4){this.prometheusClient=e,this.maxMetricsMetadata=n}getPrometheusClient(){return this.prometheusClient}promQL(e){const{state:n,pos:r}=e,i=Ti(n).resolve(r,-1),a=Xve(n,i,r);let s=Promise.resolve([]),o=!1,c=!0;for(const d of a)switch(d.kind){case bt.Aggregation:o=!0,s=s.then(f=>f.concat(Ec.aggregateOp));break;case bt.Function:o=!0,s=s.then(f=>f.concat(Ec.functionIdentifier));break;case bt.BinOpModifier:s=s.then(f=>f.concat(Ec.binOpModifier));break;case bt.BinOp:s=s.then(f=>f.concat(Ec.binOp));break;case bt.MatchOp:s=s.then(f=>f.concat(Ec.matchOp));break;case bt.AggregateOpModifier:s=s.then(f=>f.concat(Ec.aggregateOpModifier));break;case bt.Duration:c=!1,s=s.then(f=>f.concat(Ec.duration));break;case bt.Offset:s=s.then(f=>f.concat([{label:"offset"}]));break;case bt.Bool:s=s.then(f=>f.concat([{label:"bool"}]));break;case bt.AtModifiers:s=s.then(f=>f.concat(Ec.atModifier));break;case bt.Number:s=s.then(f=>f.concat(Ec.number));break;case bt.MetricName:s=s.then(f=>this.autocompleteMetricName(f,d));break;case bt.LabelName:s=s.then(f=>this.autocompleteLabelName(f,d));break;case bt.LabelValue:s=s.then(f=>this.autocompleteLabelValue(f,d))}return s.then(d=>Wve(d,Kve(n,i,r),r,o,c))}autocompleteMetricName(e,n){if(!this.prometheusClient)return e;const r=new Map;return this.prometheusClient.metricNames(n.metricName).then(i=>{var a;for(const s of i)r.set(s,{label:s,type:"constant"});if(i.length<=this.maxMetricsMetadata)return(a=this.prometheusClient)===null||a===void 0?void 0:a.metricMetadata()}).then(i=>{if(i)for(const[a,s]of r){const o=i[a.replace(/(_count|_sum|_bucket)$/,"")];if(o){if(o.length>1)for(const c of o)s.detail===""?s.detail=c.type:s.detail!==c.type&&(s.detail="unknown",s.info="multiple different definitions for this metric"),s.info===""?s.info=c.help:s.info!==c.help&&(s.info="multiple different definitions for this metric");else if(o.length===1){let{type:c,help:d}=o[0];(c==="histogram"||c==="summary")&&(a.endsWith("_count")&&(c="counter",d=`The total number of observations for: ${d}`),a.endsWith("_sum")&&(c="counter",d=`The total sum of observations for: ${d}`),a.endsWith("_bucket")&&(c="counter",d=`The total count of observations for a bucket in the histogram: ${d}`)),s.detail=c,s.info=d}}}return e.concat(Array.from(r.values()))})}autocompleteLabelName(e,n){return this.prometheusClient?this.prometheusClient.labelNames(n.metricName).then(r=>e.concat(r.map(i=>({label:i,type:"constant"})))):e}autocompleteLabelValue(e,n){return!this.prometheusClient||!n.labelName?e:this.prometheusClient.labelValues(n.labelName,n.metricName,n.matchers).then(r=>e.concat(r.map(i=>({label:i,type:"text"}))))}}const Gh=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bW=new Set,UD=typeof process=="object"&&process?process:{},vW=(t,e,n,r)=>{typeof UD.emitWarning=="function"?UD.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)};let _E=globalThis.AbortController,wj=globalThis.AbortSignal;var S5;if(typeof _E>"u"){wj=class{constructor(){In(this,"onabort");In(this,"_onabort",[]);In(this,"reason");In(this,"aborted",!1)}addEventListener(r,i){this._onabort.push(i)}},_E=class{constructor(){In(this,"signal",new wj);e()}abort(r){var i,a;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const s of this.signal._onabort)s(r);(a=(i=this.signal).onabort)==null||a.call(i,r)}}};let t=((S5=UD.env)==null?void 0:S5.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,vW("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const Zve=t=>!bW.has(t),Mu=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),SW=t=>Mu(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?mS:null:null;class mS extends Array{constructor(e){super(e),this.fill(0)}}var Ip;const _f=class _f{constructor(e,n){In(this,"heap");In(this,"length");if(!$(_f,Ip))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=SW(e);if(!n)return[];Pe(_f,Ip,!0);const r=new _f(e,n);return Pe(_f,Ip,!1),r}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Ip=new WeakMap,Je(_f,Ip,!1);let jD=_f;var E5,y5,Lo,Es,ko,Po,Mp,Lp,mi,Bo,ri,ur,Ft,Pa,ys,ba,Ii,Fo,Mi,Uo,jo,Ts,Go,Ku,Ba,nt,GD,If,Oc,s0,xs,EW,Mf,kp,o0,Lu,ku,qD,gS,_S,cr,$D,e_,Pu,zD;const sP=class sP{constructor(e){Je(this,nt);Je(this,Lo);Je(this,Es);Je(this,ko);Je(this,Po);Je(this,Mp);Je(this,Lp);In(this,"ttl");In(this,"ttlResolution");In(this,"ttlAutopurge");In(this,"updateAgeOnGet");In(this,"updateAgeOnHas");In(this,"allowStale");In(this,"noDisposeOnSet");In(this,"noUpdateTTL");In(this,"maxEntrySize");In(this,"sizeCalculation");In(this,"noDeleteOnFetchRejection");In(this,"noDeleteOnStaleGet");In(this,"allowStaleOnFetchAbort");In(this,"allowStaleOnFetchRejection");In(this,"ignoreFetchAbort");Je(this,mi);Je(this,Bo);Je(this,ri);Je(this,ur);Je(this,Ft);Je(this,Pa);Je(this,ys);Je(this,ba);Je(this,Ii);Je(this,Fo);Je(this,Mi);Je(this,Uo);Je(this,jo);Je(this,Ts);Je(this,Go);Je(this,Ku);Je(this,Ba);Je(this,If,()=>{});Je(this,Oc,()=>{});Je(this,s0,()=>{});Je(this,xs,()=>!1);Je(this,Mf,e=>{});Je(this,kp,(e,n,r)=>{});Je(this,o0,(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});In(this,E5,"LRUCache");const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:c,dispose:d,disposeAfter:f,noDisposeOnSet:p,noUpdateTTL:m,maxSize:g=0,maxEntrySize:b=0,sizeCalculation:S,fetchMethod:y,memoMethod:E,noDeleteOnFetchRejection:x,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:T,ignoreFetchAbort:N}=e;if(n!==0&&!Mu(n))throw new TypeError("max option must be a nonnegative integer");const w=n?SW(n):Array;if(!w)throw new Error("invalid max value: "+n);if(Pe(this,Lo,n),Pe(this,Es,g),this.maxEntrySize=b||$(this,Es),this.sizeCalculation=S,this.sizeCalculation){if(!$(this,Es)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(Pe(this,Lp,E),y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(Pe(this,Mp,y),Pe(this,Ku,!!y),Pe(this,ri,new Map),Pe(this,ur,new Array(n).fill(void 0)),Pe(this,Ft,new Array(n).fill(void 0)),Pe(this,Pa,new w(n)),Pe(this,ys,new w(n)),Pe(this,ba,0),Pe(this,Ii,0),Pe(this,Fo,jD.create(n)),Pe(this,mi,0),Pe(this,Bo,0),typeof d=="function"&&Pe(this,ko,d),typeof f=="function"?(Pe(this,Po,f),Pe(this,Mi,[])):(Pe(this,Po,void 0),Pe(this,Mi,void 0)),Pe(this,Go,!!$(this,ko)),Pe(this,Ba,!!$(this,Po)),this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!x,this.allowStaleOnFetchRejection=!!R,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!N,this.maxEntrySize!==0){if($(this,Es)!==0&&!Mu($(this,Es)))throw new TypeError("maxSize must be a positive integer if specified");if(!Mu(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");$e(this,nt,EW).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!C,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=Mu(i)||i===0?i:1,this.ttlAutopurge=!!a,this.ttl=r||0,this.ttl){if(!Mu(this.ttl))throw new TypeError("ttl must be a positive integer if specified");$e(this,nt,GD).call(this)}if($(this,Lo)===0&&this.ttl===0&&$(this,Es)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!$(this,Lo)&&!$(this,Es)){const D="LRU_CACHE_UNBOUNDED";Zve(D)&&(bW.add(D),vW("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",D,sP))}}static unsafeExposeInternals(e){return{starts:$(e,jo),ttls:$(e,Ts),sizes:$(e,Uo),keyMap:$(e,ri),keyList:$(e,ur),valList:$(e,Ft),next:$(e,Pa),prev:$(e,ys),get head(){return $(e,ba)},get tail(){return $(e,Ii)},free:$(e,Fo),isBackgroundFetch:n=>{var r;return $e(r=e,nt,cr).call(r,n)},backgroundFetch:(n,r,i,a)=>{var s;return $e(s=e,nt,_S).call(s,n,r,i,a)},moveToTail:n=>{var r;return $e(r=e,nt,e_).call(r,n)},indexes:n=>{var r;return $e(r=e,nt,Lu).call(r,n)},rindexes:n=>{var r;return $e(r=e,nt,ku).call(r,n)},isStale:n=>{var r;return $(r=e,xs).call(r,n)}}}get max(){return $(this,Lo)}get maxSize(){return $(this,Es)}get calculatedSize(){return $(this,Bo)}get size(){return $(this,mi)}get fetchMethod(){return $(this,Mp)}get memoMethod(){return $(this,Lp)}get dispose(){return $(this,ko)}get disposeAfter(){return $(this,Po)}getRemainingTTL(e){return $(this,ri).has(e)?1/0:0}*entries(){for(const e of $e(this,nt,Lu).call(this))$(this,Ft)[e]!==void 0&&$(this,ur)[e]!==void 0&&!$e(this,nt,cr).call(this,$(this,Ft)[e])&&(yield[$(this,ur)[e],$(this,Ft)[e]])}*rentries(){for(const e of $e(this,nt,ku).call(this))$(this,Ft)[e]!==void 0&&$(this,ur)[e]!==void 0&&!$e(this,nt,cr).call(this,$(this,Ft)[e])&&(yield[$(this,ur)[e],$(this,Ft)[e]])}*keys(){for(const e of $e(this,nt,Lu).call(this)){const n=$(this,ur)[e];n!==void 0&&!$e(this,nt,cr).call(this,$(this,Ft)[e])&&(yield n)}}*rkeys(){for(const e of $e(this,nt,ku).call(this)){const n=$(this,ur)[e];n!==void 0&&!$e(this,nt,cr).call(this,$(this,Ft)[e])&&(yield n)}}*values(){for(const e of $e(this,nt,Lu).call(this))$(this,Ft)[e]!==void 0&&!$e(this,nt,cr).call(this,$(this,Ft)[e])&&(yield $(this,Ft)[e])}*rvalues(){for(const e of $e(this,nt,ku).call(this))$(this,Ft)[e]!==void 0&&!$e(this,nt,cr).call(this,$(this,Ft)[e])&&(yield $(this,Ft)[e])}[(y5=Symbol.iterator,E5=Symbol.toStringTag,y5)](){return this.entries()}find(e,n={}){for(const r of $e(this,nt,Lu).call(this)){const i=$(this,Ft)[r],a=$e(this,nt,cr).call(this,i)?i.__staleWhileFetching:i;if(a!==void 0&&e(a,$(this,ur)[r],this))return this.get($(this,ur)[r],n)}}forEach(e,n=this){for(const r of $e(this,nt,Lu).call(this)){const i=$(this,Ft)[r],a=$e(this,nt,cr).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&e.call(n,a,$(this,ur)[r],this)}}rforEach(e,n=this){for(const r of $e(this,nt,ku).call(this)){const i=$(this,Ft)[r],a=$e(this,nt,cr).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&e.call(n,a,$(this,ur)[r],this)}}purgeStale(){let e=!1;for(const n of $e(this,nt,ku).call(this,{allowStale:!0}))$(this,xs).call(this,n)&&($e(this,nt,Pu).call(this,$(this,ur)[n],"expire"),e=!0);return e}info(e){const n=$(this,ri).get(e);if(n===void 0)return;const r=$(this,Ft)[n],i=$e(this,nt,cr).call(this,r)?r.__staleWhileFetching:r;if(i===void 0)return;const a={value:i};if($(this,Ts)&&$(this,jo)){const s=$(this,Ts)[n],o=$(this,jo)[n];if(s&&o){const c=s-(Gh.now()-o);a.ttl=c,a.start=Date.now()}}return $(this,Uo)&&(a.size=$(this,Uo)[n]),a}dump(){const e=[];for(const n of $e(this,nt,Lu).call(this,{allowStale:!0})){const r=$(this,ur)[n],i=$(this,Ft)[n],a=$e(this,nt,cr).call(this,i)?i.__staleWhileFetching:i;if(a===void 0||r===void 0)continue;const s={value:a};if($(this,Ts)&&$(this,jo)){s.ttl=$(this,Ts)[n];const o=Gh.now()-$(this,jo)[n];s.start=Math.floor(Date.now()-o)}$(this,Uo)&&(s.size=$(this,Uo)[n]),e.unshift([r,s])}return e}load(e){this.clear();for(const[n,r]of e){if(r.start){const i=Date.now()-r.start;r.start=Gh.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){var m,g,b,S,y;if(n===void 0)return this.delete(e),this;const{ttl:i=this.ttl,start:a,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:c}=r;let{noUpdateTTL:d=this.noUpdateTTL}=r;const f=$(this,o0).call(this,e,n,r.size||0,o);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),$e(this,nt,Pu).call(this,e,"set"),this;let p=$(this,mi)===0?void 0:$(this,ri).get(e);if(p===void 0)p=$(this,mi)===0?$(this,Ii):$(this,Fo).length!==0?$(this,Fo).pop():$(this,mi)===$(this,Lo)?$e(this,nt,gS).call(this,!1):$(this,mi),$(this,ur)[p]=e,$(this,Ft)[p]=n,$(this,ri).set(e,p),$(this,Pa)[$(this,Ii)]=p,$(this,ys)[p]=$(this,Ii),Pe(this,Ii,p),Jd(this,mi)._++,$(this,kp).call(this,p,f,c),c&&(c.set="add"),d=!1;else{$e(this,nt,e_).call(this,p);const E=$(this,Ft)[p];if(n!==E){if($(this,Ku)&&$e(this,nt,cr).call(this,E)){E.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:x}=E;x!==void 0&&!s&&($(this,Go)&&((m=$(this,ko))==null||m.call(this,x,e,"set")),$(this,Ba)&&((g=$(this,Mi))==null||g.push([x,e,"set"])))}else s||($(this,Go)&&((b=$(this,ko))==null||b.call(this,E,e,"set")),$(this,Ba)&&((S=$(this,Mi))==null||S.push([E,e,"set"])));if($(this,Mf).call(this,p),$(this,kp).call(this,p,f,c),$(this,Ft)[p]=n,c){c.set="replace";const x=E&&$e(this,nt,cr).call(this,E)?E.__staleWhileFetching:E;x!==void 0&&(c.oldValue=x)}}else c&&(c.set="update")}if(i!==0&&!$(this,Ts)&&$e(this,nt,GD).call(this),$(this,Ts)&&(d||$(this,s0).call(this,p,i,a),c&&$(this,Oc).call(this,c,p)),!s&&$(this,Ba)&&$(this,Mi)){const E=$(this,Mi);let x;for(;x=E==null?void 0:E.shift();)(y=$(this,Po))==null||y.call(this,...x)}return this}pop(){var e;try{for(;$(this,mi);){const n=$(this,Ft)[$(this,ba)];if($e(this,nt,gS).call(this,!0),$e(this,nt,cr).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if($(this,Ba)&&$(this,Mi)){const n=$(this,Mi);let r;for(;r=n==null?void 0:n.shift();)(e=$(this,Po))==null||e.call(this,...r)}}}has(e,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,a=$(this,ri).get(e);if(a!==void 0){const s=$(this,Ft)[a];if($e(this,nt,cr).call(this,s)&&s.__staleWhileFetching===void 0)return!1;if($(this,xs).call(this,a))i&&(i.has="stale",$(this,Oc).call(this,i,a));else return r&&$(this,If).call(this,a),i&&(i.has="hit",$(this,Oc).call(this,i,a)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){const{allowStale:r=this.allowStale}=n,i=$(this,ri).get(e);if(i===void 0||!r&&$(this,xs).call(this,i))return;const a=$(this,Ft)[i];return $e(this,nt,cr).call(this,a)?a.__staleWhileFetching:a}async fetch(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:c=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:S,forceRefresh:y=!1,status:E,signal:x}=n;if(!$(this,Ku))return E&&(E.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:a,status:E});const C={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:a,ttl:s,noDisposeOnSet:o,size:c,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:b,ignoreFetchAbort:g,status:E,signal:x};let R=$(this,ri).get(e);if(R===void 0){E&&(E.fetch="miss");const T=$e(this,nt,_S).call(this,e,R,C,S);return T.__returned=T}else{const T=$(this,Ft)[R];if($e(this,nt,cr).call(this,T)){const k=r&&T.__staleWhileFetching!==void 0;return E&&(E.fetch="inflight",k&&(E.returnedStale=!0)),k?T.__staleWhileFetching:T.__returned=T}const N=$(this,xs).call(this,R);if(!y&&!N)return E&&(E.fetch="hit"),$e(this,nt,e_).call(this,R),i&&$(this,If).call(this,R),E&&$(this,Oc).call(this,E,R),T;const w=$e(this,nt,_S).call(this,e,R,C,S),L=w.__staleWhileFetching!==void 0&&r;return E&&(E.fetch=N?"stale":"refresh",L&&N&&(E.returnedStale=!0)),L?w.__staleWhileFetching:w.__returned=w}}async forceFetch(e,n={}){const r=await this.fetch(e,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,n={}){const r=$(this,Lp);if(!r)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:a,...s}=n,o=this.get(e,s);if(!a&&o!==void 0)return o;const c=r(e,o,{options:s,context:i});return this.set(e,c,s),c}get(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:s}=n,o=$(this,ri).get(e);if(o!==void 0){const c=$(this,Ft)[o],d=$e(this,nt,cr).call(this,c);return s&&$(this,Oc).call(this,s,o),$(this,xs).call(this,o)?(s&&(s.get="stale"),d?(s&&r&&c.__staleWhileFetching!==void 0&&(s.returnedStale=!0),r?c.__staleWhileFetching:void 0):(a||$e(this,nt,Pu).call(this,e,"expire"),s&&r&&(s.returnedStale=!0),r?c:void 0)):(s&&(s.get="hit"),d?c.__staleWhileFetching:($e(this,nt,e_).call(this,o),i&&$(this,If).call(this,o),c))}else s&&(s.get="miss")}delete(e){return $e(this,nt,Pu).call(this,e,"delete")}clear(){return $e(this,nt,zD).call(this,"delete")}};Lo=new WeakMap,Es=new WeakMap,ko=new WeakMap,Po=new WeakMap,Mp=new WeakMap,Lp=new WeakMap,mi=new WeakMap,Bo=new WeakMap,ri=new WeakMap,ur=new WeakMap,Ft=new WeakMap,Pa=new WeakMap,ys=new WeakMap,ba=new WeakMap,Ii=new WeakMap,Fo=new WeakMap,Mi=new WeakMap,Uo=new WeakMap,jo=new WeakMap,Ts=new WeakMap,Go=new WeakMap,Ku=new WeakMap,Ba=new WeakMap,nt=new WeakSet,GD=function(){const e=new mS($(this,Lo)),n=new mS($(this,Lo));Pe(this,Ts,e),Pe(this,jo,n),Pe(this,s0,(a,s,o=Gh.now())=>{if(n[a]=s!==0?o:0,e[a]=s,s!==0&&this.ttlAutopurge){const c=setTimeout(()=>{$(this,xs).call(this,a)&&$e(this,nt,Pu).call(this,$(this,ur)[a],"expire")},s+1);c.unref&&c.unref()}}),Pe(this,If,a=>{n[a]=e[a]!==0?Gh.now():0}),Pe(this,Oc,(a,s)=>{if(e[s]){const o=e[s],c=n[s];if(!o||!c)return;a.ttl=o,a.start=c,a.now=r||i();const d=a.now-c;a.remainingTTL=o-d}});let r=0;const i=()=>{const a=Gh.now();if(this.ttlResolution>0){r=a;const s=setTimeout(()=>r=0,this.ttlResolution);s.unref&&s.unref()}return a};this.getRemainingTTL=a=>{const s=$(this,ri).get(a);if(s===void 0)return 0;const o=e[s],c=n[s];if(!o||!c)return 1/0;const d=(r||i())-c;return o-d},Pe(this,xs,a=>{const s=n[a],o=e[a];return!!o&&!!s&&(r||i())-s>o})},If=new WeakMap,Oc=new WeakMap,s0=new WeakMap,xs=new WeakMap,EW=function(){const e=new mS($(this,Lo));Pe(this,Bo,0),Pe(this,Uo,e),Pe(this,Mf,n=>{Pe(this,Bo,$(this,Bo)-e[n]),e[n]=0}),Pe(this,o0,(n,r,i,a)=>{if($e(this,nt,cr).call(this,r))return 0;if(!Mu(i))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(i=a(r,n),!Mu(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),Pe(this,kp,(n,r,i)=>{if(e[n]=r,$(this,Es)){const a=$(this,Es)-e[n];for(;$(this,Bo)>a;)$e(this,nt,gS).call(this,!0)}Pe(this,Bo,$(this,Bo)+e[n]),i&&(i.entrySize=r,i.totalCalculatedSize=$(this,Bo))})},Mf=new WeakMap,kp=new WeakMap,o0=new WeakMap,Lu=function*({allowStale:e=this.allowStale}={}){if($(this,mi))for(let n=$(this,Ii);!(!$e(this,nt,qD).call(this,n)||((e||!$(this,xs).call(this,n))&&(yield n),n===$(this,ba)));)n=$(this,ys)[n]},ku=function*({allowStale:e=this.allowStale}={}){if($(this,mi))for(let n=$(this,ba);!(!$e(this,nt,qD).call(this,n)||((e||!$(this,xs).call(this,n))&&(yield n),n===$(this,Ii)));)n=$(this,Pa)[n]},qD=function(e){return e!==void 0&&$(this,ri).get($(this,ur)[e])===e},gS=function(e){var a,s;const n=$(this,ba),r=$(this,ur)[n],i=$(this,Ft)[n];return $(this,Ku)&&$e(this,nt,cr).call(this,i)?i.__abortController.abort(new Error("evicted")):($(this,Go)||$(this,Ba))&&($(this,Go)&&((a=$(this,ko))==null||a.call(this,i,r,"evict")),$(this,Ba)&&((s=$(this,Mi))==null||s.push([i,r,"evict"]))),$(this,Mf).call(this,n),e&&($(this,ur)[n]=void 0,$(this,Ft)[n]=void 0,$(this,Fo).push(n)),$(this,mi)===1?(Pe(this,ba,Pe(this,Ii,0)),$(this,Fo).length=0):Pe(this,ba,$(this,Pa)[n]),$(this,ri).delete(r),Jd(this,mi)._--,n},_S=function(e,n,r,i){const a=n===void 0?void 0:$(this,Ft)[n];if($e(this,nt,cr).call(this,a))return a;const s=new _E,{signal:o}=r;o==null||o.addEventListener("abort",()=>s.abort(o.reason),{signal:s.signal});const c={signal:s.signal,options:r,context:i},d=(S,y=!1)=>{const{aborted:E}=s.signal,x=r.ignoreFetchAbort&&S!==void 0;if(r.status&&(E&&!y?(r.status.fetchAborted=!0,r.status.fetchError=s.signal.reason,x&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),E&&!x&&!y)return p(s.signal.reason);const C=g;return $(this,Ft)[n]===g&&(S===void 0?C.__staleWhileFetching?$(this,Ft)[n]=C.__staleWhileFetching:$e(this,nt,Pu).call(this,e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,S,c.options))),S},f=S=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=S),p(S)),p=S=>{const{aborted:y}=s.signal,E=y&&r.allowStaleOnFetchAbort,x=E||r.allowStaleOnFetchRejection,C=x||r.noDeleteOnFetchRejection,R=g;if($(this,Ft)[n]===g&&(!C||R.__staleWhileFetching===void 0?$e(this,nt,Pu).call(this,e,"fetch"):E||($(this,Ft)[n]=R.__staleWhileFetching)),x)return r.status&&R.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),R.__staleWhileFetching;if(R.__returned===R)throw S},m=(S,y)=>{var x;const E=(x=$(this,Mp))==null?void 0:x.call(this,e,a,c);E&&E instanceof Promise&&E.then(C=>S(C===void 0?void 0:C),y),s.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(S(void 0),r.allowStaleOnFetchAbort&&(S=C=>d(C,!0)))})};r.status&&(r.status.fetchDispatched=!0);const g=new Promise(m).then(d,f),b=Object.assign(g,{__abortController:s,__staleWhileFetching:a,__returned:void 0});return n===void 0?(this.set(e,b,{...c.options,status:void 0}),n=$(this,ri).get(e)):$(this,Ft)[n]=b,b},cr=function(e){if(!$(this,Ku))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof _E},$D=function(e,n){$(this,ys)[n]=e,$(this,Pa)[e]=n},e_=function(e){e!==$(this,Ii)&&(e===$(this,ba)?Pe(this,ba,$(this,Pa)[e]):$e(this,nt,$D).call(this,$(this,ys)[e],$(this,Pa)[e]),$e(this,nt,$D).call(this,$(this,Ii),e),Pe(this,Ii,e))},Pu=function(e,n){var i,a,s,o;let r=!1;if($(this,mi)!==0){const c=$(this,ri).get(e);if(c!==void 0)if(r=!0,$(this,mi)===1)$e(this,nt,zD).call(this,n);else{$(this,Mf).call(this,c);const d=$(this,Ft)[c];if($e(this,nt,cr).call(this,d)?d.__abortController.abort(new Error("deleted")):($(this,Go)||$(this,Ba))&&($(this,Go)&&((i=$(this,ko))==null||i.call(this,d,e,n)),$(this,Ba)&&((a=$(this,Mi))==null||a.push([d,e,n]))),$(this,ri).delete(e),$(this,ur)[c]=void 0,$(this,Ft)[c]=void 0,c===$(this,Ii))Pe(this,Ii,$(this,ys)[c]);else if(c===$(this,ba))Pe(this,ba,$(this,Pa)[c]);else{const f=$(this,ys)[c];$(this,Pa)[f]=$(this,Pa)[c];const p=$(this,Pa)[c];$(this,ys)[p]=$(this,ys)[c]}Jd(this,mi)._--,$(this,Fo).push(c)}}if($(this,Ba)&&((s=$(this,Mi))!=null&&s.length)){const c=$(this,Mi);let d;for(;d=c==null?void 0:c.shift();)(o=$(this,Po))==null||o.call(this,...d)}return r},zD=function(e){var n,r,i;for(const a of $e(this,nt,ku).call(this,{allowStale:!0})){const s=$(this,Ft)[a];if($e(this,nt,cr).call(this,s))s.__abortController.abort(new Error("deleted"));else{const o=$(this,ur)[a];$(this,Go)&&((n=$(this,ko))==null||n.call(this,s,o,e)),$(this,Ba)&&((r=$(this,Mi))==null||r.push([s,o,e]))}}if($(this,ri).clear(),$(this,Ft).fill(void 0),$(this,ur).fill(void 0),$(this,Ts)&&$(this,jo)&&($(this,Ts).fill(0),$(this,jo).fill(0)),$(this,Uo)&&$(this,Uo).fill(0),Pe(this,ba,0),Pe(this,Ii,0),$(this,Fo).length=0,Pe(this,Bo,0),Pe(this,mi,0),$(this,Ba)&&$(this,Mi)){const a=$(this,Mi);let s;for(;s=a==null?void 0:a.shift();)(i=$(this,Po))==null||i.call(this,...s)}};let bE=sP;const Jve=400,eSe=422,tSe=503;class nSe{constructor(e){this.lookbackInterval=60*60*1e3*12,this.httpMethod="POST",this.apiPrefix="/api/v1",this.fetchFn=(n,r)=>fetch(n,r),this.requestHeaders=new Headers,this.url=e.url?e.url:"",this.errorHandler=e.httpErrorHandler,e.lookbackInterval&&(this.lookbackInterval=e.lookbackInterval),e.fetchFn&&(this.fetchFn=e.fetchFn),e.httpMethod&&(this.httpMethod=e.httpMethod),e.apiPrefix&&(this.apiPrefix=e.apiPrefix),e.requestHeaders&&(this.requestHeaders=e.requestHeaders)}labelNames(e){const n=new Date,r=new Date(n.getTime()-this.lookbackInterval);if(e===void 0||e===""){const i=this.buildRequest(this.labelsEndpoint(),new URLSearchParams({start:r.toISOString(),end:n.toISOString()}));return this.fetchAPI(i.uri,{method:this.httpMethod,body:i.body}).catch(a=>(this.errorHandler&&this.errorHandler(a),[]))}return this.series(e).then(i=>{const a=new Set;for(const s of i)for(const[o]of Object.entries(s))o!=="__name__"&&a.add(o);return Array.from(a)})}labelValues(e,n,r){const i=new Date,a=new Date(i.getTime()-this.lookbackInterval);if(!n||n.length===0){const s=new URLSearchParams({start:a.toISOString(),end:i.toISOString()});return this.fetchAPI(`${this.labelValuesEndpoint().replace(/:name/gi,e)}?${s}`).catch(o=>(this.errorHandler&&this.errorHandler(o),[]))}return this.series(n,r,e).then(s=>{const o=new Set;for(const c of s)for(const[d,f]of Object.entries(c))d!=="__name__"&&d===e&&o.add(f);return Array.from(o)})}metricMetadata(){return this.fetchAPI(this.metricMetadataEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}series(e,n,r){const i=new Date,a=new Date(i.getTime()-this.lookbackInterval),s=this.buildRequest(this.seriesEndpoint(),new URLSearchParams({start:a.toISOString(),end:i.toISOString(),"match[]":ige(e,n,r)}));return this.fetchAPI(s.uri,{method:this.httpMethod,body:s.body}).catch(o=>(this.errorHandler&&this.errorHandler(o),[]))}metricNames(){return this.labelValues("__name__")}flags(){return this.fetchAPI(this.flagsEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}fetchAPI(e,n){return n?n.headers=this.requestHeaders:n={headers:this.requestHeaders},this.fetchFn(this.url+e,n).then(r=>{if(!r.ok&&![Jve,eSe,tSe].includes(r.status))throw new Error(r.statusText);return r}).then(r=>r.json()).then(r=>{if(r.status==="error")throw new Error(r.error!==void 0?r.error:'missing "error" field in response JSON');if(r.data===void 0)throw new Error('missing "data" field in response JSON');return r.data})}buildRequest(e,n){let r=e,i=n;return this.httpMethod==="GET"&&(r=`${r}?${n}`,i=null),{uri:r,body:i}}labelsEndpoint(){return`${this.apiPrefix}/labels`}labelValuesEndpoint(){return`${this.apiPrefix}/label/:name/values`}seriesEndpoint(){return`${this.apiPrefix}/series`}metricMetadataEndpoint(){return`${this.apiPrefix}/metadata`}flagsEndpoint(){return`${this.apiPrefix}/status/flags`}}class rSe{constructor(e){const n={ttl:e&&e.maxAge?e.maxAge:3e5,ttlAutopurge:!0};this.completeAssociation=new bE(n),this.metricMetadata={},this.labelValues=new bE(n),this.labelNames=[],this.flags={},e!=null&&e.initialMetricList&&this.setLabelValues("__name__",e.initialMetricList)}setAssociations(e,n){n.forEach(r=>{let i=this.completeAssociation.get(e);i||(i=new Map,this.completeAssociation.set(e,i));for(const[a,s]of Object.entries(r)){if(a==="__name__")continue;const o=i.get(a);o===void 0?i.set(a,new Set([s])):o.add(s)}})}setFlags(e){this.flags=e}getFlags(){return this.flags}setMetricMetadata(e){this.metricMetadata=e}getMetricMetadata(){return this.metricMetadata}setLabelNames(e){this.labelNames=e}getLabelNames(e){if(!e||e.length===0)return this.labelNames;const n=this.completeAssociation.get(e);return n?Array.from(n.keys()):[]}setLabelValues(e,n){this.labelValues.set(e,n)}getLabelValues(e,n){if(!n||n.length===0){const i=this.labelValues.get(e);return i||[]}const r=this.completeAssociation.get(n);if(r){const i=r.get(e);return i?Array.from(i):[]}return[]}}class iSe{constructor(e,n){this.client=e,this.cache=new rSe(n)}labelNames(e){const n=this.cache.getLabelNames(e);return n&&n.length>0?Promise.resolve(n):e===void 0||e===""?this.client.labelNames().then(r=>(this.cache.setLabelNames(r),r)):this.series(e).then(()=>this.cache.getLabelNames(e))}labelValues(e,n){const r=this.cache.getLabelValues(e,n);return r&&r.length>0?Promise.resolve(r):n===void 0||n===""?this.client.labelValues(e).then(i=>(this.cache.setLabelValues(e,i),i)):this.series(n).then(()=>this.cache.getLabelValues(e,n))}metricMetadata(){const e=this.cache.getMetricMetadata();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.metricMetadata().then(n=>(this.cache.setMetricMetadata(n),n))}series(e){return this.client.series(e).then(n=>(this.cache.setAssociations(e,n),n))}metricNames(){return this.labelValues("__name__")}flags(){const e=this.cache.getFlags();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.flags().then(n=>(this.cache.setFlags(n),n))}}function aSe(t){const e=t;return typeof e.labelNames=="function"&&typeof e.labelValues=="function"&&typeof e.metricMetadata=="function"&&typeof e.series=="function"&&typeof e.metricNames=="function"}function YD(t){return t!=null&&t.completeStrategy?t.completeStrategy:t!=null&&t.remote?aSe(t.remote)?new TO(t.remote,t.maxMetricsMetadata):new TO(new iSe(new nSe(t.remote),t.remote.cache),t.maxMetricsMetadata):new TO}function Zn(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i)}e++}for(;e<arguments.length;e++)yW(t,arguments[e]);return t}function yW(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)yW(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}class Dj{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class mf{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let i=e,a=r.facet(Pl).markerFilter;a&&(i=a(i,r));let s=e.slice().sort((p,m)=>p.from-m.from||p.to-m.to),o=new qc,c=[],d=0;for(let p=0;;){let m=p==s.length?null:s[p];if(!m&&!c.length)break;let g,b;for(c.length?(g=d,b=c.reduce((y,E)=>Math.min(y,E.to),m&&m.from>g?m.from:1e8)):(g=m.from,b=m.to,c.push(m),p++);p<s.length;){let y=s[p];if(y.from==g&&(y.to>y.from||y.to==g))c.push(y),p++,b=Math.min(y.to,b);else{b=Math.min(y.from,b);break}}let S=SSe(c);if(c.some(y=>y.from==y.to||y.from==y.to-1&&r.doc.lineAt(y.from).to==y.from))o.add(g,g,Ct.widget({widget:new gSe(S),diagnostics:c.slice()}));else{let y=c.reduce((E,x)=>x.markClass?E+" "+x.markClass:E,"");o.add(g,b,Ct.mark({class:"cm-lintRange cm-lintRange-"+S+y,diagnostics:c.slice(),inclusiveEnd:c.some(E=>E.to>b)}))}d=b;for(let y=0;y<c.length;y++)c[y].to<=d&&c.splice(y--,1)}let f=o.finish();return new mf(f,n,Kp(f))}}function Kp(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,a,{spec:s})=>{if(!(e&&s.diagnostics.indexOf(e)<0))if(!r)r=new Dj(i,a,e||s.diagnostics[0]);else{if(s.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Dj(r.from,a,r.diagnostic)}}),r}function sSe(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(Pl).hideOn(t,n,r);if(i!=null)return i;let a=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(s=>s.is(vk))||t.changes.touchesRange(a.from,Math.max(a.to,r)))}function TW(t,e){return t.field(Ns,!1)?e:e.concat(Pt.appendConfig.of(NW))}function oSe(t,e){return{effects:TW(t,[vk.of(e)])}}const vk=Pt.define(),Sk=Pt.define(),xW=Pt.define(),Ns=ji.define({create(){return new mf(Ct.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let a=e.changes.mapPos(t.selected.from,1);r=Kp(n,t.selected.diagnostic,a)||Kp(n,null,a)}!n.size&&i&&e.state.facet(Pl).autoPanel&&(i=null),t=new mf(n,i,r)}for(let n of e.effects)if(n.is(vk)){let r=e.state.facet(Pl).autoPanel?n.value.length?Z_.open:null:t.panel;t=mf.init(n.value,r,e.state)}else n.is(Sk)?t=new mf(t.diagnostics,n.value?Z_.open:null,t.selected):n.is(xW)&&(t=new mf(t.diagnostics,t.panel,n.value));return t},provide:t=>[V_.from(t,e=>e.panel),et.decorations.from(t,e=>e.diagnostics)]}),lSe=Ct.mark({class:"cm-lintRange cm-lintRange-active"});function cSe(t,e,n){let{diagnostics:r}=t.state.field(Ns),i,a=-1,s=-1;r.between(e-(n<0?1:0),e+(n>0?1:0),(c,d,{spec:f})=>{if(e>=c&&e<=d&&(c==d||(e>c||n>0)&&(e<d||n<0)))return i=f.diagnostics,a=c,s=d,!1});let o=t.state.facet(Pl).tooltipFilter;return i&&o&&(i=o(i,t.state)),i?{pos:a,end:s,above:t.state.doc.lineAt(a).to<s,create(){return{dom:uSe(t,i)}}}:null}function uSe(t,e){return Zn("ul",{class:"cm-tooltip-lint"},e.map(n=>RW(t,n,!1)))}const dSe=t=>{let e=t.state.field(Ns,!1);(!e||!e.panel)&&t.dispatch({effects:TW(t.state,[Sk.of(!0)])});let n=H_(t,Z_.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},Ij=t=>{let e=t.state.field(Ns,!1);return!e||!e.panel?!1:(t.dispatch({effects:Sk.of(!1)}),!0)},fSe=t=>{let e=t.state.field(Ns,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},CW=[{key:"Mod-Shift-m",run:dSe,preventDefault:!0},{key:"F8",run:fSe}],hSe=Gr.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Pl);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let t=Date.now();if(t<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-t);else{this.set=!1;let{state:e}=this.view,{sources:n}=e.facet(Pl);n.length&&pSe(n.map(r=>Promise.resolve(r(this.view))),r=>{this.view.state.doc==e.doc&&this.view.dispatch(oSe(this.view.state,r.reduce((i,a)=>i.concat(a))))},r=>{ja(this.view.state,r)})}}update(t){let e=t.state.facet(Pl);(t.docChanged||e!=t.startState.facet(Pl)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function pSe(t,e,n){let r=[],i=-1;for(let a of t)a.then(s=>{r.push(s),clearTimeout(i),r.length==t.length?e(r):i=setTimeout(()=>e(r),200)},n)}const Pl=ft.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},Kl(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n}))}});function mSe(t,e={}){return[Pl.of({source:t,config:e}),hSe,NW]}function OW(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;r<n.length;r++){let i=n[r];if(/[a-zA-Z]/.test(i)&&!e.some(a=>a.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function RW(t,e,n){var r;let i=n?OW(e.actions):[];return Zn("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Zn("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,c=m=>{if(m.preventDefault(),o)return;o=!0;let g=Kp(t.state.field(Ns).diagnostics,e);g&&a.apply(t,g.from,g.to)},{name:d}=a,f=i[s]?d.indexOf(i[s]):-1,p=f<0?d:[d.slice(0,f),Zn("u",d.slice(f,f+1)),d.slice(f+1)];return Zn("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${d}${f<0?"":` (access key "${i[s]})"`}.`},p)}),e.source&&Zn("div",{class:"cm-diagnosticSource"},e.source))}class gSe extends Xl{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Zn("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Mj{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=RW(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Z_{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)Ij(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=OW(a.actions);for(let o=0;o<s.length;o++)if(s[o].toUpperCase().charCodeAt(0)==i.keyCode){let c=Kp(this.view.state.field(Ns).diagnostics,a);c&&a.actions[o].apply(e,c.from,c.to)}}else return;i.preventDefault()},r=i=>{for(let a=0;a<this.items.length;a++)this.items[a].dom.contains(i.target)&&this.moveSelection(a)};this.list=Zn("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=Zn("div",{class:"cm-panel-lint"},this.list,Zn("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Ij(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ns).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(Ns),r=0,i=!1,a=null,s=new Set;for(e.between(0,this.view.state.doc.length,(o,c,{spec:d})=>{for(let f of d.diagnostics){if(s.has(f))continue;s.add(f);let p=-1,m;for(let g=r;g<this.items.length;g++)if(this.items[g].diagnostic==f){p=g;break}p<0?(m=new Mj(this.view,f),this.items.splice(r,0,m),i=!0):(m=this.items[p],p>r&&(this.items.splice(r,p-r),i=!0)),n&&m.diagnostic==n.diagnostic?m.dom.hasAttribute("aria-selected")||(m.dom.setAttribute("aria-selected","true"),a=m):m.dom.hasAttribute("aria-selected")&&m.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();this.items.length==0&&(this.items.push(new Mj(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:()=>({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:o,panel:c})=>{let d=c.height/this.list.offsetHeight;o.top<c.top?this.list.scrollTop-=(c.top-o.top)/d:o.bottom>c.bottom&&(this.list.scrollTop+=(o.bottom-c.bottom)/d)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Ns),r=Kp(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:xW.of(r)})}static open(e){return new Z_(e)}}function _Se(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function xv(t){return _Se(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const bSe=et.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:xv("#d11")},".cm-lintRange-warning":{backgroundImage:xv("orange")},".cm-lintRange-info":{backgroundImage:xv("#999")},".cm-lintRange-hint":{backgroundImage:xv("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function vSe(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function SSe(t){let e="hint",n=1;for(let r of t){let i=vSe(r.severity);i>n&&(n=i,e=r.severity)}return e}const NW=[Ns,et.decorations.compute([Ns],t=>{let{selected:e,panel:n}=t.field(Ns);return!e||!n||e.from==e.to?Ct.none:Ct.set([lSe.range(e.from,e.to)])}),G0e(cSe,{hideOn:sSe}),bSe];class ESe{promQL(){return e=>{const n=new Vbe(e.state);return n.analyze(),n.getDiagnostics()}}}function ySe(){return new ESe}function TSe(t,e){return mSe(t.call(e))}var HD;(function(t){t.PromQL="PromQL",t.MetricName="MetricName"})(HD||(HD={}));function xSe(t){return uE.define({parser:vpe.configure({top:t}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}})}class AW{constructor(){this.complete=YD(),this.lint=ySe(),this.enableLinter=!0,this.enableCompletion=!0}setComplete(e){return this.complete=YD(e),this}getComplete(){return this.complete}activateCompletion(e){return this.enableCompletion=e,this}setLinter(e){return this.lint=e,this}getLinter(){return this.lint}activateLinter(e){return this.enableLinter=e,this}asExtension(e=HD.PromQL){const n=xSe(e);let r=[n];if(this.enableCompletion){const i=n.data.of({autocomplete:a=>this.complete.promQL(a)});r=r.concat(i)}return this.enableLinter&&(r=r.concat(TSe(this.lint.promQL,this.lint))),r}}const CSe=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=yk(t.state,n.from);return r.line?OSe(t):r.block?NSe(t):!1};function Ek(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return i?(r(n.update(i)),!0):!1}}const OSe=Ek(DSe,0),RSe=Ek(wW,0),NSe=Ek((t,e)=>wW(t,e,wSe(e)),0);function yk(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const Bg=50;function ASe(t,{open:e,close:n},r,i){let a=t.sliceDoc(r-Bg,r),s=t.sliceDoc(i,i+Bg),o=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(s)[0].length,d=a.length-o;if(a.slice(d-e.length,d)==e&&s.slice(c,c+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+c,margin:c&&1}};let f,p;i-r<=2*Bg?f=p=t.sliceDoc(r,i):(f=t.sliceDoc(r,r+Bg),p=t.sliceDoc(i-Bg,i));let m=/^\s*/.exec(f)[0].length,g=/\s*$/.exec(p)[0].length,b=p.length-g-n.length;return f.slice(m,m+e.length)==e&&p.slice(b,b+n.length)==n?{open:{pos:r+m+e.length,margin:/\s/.test(f.charAt(m+e.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(p.charAt(b-1))?1:0}}:null}function wSe(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to),a=e.length-1;a>=0&&e[a].to>r.from?e[a].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function wW(t,e,n=e.selection.ranges){let r=n.map(a=>yk(e,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>ASe(e,r[s],a.from,a.to));if(t!=2&&!i.every(a=>a))return{changes:e.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(t!=1&&i.some(a=>a)){let a=[];for(let s=0,o;s<i.length;s++)if(o=i[s]){let c=r[s],{open:d,close:f}=o;a.push({from:d.pos-c.open.length,to:d.pos+d.margin},{from:f.pos-f.margin,to:f.pos+c.close.length})}return{changes:a}}return null}function DSe(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:a,to:s}of n){let o=r.length,c=1e9,d=yk(e,a).line;if(d){for(let f=a;f<=s;){let p=e.doc.lineAt(f);if(p.from>i&&(a==s||s>p.from)){i=p.from;let m=/^\s*/.exec(p.text)[0].length,g=m==p.length,b=p.text.slice(m,m+d.length)==d?m:-1;m<p.text.length&&m<c&&(c=m),r.push({line:p,comment:b,token:d,indent:m,empty:g,single:!1})}f=p.to+1}if(c<1e9)for(let f=o;f<r.length;f++)r[f].indent<r[f].line.text.length&&(r[f].indent=c);r.length==o+1&&(r[o].single=!0)}}if(t!=2&&r.some(a=>a.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:c,indent:d,empty:f,single:p}of r)(p||!f)&&a.push({from:o.from+d,insert:c+" "});let s=e.changes(a);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:c}of r)if(o>=0){let d=s.from+o,f=d+c.length;s.text[f-s.from]==" "&&f++,a.push({from:d,to:f})}return{changes:a}}return null}const VD=Ql.define(),ISe=Ql.define(),MSe=ft.define(),DW=ft.define({combine(t){return Kl(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,i)=>e(r,i)||n(r,i)})}}),IW=ji.define({create(){return Bl.empty},update(t,e){let n=e.state.facet(DW),r=e.annotation(VD);if(r){let c=is.fromTransaction(e,r.selection),d=r.side,f=d==0?t.undone:t.done;return c?f=vE(f,f.length,n.minDepth,c):f=PW(f,e.startState.selection),new Bl(d==0?r.rest:f,d==0?f:r.rest)}let i=e.annotation(ISe);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(oi.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let a=is.fromTransaction(e),s=e.annotation(oi.time),o=e.annotation(oi.userEvent);return a?t=t.addChanges(a,s,o,n,e):e.selection&&(t=t.addSelection(e.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Bl(t.done.map(is.fromJSON),t.undone.map(is.fromJSON))}});function MW(t={}){return[IW,DW.of(t),et.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?LW:e.inputType=="historyRedo"?WD:null;return r?(e.preventDefault(),r(n)):!1}})]}function rT(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(IW,!1);if(!i)return!1;let a=i.pop(t,n,e);return a?(r(a),!0):!1}}const LW=rT(0,!1),WD=rT(1,!1),LSe=rT(0,!0),kSe=rT(1,!0);class is{constructor(e,n,r,i,a){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(e){return new is(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new is(e.changes&&vi.fromJSON(e.changes),[],e.mapped&&jl.fromJSON(e.mapped),e.startSelection&&Be.fromJSON(e.startSelection),e.selectionsAfter.map(Be.fromJSON))}static fromTransaction(e,n){let r=ro;for(let i of e.startState.facet(MSe)){let a=i(e);a.length&&(r=r.concat(a))}return!r.length&&e.changes.empty?null:new is(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,ro)}static selection(e){return new is(void 0,ro,void 0,void 0,e)}}function vE(t,e,n,r){let i=e+1>n+20?e-n-1:0,a=t.slice(i,e);return a.push(r),a}function PSe(t,e){let n=[],r=!1;return t.iterChangedRanges((i,a)=>n.push(i,a)),e.iterChangedRanges((i,a,s,o)=>{for(let c=0;c<n.length;){let d=n[c++],f=n[c++];o>=d&&s<=f&&(r=!0)}}),r}function BSe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function kW(t,e){return t.length?e.length?t.concat(e):t:e}const ro=[],FSe=200;function PW(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-FSe));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),vE(t,t.length-1,1e9,n.setSelAfter(r)))}else return[is.selection([e])]}function USe(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function xO(t,e){if(!t.length)return t;let n=t.length,r=ro;for(;n;){let i=jSe(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=t.slice(0,n);return a[n-1]=i,a}else e=i.mapped,n--,r=i.selectionsAfter}return r.length?[is.selection(r)]:ro}function jSe(t,e,n){let r=kW(t.selectionsAfter.length?t.selectionsAfter.map(o=>o.map(e)):ro,n);if(!t.changes)return is.selection(r);let i=t.changes.map(e),a=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(a):a;return new is(i,Pt.mapEffects(t.effects,e),s,t.startSelection.map(a),r)}const GSe=/^(input\.type|delete)($|\.)/;class Bl{constructor(e,n,r=0,i=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new Bl(this.done,this.undone):this}addChanges(e,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&e.changes&&(!r||GSe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,PSe(o.changes,e.changes))||r=="input.type.compose")?s=vE(s,s.length-1,i.minDepth,new is(e.changes.compose(o.changes),kW(Pt.mapEffects(e.effects,o.changes),o.effects),o.mapped,o.startSelection,ro)):s=vE(s,s.length,i.minDepth,e),new Bl(s,ro,n,r)}addSelection(e,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:ro;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&BSe(a[a.length-1],e)?this:new Bl(PW(this.done,e),this.undone,n,r)}addMapping(e){return new Bl(xO(this.done,e),xO(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let i=e==0?this.done:this.undone;if(i.length==0)return null;let a=i[i.length-1],s=a.selectionsAfter[0]||n.selection;if(r&&a.selectionsAfter.length)return n.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:VD.of({side:e,rest:USe(i),selection:s}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let o=i.length==1?ro:i.slice(0,i.length-1);return a.mapped&&(o=xO(o,a.mapped)),n.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:VD.of({side:e,rest:o,selection:s}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}Bl.empty=new Bl(ro,ro);const BW=[{key:"Mod-z",run:LW,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:WD,preventDefault:!0},{linux:"Ctrl-Shift-z",run:WD,preventDefault:!0},{key:"Mod-u",run:LSe,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:kSe,preventDefault:!0}];function xm(t,e){return Be.create(t.ranges.map(e),t.mainIndex)}function Zl(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function il({state:t,dispatch:e},n){let r=xm(t.selection,n);return r.eq(t.selection,!0)?!1:(e(Zl(t,r)),!0)}function iT(t,e){return Be.cursor(e?t.to:t.from)}function FW(t,e){return il(t,n=>n.empty?t.moveByChar(n,e):iT(n,e))}function Oa(t){return t.textDirectionAt(t.state.selection.main.head)==br.LTR}const UW=t=>FW(t,!Oa(t)),jW=t=>FW(t,Oa(t));function GW(t,e){return il(t,n=>n.empty?t.moveByGroup(n,e):iT(n,e))}const qSe=t=>GW(t,!Oa(t)),$Se=t=>GW(t,Oa(t));function zSe(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function aT(t,e,n){let r=Ti(t).resolveInner(e.head),i=n?nn.closedBy:nn.openedBy;for(let c=e.head;;){let d=n?r.childAfter(c):r.childBefore(c);if(!d)break;zSe(t,d,i)?r=d:c=n?d.to:d.from}let a=r.type.prop(i),s,o;return a&&(s=n?kl(t,r.from,1):kl(t,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,Be.cursor(o,n?-1:1)}const YSe=t=>il(t,e=>aT(t.state,e,!Oa(t))),HSe=t=>il(t,e=>aT(t.state,e,Oa(t)));function qW(t,e){return il(t,n=>{if(!n.empty)return iT(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const $W=t=>qW(t,!1),zW=t=>qW(t,!0);function YW(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let a of t.state.facet(et.scrollMargins)){let s=a(t);s!=null&&s.top&&(n=Math.max(s==null?void 0:s.top,n)),s!=null&&s.bottom&&(r=Math.max(s==null?void 0:s.bottom,r))}i=t.scrollDOM.clientHeight-n-r}else i=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,i-5)}}function HW(t,e){let n=YW(t),{state:r}=t,i=xm(r.selection,s=>s.empty?t.moveVertically(s,e,n.height):iT(s,e));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let s=t.coordsAtPos(r.selection.main.head),o=t.scrollDOM.getBoundingClientRect(),c=o.top+n.marginTop,d=o.bottom-n.marginBottom;s&&s.top>c&&s.bottom<d&&(a=et.scrollIntoView(i.main.head,{y:"start",yMargin:s.top-c}))}return t.dispatch(Zl(r,i),{effects:a}),!0}const Lj=t=>HW(t,!1),QD=t=>HW(t,!0);function Nd(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&e.head!=r.from+a&&(i=Be.cursor(r.from+a))}return i}const VSe=t=>il(t,e=>Nd(t,e,!0)),WSe=t=>il(t,e=>Nd(t,e,!1)),QSe=t=>il(t,e=>Nd(t,e,!Oa(t))),KSe=t=>il(t,e=>Nd(t,e,Oa(t))),XSe=t=>il(t,e=>Be.cursor(t.lineBlockAt(e.head).from,1)),ZSe=t=>il(t,e=>Be.cursor(t.lineBlockAt(e.head).to,-1));function JSe(t,e,n){let r=!1,i=xm(t.selection,a=>{let s=kl(t,a.head,-1)||kl(t,a.head,1)||a.head>0&&kl(t,a.head-1,1)||a.head<t.doc.length&&kl(t,a.head+1,-1);if(!s||!s.end)return a;r=!0;let o=s.start.from==a.head?s.end.to:s.end.from;return Be.cursor(o)});return r?(e(Zl(t,i)),!0):!1}const eEe=({state:t,dispatch:e})=>JSe(t,e);function _o(t,e){let n=xm(t.state.selection,r=>{let i=e(r);return Be.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(Zl(t.state,n)),!0)}function VW(t,e){return _o(t,n=>t.moveByChar(n,e))}const WW=t=>VW(t,!Oa(t)),QW=t=>VW(t,Oa(t));function KW(t,e){return _o(t,n=>t.moveByGroup(n,e))}const tEe=t=>KW(t,!Oa(t)),nEe=t=>KW(t,Oa(t)),rEe=t=>_o(t,e=>aT(t.state,e,!Oa(t))),iEe=t=>_o(t,e=>aT(t.state,e,Oa(t)));function XW(t,e){return _o(t,n=>t.moveVertically(n,e))}const ZW=t=>XW(t,!1),JW=t=>XW(t,!0);function eQ(t,e){return _o(t,n=>t.moveVertically(n,e,YW(t).height))}const kj=t=>eQ(t,!1),Pj=t=>eQ(t,!0),aEe=t=>_o(t,e=>Nd(t,e,!0)),sEe=t=>_o(t,e=>Nd(t,e,!1)),oEe=t=>_o(t,e=>Nd(t,e,!Oa(t))),lEe=t=>_o(t,e=>Nd(t,e,Oa(t))),cEe=t=>_o(t,e=>Be.cursor(t.lineBlockAt(e.head).from)),uEe=t=>_o(t,e=>Be.cursor(t.lineBlockAt(e.head).to)),Bj=({state:t,dispatch:e})=>(e(Zl(t,{anchor:0})),!0),Fj=({state:t,dispatch:e})=>(e(Zl(t,{anchor:t.doc.length})),!0),Uj=({state:t,dispatch:e})=>(e(Zl(t,{anchor:t.selection.main.anchor,head:0})),!0),jj=({state:t,dispatch:e})=>(e(Zl(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),dEe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),fEe=({state:t,dispatch:e})=>{let n=sT(t).map(({from:r,to:i})=>Be.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:Be.create(n),userEvent:"select"})),!0},hEe=({state:t,dispatch:e})=>{let n=xm(t.selection,r=>{var i;let a=Ti(t).resolveStack(r.from,1);for(let s=a;s;s=s.next){let{node:o}=s;if((o.from<r.from&&o.to>=r.to||o.to>r.to&&o.from<=r.from)&&(!((i=o.parent)===null||i===void 0)&&i.parent))return Be.range(o.to,o.from)}return r});return e(Zl(t,n)),!0},pEe=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=Be.create([n.main]):n.main.empty||(r=Be.create([Be.cursor(n.main.head)])),r?(e(Zl(t,r)),!0):!1};function P0(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let c=e(a);c<s?(n="delete.backward",c=Cv(t,c,!1)):c>s&&(n="delete.forward",c=Cv(t,c,!0)),s=Math.min(s,c),o=Math.max(o,c)}else s=Cv(t,s,!1),o=Cv(t,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:Be.cursor(s,s<a.head?-1:1)}});return i.changes.empty?!1:(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?et.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Cv(t,e,n){if(t instanceof et)for(let r of t.state.facet(et.atomicRanges).map(i=>i(t)))r.between(e,e,(i,a)=>{i<e&&a>e&&(e=n?a:i)});return e}const tQ=(t,e,n)=>P0(t,r=>{let i=r.from,{state:a}=t,s=a.doc.lineAt(i),o,c;if(n&&!e&&i>s.from&&i<s.from+200&&!/[^ \t]/.test(o=s.text.slice(0,i-s.from))){if(o[o.length-1]=="	")return i-1;let d=ym(o,a.tabSize),f=d%fE(a)||fE(a);for(let p=0;p<f&&o[o.length-1-p]==" ";p++)i--;c=i}else c=ta(s.text,i-s.from,e,e)+s.from,c==i&&s.number!=(e?a.doc.lines:1)?c+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(s.text.slice(c-s.from,i-s.from))&&(c=ta(s.text,c-s.from,!1,!1)+s.from);return c}),KD=t=>tQ(t,!1,!0),nQ=t=>tQ(t,!0,!1),rQ=(t,e)=>P0(t,n=>{let r=n.head,{state:i}=t,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(e?a.to:a.from)){r==n.head&&a.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let c=ta(a.text,r-a.from,e)+a.from,d=a.text.slice(Math.min(r,c)-a.from,Math.max(r,c)-a.from),f=s(d);if(o!=null&&f!=o)break;(d!=" "||r!=n.head)&&(o=f),r=c}return r}),iQ=t=>rQ(t,!1),mEe=t=>rQ(t,!0),gEe=t=>P0(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),_Ee=t=>P0(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),bEe=t=>P0(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),vEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:pn.of(["",""])},range:Be.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},SEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let i=r.from,a=t.doc.lineAt(i),s=i==a.from?i-1:ta(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:ta(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:t.doc.slice(i,o).append(t.doc.slice(s,i))},range:Be.cursor(o)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function sT(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),a=t.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=t.doc.lineAt(r.to-1)),n>=i.number){let s=e[e.length-1];s.to=a.to,s.ranges.push(r)}else e.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return e}function aQ(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let a of sT(t)){if(n?a.to==t.doc.length:a.from==0)continue;let s=t.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+t.lineBreak});for(let c of a.ranges)i.push(Be.range(Math.min(t.doc.length,c.anchor+o),Math.min(t.doc.length,c.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:t.lineBreak+s.text});for(let c of a.ranges)i.push(Be.range(c.anchor-o,c.head-o))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:Be.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const EEe=({state:t,dispatch:e})=>aQ(t,e,!1),yEe=({state:t,dispatch:e})=>aQ(t,e,!0);function sQ(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of sT(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const TEe=({state:t,dispatch:e})=>sQ(t,e,!1),xEe=({state:t,dispatch:e})=>sQ(t,e,!0),CEe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(sT(e).map(({from:i,to:a})=>(i>0?i--:a<e.doc.length&&a++,{from:i,to:a}))),r=xm(e.selection,i=>{let a;if(t.lineWrapping){let s=t.lineBlockAt(i.head),o=t.coordsAtPos(i.head,i.assoc||1);o&&(a=s.bottom+t.documentTop-o.bottom+t.defaultLineHeight/2)}return t.moveVertically(i,!0,a)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function OEe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Ti(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),a;return r&&i&&r.to<=e&&i.from>=e&&(a=r.type.prop(nn.closedBy))&&a.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const oQ=lQ(!1),REe=lQ(!0);function lQ(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:a,to:s}=i,o=e.doc.lineAt(a),c=!t&&a==s&&OEe(e,a);t&&(a=s=(s<=o.to?o:e.doc.lineAt(s)).to);let d=new Jy(e,{simulateBreak:a,simulateDoubleBreak:!!c}),f=ck(d,a);for(f==null&&(f=ym(/^\s*/.exec(e.doc.lineAt(a).text)[0],e.tabSize));s<o.to&&/\s/.test(o.text[s-o.from]);)s++;c?{from:a,to:s}=c:a>o.from&&a<o.from+100&&!/\S/.test(o.text.slice(0,a))&&(a=o.from);let p=["",W_(e,f)];return c&&p.push(W_(e,d.lineIndent(o.from,-1))),{changes:{from:a,to:s,insert:pn.of(p)},range:Be.cursor(a+1+p[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function Tk(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let s=r.from;s<=r.to;){let o=t.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(e(o,i,r),n=o.number),s=o.to+1}let a=t.changes(i);return{changes:i,range:Be.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const NEe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new Jy(t,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=Tk(t,(a,s,o)=>{let c=ck(r,a.from);if(c==null)return;/\S/.test(a.text)||(c=0);let d=/^\s*/.exec(a.text)[0],f=W_(t,c);(d!=f||o.from<a.from+d.length)&&(n[a.from]=c,s.push({from:a.from,to:a.from+d.length,insert:f}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0},cQ=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Tk(t,(n,r)=>{r.push({from:n.from,insert:t.facet(M0)})}),{userEvent:"input.indent"})),!0),uQ=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Tk(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=ym(i,t.tabSize),s=0,o=W_(t,Math.max(0,a-fE(t)));for(;s<i.length&&s<o.length&&i.charCodeAt(s)==o.charCodeAt(s);)s++;r.push({from:n.from+s,to:n.from+i.length,insert:o.slice(s)})}),{userEvent:"delete.dedent"})),!0),AEe=t=>(t.setTabFocusMode(),!0),wEe=[{key:"Ctrl-b",run:UW,shift:WW,preventDefault:!0},{key:"Ctrl-f",run:jW,shift:QW},{key:"Ctrl-p",run:$W,shift:ZW},{key:"Ctrl-n",run:zW,shift:JW},{key:"Ctrl-a",run:XSe,shift:cEe},{key:"Ctrl-e",run:ZSe,shift:uEe},{key:"Ctrl-d",run:nQ},{key:"Ctrl-h",run:KD},{key:"Ctrl-k",run:gEe},{key:"Ctrl-Alt-h",run:iQ},{key:"Ctrl-o",run:vEe},{key:"Ctrl-t",run:SEe},{key:"Ctrl-v",run:QD}],DEe=[{key:"ArrowLeft",run:UW,shift:WW,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:qSe,shift:tEe,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:QSe,shift:oEe,preventDefault:!0},{key:"ArrowRight",run:jW,shift:QW,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:$Se,shift:nEe,preventDefault:!0},{mac:"Cmd-ArrowRight",run:KSe,shift:lEe,preventDefault:!0},{key:"ArrowUp",run:$W,shift:ZW,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Bj,shift:Uj},{mac:"Ctrl-ArrowUp",run:Lj,shift:kj},{key:"ArrowDown",run:zW,shift:JW,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Fj,shift:jj},{mac:"Ctrl-ArrowDown",run:QD,shift:Pj},{key:"PageUp",run:Lj,shift:kj},{key:"PageDown",run:QD,shift:Pj},{key:"Home",run:WSe,shift:sEe,preventDefault:!0},{key:"Mod-Home",run:Bj,shift:Uj},{key:"End",run:VSe,shift:aEe,preventDefault:!0},{key:"Mod-End",run:Fj,shift:jj},{key:"Enter",run:oQ},{key:"Mod-a",run:dEe},{key:"Backspace",run:KD,shift:KD},{key:"Delete",run:nQ},{key:"Mod-Backspace",mac:"Alt-Backspace",run:iQ},{key:"Mod-Delete",mac:"Alt-Delete",run:mEe},{mac:"Mod-Backspace",run:_Ee},{mac:"Mod-Delete",run:bEe}].concat(wEe.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),dQ=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:YSe,shift:rEe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:HSe,shift:iEe},{key:"Alt-ArrowUp",run:EEe},{key:"Shift-Alt-ArrowUp",run:TEe},{key:"Alt-ArrowDown",run:yEe},{key:"Shift-Alt-ArrowDown",run:xEe},{key:"Escape",run:pEe},{key:"Mod-Enter",run:REe},{key:"Alt-l",mac:"Ctrl-l",run:fEe},{key:"Mod-i",run:hEe,preventDefault:!0},{key:"Mod-[",run:uQ},{key:"Mod-]",run:cQ},{key:"Mod-Alt-\\",run:NEe},{key:"Shift-Mod-k",run:CEe},{key:"Shift-Mod-\\",run:eEe},{key:"Mod-/",run:CSe},{key:"Alt-A",run:RSe},{key:"Ctrl-m",mac:"Shift-Alt-m",run:AEe}].concat(DEe),IEe={key:"Tab",run:cQ,shift:uQ},Gj=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class Xp{constructor(e,n,r=0,i=e.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(Gj(o)):Gj,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return es(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=VL(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=Ml(e);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),c=this.match(o,s,this.bufferPos+this.bufferStart);if(a==i.length-1){if(c)return this.value=c,this;break}s==r&&a<n.length&&n.charCodeAt(a)==o&&s++}}}match(e,n,r){let i=null;for(let a=0;a<this.matches.length;a+=2){let s=this.matches[a],o=!1;this.query.charCodeAt(s)==e&&(s==this.query.length-1?i={from:this.matches[a+1],to:r}:(this.matches[a]++,o=!0)),o||(this.matches.splice(a,2),a-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:n,to:r}:this.matches.push(1,n)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(Xp.prototype[Symbol.iterator]=function(){return this});const fQ={from:-1,to:-1,match:/.*/.exec("")},xk="gm"+(/x/.unicode==null?"":"u");class hQ{constructor(e,n,r,i=0,a=e.length){if(this.text=e,this.to=a,this.curLine="",this.done=!1,this.value=fQ,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new pQ(e,n,r,i,a);this.re=new RegExp(n,xk+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=e.iter();let s=e.lineAt(i);this.curLineStart=s.from,this.matchPos=SE(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=SE(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<i||r>this.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const CO=new WeakMap;class mp{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let i=CO.get(e);if(!i||i.from>=r||i.to<=n){let o=new mp(n,e.sliceString(n,r));return CO.set(e,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=e.sliceString(n,s)+a,s=n),i.to<r&&(a+=e.sliceString(i.to,r)),CO.set(e,new mp(s,a)),new mp(n,a.slice(n-s,r-s))}}class pQ{constructor(e,n,r,i,a){this.text=e,this.to=a,this.done=!1,this.value=fQ,this.matchPos=SE(e,i),this.re=new RegExp(n,xk+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=mp.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=SE(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=mp.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(hQ.prototype[Symbol.iterator]=pQ.prototype[Symbol.iterator]=function(){return this});function MEe(t){try{return new RegExp(t,xk),!0}catch{return!1}}function SE(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}function XD(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Zn("input",{class:"cm-textfield",name:"line",value:e}),r=Zn("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),t.dispatch({effects:EE.of(!1)}),t.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},Zn("label",t.state.phrase("Go to line"),": ",n)," ",Zn("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=t,o=s.doc.lineAt(s.selection.main.head),[,c,d,f,p]=a,m=f?+f.slice(1):0,g=d?+d:o.number;if(d&&p){let y=g/100;c&&(y=y*(c=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*y)}else d&&c&&(g=g*(c=="-"?-1:1)+o.number);let b=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=Be.cursor(b.from+Math.max(0,Math.min(m,b.length)));t.dispatch({effects:[EE.of(!1),et.scrollIntoView(S.from,{y:"center"})],selection:S}),t.focus()}return{dom:r}}const EE=Pt.define(),qj=ji.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(EE)&&(t=n.value);return t},provide:t=>V_.from(t,e=>e?XD:null)}),LEe=t=>{let e=H_(t,XD);if(!e){let n=[EE.of(!0)];t.state.field(qj,!1)==null&&n.push(Pt.appendConfig.of([qj,kEe])),t.dispatch({effects:n}),e=H_(t,XD)}return e&&e.dom.querySelector("input").select(),!0},kEe=et.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),PEe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},BEe=ft.define({combine(t){return Kl(t,PEe,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function mQ(t){return[qEe,GEe]}const FEe=Ct.mark({class:"cm-selectionMatch"}),UEe=Ct.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function $j(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=Er.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Er.Word)}function jEe(t,e,n,r){return t(e.sliceDoc(n,n+1))==Er.Word&&t(e.sliceDoc(r-1,r))==Er.Word}const GEe=Gr.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(BEe),{state:n}=t,r=n.selection;if(r.ranges.length>1)return Ct.none;let i=r.main,a,s=null;if(i.empty){if(!e.highlightWordAroundCursor)return Ct.none;let c=n.wordAt(i.head);if(!c)return Ct.none;s=n.charCategorizer(i.head),a=n.sliceDoc(c.from,c.to)}else{let c=i.to-i.from;if(c<e.minSelectionLength||c>200)return Ct.none;if(e.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!($j(s,n,i.from,i.to)&&jEe(s,n,i.from,i.to)))return Ct.none}else if(a=n.sliceDoc(i.from,i.to),!a)return Ct.none}let o=[];for(let c of t.visibleRanges){let d=new Xp(n.doc,a,c.from,c.to);for(;!d.next().done;){let{from:f,to:p}=d.value;if((!s||$j(s,n,f,p))&&(i.empty&&f<=i.from&&p>=i.to?o.push(UEe.range(f,p)):(f>=i.to||p<=i.from)&&o.push(FEe.range(f,p)),o.length>e.maxMatches))return Ct.none}}return Ct.set(o)}},{decorations:t=>t.decorations}),qEe=et.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),$Ee=({state:t,dispatch:e})=>{let{selection:n}=t,r=Be.create(n.ranges.map(i=>t.wordAt(i.head)||Be.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function zEe(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new Xp(t.doc,e,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new Xp(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(c=>c.from==o.value.from))continue;if(a){let c=t.wordAt(o.value.from);if(!c||c.from!=o.value.from||c.to!=o.value.to)continue}return o.value}}const YEe=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(a=>a.from===a.to))return $Ee({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(a=>t.sliceDoc(a.from,a.to)!=r))return!1;let i=zEe(t,r);return i?(e(t.update({selection:t.selection.addRange(Be.range(i.from,i.to),!1),effects:et.scrollIntoView(i.to)})),!0):!1},Cm=ft.define({combine(t){return Kl(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new rye(e),scrollToMatch:e=>et.scrollIntoView(e)})}});class gQ{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||MEe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
`:r=="r"?"\r":r=="t"?"	":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new QEe(this):new VEe(this)}getCursor(e,n=0,r){let i=e.doc?e:ln.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?Wh(this,i,n,r):Vh(this,i,n,r)}}class _Q{constructor(e){this.spec=e}}function Vh(t,e,n,r){return new Xp(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?HEe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function HEe(t,e){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=t.sliceString(a,Math.min(t.length,r+2))),(e(yE(i,n-a))!=Er.Word||e(TE(i,n-a))!=Er.Word)&&(e(TE(i,r-a))!=Er.Word||e(yE(i,r-a))!=Er.Word))}class VEe extends _Q{constructor(e){super(e)}nextMatch(e,n,r){let i=Vh(this.spec,e,r,e.doc.length).nextOverlapping();return i.done&&(i=Vh(this.spec,e,0,n).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=r;;){let a=Math.max(n,i-1e4-this.spec.unquoted.length),s=Vh(this.spec,e,a,i),o=null;for(;!s.nextOverlapping().done;)o=s.value;if(o)return o;if(a==n)return null;i-=1e4}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=Vh(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let a=Vh(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function Wh(t,e,n,r){return new hQ(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?WEe(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function yE(t,e){return t.slice(ta(t,e,!1),e)}function TE(t,e){return t.slice(e,ta(t,e))}function WEe(t){return(e,n,r)=>!r[0].length||(t(yE(r.input,r.index))!=Er.Word||t(TE(r.input,r.index))!=Er.Word)&&(t(TE(r.input,r.index+r[0].length))!=Er.Word||t(yE(r.input,r.index+r[0].length))!=Er.Word)}class QEe extends _Q{nextMatch(e,n,r){let i=Wh(this.spec,e,r,e.doc.length).next();return i.done&&(i=Wh(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=Wh(this.spec,e,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?e.match[0]:r!="0"&&+r<e.match.length?e.match[r]:n)}matchAll(e,n){let r=Wh(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let a=Wh(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const J_=Pt.define(),Ck=Pt.define(),id=ji.define({create(t){return new OO(ZD(t).create(),null)},update(t,e){for(let n of e.effects)n.is(J_)?t=new OO(n.value.create(),t.panel):n.is(Ck)&&(t=new OO(t.query,n.value?Ok:null));return t},provide:t=>V_.from(t,e=>e.panel)});class OO{constructor(e,n){this.query=e,this.panel=n}}const KEe=Ct.mark({class:"cm-searchMatch"}),XEe=Ct.mark({class:"cm-searchMatch cm-searchMatch-selected"}),ZEe=Gr.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(id))}update(t){let e=t.state.field(id);(e!=t.startState.field(id)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Ct.none;let{view:n}=this,r=new qc;for(let i=0,a=n.visibleRanges,s=a.length;i<s;i++){let{from:o,to:c}=a[i];for(;i<s-1&&c>a[i+1].from-2*250;)c=a[++i].to;t.highlight(n.state,o,c,(d,f)=>{let p=n.state.selection.ranges.some(m=>m.from==d&&m.to==f);r.add(d,f,p?XEe:KEe)})}return r.finish()}},{decorations:t=>t.decorations});function B0(t){return e=>{let n=e.state.field(id,!1);return n&&n.query.spec.valid?t(e,n):SQ(e)}}const xE=B0((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=Be.single(r.from,r.to),a=t.state.facet(Cm);return t.dispatch({selection:i,effects:[Rk(t,r),a.scrollToMatch(i.main,t)],userEvent:"select.search"}),vQ(t),!0}),CE=B0((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let a=Be.single(i.from,i.to),s=t.state.facet(Cm);return t.dispatch({selection:a,effects:[Rk(t,i),s.scrollToMatch(a.main,t)],userEvent:"select.search"}),vQ(t),!0}),JEe=B0((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:Be.create(n.map(r=>Be.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),eye=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new Xp(t.doc,t.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(Be.range(o.value.from,o.value.to))}return e(t.update({selection:Be.create(a,s),userEvent:"select.search.matches"})),!0},zj=B0((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=e.nextMatch(n,r,r);if(!a)return!1;let s=[],o,c,d=[];if(a.from==r&&a.to==i&&(c=n.toText(e.getReplacement(a)),s.push({from:a.from,to:a.to,insert:c}),a=e.nextMatch(n,a.from,a.to),d.push(et.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let f=s.length==0||s[0].from>=a.to?0:a.to-a.from-c.length;o=Be.single(a.from-f,a.to-f),d.push(Rk(t,a)),d.push(n.facet(Cm).scrollToMatch(o.main,t))}return t.dispatch({changes:s,selection:o,effects:d,userEvent:"input.replace"}),!0}),tye=B0((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:e.getReplacement(i)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:et.announce.of(r),userEvent:"input.replace.all"}),!0});function Ok(t){return t.state.facet(Cm).createPanel(t)}function ZD(t,e){var n,r,i,a,s;let o=t.selection.main,c=o.empty||o.to>o.from+100?"":t.sliceDoc(o.from,o.to);if(e&&!c)return e;let d=t.facet(Cm);return new gQ({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:d.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(r=e==null?void 0:e.caseSensitive)!==null&&r!==void 0?r:d.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:d.literal,regexp:(a=e==null?void 0:e.regexp)!==null&&a!==void 0?a:d.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:d.wholeWord})}function bQ(t){let e=H_(t,Ok);return e&&e.dom.querySelector("[main-field]")}function vQ(t){let e=bQ(t);e&&e==t.root.activeElement&&e.select()}const SQ=t=>{let e=t.state.field(id,!1);if(e&&e.panel){let n=bQ(t);if(n&&n!=t.root.activeElement){let r=ZD(t.state,e.query.spec);r.valid&&t.dispatch({effects:J_.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[Ck.of(!0),e?J_.of(ZD(t.state,e.query.spec)):Pt.appendConfig.of(aye)]});return!0},EQ=t=>{let e=t.state.field(id,!1);if(!e||!e.panel)return!1;let n=H_(t,Ok);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Ck.of(!1)}),!0},nye=[{key:"Mod-f",run:SQ,scope:"editor search-panel"},{key:"F3",run:xE,shift:CE,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:xE,shift:CE,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:EQ,scope:"editor search-panel"},{key:"Mod-Shift-l",run:eye},{key:"Mod-Alt-g",run:LEe},{key:"Mod-d",run:YEe,preventDefault:!0}];class rye{constructor(e){this.view=e;let n=this.query=e.state.field(id).query.spec;this.commit=this.commit.bind(this),this.searchField=Zn("input",{value:n.search,placeholder:bs(e,"Find"),"aria-label":bs(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Zn("input",{value:n.replace,placeholder:bs(e,"Replace"),"aria-label":bs(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Zn("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Zn("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Zn("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return Zn("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=Zn("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>xE(e),[bs(e,"next")]),r("prev",()=>CE(e),[bs(e,"previous")]),r("select",()=>JEe(e),[bs(e,"all")]),Zn("label",null,[this.caseField,bs(e,"match case")]),Zn("label",null,[this.reField,bs(e,"regexp")]),Zn("label",null,[this.wordField,bs(e,"by word")]),...e.state.readOnly?[]:[Zn("br"),this.replaceField,r("replace",()=>zj(e),[bs(e,"replace")]),r("replaceAll",()=>tye(e),[bs(e,"replace all")])],Zn("button",{name:"close",onclick:()=>EQ(e),"aria-label":bs(e,"close"),type:"button"},["×"])])}commit(){let e=new gQ({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:J_.of(e)}))}keydown(e){t0e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?CE:xE)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),zj(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(J_)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Cm).top}}function bs(t,e){return t.state.phrase(e)}const Ov=30,Rv=/[\s\.,:;?!]/;function Rk(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,a=Math.max(r.from,e-Ov),s=Math.min(i,n+Ov),o=t.state.sliceDoc(a,s);if(a!=r.from){for(let c=0;c<Ov;c++)if(!Rv.test(o[c+1])&&Rv.test(o[c])){o=o.slice(c);break}}if(s!=i){for(let c=o.length-1;c>o.length-Ov;c--)if(!Rv.test(o[c-1])&&Rv.test(o[c])){o=o.slice(0,c);break}}return et.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${r.number}.`)}const iye=et.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),aye=[id,Kc.low(ZEe),iye];var Yj=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,r=[];e.closeBracketsKeymap!==!1&&(r=r.concat(dW)),e.defaultKeymap!==!1&&(r=r.concat(dQ)),e.searchKeymap!==!1&&(r=r.concat(nye)),e.historyKeymap!==!1&&(r=r.concat(BW)),e.foldKeymap!==!1&&(r=r.concat(Cbe)),e.completionKeymap!==!1&&(r=r.concat(bk)),e.lintKeymap!==!1&&(r=r.concat(CW));var i=[];return e.lineNumbers!==!1&&i.push(Z0e()),e.highlightActiveLineGutter!==!1&&i.push(tbe()),e.highlightSpecialChars!==!1&&i.push(M7()),e.history!==!1&&i.push(MW()),e.foldGutter!==!1&&i.push(Abe()),e.drawSelection!==!1&&i.push(o0e()),e.dropCursor!==!1&&i.push(f0e()),e.allowMultipleSelections!==!1&&i.push(ln.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&i.push(q7()),e.syntaxHighlighting!==!1&&i.push(tT(Mbe,{fallback:!0})),e.bracketMatching!==!1&&i.push(eW()),e.closeBrackets!==!1&&i.push(lW()),e.autocompletion!==!1&&i.push(hW()),e.rectangularSelection!==!1&&i.push(w0e()),n!==!1&&i.push(M0e()),e.highlightActiveLine!==!1&&i.push(T0e()),e.highlightSelectionMatches!==!1&&i.push(mQ()),e.tabSize&&typeof e.tabSize=="number"&&i.push(M0.of(" ".repeat(e.tabSize))),i.concat([rd.of(r.flat())]).filter(Boolean)};const sye="#e5c07b",Hj="#e06c75",oye="#56b6c2",lye="#ffffff",bS="#abb2bf",JD="#7d8799",cye="#61afef",uye="#98c379",Vj="#d19a66",dye="#c678dd",fye="#21252b",Wj="#2c313a",Qj="#282c34",RO="#353a42",hye="#3E4451",Kj="#528bff",pye=et.theme({"&":{color:bS,backgroundColor:Qj},".cm-content":{caretColor:Kj},".cm-cursor, .cm-dropCursor":{borderLeftColor:Kj},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:hye},".cm-panels":{backgroundColor:fye,color:bS},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Qj,color:JD,border:"none"},".cm-activeLineGutter":{backgroundColor:Wj},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:RO},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:RO,borderBottomColor:RO},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Wj,color:bS}}},{dark:!0}),mye=rh.define([{tag:pe.keyword,color:dye},{tag:[pe.name,pe.deleted,pe.character,pe.propertyName,pe.macroName],color:Hj},{tag:[pe.function(pe.variableName),pe.labelName],color:cye},{tag:[pe.color,pe.constant(pe.name),pe.standard(pe.name)],color:Vj},{tag:[pe.definition(pe.name),pe.separator],color:bS},{tag:[pe.typeName,pe.className,pe.number,pe.changed,pe.annotation,pe.modifier,pe.self,pe.namespace],color:sye},{tag:[pe.operator,pe.operatorKeyword,pe.url,pe.escape,pe.regexp,pe.link,pe.special(pe.string)],color:oye},{tag:[pe.meta,pe.comment],color:JD},{tag:pe.strong,fontWeight:"bold"},{tag:pe.emphasis,fontStyle:"italic"},{tag:pe.strikethrough,textDecoration:"line-through"},{tag:pe.link,color:JD,textDecoration:"underline"},{tag:pe.heading,fontWeight:"bold",color:Hj},{tag:[pe.atom,pe.bool,pe.special(pe.variableName)],color:Vj},{tag:[pe.processingInstruction,pe.string,pe.inserted],color:uye},{tag:pe.invalid,color:lye}]),gye=[pye,tT(mye)];var _ye=et.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),bye=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:r=!0,readOnly:i=!1,theme:a="light",placeholder:s="",basicSetup:o=!0}=e,c=[];switch(n&&c.unshift(rd.of([IEe])),o&&(typeof o=="boolean"?c.unshift(Yj()):c.unshift(Yj(o))),s&&c.unshift(L7(s)),a){case"light":c.push(_ye);break;case"dark":c.push(gye);break;case"none":break;default:c.push(a);break}return r===!1&&c.push(et.editable.of(!1)),i&&c.push(ln.readOnly.of(!0)),[...c]},vye=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)}),Xj=Ql.define(),Sye=[];function Eye(t){var{value:e,selection:n,onChange:r,onStatistics:i,onCreateEditor:a,onUpdate:s,extensions:o=Sye,autoFocus:c,theme:d="light",height:f=null,minHeight:p=null,maxHeight:m=null,width:g=null,minWidth:b=null,maxWidth:S=null,placeholder:y="",editable:E=!0,readOnly:x=!1,indentWithTab:C=!0,basicSetup:R=!0,root:T,initialState:N}=t,[w,D]=I.useState(),[L,k]=I.useState(),[M,P]=I.useState(),V=et.theme({"&":{height:f,minHeight:p,maxHeight:m,width:g,minWidth:b,maxWidth:S},"& .cm-scroller":{height:"100% !important"}}),Y=et.updateListener.of(q=>{if(q.docChanged&&typeof r=="function"&&!q.transactions.some(U=>U.annotation(Xj))){var z=q.state.doc,H=z.toString();r(H,q)}i&&i(vye(q))}),G=bye({theme:d,editable:E,readOnly:x,placeholder:y,indentWithTab:C,basicSetup:R}),F=[Y,V,...G];return s&&typeof s=="function"&&F.push(et.updateListener.of(s)),F=F.concat(o),I.useEffect(()=>{if(w&&!M){var q={doc:e,selection:n,extensions:F},z=N?ln.fromJSON(N.json,q,N.fields):ln.create(q);if(P(z),!L){var H=new et({state:z,parent:w,root:T});k(H),a&&a(H,z)}}return()=>{L&&(P(void 0),k(void 0))}},[w,M]),I.useEffect(()=>D(t.container),[t.container]),I.useEffect(()=>()=>{L&&(L.destroy(),k(void 0))},[L]),I.useEffect(()=>{c&&L&&L.focus()},[c,L]),I.useEffect(()=>{L&&L.dispatch({effects:Pt.reconfigure.of(F)})},[d,o,f,p,m,g,b,S,y,E,x,C,R,r,s]),I.useEffect(()=>{if(e!==void 0){var q=L?L.state.doc.toString():"";L&&e!==q&&L.dispatch({changes:{from:0,to:q.length,insert:e||""},annotations:[Xj.of(!0)]})}},[e,L]),{state:M,setState:P,view:L,setView:k,container:w,setContainer:D}}var yye=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Nk=I.forwardRef((t,e)=>{var{className:n,value:r="",selection:i,extensions:a=[],onChange:s,onStatistics:o,onCreateEditor:c,onUpdate:d,autoFocus:f,theme:p="light",height:m,minHeight:g,maxHeight:b,width:S,minWidth:y,maxWidth:E,basicSetup:x,placeholder:C,indentWithTab:R,editable:T,readOnly:N,root:w,initialState:D}=t,L=UM(t,yye),k=I.useRef(null),{state:M,view:P,container:V}=Eye({container:k.current,root:w,value:r,autoFocus:f,theme:p,height:m,minHeight:g,maxHeight:b,width:S,minWidth:y,maxWidth:E,basicSetup:x,placeholder:C,indentWithTab:R,editable:T,readOnly:N,selection:i,onChange:s,onStatistics:o,onCreateEditor:c,onUpdate:d,extensions:a,initialState:D});if(I.useImperativeHandle(e,()=>({editor:k.current,state:M,view:P}),[k,V,M,P]),typeof r!="string")throw new Error("value must be typeof string but got "+typeof r);var Y=typeof p=="string"?"cm-theme-"+p:"cm-theme";return l.jsx("div",LS({ref:k,className:""+Y+(n?" "+n:"")},L))});Nk.displayName="CodeMirror";const yQ=et.theme({".cm-content":{paddingTop:"3px",paddingBottom:"0px"},"&.cm-editor":{"&.cm-focused":{outline:"none",outline_fallback:"none"},backgroundColor:"transparent"},".cm-scroller":{overflow:"hidden",fontFamily:'"DejaVu Sans Mono", monospace'},".cm-placeholder":{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'},".cm-matchingBracket":{fontWeight:"bold",outline:"1px dashed transparent"},".cm-nonmatchingBracket":{borderColor:"red"},".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{maxHeight:"350px",fontFamily:'"DejaVu Sans Mono", monospace',maxWidth:"unset"},"& > ul > li":{padding:"2px 1em 2px 3px"},minWidth:"30%"},".cm-completionDetail":{float:"right",color:"#999"},".cm-tooltip.cm-completionInfo":{padding:"10px",fontFamily:"'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;",border:"none",minWidth:"250px",maxWidth:"min-content"},".cm-completionInfo.cm-completionInfo-right":{"&:before":{content:"' '",height:"0",position:"absolute",width:"0",left:"-20px",borderWidth:"10px",borderStyle:"solid",borderColor:"transparent"},marginTop:"-11px",marginLeft:"12px"},".cm-completionInfo.cm-completionInfo-left":{"&:before":{content:"' '",height:"0",position:"absolute",width:"0",right:"-20px",borderWidth:"10px",borderStyle:"solid",borderColor:"transparent"},marginTop:"-11px",marginRight:"12px"},".cm-completionInfo.cm-completionInfo-right-narrow":{"&:before":{content:"' '",height:"0",position:"absolute",width:"0",top:"-20px",borderWidth:"10px",borderStyle:"solid",borderColor:"transparent"},marginTop:"10px",marginLeft:"150px"},".cm-completionMatchedText":{textDecoration:"none",fontWeight:"bold"},".cm-selectionMatch":{backgroundColor:"#e6f3ff"},".cm-diagnostic":{"&.cm-diagnostic-error":{borderLeft:"3px solid #e65013"}},".cm-completionIcon":{boxSizing:"content-box",fontSize:"16px",lineHeight:"1",marginRight:"10px",verticalAlign:"top","&:after":{content:"'\\ea88'"},fontFamily:"codicon",paddingRight:"0",opacity:"1"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\\ea8c'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'\\eb5f'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\\eb62'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'\\ea95'"},color:"#ee9d28"}}),TQ=et.theme({".cm-tooltip":{backgroundColor:"#f8f8f8",borderColor:"rgba(52, 79, 113, 0.2)"},".cm-tooltip.cm-tooltip-autocomplete":{"& li:hover":{backgroundColor:"#ddd"},"& > ul > li[aria-selected]":{backgroundColor:"#d6ebff",color:"unset"}},".cm-tooltip.cm-completionInfo":{backgroundColor:"#d6ebff"},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right":{"&:before":{borderRightColor:"#d6ebff"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right-narrow":{"&:before":{borderBottomColor:"#d6ebff"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-left":{"&:before":{borderLeftColor:"#d6ebff"}},".cm-line":{"&::selection":{backgroundColor:"#add6ff"},"& > span::selection":{backgroundColor:"#add6ff"}},".cm-matchingBracket":{color:"#000",backgroundColor:"#dedede"},".cm-completionMatchedText":{color:"#0066bf"},".cm-completionIcon":{color:"#007acc"},".cm-completionIcon-constant":{color:"#007acc"},".cm-completionIcon-function, .cm-completionIcon-method":{color:"#652d90"},".cm-completionIcon-keyword":{color:"#616161"}},{dark:!1}),Tye=et.theme({".cm-content":{caretColor:"#fff"},".cm-tooltip.cm-completionInfo":{backgroundColor:"#333338"},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right":{"&:before":{borderRightColor:"#333338"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-right-narrow":{"&:before":{borderBottomColor:"#333338"}},".cm-tooltip > .cm-completionInfo.cm-completionInfo-left":{"&:before":{borderLeftColor:"#333338"}},".cm-line":{"&::selection":{backgroundColor:"#767676"},"& > span::selection":{backgroundColor:"#767676"}},".cm-matchingBracket, &.cm-focused .cm-matchingBracket":{backgroundColor:"#616161"},".cm-completionMatchedText":{color:"#7dd3fc"},".cm-completionIcon, .cm-completionIcon-constant":{color:"#7dd3fc"},".cm-completionIcon-function, .cm-completionIcon-method":{color:"#d8b4fe"},".cm-completionIcon-keyword":{color:"#cbd5e1 !important"}},{dark:!0}),xQ=rh.define([{tag:pe.number,color:"#09885a"},{tag:pe.string,color:"#a31515"},{tag:pe.keyword,color:"#008080"},{tag:pe.function(pe.variableName),color:"#008080"},{tag:pe.labelName,color:"#800000"},{tag:pe.operator},{tag:pe.modifier,color:"#008080"},{tag:pe.paren},{tag:pe.squareBracket},{tag:pe.brace},{tag:pe.invalid,color:"red"},{tag:pe.comment,color:"#888",fontStyle:"italic"}]),CQ=rh.define([{tag:pe.number,color:"#22c55e"},{tag:pe.string,color:"#fca5a5"},{tag:pe.keyword,color:"#14bfad"},{tag:pe.function(pe.variableName),color:"#14bfad"},{tag:pe.labelName,color:"#ff8585"},{tag:pe.operator},{tag:pe.modifier,color:"#14bfad"},{tag:pe.paren},{tag:pe.squareBracket},{tag:pe.brace},{tag:pe.invalid,color:"#ff3d3d"},{tag:pe.comment,color:"#9ca3af",fontStyle:"italic"}]),xye="_input_k0obd_1",Cye={input:xye},Oye="api/v1",OQ=({pathPrefix:t,path:e,params:n,recordResponseTime:r})=>async({signal:i})=>{var s;const a=n?`?${new URLSearchParams(n).toString()}`:"";try{const o=Date.now(),c=await fetch(`${t}/${Oye}${e}${a}`,{cache:"no-store",credentials:"same-origin",signal:i});if(!c.ok&&!((s=c.headers.get("content-type"))!=null&&s.startsWith("application/json")))throw new Error(c.statusText);const d=await c.json();if(r&&r(Date.now()-o),d.status==="error")throw new Error(d.error!==void 0?d.error:'missing "error" field in response JSON');return d}catch(o){if(!(o instanceof Error))throw new Error("Unknown error");switch(o.name){case"TypeError":throw new Error("Network error or unable to reach the server");case"SyntaxError":throw new Error("Invalid JSON response");default:throw o}}},md=({key:t,path:e,params:n,enabled:r,recordResponseTime:i,refetchInterval:a})=>{const{pathPrefix:s}=yi();return Cue({queryKey:t!==void 0?t:[e,n],retry:!1,refetchOnWindowFocus:!1,refetchInterval:a,gcTime:0,enabled:r,queryFn:OQ({pathPrefix:s,path:e,params:n,recordResponseTime:i})})},Fi=({key:t,path:e,params:n})=>{const{pathPrefix:r}=yi();return WH({queryKey:t!==void 0?t:[e,n],retry:!1,refetchOnWindowFocus:!1,gcTime:0,queryFn:OQ({pathPrefix:r,path:e,params:n})})};function Rye(t){let e=t,n=!1;const r=new Set;return{getState(){return e},updateState(i){e=typeof i=="function"?i(e):i},setState(i){this.updateState(i),r.forEach(a=>a(e))},initialize(i){n||(e=i,n=!0)},subscribe(i){return r.add(i),()=>r.delete(i)}}}function Nye(t){return I.useSyncExternalStore(t.subscribe,()=>t.getState(),()=>t.getState())}function Aye(t,e,n){const r=[],i=[],a={};for(const s of t){const o=s.position||e;a[o]=a[o]||0,a[o]+=1,a[o]<=n?i.push(s):r.push(s)}return{notifications:i,queue:r}}const wye=()=>Rye({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),ih=wye(),Dye=(t=ih)=>Nye(t);function Om(t,e){const n=t.getState(),r=e([...n.notifications,...n.queue]),i=Aye(r,n.defaultPosition,n.limit);t.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Iye(t,e=ih){const n=t.id||OI();return Om(e,r=>t.id&&r.some(i=>i.id===t.id)?r:[...r,{...t,id:n}]),n}function RQ(t,e=ih){return Om(e,n=>n.filter(r=>{var i;return r.id===t?((i=r.onClose)==null||i.call(r,r),!1):!0})),t}function Mye(t,e=ih){return Om(e,n=>n.map(r=>r.id===t.id?{...r,...t}:r)),t.id}function Lye(t=ih){Om(t,()=>[])}function kye(t=ih){Om(t,e=>e.slice(0,t.getState().limit))}const Qo={show:Iye,hide:RQ,update:Mye,clean:Lye,cleanQueue:kye,updateState:Om};function eI(t,e){return eI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},eI(t,e)}function NQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,eI(t,e)}const Zj={disabled:!1},OE=xn.createContext(null);var Pye=function(e){return e.scrollTop},t_="unmounted",lf="exited",cf="entering",Qh="entered",tI="exiting",Xc=function(t){NQ(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?o?(c=lf,a.appearStatus=cf):c=Qh:r.unmountOnExit||r.mountOnEnter?c=t_:c=lf,a.state={status:c},a.nextCallback=null,a}e.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===t_?{status:lf}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==cf&&s!==Qh&&(a=cf):(s===cf||s===Qh)&&(a=tI)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===cf){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Yg.findDOMNode(this);s&&Pye(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lf&&this.setState({status:t_})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,c=this.props.nodeRef?[o]:[Yg.findDOMNode(this),o],d=c[0],f=c[1],p=this.getTimeouts(),m=o?p.appear:p.enter;if(!i&&!s||Zj.disabled){this.safeSetState({status:Qh},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:cf},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Qh},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Yg.findDOMNode(this);if(!a||Zj.disabled){this.safeSetState({status:lf},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:tI},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:lf},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Yg.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===t_)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=UM(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xn.createElement(OE.Provider,{value:null},typeof s=="function"?s(i,o):xn.cloneElement(xn.Children.only(s),o))},e}(xn.Component);Xc.contextType=OE;Xc.propTypes={};function qh(){}Xc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qh,onEntering:qh,onEntered:qh,onExit:qh,onExiting:qh,onExited:qh};Xc.UNMOUNTED=t_;Xc.EXITED=lf;Xc.ENTERING=cf;Xc.ENTERED=Qh;Xc.EXITING=tI;function Bye(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ak(t,e){var n=function(a){return e&&I.isValidElement(a)?e(a):a},r=Object.create(null);return t&&I.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Fye(t,e){t=t||{},e=e||{};function n(f){return f in e?e[f]:t[f]}var r=Object.create(null),i=[];for(var a in t)a in e?i.length&&(r[a]=i,i=[]):i.push(a);var s,o={};for(var c in e){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];o[r[c][s]]=n(d)}o[c]=n(c)}for(s=0;s<i.length;s++)o[i[s]]=n(i[s]);return o}function yf(t,e,n){return n[e]!=null?n[e]:t.props[e]}function Uye(t,e){return Ak(t.children,function(n){return I.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:yf(n,"appear",t),enter:yf(n,"enter",t),exit:yf(n,"exit",t)})})}function jye(t,e,n){var r=Ak(t.children),i=Fye(e,r);return Object.keys(i).forEach(function(a){var s=i[a];if(I.isValidElement(s)){var o=a in e,c=a in r,d=e[a],f=I.isValidElement(d)&&!d.props.in;c&&(!o||f)?i[a]=I.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:yf(s,"exit",t),enter:yf(s,"enter",t)}):!c&&o&&!f?i[a]=I.cloneElement(s,{in:!1}):c&&o&&I.isValidElement(d)&&(i[a]=I.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:yf(s,"exit",t),enter:yf(s,"enter",t)}))}}),i}var Gye=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},qye={component:"div",childFactory:function(e){return e}},Uu=function(t){NQ(e,t);function e(r,i){var a;a=t.call(this,r,i)||this;var s=a.handleExited.bind(Bye(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(i,a){var s=a.children,o=a.handleExited,c=a.firstRender;return{children:c?Uye(i,o):jye(i,s,o),firstRender:!1}},n.handleExited=function(i,a){var s=Ak(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(o){var c=LS({},o.children);return delete c[i.key],{children:c}}))},n.render=function(){var i=this.props,a=i.component,s=i.childFactory,o=UM(i,["component","childFactory"]),c=this.state.contextValue,d=Gye(this.state.children).map(s);return delete o.appear,delete o.enter,delete o.exit,a===null?xn.createElement(OE.Provider,{value:c},d):xn.createElement(OE.Provider,{value:c},xn.createElement(a,o,d))},e}(xn.Component);Uu.propTypes={};Uu.defaultProps=qye;const AQ=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function $ye(t,e){return t.reduce((n,r)=>(n[r.position||e].push(r),n),AQ.reduce((n,r)=>(n[r]=[],n),{}))}const Jj={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},zye={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function Yye({state:t,maxHeight:e,position:n,transitionDuration:r}){const[i,a]=n.split("-"),s=a==="center"?`${i}-center`:a,o={opacity:0,maxHeight:e,transform:Jj[s],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},c={opacity:1,transform:zye[s]},d={opacity:0,maxHeight:0,transform:Jj[s]};return{...o,...{entering:c,entered:c,exiting:d,exited:d}[t]}}function Hye(t,e){return typeof e=="number"?e:e===!1||t===!1?!1:t}const wQ=I.forwardRef(({data:t,onHide:e,autoClose:n,...r},i)=>{const{autoClose:a,message:s,...o}=t,c=Hye(n,t.autoClose),d=I.useRef(-1),f=()=>window.clearTimeout(d.current),p=()=>{e(t.id),f()},m=()=>{typeof c=="number"&&(d.current=window.setTimeout(p,c))};return I.useEffect(()=>{var g;(g=t.onOpen)==null||g.call(t,t)},[]),I.useEffect(()=>(m(),f),[c]),l.jsx(KM,{...r,...o,onClose:p,ref:i,onMouseEnter:f,onMouseLeave:m,children:s})});wQ.displayName="@mantine/notifications/NotificationContainer";var DQ={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const Vye=Xc,Wye={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:co("overlay"),store:ih,withinPortal:!0},Qye=(t,{zIndex:e,containerWidth:n})=>({root:{"--notifications-z-index":e==null?void 0:e.toString(),"--notifications-container-width":me(n)}}),Zc=Le((t,e)=>{const n=Ee("Notifications",Wye,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,position:d,autoClose:f,transitionDuration:p,containerWidth:m,notificationMaxHeight:g,limit:b,zIndex:S,store:y,portalProps:E,withinPortal:x,...C}=n,R=Ui(),T=Dye(y),N=PJ(),w=UE(),D=I.useRef({}),L=I.useRef(0),M=(R.respectReducedMotion?w:!1)?1:p,P=ct({name:"Notifications",classes:DQ,props:n,className:i,style:a,classNames:r,styles:s,unstyled:o,vars:c,varsResolver:Qye});I.useEffect(()=>{y==null||y.updateState(G=>({...G,limit:b||5,defaultPosition:d}))},[b,d]),so(()=>{T.notifications.length>L.current&&setTimeout(()=>N(),0),L.current=T.notifications.length},[T.notifications]);const V=$ye(T.notifications,d),Y=AQ.reduce((G,F)=>(G[F]=V[F].map(({style:q,...z})=>l.jsx(Vye,{timeout:M,onEnter:()=>D.current[z.id].offsetHeight,nodeRef:{current:D.current[z.id]},children:H=>l.jsx(wQ,{ref:U=>{D.current[z.id]=U},data:z,onHide:U=>RQ(U,y),autoClose:f,...P("notification",{style:{...Yye({state:H,position:F,transitionDuration:M,maxHeight:g}),...q}})})},z.id)),G),{});return l.jsxs(dm,{withinPortal:x,...E,children:[l.jsx(Se,{...P("root"),"data-position":"top-center",ref:e,...C,children:l.jsx(Uu,{children:Y["top-center"]})}),l.jsx(Se,{...P("root"),"data-position":"top-left",...C,children:l.jsx(Uu,{children:Y["top-left"]})}),l.jsx(Se,{...P("root",{className:Pp.classNames.fullWidth}),"data-position":"top-right",...C,children:l.jsx(Uu,{children:Y["top-right"]})}),l.jsx(Se,{...P("root",{className:Pp.classNames.fullWidth}),"data-position":"bottom-right",...C,children:l.jsx(Uu,{children:Y["bottom-right"]})}),l.jsx(Se,{...P("root"),"data-position":"bottom-left",...C,children:l.jsx(Uu,{children:Y["bottom-left"]})}),l.jsx(Se,{...P("root"),"data-position":"bottom-center",...C,children:l.jsx(Uu,{children:Y["bottom-center"]})})]})});Zc.classes=DQ;Zc.displayName="@mantine/notifications/Notifications";Zc.show=Qo.show;Zc.hide=Qo.hide;Zc.update=Qo.update;Zc.clean=Qo.clean;Zc.cleanQueue=Qo.cleanQueue;Zc.updateState=Qo.updateState;function Kye(t){return t.replace(/[&<>"']/g,e=>{switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return"&#039;"}})}function nI(t){return t.to-t.from+1}function IQ(t,e){const n=t[e];let r=null;return e===0&&n.from!==0&&(r={from:0,to:n.from-1}),e>0&&(r={from:t[e-1].to+1,to:n.from-1}),r}function Xye(t,e){let n=0;for(let r=0;r<t.length;r++){const i=t[r],a=IQ(t,r);a!==null&&(n=n-nI(a)/e),n=n+nI(i)**2}return n}class MQ{constructor(e){this.conf={caseSensitive:(e==null?void 0:e.caseSensitive)===void 0?!1:e.caseSensitive,excludedChars:(e==null?void 0:e.excludedChars)===void 0?[]:e.excludedChars,includeMatches:(e==null?void 0:e.includeMatches)===void 0?!1:e.includeMatches,shouldSort:(e==null?void 0:e.shouldSort)===void 0?!1:e.shouldSort,shouldRender:(e==null?void 0:e.shouldRender)===void 0?!0:e.shouldRender,escapeHTML:(e==null?void 0:e.escapeHTML)===void 0?!1:e.escapeHTML,pre:(e==null?void 0:e.pre)===void 0?"":e.pre,post:(e==null?void 0:e.post)===void 0?"":e.post}}filter(e,n,r){const i=(r==null?void 0:r.shouldSort)!==void 0?r.shouldSort:this.conf.shouldSort;let a=[];for(let s=0;s<n.length;s++){const o=this.match(e,n[s],r);o!==null&&(o.index=s,a.push(o))}return i&&(a=a.sort((s,o)=>o.score-s.score)),a}match(e,n,r){let i=e,a=n;const s=(r==null?void 0:r.caseSensitive)!==void 0?r.caseSensitive:this.conf.caseSensitive,o=(r==null?void 0:r.includeMatches)!==void 0?r.includeMatches:this.conf.includeMatches,c=(r==null?void 0:r.shouldRender)!==void 0?r.shouldRender:this.conf.shouldRender;if(s||(i=i.toLowerCase(),a=a.toLowerCase()),i===a){const m=[{from:0,to:e.length-1}],g={original:n,rendered:c?this.render(n,m,r):n,score:1/0};return o&&(g.intervals=m),g}let d=[],f=0;for(let m=0;m<a.length-i.length+1;m++)if(a[m]===i[0]){const g=this.generateMatchingInterval(i,a,m,r);if(g===null)break;g.score>f&&(f=g.score,d=g.intervals)}if(d.length===0)return null;const p={original:n,rendered:c?this.render(n,d,r):n,score:f};return o&&(p.intervals=d),p}render(e,n,r){if(n.length==0)return e;let i="";const a=r!=null&&r.pre?r.pre:this.conf.pre,s=r!=null&&r.post?r.post:this.conf.post;for(let c=0;c<n.length;c++){const d=n[c],f=IQ(n,c);let p="";f!==null&&(p=this.extractSubString(e,f,r));const m=this.extractSubString(e,d,r);i=`${i}${p}${a}${m}${s}`}const o=n[n.length-1];return o.to<e.length-1&&(i=i+this.extractSubString(e,{from:o.to+1,to:e.length},r)),i}extractSubString(e,n,r){const i=(r==null?void 0:r.escapeHTML)!==void 0?r.escapeHTML:this.conf.escapeHTML;let a=e.substr(n.from,nI(n));return i&&(a=Kye(a)),a}generateMatchingInterval(e,n,r,i){let a=[];(i==null?void 0:i.excludedChars)!==void 0?a=i.excludedChars:this.conf.excludedChars!==void 0&&(a=this.conf.excludedChars);let s=0;const o=[];for(let c=r;c<n.length&&s<e.length;){if(a.includes(n[c])){c++;continue}if(a.includes(e[s])){s++;continue}if(n[c]===e[s]){const d={from:c,to:c};s++,c++;for(let f=c;f<n.length&&s<e.length&&n[f]===e[s];f++)d.to=f,s++,c=f;o.push(d)}c++}return o.length===0||s!==e.length?null:{score:Xye(o,n.length),intervals:o}}}const LQ=new MQ;function Zye(t,e,n){return LQ.match(t,e,n)}function e6(t,e,n){return LQ.render(t,e,n)}var Oo={},Ro={},NO={},No={},Nv={},t6;function Jye(){return t6||(t6=1,Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}))),Nv}var Av={},n6;function eTe(){return n6||(n6=1,Object.defineProperty(Av,"__esModule",{value:!0}),Av.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}))),Av}var AO={},r6;function i6(){return r6||(r6=1,function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var s="";return a>65535&&(a-=65536,s+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),s+=String.fromCharCode(a),s};function r(a){var s;return a>=55296&&a<=57343||a>1114111?65533:(s=n.get(a))!==null&&s!==void 0?s:a}t.replaceCodePoint=r;function i(a){return(0,t.fromCodePoint)(r(a))}t.default=i}(AO)),AO}var a6;function RE(){return a6||(a6=1,function(t){var e=No&&No.__createBinding||(Object.create?function(M,P,V,Y){Y===void 0&&(Y=V);var G=Object.getOwnPropertyDescriptor(P,V);(!G||("get"in G?!P.__esModule:G.writable||G.configurable))&&(G={enumerable:!0,get:function(){return P[V]}}),Object.defineProperty(M,Y,G)}:function(M,P,V,Y){Y===void 0&&(Y=V),M[Y]=P[V]}),n=No&&No.__setModuleDefault||(Object.create?function(M,P){Object.defineProperty(M,"default",{enumerable:!0,value:P})}:function(M,P){M.default=P}),r=No&&No.__importStar||function(M){if(M&&M.__esModule)return M;var P={};if(M!=null)for(var V in M)V!=="default"&&Object.prototype.hasOwnProperty.call(M,V)&&e(P,M,V);return n(P,M),P},i=No&&No.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=i(Jye());t.htmlDecodeTree=a.default;var s=i(eTe());t.xmlDecodeTree=s.default;var o=r(i6());t.decodeCodePoint=o.default;var c=i6();Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}});var d;(function(M){M[M.NUM=35]="NUM",M[M.SEMI=59]="SEMI",M[M.EQUALS=61]="EQUALS",M[M.ZERO=48]="ZERO",M[M.NINE=57]="NINE",M[M.LOWER_A=97]="LOWER_A",M[M.LOWER_F=102]="LOWER_F",M[M.LOWER_X=120]="LOWER_X",M[M.LOWER_Z=122]="LOWER_Z",M[M.UPPER_A=65]="UPPER_A",M[M.UPPER_F=70]="UPPER_F",M[M.UPPER_Z=90]="UPPER_Z"})(d||(d={}));var f=32,p;(function(M){M[M.VALUE_LENGTH=49152]="VALUE_LENGTH",M[M.BRANCH_LENGTH=16256]="BRANCH_LENGTH",M[M.JUMP_TABLE=127]="JUMP_TABLE"})(p=t.BinTrieFlags||(t.BinTrieFlags={}));function m(M){return M>=d.ZERO&&M<=d.NINE}function g(M){return M>=d.UPPER_A&&M<=d.UPPER_F||M>=d.LOWER_A&&M<=d.LOWER_F}function b(M){return M>=d.UPPER_A&&M<=d.UPPER_Z||M>=d.LOWER_A&&M<=d.LOWER_Z||m(M)}function S(M){return M===d.EQUALS||b(M)}var y;(function(M){M[M.EntityStart=0]="EntityStart",M[M.NumericStart=1]="NumericStart",M[M.NumericDecimal=2]="NumericDecimal",M[M.NumericHex=3]="NumericHex",M[M.NamedEntity=4]="NamedEntity"})(y||(y={}));var E;(function(M){M[M.Legacy=0]="Legacy",M[M.Strict=1]="Strict",M[M.Attribute=2]="Attribute"})(E=t.DecodingMode||(t.DecodingMode={}));var x=function(){function M(P,V,Y){this.decodeTree=P,this.emitCodePoint=V,this.errors=Y,this.state=y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=E.Strict}return M.prototype.startEntity=function(P){this.decodeMode=P,this.state=y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},M.prototype.write=function(P,V){switch(this.state){case y.EntityStart:return P.charCodeAt(V)===d.NUM?(this.state=y.NumericStart,this.consumed+=1,this.stateNumericStart(P,V+1)):(this.state=y.NamedEntity,this.stateNamedEntity(P,V));case y.NumericStart:return this.stateNumericStart(P,V);case y.NumericDecimal:return this.stateNumericDecimal(P,V);case y.NumericHex:return this.stateNumericHex(P,V);case y.NamedEntity:return this.stateNamedEntity(P,V)}},M.prototype.stateNumericStart=function(P,V){return V>=P.length?-1:(P.charCodeAt(V)|f)===d.LOWER_X?(this.state=y.NumericHex,this.consumed+=1,this.stateNumericHex(P,V+1)):(this.state=y.NumericDecimal,this.stateNumericDecimal(P,V))},M.prototype.addToNumericResult=function(P,V,Y,G){if(V!==Y){var F=Y-V;this.result=this.result*Math.pow(G,F)+parseInt(P.substr(V,F),G),this.consumed+=F}},M.prototype.stateNumericHex=function(P,V){for(var Y=V;V<P.length;){var G=P.charCodeAt(V);if(m(G)||g(G))V+=1;else return this.addToNumericResult(P,Y,V,16),this.emitNumericEntity(G,3)}return this.addToNumericResult(P,Y,V,16),-1},M.prototype.stateNumericDecimal=function(P,V){for(var Y=V;V<P.length;){var G=P.charCodeAt(V);if(m(G))V+=1;else return this.addToNumericResult(P,Y,V,10),this.emitNumericEntity(G,2)}return this.addToNumericResult(P,Y,V,10),-1},M.prototype.emitNumericEntity=function(P,V){var Y;if(this.consumed<=V)return(Y=this.errors)===null||Y===void 0||Y.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(P===d.SEMI)this.consumed+=1;else if(this.decodeMode===E.Strict)return 0;return this.emitCodePoint((0,o.replaceCodePoint)(this.result),this.consumed),this.errors&&(P!==d.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},M.prototype.stateNamedEntity=function(P,V){for(var Y=this.decodeTree,G=Y[this.treeIndex],F=(G&p.VALUE_LENGTH)>>14;V<P.length;V++,this.excess++){var q=P.charCodeAt(V);if(this.treeIndex=R(Y,G,this.treeIndex+Math.max(1,F),q),this.treeIndex<0)return this.result===0||this.decodeMode===E.Attribute&&(F===0||S(q))?0:this.emitNotTerminatedNamedEntity();if(G=Y[this.treeIndex],F=(G&p.VALUE_LENGTH)>>14,F!==0){if(q===d.SEMI)return this.emitNamedEntityData(this.treeIndex,F,this.consumed+this.excess);this.decodeMode!==E.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},M.prototype.emitNotTerminatedNamedEntity=function(){var P,V=this,Y=V.result,G=V.decodeTree,F=(G[Y]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Y,F,this.consumed),(P=this.errors)===null||P===void 0||P.missingSemicolonAfterCharacterReference(),this.consumed},M.prototype.emitNamedEntityData=function(P,V,Y){var G=this.decodeTree;return this.emitCodePoint(V===1?G[P]&~p.VALUE_LENGTH:G[P+1],Y),V===3&&this.emitCodePoint(G[P+2],Y),Y},M.prototype.end=function(){var P;switch(this.state){case y.NamedEntity:return this.result!==0&&(this.decodeMode!==E.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case y.NumericDecimal:return this.emitNumericEntity(0,2);case y.NumericHex:return this.emitNumericEntity(0,3);case y.NumericStart:return(P=this.errors)===null||P===void 0||P.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case y.EntityStart:return 0}},M}();t.EntityDecoder=x;function C(M){var P="",V=new x(M,function(Y){return P+=(0,o.fromCodePoint)(Y)});return function(G,F){for(var q=0,z=0;(z=G.indexOf("&",z))>=0;){P+=G.slice(q,z),V.startEntity(F);var H=V.write(G,z+1);if(H<0){q=z+V.end();break}q=z+H,z=H===0?q+1:q}var U=P+G.slice(q);return P="",U}}function R(M,P,V,Y){var G=(P&p.BRANCH_LENGTH)>>7,F=P&p.JUMP_TABLE;if(G===0)return F!==0&&Y===F?V:-1;if(F){var q=Y-F;return q<0||q>=G?-1:M[V+q]-1}for(var z=V,H=z+G-1;z<=H;){var U=z+H>>>1,Q=M[U];if(Q<Y)z=U+1;else if(Q>Y)H=U-1;else return M[U+G]}return-1}t.determineBranch=R;var T=C(a.default),N=C(s.default);function w(M,P){return P===void 0&&(P=E.Legacy),T(M,P)}t.decodeHTML=w;function D(M){return T(M,E.Attribute)}t.decodeHTMLAttribute=D;function L(M){return T(M,E.Strict)}t.decodeHTMLStrict=L;function k(M){return N(M,E.Strict)}t.decodeXML=k}(No)),No}var s6;function kQ(){return s6||(s6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=RE(),n;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(r||(r={}));function i(m){return m===n.Space||m===n.NewLine||m===n.Tab||m===n.FormFeed||m===n.CarriageReturn}function a(m){return m===n.Slash||m===n.Gt||i(m)}function s(m){return m>=n.Zero&&m<=n.Nine}function o(m){return m>=n.LowerA&&m<=n.LowerZ||m>=n.UpperA&&m<=n.UpperZ}function c(m){return m>=n.UpperA&&m<=n.UpperF||m>=n.LowerA&&m<=n.LowerF}var d;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(d=t.QuoteType||(t.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},p=function(){function m(g,b){var S=g.xmlMode,y=S===void 0?!1:S,E=g.decodeEntities,x=E===void 0?!0:E;this.cbs=b,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=y,this.decodeEntities=x,this.entityTrie=y?e.xmlDecodeTree:e.htmlDecodeTree}return m.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(g){this.offset+=this.buffer.length,this.buffer=g,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},m.prototype.getIndex=function(){return this.index},m.prototype.getSectionStart=function(){return this.sectionStart},m.prototype.stateText=function(g){g===n.Lt||!this.decodeEntities&&this.fastForwardTo(n.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&g===n.Amp&&(this.state=r.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(g){var b=this.sequenceIndex===this.currentSequence.length,S=b?a(g):(g|32)===this.currentSequence[this.sequenceIndex];if(!S)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(g)},m.prototype.stateInSpecialTag=function(g){if(this.sequenceIndex===this.currentSequence.length){if(g===n.Gt||i(g)){var b=this.index-this.currentSequence.length;if(this.sectionStart<b){var S=this.index;this.index=b,this.cbs.ontext(this.sectionStart,b),this.index=S}this.isSpecial=!1,this.sectionStart=b+2,this.stateInClosingTagName(g);return}this.sequenceIndex=0}(g|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===f.TitleEnd?this.decodeEntities&&g===n.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(g===n.Lt)},m.prototype.stateCDATASequence=function(g){g===f.Cdata[this.sequenceIndex]?++this.sequenceIndex===f.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=f.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(g))},m.prototype.fastForwardTo=function(g){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===g)return!0;return this.index=this.buffer.length+this.offset-1,!1},m.prototype.stateInCommentLike=function(g){g===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):g!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},m.prototype.isTagStartChar=function(g){return this.xmlMode?!a(g):o(g)},m.prototype.startSpecial=function(g,b){this.isSpecial=!0,this.currentSequence=g,this.sequenceIndex=b,this.state=r.SpecialStartSequence},m.prototype.stateBeforeTagName=function(g){if(g===n.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(g===n.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(g)){var b=g|32;this.sectionStart=this.index,!this.xmlMode&&b===f.TitleEnd[2]?this.startSpecial(f.TitleEnd,3):this.state=!this.xmlMode&&b===f.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else g===n.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(g))},m.prototype.stateInTagName=function(g){a(g)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g))},m.prototype.stateBeforeClosingTagName=function(g){i(g)||(g===n.Gt?this.state=r.Text:(this.state=this.isTagStartChar(g)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},m.prototype.stateInClosingTagName=function(g){(g===n.Gt||i(g))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(g))},m.prototype.stateAfterClosingTagName=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeAttributeName=function(g){g===n.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):g===n.Slash?this.state=r.InSelfClosingTag:i(g)||(this.state=r.InAttributeName,this.sectionStart=this.index)},m.prototype.stateInSelfClosingTag=function(g){g===n.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):i(g)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g))},m.prototype.stateInAttributeName=function(g){(g===n.Eq||a(g))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(g))},m.prototype.stateAfterAttributeName=function(g){g===n.Eq?this.state=r.BeforeAttributeValue:g===n.Slash||g===n.Gt?(this.cbs.onattribend(d.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g)):i(g)||(this.cbs.onattribend(d.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},m.prototype.stateBeforeAttributeValue=function(g){g===n.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):g===n.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):i(g)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(g))},m.prototype.handleInAttributeValue=function(g,b){g===b||!this.decodeEntities&&this.fastForwardTo(b)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(b===n.DoubleQuote?d.Double:d.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&g===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},m.prototype.stateInAttributeValueDoubleQuotes=function(g){this.handleInAttributeValue(g,n.DoubleQuote)},m.prototype.stateInAttributeValueSingleQuotes=function(g){this.handleInAttributeValue(g,n.SingleQuote)},m.prototype.stateInAttributeValueNoQuotes=function(g){i(g)||g===n.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(d.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(g)):this.decodeEntities&&g===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},m.prototype.stateBeforeDeclaration=function(g){g===n.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=g===n.Dash?r.BeforeComment:r.InDeclaration},m.prototype.stateInDeclaration=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},m.prototype.stateInProcessingInstruction=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeComment=function(g){g===n.Dash?(this.state=r.InCommentLike,this.currentSequence=f.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},m.prototype.stateInSpecialComment=function(g){(g===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeSpecialS=function(g){var b=g|32;b===f.ScriptEnd[3]?this.startSpecial(f.ScriptEnd,4):b===f.StyleEnd[3]?this.startSpecial(f.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(g))},m.prototype.stateBeforeEntity=function(g){this.entityExcess=1,this.entityResult=0,g===n.Number?this.state=r.BeforeNumericEntity:g===n.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(g))},m.prototype.stateInNamedEntity=function(g){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,g),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var b=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(b){var S=(b>>14)-1;if(!this.allowLegacyEntity()&&g!==n.Semi)this.trieIndex+=S;else{var y=this.index-this.entityExcess+1;y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.entityResult=this.trieIndex,this.trieIndex+=S,this.entityExcess=0,this.sectionStart=this.index+1,S===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var g=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(g){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(g){(g|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(g))},m.prototype.emitNumericEntity=function(g){var b=this.index-this.entityExcess-1,S=b+2+ +(this.state===r.InHexEntity);S!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(g),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(g){g===n.Semi?this.emitNumericEntity(!0):s(g)?(this.entityResult=this.entityResult*10+(g-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(g){g===n.Semi?this.emitNumericEntity(!0):s(g)?(this.entityResult=this.entityResult*16+(g-n.Zero),this.entityExcess++):c(g)?(this.entityResult=this.entityResult*16+((g|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},m.prototype.parse=function(){for(;this.shouldContinue();){var g=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(g);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(g);break}case r.InSpecialTag:{this.stateInSpecialTag(g);break}case r.CDATASequence:{this.stateCDATASequence(g);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(g);break}case r.InAttributeName:{this.stateInAttributeName(g);break}case r.InCommentLike:{this.stateInCommentLike(g);break}case r.InSpecialComment:{this.stateInSpecialComment(g);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(g);break}case r.InTagName:{this.stateInTagName(g);break}case r.InClosingTagName:{this.stateInClosingTagName(g);break}case r.BeforeTagName:{this.stateBeforeTagName(g);break}case r.AfterAttributeName:{this.stateAfterAttributeName(g);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(g);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(g);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(g);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(g);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(g);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(g);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(g);break}case r.InDeclaration:{this.stateInDeclaration(g);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(g);break}case r.BeforeComment:{this.stateBeforeComment(g);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(g);break}case r.InNamedEntity:{this.stateInNamedEntity(g);break}case r.BeforeEntity:{this.stateBeforeEntity(g);break}case r.InHexEntity:{this.stateInHexEntity(g);break}case r.InNumericEntity:{this.stateInNumericEntity(g);break}default:this.stateBeforeNumericEntity(g)}this.index++}this.cleanup()},m.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},m.prototype.handleTrailingData=function(){var g=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,g,0):this.cbs.oncomment(this.sectionStart,g,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,g)},m.prototype.emitPartial=function(g,b){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(g,b):this.cbs.ontext(g,b)},m.prototype.emitCodePoint=function(g){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(g):this.cbs.ontextentity(g)},m}();t.default=p}(NO)),NO}var o6;function l6(){if(o6)return Ro;o6=1;var t=Ro&&Ro.__createBinding||(Object.create?function(y,E,x,C){C===void 0&&(C=x);var R=Object.getOwnPropertyDescriptor(E,x);(!R||("get"in R?!E.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return E[x]}}),Object.defineProperty(y,C,R)}:function(y,E,x,C){C===void 0&&(C=x),y[C]=E[x]}),e=Ro&&Ro.__setModuleDefault||(Object.create?function(y,E){Object.defineProperty(y,"default",{enumerable:!0,value:E})}:function(y,E){y.default=E}),n=Ro&&Ro.__importStar||function(y){if(y&&y.__esModule)return y;var E={};if(y!=null)for(var x in y)x!=="default"&&Object.prototype.hasOwnProperty.call(y,x)&&t(E,y,x);return e(E,y),E};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.Parser=void 0;var r=n(kQ()),i=RE(),a=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),o=new Set(["thead","tbody"]),c=new Set(["dd","dt"]),d=new Set(["rt","rp"]),f=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",s],["h1",s],["h2",s],["h3",s],["h4",s],["h5",s],["h6",s],["select",a],["input",a],["output",a],["button",a],["datalist",a],["textarea",a],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",c],["dt",c],["address",s],["article",s],["aside",s],["blockquote",s],["details",s],["div",s],["dl",s],["fieldset",s],["figcaption",s],["figure",s],["footer",s],["form",s],["header",s],["hr",s],["main",s],["nav",s],["ol",s],["pre",s],["section",s],["table",s],["ul",s],["rt",d],["rp",d],["tbody",o],["tfoot",o]]),p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,S=function(){function y(E,x){x===void 0&&(x={});var C,R,T,N,w;this.options=x,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=E??{},this.lowerCaseTagNames=(C=x.lowerCaseTags)!==null&&C!==void 0?C:!x.xmlMode,this.lowerCaseAttributeNames=(R=x.lowerCaseAttributeNames)!==null&&R!==void 0?R:!x.xmlMode,this.tokenizer=new((T=x.Tokenizer)!==null&&T!==void 0?T:r.default)(this.options,this),(w=(N=this.cbs).onparserinit)===null||w===void 0||w.call(N,this)}return y.prototype.ontext=function(E,x){var C,R,T=this.getSlice(E,x);this.endIndex=x-1,(R=(C=this.cbs).ontext)===null||R===void 0||R.call(C,T),this.startIndex=x},y.prototype.ontextentity=function(E){var x,C,R=this.tokenizer.getSectionStart();this.endIndex=R-1,(C=(x=this.cbs).ontext)===null||C===void 0||C.call(x,(0,i.fromCodePoint)(E)),this.startIndex=R},y.prototype.isVoidElement=function(E){return!this.options.xmlMode&&p.has(E)},y.prototype.onopentagname=function(E,x){this.endIndex=x;var C=this.getSlice(E,x);this.lowerCaseTagNames&&(C=C.toLowerCase()),this.emitOpenTag(C)},y.prototype.emitOpenTag=function(E){var x,C,R,T;this.openTagStart=this.startIndex,this.tagname=E;var N=!this.options.xmlMode&&f.get(E);if(N)for(;this.stack.length>0&&N.has(this.stack[this.stack.length-1]);){var w=this.stack.pop();(C=(x=this.cbs).onclosetag)===null||C===void 0||C.call(x,w,!0)}this.isVoidElement(E)||(this.stack.push(E),m.has(E)?this.foreignContext.push(!0):g.has(E)&&this.foreignContext.push(!1)),(T=(R=this.cbs).onopentagname)===null||T===void 0||T.call(R,E),this.cbs.onopentag&&(this.attribs={})},y.prototype.endOpenTag=function(E){var x,C;this.startIndex=this.openTagStart,this.attribs&&((C=(x=this.cbs).onopentag)===null||C===void 0||C.call(x,this.tagname,this.attribs,E),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},y.prototype.onopentagend=function(E){this.endIndex=E,this.endOpenTag(!1),this.startIndex=E+1},y.prototype.onclosetag=function(E,x){var C,R,T,N,w,D;this.endIndex=x;var L=this.getSlice(E,x);if(this.lowerCaseTagNames&&(L=L.toLowerCase()),(m.has(L)||g.has(L))&&this.foreignContext.pop(),this.isVoidElement(L))!this.options.xmlMode&&L==="br"&&((R=(C=this.cbs).onopentagname)===null||R===void 0||R.call(C,"br"),(N=(T=this.cbs).onopentag)===null||N===void 0||N.call(T,"br",{},!0),(D=(w=this.cbs).onclosetag)===null||D===void 0||D.call(w,"br",!1));else{var k=this.stack.lastIndexOf(L);if(k!==-1)if(this.cbs.onclosetag)for(var M=this.stack.length-k;M--;)this.cbs.onclosetag(this.stack.pop(),M!==0);else this.stack.length=k;else!this.options.xmlMode&&L==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=x+1},y.prototype.onselfclosingtag=function(E){this.endIndex=E,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=E+1):this.onopentagend(E)},y.prototype.closeCurrentTag=function(E){var x,C,R=this.tagname;this.endOpenTag(E),this.stack[this.stack.length-1]===R&&((C=(x=this.cbs).onclosetag)===null||C===void 0||C.call(x,R,!E),this.stack.pop())},y.prototype.onattribname=function(E,x){this.startIndex=E;var C=this.getSlice(E,x);this.attribname=this.lowerCaseAttributeNames?C.toLowerCase():C},y.prototype.onattribdata=function(E,x){this.attribvalue+=this.getSlice(E,x)},y.prototype.onattribentity=function(E){this.attribvalue+=(0,i.fromCodePoint)(E)},y.prototype.onattribend=function(E,x){var C,R;this.endIndex=x,(R=(C=this.cbs).onattribute)===null||R===void 0||R.call(C,this.attribname,this.attribvalue,E===r.QuoteType.Double?'"':E===r.QuoteType.Single?"'":E===r.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},y.prototype.getInstructionName=function(E){var x=E.search(b),C=x<0?E:E.substr(0,x);return this.lowerCaseTagNames&&(C=C.toLowerCase()),C},y.prototype.ondeclaration=function(E,x){this.endIndex=x;var C=this.getSlice(E,x);if(this.cbs.onprocessinginstruction){var R=this.getInstructionName(C);this.cbs.onprocessinginstruction("!".concat(R),"!".concat(C))}this.startIndex=x+1},y.prototype.onprocessinginstruction=function(E,x){this.endIndex=x;var C=this.getSlice(E,x);if(this.cbs.onprocessinginstruction){var R=this.getInstructionName(C);this.cbs.onprocessinginstruction("?".concat(R),"?".concat(C))}this.startIndex=x+1},y.prototype.oncomment=function(E,x,C){var R,T,N,w;this.endIndex=x,(T=(R=this.cbs).oncomment)===null||T===void 0||T.call(R,this.getSlice(E,x-C)),(w=(N=this.cbs).oncommentend)===null||w===void 0||w.call(N),this.startIndex=x+1},y.prototype.oncdata=function(E,x,C){var R,T,N,w,D,L,k,M,P,V;this.endIndex=x;var Y=this.getSlice(E,x-C);this.options.xmlMode||this.options.recognizeCDATA?((T=(R=this.cbs).oncdatastart)===null||T===void 0||T.call(R),(w=(N=this.cbs).ontext)===null||w===void 0||w.call(N,Y),(L=(D=this.cbs).oncdataend)===null||L===void 0||L.call(D)):((M=(k=this.cbs).oncomment)===null||M===void 0||M.call(k,"[CDATA[".concat(Y,"]]")),(V=(P=this.cbs).oncommentend)===null||V===void 0||V.call(P)),this.startIndex=x+1},y.prototype.onend=function(){var E,x;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var C=this.stack.length;C>0;this.cbs.onclosetag(this.stack[--C],!0));}(x=(E=this.cbs).onend)===null||x===void 0||x.call(E)},y.prototype.reset=function(){var E,x,C,R;(x=(E=this.cbs).onreset)===null||x===void 0||x.call(E),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(R=(C=this.cbs).onparserinit)===null||R===void 0||R.call(C,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},y.prototype.parseComplete=function(E){this.reset(),this.end(E)},y.prototype.getSlice=function(E,x){for(;E-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var C=this.buffers[0].slice(E-this.bufferOffset,x-this.bufferOffset);x-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),C+=this.buffers[0].slice(0,x-this.bufferOffset);return C},y.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},y.prototype.write=function(E){var x,C;if(this.ended){(C=(x=this.cbs).onerror)===null||C===void 0||C.call(x,new Error(".write() after done!"));return}this.buffers.push(E),this.tokenizer.running&&(this.tokenizer.write(E),this.writeIndex++)},y.prototype.end=function(E){var x,C;if(this.ended){(C=(x=this.cbs).onerror)===null||C===void 0||C.call(x,new Error(".end() after done!"));return}E&&this.write(E),this.ended=!0,this.tokenizer.end()},y.prototype.pause=function(){this.tokenizer.pause()},y.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},y.prototype.parseChunk=function(E){this.write(E)},y.prototype.done=function(E){this.end(E)},y}();return Ro.Parser=S,Ro}var tf={},wO={},c6;function F0(){return c6||(c6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype}(wO)),wO}var Ht={},u6;function d6(){if(u6)return Ht;u6=1;var t=Ht&&Ht.__extends||function(){var T=function(N,w){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,L){D.__proto__=L}||function(D,L){for(var k in L)Object.prototype.hasOwnProperty.call(L,k)&&(D[k]=L[k])},T(N,w)};return function(N,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");T(N,w);function D(){this.constructor=N}N.prototype=w===null?Object.create(w):(D.prototype=w.prototype,new D)}}(),e=Ht&&Ht.__assign||function(){return e=Object.assign||function(T){for(var N,w=1,D=arguments.length;w<D;w++){N=arguments[w];for(var L in N)Object.prototype.hasOwnProperty.call(N,L)&&(T[L]=N[L])}return T},e.apply(this,arguments)};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.cloneNode=Ht.hasChildren=Ht.isDocument=Ht.isDirective=Ht.isComment=Ht.isText=Ht.isCDATA=Ht.isTag=Ht.Element=Ht.Document=Ht.CDATA=Ht.NodeWithChildren=Ht.ProcessingInstruction=Ht.Comment=Ht.Text=Ht.DataNode=Ht.Node=void 0;var n=F0(),r=function(){function T(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(T.prototype,"parentNode",{get:function(){return this.parent},set:function(N){this.parent=N},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"previousSibling",{get:function(){return this.prev},set:function(N){this.prev=N},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"nextSibling",{get:function(){return this.next},set:function(N){this.next=N},enumerable:!1,configurable:!0}),T.prototype.cloneNode=function(N){return N===void 0&&(N=!1),C(this,N)},T}();Ht.Node=r;var i=function(T){t(N,T);function N(w){var D=T.call(this)||this;return D.data=w,D}return Object.defineProperty(N.prototype,"nodeValue",{get:function(){return this.data},set:function(w){this.data=w},enumerable:!1,configurable:!0}),N}(r);Ht.DataNode=i;var a=function(T){t(N,T);function N(){var w=T!==null&&T.apply(this,arguments)||this;return w.type=n.ElementType.Text,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),N}(i);Ht.Text=a;var s=function(T){t(N,T);function N(){var w=T!==null&&T.apply(this,arguments)||this;return w.type=n.ElementType.Comment,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),N}(i);Ht.Comment=s;var o=function(T){t(N,T);function N(w,D){var L=T.call(this,D)||this;return L.name=w,L.type=n.ElementType.Directive,L}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),N}(i);Ht.ProcessingInstruction=o;var c=function(T){t(N,T);function N(w){var D=T.call(this)||this;return D.children=w,D}return Object.defineProperty(N.prototype,"firstChild",{get:function(){var w;return(w=this.children[0])!==null&&w!==void 0?w:null},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"childNodes",{get:function(){return this.children},set:function(w){this.children=w},enumerable:!1,configurable:!0}),N}(r);Ht.NodeWithChildren=c;var d=function(T){t(N,T);function N(){var w=T!==null&&T.apply(this,arguments)||this;return w.type=n.ElementType.CDATA,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),N}(c);Ht.CDATA=d;var f=function(T){t(N,T);function N(){var w=T!==null&&T.apply(this,arguments)||this;return w.type=n.ElementType.Root,w}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),N}(c);Ht.Document=f;var p=function(T){t(N,T);function N(w,D,L,k){L===void 0&&(L=[]),k===void 0&&(k=w==="script"?n.ElementType.Script:w==="style"?n.ElementType.Style:n.ElementType.Tag);var M=T.call(this,L)||this;return M.name=w,M.attribs=D,M.type=k,M}return Object.defineProperty(N.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"tagName",{get:function(){return this.name},set:function(w){this.name=w},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"attributes",{get:function(){var w=this;return Object.keys(this.attribs).map(function(D){var L,k;return{name:D,value:w.attribs[D],namespace:(L=w["x-attribsNamespace"])===null||L===void 0?void 0:L[D],prefix:(k=w["x-attribsPrefix"])===null||k===void 0?void 0:k[D]}})},enumerable:!1,configurable:!0}),N}(c);Ht.Element=p;function m(T){return(0,n.isTag)(T)}Ht.isTag=m;function g(T){return T.type===n.ElementType.CDATA}Ht.isCDATA=g;function b(T){return T.type===n.ElementType.Text}Ht.isText=b;function S(T){return T.type===n.ElementType.Comment}Ht.isComment=S;function y(T){return T.type===n.ElementType.Directive}Ht.isDirective=y;function E(T){return T.type===n.ElementType.Root}Ht.isDocument=E;function x(T){return Object.prototype.hasOwnProperty.call(T,"children")}Ht.hasChildren=x;function C(T,N){N===void 0&&(N=!1);var w;if(b(T))w=new a(T.data);else if(S(T))w=new s(T.data);else if(m(T)){var D=N?R(T.children):[],L=new p(T.name,e({},T.attribs),D);D.forEach(function(V){return V.parent=L}),T.namespace!=null&&(L.namespace=T.namespace),T["x-attribsNamespace"]&&(L["x-attribsNamespace"]=e({},T["x-attribsNamespace"])),T["x-attribsPrefix"]&&(L["x-attribsPrefix"]=e({},T["x-attribsPrefix"])),w=L}else if(g(T)){var D=N?R(T.children):[],k=new d(D);D.forEach(function(Y){return Y.parent=k}),w=k}else if(E(T)){var D=N?R(T.children):[],M=new f(D);D.forEach(function(Y){return Y.parent=M}),T["x-mode"]&&(M["x-mode"]=T["x-mode"]),w=M}else if(y(T)){var P=new o(T.name,T.data);T["x-name"]!=null&&(P["x-name"]=T["x-name"],P["x-publicId"]=T["x-publicId"],P["x-systemId"]=T["x-systemId"]),w=P}else throw new Error("Not implemented yet: ".concat(T.type));return w.startIndex=T.startIndex,w.endIndex=T.endIndex,T.sourceCodeLocation!=null&&(w.sourceCodeLocation=T.sourceCodeLocation),w}Ht.cloneNode=C;function R(T){for(var N=T.map(function(D){return C(D,!0)}),w=1;w<N.length;w++)N[w].prev=N[w-1],N[w-1].next=N[w];return N}return Ht}var f6;function gd(){return f6||(f6=1,function(t){var e=tf&&tf.__createBinding||(Object.create?function(o,c,d,f){f===void 0&&(f=d);var p=Object.getOwnPropertyDescriptor(c,d);(!p||("get"in p?!c.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(o,f,p)}:function(o,c,d,f){f===void 0&&(f=d),o[f]=c[d]}),n=tf&&tf.__exportStar||function(o,c){for(var d in o)d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d)&&e(c,o,d)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=F0(),i=d6();n(d6(),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function o(c,d,f){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof d=="function"&&(f=d,d=a),typeof c=="object"&&(d=c,c=void 0),this.callback=c??null,this.options=d??a,this.elementCB=f??null}return o.prototype.onparserinit=function(c){this.parser=c},o.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(c){this.handleCallback(c)},o.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},o.prototype.onopentag=function(c,d){var f=this.options.xmlMode?r.ElementType.Tag:void 0,p=new i.Element(c,d,void 0,f);this.addNode(p),this.tagStack.push(p)},o.prototype.ontext=function(c){var d=this.lastNode;if(d&&d.type===r.ElementType.Text)d.data+=c,this.options.withEndIndices&&(d.endIndex=this.parser.endIndex);else{var f=new i.Text(c);this.addNode(f),this.lastNode=f}},o.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var d=new i.Comment(c);this.addNode(d),this.lastNode=d},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var c=new i.Text(""),d=new i.CDATA([c]);this.addNode(d),c.parent=d,this.lastNode=c},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(c,d){var f=new i.ProcessingInstruction(c,d);this.addNode(f)},o.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},o.prototype.addNode=function(c){var d=this.tagStack[this.tagStack.length-1],f=d.children[d.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),d.children.push(c),f&&(c.prev=f,f.next=c),c.parent=d,this.lastNode=null},o}();t.DomHandler=s,t.default=s}(tf)),tf}var nf={},Da={},Za={},DO={},yc={},wv={},h6;function tTe(){if(h6)return wv;h6=1,Object.defineProperty(wv,"__esModule",{value:!0});function t(e){for(var n=1;n<e.length;n++)e[n][0]+=e[n-1][0]+1;return e}return wv.default=new Map(t([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(t([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(t([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(t([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]])),wv}var IO={},p6;function rI(){return p6||(p6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(i,a){return i.codePointAt(a)}:function(i,a){return(i.charCodeAt(a)&64512)===55296?(i.charCodeAt(a)-55296)*1024+i.charCodeAt(a+1)-56320+65536:i.charCodeAt(a)};function n(i){for(var a="",s=0,o;(o=t.xmlReplacer.exec(i))!==null;){var c=o.index,d=i.charCodeAt(c),f=e.get(d);f!==void 0?(a+=i.substring(s,c)+f,s=c+1):(a+="".concat(i.substring(s,c),"&#x").concat((0,t.getCodePoint)(i,c).toString(16),";"),s=t.xmlReplacer.lastIndex+=+((d&64512)===55296))}return a+i.substr(s)}t.encodeXML=n,t.escape=n;function r(i,a){return function(o){for(var c,d=0,f="";c=i.exec(o);)d!==c.index&&(f+=o.substring(d,c.index)),f+=a.get(c[0].charCodeAt(0)),d=c.index+1;return f+o.substring(d)}}t.escapeUTF8=r(/[&<>'"]/g,e),t.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))}(IO)),IO}var m6;function g6(){if(m6)return yc;m6=1;var t=yc&&yc.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(yc,"__esModule",{value:!0}),yc.encodeNonAsciiHTML=yc.encodeHTML=void 0;var e=t(tTe()),n=rI(),r=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function i(o){return s(r,o)}yc.encodeHTML=i;function a(o){return s(n.xmlReplacer,o)}yc.encodeNonAsciiHTML=a;function s(o,c){for(var d="",f=0,p;(p=o.exec(c))!==null;){var m=p.index;d+=c.substring(f,m);var g=c.charCodeAt(m),b=e.default.get(g);if(typeof b=="object"){if(m+1<c.length){var S=c.charCodeAt(m+1),y=typeof b.n=="number"?b.n===S?b.o:void 0:b.n.get(S);if(y!==void 0){d+=y,f=o.lastIndex+=1;continue}}b=b.v}if(b!==void 0)d+=b,f=m+1;else{var E=(0,n.getCodePoint)(c,m);d+="&#x".concat(E.toString(16),";"),f=o.lastIndex+=+(E!==g)}}return d+c.substr(f)}return yc}var _6;function nTe(){return _6||(_6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=RE(),n=g6(),r=rI(),i;(function(m){m[m.XML=0]="XML",m[m.HTML=1]="HTML"})(i=t.EntityLevel||(t.EntityLevel={}));var a;(function(m){m[m.UTF8=0]="UTF8",m[m.ASCII=1]="ASCII",m[m.Extensive=2]="Extensive",m[m.Attribute=3]="Attribute",m[m.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function s(m,g){g===void 0&&(g=i.XML);var b=typeof g=="number"?g:g.level;if(b===i.HTML){var S=typeof g=="object"?g.mode:void 0;return(0,e.decodeHTML)(m,S)}return(0,e.decodeXML)(m)}t.decode=s;function o(m,g){var b;g===void 0&&(g=i.XML);var S=typeof g=="number"?{level:g}:g;return(b=S.mode)!==null&&b!==void 0||(S.mode=e.DecodingMode.Strict),s(m,S)}t.decodeStrict=o;function c(m,g){g===void 0&&(g=i.XML);var b=typeof g=="number"?{level:g}:g;return b.mode===a.UTF8?(0,r.escapeUTF8)(m):b.mode===a.Attribute?(0,r.escapeAttribute)(m):b.mode===a.Text?(0,r.escapeText)(m):b.level===i.HTML?b.mode===a.ASCII?(0,n.encodeNonAsciiHTML)(m):(0,n.encodeHTML)(m):(0,r.encodeXML)(m)}t.encode=c;var d=rI();Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return d.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return d.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return d.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return d.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return d.escapeText}});var f=g6();Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var p=RE();Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return p.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return p.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return p.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return p.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return p.decodeXML}})}(DO)),DO}var rf={},b6;function rTe(){return b6||(b6=1,Object.defineProperty(rf,"__esModule",{value:!0}),rf.attributeNames=rf.elementNames=void 0,rf.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]})),rf.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}))),rf}var v6;function iTe(){if(v6)return Za;v6=1;var t=Za&&Za.__assign||function(){return t=Object.assign||function(R){for(var T,N=1,w=arguments.length;N<w;N++){T=arguments[N];for(var D in T)Object.prototype.hasOwnProperty.call(T,D)&&(R[D]=T[D])}return R},t.apply(this,arguments)},e=Za&&Za.__createBinding||(Object.create?function(R,T,N,w){w===void 0&&(w=N);var D=Object.getOwnPropertyDescriptor(T,N);(!D||("get"in D?!T.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return T[N]}}),Object.defineProperty(R,w,D)}:function(R,T,N,w){w===void 0&&(w=N),R[w]=T[N]}),n=Za&&Za.__setModuleDefault||(Object.create?function(R,T){Object.defineProperty(R,"default",{enumerable:!0,value:T})}:function(R,T){R.default=T}),r=Za&&Za.__importStar||function(R){if(R&&R.__esModule)return R;var T={};if(R!=null)for(var N in R)N!=="default"&&Object.prototype.hasOwnProperty.call(R,N)&&e(T,R,N);return n(T,R),T};Object.defineProperty(Za,"__esModule",{value:!0}),Za.render=void 0;var i=r(F0()),a=nTe(),s=rTe(),o=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function c(R){return R.replace(/"/g,"&quot;")}function d(R,T){var N;if(R){var w=((N=T.encodeEntities)!==null&&N!==void 0?N:T.decodeEntities)===!1?c:T.xmlMode||T.encodeEntities!=="utf8"?a.encodeXML:a.escapeAttribute;return Object.keys(R).map(function(D){var L,k,M=(L=R[D])!==null&&L!==void 0?L:"";return T.xmlMode==="foreign"&&(D=(k=s.attributeNames.get(D))!==null&&k!==void 0?k:D),!T.emptyAttrs&&!T.xmlMode&&M===""?D:"".concat(D,'="').concat(w(M),'"')}).join(" ")}}var f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function p(R,T){T===void 0&&(T={});for(var N=("length"in R)?R:[R],w="",D=0;D<N.length;D++)w+=m(N[D],T);return w}Za.render=p,Za.default=p;function m(R,T){switch(R.type){case i.Root:return p(R.children,T);case i.Doctype:case i.Directive:return y(R);case i.Comment:return C(R);case i.CDATA:return x(R);case i.Script:case i.Style:case i.Tag:return S(R,T);case i.Text:return E(R,T)}}var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),b=new Set(["svg","math"]);function S(R,T){var N;T.xmlMode==="foreign"&&(R.name=(N=s.elementNames.get(R.name))!==null&&N!==void 0?N:R.name,R.parent&&g.has(R.parent.name)&&(T=t(t({},T),{xmlMode:!1}))),!T.xmlMode&&b.has(R.name)&&(T=t(t({},T),{xmlMode:"foreign"}));var w="<".concat(R.name),D=d(R.attribs,T);return D&&(w+=" ".concat(D)),R.children.length===0&&(T.xmlMode?T.selfClosingTags!==!1:T.selfClosingTags&&f.has(R.name))?(T.xmlMode||(w+=" "),w+="/>"):(w+=">",R.children.length>0&&(w+=p(R.children,T)),(T.xmlMode||!f.has(R.name))&&(w+="</".concat(R.name,">"))),w}function y(R){return"<".concat(R.data,">")}function E(R,T){var N,w=R.data||"";return((N=T.encodeEntities)!==null&&N!==void 0?N:T.decodeEntities)!==!1&&!(!T.xmlMode&&R.parent&&o.has(R.parent.name))&&(w=T.xmlMode||T.encodeEntities!=="utf8"?(0,a.encodeXML)(w):(0,a.escapeText)(w)),w}function x(R){return"<![CDATA[".concat(R.children[0].data,"]]>")}function C(R){return"<!--".concat(R.data,"-->")}return Za}var S6;function PQ(){if(S6)return Da;S6=1;var t=Da&&Da.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(Da,"__esModule",{value:!0}),Da.innerText=Da.textContent=Da.getText=Da.getInnerHTML=Da.getOuterHTML=void 0;var e=gd(),n=t(iTe()),r=F0();function i(d,f){return(0,n.default)(d,f)}Da.getOuterHTML=i;function a(d,f){return(0,e.hasChildren)(d)?d.children.map(function(p){return i(p,f)}).join(""):""}Da.getInnerHTML=a;function s(d){return Array.isArray(d)?d.map(s).join(""):(0,e.isTag)(d)?d.name==="br"?`
`:s(d.children):(0,e.isCDATA)(d)?s(d.children):(0,e.isText)(d)?d.data:""}Da.getText=s;function o(d){return Array.isArray(d)?d.map(o).join(""):(0,e.hasChildren)(d)&&!(0,e.isComment)(d)?o(d.children):(0,e.isText)(d)?d.data:""}Da.textContent=o;function c(d){return Array.isArray(d)?d.map(c).join(""):(0,e.hasChildren)(d)&&(d.type===r.ElementType.Tag||(0,e.isCDATA)(d))?c(d.children):(0,e.isText)(d)?d.data:""}return Da.innerText=c,Da}var pi={},E6;function aTe(){if(E6)return pi;E6=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.prevElementSibling=pi.nextElementSibling=pi.getName=pi.hasAttrib=pi.getAttributeValue=pi.getSiblings=pi.getParent=pi.getChildren=void 0;var t=gd();function e(d){return(0,t.hasChildren)(d)?d.children:[]}pi.getChildren=e;function n(d){return d.parent||null}pi.getParent=n;function r(d){var f,p,m=n(d);if(m!=null)return e(m);for(var g=[d],b=d.prev,S=d.next;b!=null;)g.unshift(b),f=b,b=f.prev;for(;S!=null;)g.push(S),p=S,S=p.next;return g}pi.getSiblings=r;function i(d,f){var p;return(p=d.attribs)===null||p===void 0?void 0:p[f]}pi.getAttributeValue=i;function a(d,f){return d.attribs!=null&&Object.prototype.hasOwnProperty.call(d.attribs,f)&&d.attribs[f]!=null}pi.hasAttrib=a;function s(d){return d.name}pi.getName=s;function o(d){for(var f,p=d.next;p!==null&&!(0,t.isTag)(p);)f=p,p=f.next;return p}pi.nextElementSibling=o;function c(d){for(var f,p=d.prev;p!==null&&!(0,t.isTag)(p);)f=p,p=f.prev;return p}return pi.prevElementSibling=c,pi}var Ia={},y6;function sTe(){if(y6)return Ia;y6=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.prepend=Ia.prependChild=Ia.append=Ia.appendChild=Ia.replaceElement=Ia.removeElement=void 0;function t(s){if(s.prev&&(s.prev.next=s.next),s.next&&(s.next.prev=s.prev),s.parent){var o=s.parent.children,c=o.lastIndexOf(s);c>=0&&o.splice(c,1)}s.next=null,s.prev=null,s.parent=null}Ia.removeElement=t;function e(s,o){var c=o.prev=s.prev;c&&(c.next=o);var d=o.next=s.next;d&&(d.prev=o);var f=o.parent=s.parent;if(f){var p=f.children;p[p.lastIndexOf(s)]=o,s.parent=null}}Ia.replaceElement=e;function n(s,o){if(t(o),o.next=null,o.parent=s,s.children.push(o)>1){var c=s.children[s.children.length-2];c.next=o,o.prev=c}else o.prev=null}Ia.appendChild=n;function r(s,o){t(o);var c=s.parent,d=s.next;if(o.next=d,o.prev=s,s.next=o,o.parent=c,d){if(d.prev=o,c){var f=c.children;f.splice(f.lastIndexOf(d),0,o)}}else c&&c.children.push(o)}Ia.append=r;function i(s,o){if(t(o),o.parent=s,o.prev=null,s.children.unshift(o)!==1){var c=s.children[1];c.prev=o,o.next=c}else o.next=null}Ia.prependChild=i;function a(s,o){t(o);var c=s.parent;if(c){var d=c.children;d.splice(d.indexOf(s),0,o)}s.prev&&(s.prev.next=o),o.parent=c,o.prev=s.prev,o.next=s,s.prev=o}return Ia.prepend=a,Ia}var Ma={},T6;function BQ(){if(T6)return Ma;T6=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.findAll=Ma.existsOne=Ma.findOne=Ma.findOneChild=Ma.find=Ma.filter=void 0;var t=gd();function e(o,c,d,f){return d===void 0&&(d=!0),f===void 0&&(f=1/0),n(o,Array.isArray(c)?c:[c],d,f)}Ma.filter=e;function n(o,c,d,f){for(var p=[],m=[c],g=[0];;){if(g[0]>=m[0].length){if(g.length===1)return p;m.shift(),g.shift();continue}var b=m[0][g[0]++];if(o(b)&&(p.push(b),--f<=0))return p;d&&(0,t.hasChildren)(b)&&b.children.length>0&&(g.unshift(0),m.unshift(b.children))}}Ma.find=n;function r(o,c){return c.find(o)}Ma.findOneChild=r;function i(o,c,d){d===void 0&&(d=!0);for(var f=null,p=0;p<c.length&&!f;p++){var m=c[p];if((0,t.isTag)(m))o(m)?f=m:d&&m.children.length>0&&(f=i(o,m.children,!0));else continue}return f}Ma.findOne=i;function a(o,c){return c.some(function(d){return(0,t.isTag)(d)&&(o(d)||a(o,d.children))})}Ma.existsOne=a;function s(o,c){for(var d=[],f=[c],p=[0];;){if(p[0]>=f[0].length){if(f.length===1)return d;f.shift(),p.shift();continue}var m=f[0][p[0]++];(0,t.isTag)(m)&&(o(m)&&d.push(m),m.children.length>0&&(p.unshift(0),f.unshift(m.children)))}}return Ma.findAll=s,Ma}var vs={},x6;function FQ(){if(x6)return vs;x6=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.getElementsByTagType=vs.getElementsByTagName=vs.getElementById=vs.getElements=vs.testElement=void 0;var t=gd(),e=BQ(),n={tag_name:function(p){return typeof p=="function"?function(m){return(0,t.isTag)(m)&&p(m.name)}:p==="*"?t.isTag:function(m){return(0,t.isTag)(m)&&m.name===p}},tag_type:function(p){return typeof p=="function"?function(m){return p(m.type)}:function(m){return m.type===p}},tag_contains:function(p){return typeof p=="function"?function(m){return(0,t.isText)(m)&&p(m.data)}:function(m){return(0,t.isText)(m)&&m.data===p}}};function r(p,m){return typeof m=="function"?function(g){return(0,t.isTag)(g)&&m(g.attribs[p])}:function(g){return(0,t.isTag)(g)&&g.attribs[p]===m}}function i(p,m){return function(g){return p(g)||m(g)}}function a(p){var m=Object.keys(p).map(function(g){var b=p[g];return Object.prototype.hasOwnProperty.call(n,g)?n[g](b):r(g,b)});return m.length===0?null:m.reduce(i)}function s(p,m){var g=a(p);return g?g(m):!0}vs.testElement=s;function o(p,m,g,b){b===void 0&&(b=1/0);var S=a(p);return S?(0,e.filter)(S,m,g,b):[]}vs.getElements=o;function c(p,m,g){return g===void 0&&(g=!0),Array.isArray(m)||(m=[m]),(0,e.findOne)(r("id",p),m,g)}vs.getElementById=c;function d(p,m,g,b){return g===void 0&&(g=!0),b===void 0&&(b=1/0),(0,e.filter)(n.tag_name(p),m,g,b)}vs.getElementsByTagName=d;function f(p,m,g,b){return g===void 0&&(g=!0),b===void 0&&(b=1/0),(0,e.filter)(n.tag_type(p),m,g,b)}return vs.getElementsByTagType=f,vs}var MO={},C6;function oTe(){return C6||(C6=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=gd();function n(s){for(var o=s.length;--o>=0;){var c=s[o];if(o>0&&s.lastIndexOf(c,o-1)>=0){s.splice(o,1);continue}for(var d=c.parent;d;d=d.parent)if(s.includes(d)){s.splice(o,1);break}}return s}t.removeSubsets=n;var r;(function(s){s[s.DISCONNECTED=1]="DISCONNECTED",s[s.PRECEDING=2]="PRECEDING",s[s.FOLLOWING=4]="FOLLOWING",s[s.CONTAINS=8]="CONTAINS",s[s.CONTAINED_BY=16]="CONTAINED_BY"})(r=t.DocumentPosition||(t.DocumentPosition={}));function i(s,o){var c=[],d=[];if(s===o)return 0;for(var f=(0,e.hasChildren)(s)?s:s.parent;f;)c.unshift(f),f=f.parent;for(f=(0,e.hasChildren)(o)?o:o.parent;f;)d.unshift(f),f=f.parent;for(var p=Math.min(c.length,d.length),m=0;m<p&&c[m]===d[m];)m++;if(m===0)return r.DISCONNECTED;var g=c[m-1],b=g.children,S=c[m],y=d[m];return b.indexOf(S)>b.indexOf(y)?g===o?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:g===s?r.PRECEDING|r.CONTAINS:r.PRECEDING}t.compareDocumentPosition=i;function a(s){return s=s.filter(function(o,c,d){return!d.includes(o,c+1)}),s.sort(function(o,c){var d=i(o,c);return d&r.PRECEDING?-1:d&r.FOLLOWING?1:0}),s}t.uniqueSort=a}(MO)),MO}var Fg={},O6;function lTe(){if(O6)return Fg;O6=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.getFeed=void 0;var t=PQ(),e=FQ();function n(m){var g=c(p,m);return g?g.name==="feed"?r(g):i(g):null}Fg.getFeed=n;function r(m){var g,b=m.children,S={type:"atom",items:(0,e.getElementsByTagName)("entry",b).map(function(x){var C,R=x.children,T={media:o(R)};f(T,"id","id",R),f(T,"title","title",R);var N=(C=c("link",R))===null||C===void 0?void 0:C.attribs.href;N&&(T.link=N);var w=d("summary",R)||d("content",R);w&&(T.description=w);var D=d("updated",R);return D&&(T.pubDate=new Date(D)),T})};f(S,"id","id",b),f(S,"title","title",b);var y=(g=c("link",b))===null||g===void 0?void 0:g.attribs.href;y&&(S.link=y),f(S,"description","subtitle",b);var E=d("updated",b);return E&&(S.updated=new Date(E)),f(S,"author","email",b,!0),S}function i(m){var g,b,S=(b=(g=c("channel",m.children))===null||g===void 0?void 0:g.children)!==null&&b!==void 0?b:[],y={type:m.name.substr(0,3),id:"",items:(0,e.getElementsByTagName)("item",m.children).map(function(x){var C=x.children,R={media:o(C)};f(R,"id","guid",C),f(R,"title","title",C),f(R,"link","link",C),f(R,"description","description",C);var T=d("pubDate",C)||d("dc:date",C);return T&&(R.pubDate=new Date(T)),R})};f(y,"title","title",S),f(y,"link","link",S),f(y,"description","description",S);var E=d("lastBuildDate",S);return E&&(y.updated=new Date(E)),f(y,"author","managingEditor",S,!0),y}var a=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function o(m){return(0,e.getElementsByTagName)("media:content",m).map(function(g){for(var b=g.attribs,S={medium:b.medium,isDefault:!!b.isDefault},y=0,E=a;y<E.length;y++){var x=E[y];b[x]&&(S[x]=b[x])}for(var C=0,R=s;C<R.length;C++){var x=R[C];b[x]&&(S[x]=parseInt(b[x],10))}return b.expression&&(S.expression=b.expression),S})}function c(m,g){return(0,e.getElementsByTagName)(m,g,!0,1)[0]}function d(m,g,b){return b===void 0&&(b=!1),(0,t.textContent)((0,e.getElementsByTagName)(m,g,b,1)).trim()}function f(m,g,b,S,y){y===void 0&&(y=!1);var E=d(b,S,y);E&&(m[g]=E)}function p(m){return m==="rss"||m==="feed"||m==="rdf:RDF"}return Fg}var R6;function LO(){return R6||(R6=1,function(t){var e=nf&&nf.__createBinding||(Object.create?function(i,a,s,o){o===void 0&&(o=s);var c=Object.getOwnPropertyDescriptor(a,s);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,o,c)}:function(i,a,s,o){o===void 0&&(o=s),i[o]=a[s]}),n=nf&&nf.__exportStar||function(i,a){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,i,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,n(PQ(),t),n(aTe(),t),n(sTe(),t),n(BQ(),t),n(FQ(),t),n(oTe(),t),n(lTe(),t);var r=gd();Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})}(nf)),nf}var N6;function cTe(){return N6||(N6=1,function(t){var e=Oo&&Oo.__createBinding||(Object.create?function(E,x,C,R){R===void 0&&(R=C);var T=Object.getOwnPropertyDescriptor(x,C);(!T||("get"in T?!x.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return x[C]}}),Object.defineProperty(E,R,T)}:function(E,x,C,R){R===void 0&&(R=C),E[R]=x[C]}),n=Oo&&Oo.__setModuleDefault||(Object.create?function(E,x){Object.defineProperty(E,"default",{enumerable:!0,value:x})}:function(E,x){E.default=x}),r=Oo&&Oo.__importStar||function(E){if(E&&E.__esModule)return E;var x={};if(E!=null)for(var C in E)C!=="default"&&Object.prototype.hasOwnProperty.call(E,C)&&e(x,E,C);return n(x,E),x},i=Oo&&Oo.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var a=l6(),s=l6();Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return s.Parser}});var o=gd(),c=gd();Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}});function d(E,x){var C=new o.DomHandler(void 0,x);return new a.Parser(C,x).end(E),C.root}t.parseDocument=d;function f(E,x){return d(E,x).children}t.parseDOM=f;function p(E,x,C){var R=new o.DomHandler(E,x,C);return new a.Parser(R,x)}t.createDomStream=p;var m=kQ();Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(m).default}}),t.ElementType=r(F0());var g=LO(),b=LO();Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return b.getFeed}});var S={xmlMode:!0};function y(E,x){return x===void 0&&(x=S),(0,g.getFeed)(f(E,x))}t.parseFeed=y,t.DomUtils=r(LO())}(Oo)),Oo}var kO,A6;function uTe(){return A6||(A6=1,kO=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),kO}var Dv={},w6;function dTe(){if(w6)return Dv;w6=1,Object.defineProperty(Dv,"__esModule",{value:!0});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function t(n){return Object.prototype.toString.call(n)==="[object Object]"}function e(n){var r,i;return t(n)===!1?!1:(r=n.constructor,r===void 0?!0:(i=r.prototype,!(t(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}return Dv.isPlainObject=e,Dv}var PO,D6;function fTe(){if(D6)return PO;D6=1;var t=function(x){return e(x)&&!n(x)};function e(E){return!!E&&typeof E=="object"}function n(E){var x=Object.prototype.toString.call(E);return x==="[object RegExp]"||x==="[object Date]"||a(E)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(E){return E.$$typeof===i}function s(E){return Array.isArray(E)?[]:{}}function o(E,x){return x.clone!==!1&&x.isMergeableObject(E)?S(s(E),E,x):E}function c(E,x,C){return E.concat(x).map(function(R){return o(R,C)})}function d(E,x){if(!x.customMerge)return S;var C=x.customMerge(E);return typeof C=="function"?C:S}function f(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(x){return Object.propertyIsEnumerable.call(E,x)}):[]}function p(E){return Object.keys(E).concat(f(E))}function m(E,x){try{return x in E}catch{return!1}}function g(E,x){return m(E,x)&&!(Object.hasOwnProperty.call(E,x)&&Object.propertyIsEnumerable.call(E,x))}function b(E,x,C){var R={};return C.isMergeableObject(E)&&p(E).forEach(function(T){R[T]=o(E[T],C)}),p(x).forEach(function(T){g(E,T)||(m(E,T)&&C.isMergeableObject(x[T])?R[T]=d(T,C)(E[T],x[T],C):R[T]=o(x[T],C))}),R}function S(E,x,C){C=C||{},C.arrayMerge=C.arrayMerge||c,C.isMergeableObject=C.isMergeableObject||t,C.cloneUnlessOtherwiseSpecified=o;var R=Array.isArray(x),T=Array.isArray(E),N=R===T;return N?R?C.arrayMerge(E,x,C):b(E,x,C):o(x,C)}S.all=function(x,C){if(!Array.isArray(x))throw new Error("first argument should be an array");return x.reduce(function(R,T){return S(R,T,C)},{})};var y=S;return PO=y,PO}var vS={exports:{}},hTe=vS.exports,I6;function pTe(){return I6||(I6=1,function(t){(function(e,n){t.exports?t.exports=n():e.parseSrcset=n()})(hTe,function(){return function(e){function n(R){return R===" "||R==="	"||R===`
`||R==="\f"||R==="\r"}function r(R){var T,N=R.exec(e.substring(y));if(N)return T=N[0],y+=T.length,T}for(var i=e.length,a=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,c=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,m,g,b,S,y=0,E=[];;){if(r(s),y>=i)return E;p=r(o),m=[],p.slice(-1)===","?(p=p.replace(c,""),C()):x()}function x(){for(r(a),g="",b="in descriptor";;){if(S=e.charAt(y),b==="in descriptor")if(n(S))g&&(m.push(g),g="",b="after descriptor");else if(S===","){y+=1,g&&m.push(g),C();return}else if(S==="(")g=g+S,b="in parens";else if(S===""){g&&m.push(g),C();return}else g=g+S;else if(b==="in parens")if(S===")")g=g+S,b="in descriptor";else if(S===""){m.push(g),C();return}else g=g+S;else if(b==="after descriptor"&&!n(S))if(S===""){C();return}else b="in descriptor",y-=1;y+=1}}function C(){var R=!1,T,N,w,D,L={},k,M,P,V,Y;for(D=0;D<m.length;D++)k=m[D],M=k[k.length-1],P=k.substring(0,k.length-1),V=parseInt(P,10),Y=parseFloat(P),d.test(P)&&M==="w"?((T||N)&&(R=!0),V===0?R=!0:T=V):f.test(P)&&M==="x"?((T||N||w)&&(R=!0),Y<0?R=!0:N=Y):d.test(P)&&M==="h"?((w||N)&&(R=!0),V===0?R=!0:w=V):R=!0;R?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+k+"'."):(L.url=p,T&&(L.w=T),N&&(L.d=N),w&&(L.h=w),E.push(L))}}})}(vS)),vS.exports}var Iv={exports:{}},M6;function mTe(){if(M6)return Iv.exports;M6=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return Iv.exports=e(),Iv.exports.createColors=e,Iv.exports}const gTe={},_Te=Object.freeze(Object.defineProperty({__proto__:null,default:gTe},Symbol.toStringTag,{value:"Module"})),Wo=T5(_Te);var BO,L6;function wk(){if(L6)return BO;L6=1;let t=mTe(),e=Wo;class n extends Error{constructor(i,a,s,o,c,d){super(i),this.name="CssSyntaxError",this.reason=i,c&&(this.file=c),o&&(this.source=o),d&&(this.plugin=d),typeof a<"u"&&typeof s<"u"&&(typeof a=="number"?(this.line=a,this.column=s):(this.line=a.line,this.column=a.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let a=this.source;i==null&&(i=t.isColorSupported);let s=g=>g,o=g=>g,c=g=>g;if(i){let{bold:g,gray:b,red:S}=t.createColors(!0);o=y=>g(S(y)),s=y=>b(y),e&&(c=y=>e(y))}let d=a.split(/\r?\n/),f=Math.max(this.line-3,0),p=Math.min(this.line+2,d.length),m=String(p).length;return d.slice(f,p).map((g,b)=>{let S=f+1+b,y=" "+(" "+S).slice(-m)+" | ";if(S===this.line){if(g.length>160){let x=20,C=Math.max(0,this.column-x),R=Math.max(this.column+x,this.endColumn+x),T=g.slice(C,R),N=s(y.replace(/\d/g," "))+g.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return o(">")+s(y)+c(T)+`
 `+N+o("^")}let E=s(y.replace(/\d/g," "))+g.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+s(y)+c(g)+`
 `+E+o("^")}return" "+s(y)+c(g)}).join(`
`)}toString(){let i=this.showSourceCode();return i&&(i=`

`+i+`
`),this.name+": "+this.message+i}}return BO=n,n.default=n,BO}var FO,k6;function UQ(){if(k6)return FO;k6=1;const t={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function e(r){return r[0].toUpperCase()+r.slice(1)}class n{constructor(i){this.builder=i}atrule(i,a){let s="@"+i.name,o=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?s+=i.raws.afterName:o&&(s+=" "),i.nodes)this.block(i,s+o);else{let c=(i.raws.between||"")+(a?";":"");this.builder(s+o+c,i)}}beforeAfter(i,a){let s;i.type==="decl"?s=this.raw(i,null,"beforeDecl"):i.type==="comment"?s=this.raw(i,null,"beforeComment"):a==="before"?s=this.raw(i,null,"beforeRule"):s=this.raw(i,null,"beforeClose");let o=i.parent,c=0;for(;o&&o.type!=="root";)c+=1,o=o.parent;if(s.includes(`
`)){let d=this.raw(i,null,"indent");if(d.length)for(let f=0;f<c;f++)s+=d}return s}block(i,a){let s=this.raw(i,"between","beforeOpen");this.builder(a+s+"{",i,"start");let o;i.nodes&&i.nodes.length?(this.body(i),o=this.raw(i,"after")):o=this.raw(i,"after","emptyBody"),o&&this.builder(o),this.builder("}",i,"end")}body(i){let a=i.nodes.length-1;for(;a>0&&i.nodes[a].type==="comment";)a-=1;let s=this.raw(i,"semicolon");for(let o=0;o<i.nodes.length;o++){let c=i.nodes[o],d=this.raw(c,"before");d&&this.builder(d),this.stringify(c,a!==o||s)}}comment(i){let a=this.raw(i,"left","commentLeft"),s=this.raw(i,"right","commentRight");this.builder("/*"+a+i.text+s+"*/",i)}decl(i,a){let s=this.raw(i,"between","colon"),o=i.prop+s+this.rawValue(i,"value");i.important&&(o+=i.raws.important||" !important"),a&&(o+=";"),this.builder(o,i)}document(i){this.body(i)}raw(i,a,s){let o;if(s||(s=a),a&&(o=i.raws[a],typeof o<"u"))return o;let c=i.parent;if(s==="before"&&(!c||c.type==="root"&&c.first===i||c&&c.type==="document"))return"";if(!c)return t[s];let d=i.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(i,s);{let f="raw"+e(s);this[f]?o=this[f](d,i):d.walk(p=>{if(o=p.raws[a],typeof o<"u")return!1})}return typeof o>"u"&&(o=t[s]),d.rawCache[s]=o,o}rawBeforeClose(i){let a;return i.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return a=s.raws.after,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawBeforeComment(i,a){let s;return i.walkComments(o=>{if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(a,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(i,a){let s;return i.walkDecls(o=>{if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(a,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(i){let a;return i.walk(s=>{if(s.type!=="decl"&&(a=s.raws.between,typeof a<"u"))return!1}),a}rawBeforeRule(i){let a;return i.walk(s=>{if(s.nodes&&(s.parent!==i||i.first!==s)&&typeof s.raws.before<"u")return a=s.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(s=>{if(typeof s.raws.between<"u")return a=s.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(s=>{if(s.nodes&&s.nodes.length===0&&(a=s.raws.after,typeof a<"u"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(s=>{let o=s.parent;if(o&&o!==i&&o.parent&&o.parent===i&&typeof s.raws.before<"u"){let c=s.raws.before.split(`
`);return a=c[c.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(a=s.raws.semicolon,typeof a<"u"))return!1}),a}rawValue(i,a){let s=i[a],o=i.raws[a];return o&&o.value===s?o.raw:s}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return FO=n,n.default=n,FO}var UO,P6;function oT(){if(P6)return UO;P6=1;let t=UQ();function e(n,r){new t(r).stringify(n)}return UO=e,e.default=e,UO}var Mv={},B6;function Dk(){return B6||(B6=1,Mv.isClean=Symbol("isClean"),Mv.my=Symbol("my")),Mv}var jO,F6;function lT(){if(F6)return jO;F6=1;let t=wk(),e=UQ(),n=oT(),{isClean:r,my:i}=Dk();function a(c,d){let f=new c.constructor;for(let p in c){if(!Object.prototype.hasOwnProperty.call(c,p)||p==="proxyCache")continue;let m=c[p],g=typeof m;p==="parent"&&g==="object"?d&&(f[p]=d):p==="source"?f[p]=m:Array.isArray(m)?f[p]=m.map(b=>a(b,f)):(g==="object"&&m!==null&&(m=a(m)),f[p]=m)}return f}function s(c,d){if(d&&typeof d.offset<"u")return d.offset;let f=1,p=1,m=0;for(let g=0;g<c.length;g++){if(p===d.line&&f===d.column){m=g;break}c[g]===`
`?(f=1,p+=1):f+=1}return m}class o{get proxyOf(){return this}constructor(d={}){this.raws={},this[r]=!1,this[i]=!0;for(let f in d)if(f==="nodes"){this.nodes=[];for(let p of d[f])typeof p.clone=="function"?this.append(p.clone()):this.append(p)}else this[f]=d[f]}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let f=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${f.input.from}:${f.start.line}:${f.start.column}$&`)}return d}after(d){return this.parent.insertAfter(this,d),this}assign(d={}){for(let f in d)this[f]=d[f];return this}before(d){return this.parent.insertBefore(this,d),this}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between}clone(d={}){let f=a(this);for(let p in d)f[p]=d[p];return f}cloneAfter(d={}){let f=this.clone(d);return this.parent.insertAfter(this,f),f}cloneBefore(d={}){let f=this.clone(d);return this.parent.insertBefore(this,f),f}error(d,f={}){if(this.source){let{end:p,start:m}=this.rangeBy(f);return this.source.input.error(d,{column:m.column,line:m.line},{column:p.column,line:p.line},f)}return new t(d)}getProxyProcessor(){return{get(d,f){return f==="proxyOf"?d:f==="root"?()=>d.root().toProxy():d[f]},set(d,f,p){return d[f]===p||(d[f]=p,(f==="prop"||f==="value"||f==="name"||f==="params"||f==="important"||f==="text")&&d.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let d=this;for(;d=d.parent;)d[r]=!1}}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}positionBy(d){let f=this.source.start;if(d.index)f=this.positionInside(d.index);else if(d.word){let p="document"in this.source.input?this.source.input.document:this.source.input.css,g=p.slice(s(p,this.source.start),s(p,this.source.end)).indexOf(d.word);g!==-1&&(f=this.positionInside(g))}return f}positionInside(d){let f=this.source.start.column,p=this.source.start.line,m="document"in this.source.input?this.source.input.document:this.source.input.css,g=s(m,this.source.start),b=g+d;for(let S=g;S<b;S++)m[S]===`
`?(f=1,p+=1):f+=1;return{column:f,line:p}}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}rangeBy(d){let f={column:this.source.start.column,line:this.source.start.line},p=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:f.column+1,line:f.line};if(d.word){let m="document"in this.source.input?this.source.input.document:this.source.input.css,b=m.slice(s(m,this.source.start),s(m,this.source.end)).indexOf(d.word);b!==-1&&(f=this.positionInside(b),p=this.positionInside(b+d.word.length))}else d.start?f={column:d.start.column,line:d.start.line}:d.index&&(f=this.positionInside(d.index)),d.end?p={column:d.end.column,line:d.end.line}:typeof d.endIndex=="number"?p=this.positionInside(d.endIndex):d.index&&(p=this.positionInside(d.index+1));return(p.line<f.line||p.line===f.line&&p.column<=f.column)&&(p={column:f.column+1,line:f.line}),{end:p,start:f}}raw(d,f){return new e().raw(this,d,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...d){if(this.parent){let f=this,p=!1;for(let m of d)m===this?p=!0:p?(this.parent.insertAfter(f,m),f=m):this.parent.insertBefore(f,m);p||this.remove()}return this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}toJSON(d,f){let p={},m=f==null;f=f||new Map;let g=0;for(let b in this){if(!Object.prototype.hasOwnProperty.call(this,b)||b==="parent"||b==="proxyCache")continue;let S=this[b];if(Array.isArray(S))p[b]=S.map(y=>typeof y=="object"&&y.toJSON?y.toJSON(null,f):y);else if(typeof S=="object"&&S.toJSON)p[b]=S.toJSON(null,f);else if(b==="source"){let y=f.get(S.input);y==null&&(y=g,f.set(S.input,g),g++),p[b]={end:S.end,inputId:y,start:S.start}}else p[b]=S}return m&&(p.inputs=[...f.keys()].map(b=>b.toJSON())),p}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(d=n){d.stringify&&(d=d.stringify);let f="";return d(this,p=>{f+=p}),f}warn(d,f,p){let m={node:this};for(let g in p)m[g]=p[g];return d.warn(f,m)}}return jO=o,o.default=o,jO}var GO,U6;function cT(){if(U6)return GO;U6=1;let t=lT();class e extends t{constructor(r){super(r),this.type="comment"}}return GO=e,e.default=e,GO}var qO,j6;function uT(){if(j6)return qO;j6=1;let t=lT();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return qO=e,e.default=e,qO}var $O,G6;function ah(){if(G6)return $O;G6=1;let t=cT(),e=uT(),n=lT(),{isClean:r,my:i}=Dk(),a,s,o,c;function d(m){return m.map(g=>(g.nodes&&(g.nodes=d(g.nodes)),delete g.source,g))}function f(m){if(m[r]=!1,m.proxyOf.nodes)for(let g of m.proxyOf.nodes)f(g)}class p extends n{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...g){for(let b of g){let S=this.normalize(b,this.last);for(let y of S)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(g){if(super.cleanRaws(g),this.nodes)for(let b of this.nodes)b.cleanRaws(g)}each(g){if(!this.proxyOf.nodes)return;let b=this.getIterator(),S,y;for(;this.indexes[b]<this.proxyOf.nodes.length&&(S=this.indexes[b],y=g(this.proxyOf.nodes[S],S),y!==!1);)this.indexes[b]+=1;return delete this.indexes[b],y}every(g){return this.nodes.every(g)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let g=this.lastEach;return this.indexes[g]=0,g}getProxyProcessor(){return{get(g,b){return b==="proxyOf"?g:g[b]?b==="each"||typeof b=="string"&&b.startsWith("walk")?(...S)=>g[b](...S.map(y=>typeof y=="function"?(E,x)=>y(E.toProxy(),x):y)):b==="every"||b==="some"?S=>g[b]((y,...E)=>S(y.toProxy(),...E)):b==="root"?()=>g.root().toProxy():b==="nodes"?g.nodes.map(S=>S.toProxy()):b==="first"||b==="last"?g[b].toProxy():g[b]:g[b]},set(g,b,S){return g[b]===S||(g[b]=S,(b==="name"||b==="params"||b==="selector")&&g.markDirty()),!0}}}index(g){return typeof g=="number"?g:(g.proxyOf&&(g=g.proxyOf),this.proxyOf.nodes.indexOf(g))}insertAfter(g,b){let S=this.index(g),y=this.normalize(b,this.proxyOf.nodes[S]).reverse();S=this.index(g);for(let x of y)this.proxyOf.nodes.splice(S+1,0,x);let E;for(let x in this.indexes)E=this.indexes[x],S<E&&(this.indexes[x]=E+y.length);return this.markDirty(),this}insertBefore(g,b){let S=this.index(g),y=S===0?"prepend":!1,E=this.normalize(b,this.proxyOf.nodes[S],y).reverse();S=this.index(g);for(let C of E)this.proxyOf.nodes.splice(S,0,C);let x;for(let C in this.indexes)x=this.indexes[C],S<=x&&(this.indexes[C]=x+E.length);return this.markDirty(),this}normalize(g,b){if(typeof g=="string")g=d(s(g).nodes);else if(typeof g>"u")g=[];else if(Array.isArray(g)){g=g.slice(0);for(let y of g)y.parent&&y.parent.removeChild(y,"ignore")}else if(g.type==="root"&&this.type!=="document"){g=g.nodes.slice(0);for(let y of g)y.parent&&y.parent.removeChild(y,"ignore")}else if(g.type)g=[g];else if(g.prop){if(typeof g.value>"u")throw new Error("Value field is missed in node creation");typeof g.value!="string"&&(g.value=String(g.value)),g=[new e(g)]}else if(g.selector||g.selectors)g=[new c(g)];else if(g.name)g=[new a(g)];else if(g.text)g=[new t(g)];else throw new Error("Unknown node type in node creation");return g.map(y=>(y[i]||p.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[r]&&f(y),y.raws||(y.raws={}),typeof y.raws.before>"u"&&b&&typeof b.raws.before<"u"&&(y.raws.before=b.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...g){g=g.reverse();for(let b of g){let S=this.normalize(b,this.first,"prepend").reverse();for(let y of S)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+S.length}return this.markDirty(),this}push(g){return g.parent=this,this.proxyOf.nodes.push(g),this}removeAll(){for(let g of this.proxyOf.nodes)g.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(g){g=this.index(g),this.proxyOf.nodes[g].parent=void 0,this.proxyOf.nodes.splice(g,1);let b;for(let S in this.indexes)b=this.indexes[S],b>=g&&(this.indexes[S]=b-1);return this.markDirty(),this}replaceValues(g,b,S){return S||(S=b,b={}),this.walkDecls(y=>{b.props&&!b.props.includes(y.prop)||b.fast&&!y.value.includes(b.fast)||(y.value=y.value.replace(g,S))}),this.markDirty(),this}some(g){return this.nodes.some(g)}walk(g){return this.each((b,S)=>{let y;try{y=g(b,S)}catch(E){throw b.addToError(E)}return y!==!1&&b.walk&&(y=b.walk(g)),y})}walkAtRules(g,b){return b?g instanceof RegExp?this.walk((S,y)=>{if(S.type==="atrule"&&g.test(S.name))return b(S,y)}):this.walk((S,y)=>{if(S.type==="atrule"&&S.name===g)return b(S,y)}):(b=g,this.walk((S,y)=>{if(S.type==="atrule")return b(S,y)}))}walkComments(g){return this.walk((b,S)=>{if(b.type==="comment")return g(b,S)})}walkDecls(g,b){return b?g instanceof RegExp?this.walk((S,y)=>{if(S.type==="decl"&&g.test(S.prop))return b(S,y)}):this.walk((S,y)=>{if(S.type==="decl"&&S.prop===g)return b(S,y)}):(b=g,this.walk((S,y)=>{if(S.type==="decl")return b(S,y)}))}walkRules(g,b){return b?g instanceof RegExp?this.walk((S,y)=>{if(S.type==="rule"&&g.test(S.selector))return b(S,y)}):this.walk((S,y)=>{if(S.type==="rule"&&S.selector===g)return b(S,y)}):(b=g,this.walk((S,y)=>{if(S.type==="rule")return b(S,y)}))}}return p.registerParse=m=>{s=m},p.registerRule=m=>{c=m},p.registerAtRule=m=>{a=m},p.registerRoot=m=>{o=m},$O=p,p.default=p,p.rebuild=m=>{m.type==="atrule"?Object.setPrototypeOf(m,a.prototype):m.type==="rule"?Object.setPrototypeOf(m,c.prototype):m.type==="decl"?Object.setPrototypeOf(m,e.prototype):m.type==="comment"?Object.setPrototypeOf(m,t.prototype):m.type==="root"&&Object.setPrototypeOf(m,o.prototype),m[i]=!0,m.nodes&&m.nodes.forEach(g=>{p.rebuild(g)})},$O}var zO,q6;function Ik(){if(q6)return zO;q6=1;let t=ah();class e extends t{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return zO=e,e.default=e,t.registerAtRule(e),zO}var YO,$6;function Mk(){if($6)return YO;$6=1;let t=ah(),e,n;class r extends t{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new e(new n,this,a).stringify()}}return r.registerLazyResult=i=>{e=i},r.registerProcessor=i=>{n=i},YO=r,r.default=r,YO}var HO,z6;function bTe(){if(z6)return HO;z6=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return HO={nanoid:(r=21)=>{let i="",a=r|0;for(;a--;)i+=t[Math.random()*64|0];return i},customAlphabet:(r,i=21)=>(a=i)=>{let s="",o=a|0;for(;o--;)s+=r[Math.random()*r.length|0];return s}},HO}var VO,Y6;function jQ(){if(Y6)return VO;Y6=1;let{existsSync:t,readFileSync:e}=Wo,{dirname:n,join:r}=Wo,{SourceMapConsumer:i,SourceMapGenerator:a}=Wo;function s(c){return Buffer?Buffer.from(c,"base64").toString():window.atob(c)}class o{constructor(d,f){if(f.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=f.map?f.map.prev:void 0,m=this.loadMap(f.from,p);!this.mapFile&&f.from&&(this.mapFile=f.from),this.mapFile&&(this.root=n(this.mapFile)),m&&(this.text=m)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(d){let f=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,m=/^data:application\/json;charset=utf-?8,/,g=/^data:application\/json,/,b=d.match(m)||d.match(g);if(b)return decodeURIComponent(d.substr(b[0].length));let S=d.match(f)||d.match(p);if(S)return s(d.substr(S[0].length));let y=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+y)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let f=d.match(/\/\*\s*# sourceMappingURL=/g);if(!f)return;let p=d.lastIndexOf(f.pop()),m=d.indexOf("*/",p);p>-1&&m>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,m)))}loadFile(d){if(this.root=n(d),t(d))return this.mapFile=d,e(d,"utf-8").toString().trim()}loadMap(d,f){if(f===!1)return!1;if(f){if(typeof f=="string")return f;if(typeof f=="function"){let p=f(d);if(p){let m=this.loadFile(p);if(!m)throw new Error("Unable to load previous source map: "+p.toString());return m}}else{if(f instanceof i)return a.fromSourceMap(f).toString();if(f instanceof a)return f.toString();if(this.isMap(f))return JSON.stringify(f);throw new Error("Unsupported previous source map format: "+f.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=r(n(d),p)),this.loadFile(p)}}}startWith(d,f){return d?d.substr(0,f.length)===f:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return VO=o,o.default=o,VO}var WO,H6;function dT(){if(H6)return WO;H6=1;let{nanoid:t}=bTe(),{isAbsolute:e,resolve:n}=Wo,{SourceMapConsumer:r,SourceMapGenerator:i}=Wo,{fileURLToPath:a,pathToFileURL:s}=Wo,o=wk(),c=jQ(),d=Wo,f=Symbol("fromOffsetCache"),p=!!(r&&i),m=!!(n&&e);class g{get from(){return this.file||this.id}constructor(S,y={}){if(S===null||typeof S>"u"||typeof S=="object"&&!S.toString)throw new Error(`PostCSS received ${S} instead of CSS string`);if(this.css=S.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,y.document&&(this.document=y.document.toString()),y.from&&(!m||/^\w+:\/\//.test(y.from)||e(y.from)?this.file=y.from:this.file=n(y.from)),m&&p){let E=new c(this.css,y);if(E.text){this.map=E;let x=E.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(S,y,E,x={}){let C,R,T;if(y&&typeof y=="object"){let w=y,D=E;if(typeof w.offset=="number"){let L=this.fromOffset(w.offset);y=L.line,E=L.col}else y=w.line,E=w.column;if(typeof D.offset=="number"){let L=this.fromOffset(D.offset);R=L.line,C=L.col}else R=D.line,C=D.column}else if(!E){let w=this.fromOffset(y);y=w.line,E=w.col}let N=this.origin(y,E,R,C);return N?T=new o(S,N.endLine===void 0?N.line:{column:N.column,line:N.line},N.endLine===void 0?N.column:{column:N.endColumn,line:N.endLine},N.source,N.file,x.plugin):T=new o(S,R===void 0?y:{column:E,line:y},R===void 0?E:{column:C,line:R},this.css,this.file,x.plugin),T.input={column:E,endColumn:C,endLine:R,line:y,source:this.css},this.file&&(s&&(T.input.url=s(this.file).toString()),T.input.file=this.file),T}fromOffset(S){let y,E;if(this[f])E=this[f];else{let C=this.css.split(`
`);E=new Array(C.length);let R=0;for(let T=0,N=C.length;T<N;T++)E[T]=R,R+=C[T].length+1;this[f]=E}y=E[E.length-1];let x=0;if(S>=y)x=E.length-1;else{let C=E.length-2,R;for(;x<C;)if(R=x+(C-x>>1),S<E[R])C=R-1;else if(S>=E[R+1])x=R+1;else{x=R;break}}return{col:S-E[x]+1,line:x+1}}mapResolve(S){return/^\w+:\/\//.test(S)?S:n(this.map.consumer().sourceRoot||this.map.root||".",S)}origin(S,y,E,x){if(!this.map)return!1;let C=this.map.consumer(),R=C.originalPositionFor({column:y,line:S});if(!R.source)return!1;let T;typeof E=="number"&&(T=C.originalPositionFor({column:x,line:E}));let N;e(R.source)?N=s(R.source):N=new URL(R.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let w={column:R.column,endColumn:T&&T.column,endLine:T&&T.line,line:R.line,url:N.toString()};if(N.protocol==="file:")if(a)w.file=a(N);else throw new Error("file: protocol is not available in this PostCSS build");let D=C.sourceContentFor(R.source);return D&&(w.source=D),w}toJSON(){let S={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(S[y]=this[y]);return this.map&&(S.map={...this.map},S.map.consumerCache&&(S.map.consumerCache=void 0)),S}}return WO=g,g.default=g,d&&d.registerInput&&d.registerInput(g),WO}var QO,V6;function U0(){if(V6)return QO;V6=1;let t=ah(),e,n;class r extends t{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,s,o){let c=super.normalize(a);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of c)d.raws.before=s.raws.before}return c}removeChild(a,s){let o=this.index(a);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(a)}toResult(a={}){return new e(new n,this,a).stringify()}}return r.registerLazyResult=i=>{e=i},r.registerProcessor=i=>{n=i},QO=r,r.default=r,t.registerRoot(r),QO}var KO,W6;function GQ(){if(W6)return KO;W6=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let n=[" ",`
`,"	"];return t.split(e,n)},split(e,n,r){let i=[],a="",s=!1,o=0,c=!1,d="",f=!1;for(let p of e)f?f=!1:p==="\\"?f=!0:c?p===d&&(c=!1):p==='"'||p==="'"?(c=!0,d=p):p==="("?o+=1:p===")"?o>0&&(o-=1):o===0&&n.includes(p)&&(s=!0),s?(a!==""&&i.push(a.trim()),a="",s=!1):a+=p;return(r||a!=="")&&i.push(a.trim()),i}};return KO=t,t.default=t,KO}var XO,Q6;function Lk(){if(Q6)return XO;Q6=1;let t=ah(),e=GQ();class n extends t{get selectors(){return e.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,s=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(s)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return XO=n,n.default=n,t.registerRule(n),XO}var ZO,K6;function vTe(){if(K6)return ZO;K6=1;let t=Ik(),e=cT(),n=uT(),r=dT(),i=jQ(),a=U0(),s=Lk();function o(c,d){if(Array.isArray(c))return c.map(m=>o(m));let{inputs:f,...p}=c;if(f){d=[];for(let m of f){let g={...m,__proto__:r.prototype};g.map&&(g.map={...g.map,__proto__:i.prototype}),d.push(g)}}if(p.nodes&&(p.nodes=c.nodes.map(m=>o(m,d))),p.source){let{inputId:m,...g}=p.source;p.source=g,m!=null&&(p.source.input=d[m])}if(p.type==="root")return new a(p);if(p.type==="decl")return new n(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new e(p);if(p.type==="atrule")return new t(p);throw new Error("Unknown node type: "+c.type)}return ZO=o,o.default=o,ZO}var JO,X6;function qQ(){if(X6)return JO;X6=1;let{dirname:t,relative:e,resolve:n,sep:r}=Wo,{SourceMapConsumer:i,SourceMapGenerator:a}=Wo,{pathToFileURL:s}=Wo,o=dT(),c=!!(i&&a),d=!!(t&&n&&e&&r);class f{constructor(m,g,b,S){this.stringify=m,this.mapOpts=b.map||{},this.root=g,this.opts=b,this.css=S,this.originalCSS=S,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let m;this.isInline()?m="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?m=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?m=this.mapOpts.annotation(this.opts.to,this.root):m=this.outputFile()+".map";let g=`
`;this.css.includes(`\r
`)&&(g=`\r
`),this.css+=g+"/*# sourceMappingURL="+m+" */"}applyPrevMaps(){for(let m of this.previous()){let g=this.toUrl(this.path(m.file)),b=m.root||t(m.file),S;this.mapOpts.sourcesContent===!1?(S=new i(m.text),S.sourcesContent&&(S.sourcesContent=null)):S=m.consumer(),this.map.applySourceMap(S,g,this.toUrl(this.path(b)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let m;for(let g=this.root.nodes.length-1;g>=0;g--)m=this.root.nodes[g],m.type==="comment"&&m.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(g)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&c&&this.isMap())return this.generateMap();{let m="";return this.stringify(this.root,g=>{m+=g}),[m]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let m=this.previous()[0].consumer();m.file=this.outputFile(),this.map=a.fromSourceMap(m,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let m=1,g=1,b="<no source>",S={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,E;this.stringify(this.root,(x,C,R)=>{if(this.css+=x,C&&R!=="end"&&(S.generated.line=m,S.generated.column=g-1,C.source&&C.source.start?(S.source=this.sourcePath(C),S.original.line=C.source.start.line,S.original.column=C.source.start.column-1,this.map.addMapping(S)):(S.source=b,S.original.line=1,S.original.column=0,this.map.addMapping(S))),E=x.match(/\n/g),E?(m+=E.length,y=x.lastIndexOf(`
`),g=x.length-y):g+=x.length,C&&R!=="start"){let T=C.parent||{raws:{}};(!(C.type==="decl"||C.type==="atrule"&&!C.nodes)||C!==T.last||T.raws.semicolon)&&(C.source&&C.source.end?(S.source=this.sourcePath(C),S.original.line=C.source.end.line,S.original.column=C.source.end.column-1,S.generated.line=m,S.generated.column=g-2,this.map.addMapping(S)):(S.source=b,S.original.line=1,S.original.column=0,S.generated.line=m,S.generated.column=g-1,this.map.addMapping(S)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(m=>m.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let m=this.mapOpts.annotation;return typeof m<"u"&&m!==!0?!1:this.previous().length?this.previous().some(g=>g.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(m=>m.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(m){if(this.mapOpts.absolute||m.charCodeAt(0)===60||/^\w+:\/\//.test(m))return m;let g=this.memoizedPaths.get(m);if(g)return g;let b=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(b=t(n(b,this.mapOpts.annotation)));let S=e(b,m);return this.memoizedPaths.set(m,S),S}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(m=>{if(m.source&&m.source.input.map){let g=m.source.input.map;this.previousMaps.includes(g)||this.previousMaps.push(g)}});else{let m=new o(this.originalCSS,this.opts);m.map&&this.previousMaps.push(m.map)}return this.previousMaps}setSourcesContent(){let m={};if(this.root)this.root.walk(g=>{if(g.source){let b=g.source.input.from;if(b&&!m[b]){m[b]=!0;let S=this.usesFileUrls?this.toFileUrl(b):this.toUrl(this.path(b));this.map.setSourceContent(S,g.source.input.css)}}});else if(this.css){let g=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(g,this.css)}}sourcePath(m){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(m.source.input.from):this.toUrl(this.path(m.source.input.from))}toBase64(m){return Buffer?Buffer.from(m).toString("base64"):window.btoa(unescape(encodeURIComponent(m)))}toFileUrl(m){let g=this.memoizedFileURLs.get(m);if(g)return g;if(s){let b=s(m).toString();return this.memoizedFileURLs.set(m,b),b}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(m){let g=this.memoizedURLs.get(m);if(g)return g;r==="\\"&&(m=m.replace(/\\/g,"/"));let b=encodeURI(m).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(m,b),b}}return JO=f,JO}var eR,Z6;function STe(){if(Z6)return eR;Z6=1;const t=39,e=34,n=92,r=47,i=10,a=32,s=12,o=9,c=13,d=91,f=93,p=40,m=41,g=123,b=125,S=59,y=42,E=58,x=64,C=/[\t\n\f\r "#'()/;[\\\]{}]/g,R=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,T=/.[\r\n"'(/\\]/,N=/[\da-f]/i;return eR=function(D,L={}){let k=D.css.valueOf(),M=L.ignoreErrors,P,V,Y,G,F,q,z,H,U,Q,X=k.length,te=0,ie=[],fe=[];function Ce(){return te}function Re(se){throw D.error("Unclosed "+se,te)}function _e(){return fe.length===0&&te>=X}function Ie(se){if(fe.length)return fe.pop();if(te>=X)return;let xe=se?se.ignoreUnclosed:!1;switch(P=k.charCodeAt(te),P){case i:case a:case o:case c:case s:{G=te;do G+=1,P=k.charCodeAt(G);while(P===a||P===i||P===o||P===c||P===s);q=["space",k.slice(te,G)],te=G-1;break}case d:case f:case g:case b:case E:case S:case m:{let ce=String.fromCharCode(P);q=[ce,ce,te];break}case p:{if(Q=ie.length?ie.pop()[1]:"",U=k.charCodeAt(te+1),Q==="url"&&U!==t&&U!==e&&U!==a&&U!==i&&U!==o&&U!==s&&U!==c){G=te;do{if(z=!1,G=k.indexOf(")",G+1),G===-1)if(M||xe){G=te;break}else Re("bracket");for(H=G;k.charCodeAt(H-1)===n;)H-=1,z=!z}while(z);q=["brackets",k.slice(te,G+1),te,G],te=G}else G=k.indexOf(")",te+1),V=k.slice(te,G+1),G===-1||T.test(V)?q=["(","(",te]:(q=["brackets",V,te,G],te=G);break}case t:case e:{F=P===t?"'":'"',G=te;do{if(z=!1,G=k.indexOf(F,G+1),G===-1)if(M||xe){G=te+1;break}else Re("string");for(H=G;k.charCodeAt(H-1)===n;)H-=1,z=!z}while(z);q=["string",k.slice(te,G+1),te,G],te=G;break}case x:{C.lastIndex=te+1,C.test(k),C.lastIndex===0?G=k.length-1:G=C.lastIndex-2,q=["at-word",k.slice(te,G+1),te,G],te=G;break}case n:{for(G=te,Y=!0;k.charCodeAt(G+1)===n;)G+=1,Y=!Y;if(P=k.charCodeAt(G+1),Y&&P!==r&&P!==a&&P!==i&&P!==o&&P!==c&&P!==s&&(G+=1,N.test(k.charAt(G)))){for(;N.test(k.charAt(G+1));)G+=1;k.charCodeAt(G+1)===a&&(G+=1)}q=["word",k.slice(te,G+1),te,G],te=G;break}default:{P===r&&k.charCodeAt(te+1)===y?(G=k.indexOf("*/",te+2)+1,G===0&&(M||xe?G=k.length:Re("comment")),q=["comment",k.slice(te,G+1),te,G],te=G):(R.lastIndex=te+1,R.test(k),R.lastIndex===0?G=k.length-1:G=R.lastIndex-2,q=["word",k.slice(te,G+1),te,G],ie.push(q),te=G);break}}return te++,q}function Oe(se){fe.push(se)}return{back:Oe,endOfFile:_e,nextToken:Ie,position:Ce}},eR}var tR,J6;function ETe(){if(J6)return tR;J6=1;let t=Ik(),e=cT(),n=uT(),r=U0(),i=Lk(),a=STe();const s={empty:!0,space:!0};function o(d){for(let f=d.length-1;f>=0;f--){let p=d[f],m=p[3]||p[2];if(m)return m}}class c{constructor(f){this.input=f,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:f,start:{column:1,line:1,offset:0}}}atrule(f){let p=new t;p.name=f[1].slice(1),p.name===""&&this.unnamedAtrule(p,f),this.init(p,f[2]);let m,g,b,S=!1,y=!1,E=[],x=[];for(;!this.tokenizer.endOfFile();){if(f=this.tokenizer.nextToken(),m=f[0],m==="("||m==="["?x.push(m==="("?")":"]"):m==="{"&&x.length>0?x.push("}"):m===x[x.length-1]&&x.pop(),x.length===0)if(m===";"){p.source.end=this.getPosition(f[2]),p.source.end.offset++,this.semicolon=!0;break}else if(m==="{"){y=!0;break}else if(m==="}"){if(E.length>0){for(b=E.length-1,g=E[b];g&&g[0]==="space";)g=E[--b];g&&(p.source.end=this.getPosition(g[3]||g[2]),p.source.end.offset++)}this.end(f);break}else E.push(f);else E.push(f);if(this.tokenizer.endOfFile()){S=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(p.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(p,"params",E),S&&(f=E[E.length-1],p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),y&&(p.nodes=[],this.current=p)}checkMissedSemicolon(f){let p=this.colon(f);if(p===!1)return;let m=0,g;for(let b=p-1;b>=0&&(g=f[b],!(g[0]!=="space"&&(m+=1,m===2)));b--);throw this.input.error("Missed semicolon",g[0]==="word"?g[3]+1:g[2])}colon(f){let p=0,m,g,b;for(let[S,y]of f.entries()){if(g=y,b=g[0],b==="("&&(p+=1),b===")"&&(p-=1),p===0&&b===":")if(!m)this.doubleColon(g);else{if(m[0]==="word"&&m[1]==="progid")continue;return S}m=g}return!1}comment(f){let p=new e;this.init(p,f[2]),p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++;let m=f[1].slice(2,-2);if(/^\s*$/.test(m))p.text="",p.raws.left=m,p.raws.right="";else{let g=m.match(/^(\s*)([^]*\S)(\s*)$/);p.text=g[2],p.raws.left=g[1],p.raws.right=g[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(f,p){let m=new n;this.init(m,f[0][2]);let g=f[f.length-1];for(g[0]===";"&&(this.semicolon=!0,f.pop()),m.source.end=this.getPosition(g[3]||g[2]||o(f)),m.source.end.offset++;f[0][0]!=="word";)f.length===1&&this.unknownWord(f),m.raws.before+=f.shift()[1];for(m.source.start=this.getPosition(f[0][2]),m.prop="";f.length;){let x=f[0][0];if(x===":"||x==="space"||x==="comment")break;m.prop+=f.shift()[1]}m.raws.between="";let b;for(;f.length;)if(b=f.shift(),b[0]===":"){m.raws.between+=b[1];break}else b[0]==="word"&&/\w/.test(b[1])&&this.unknownWord([b]),m.raws.between+=b[1];(m.prop[0]==="_"||m.prop[0]==="*")&&(m.raws.before+=m.prop[0],m.prop=m.prop.slice(1));let S=[],y;for(;f.length&&(y=f[0][0],!(y!=="space"&&y!=="comment"));)S.push(f.shift());this.precheckMissedSemicolon(f);for(let x=f.length-1;x>=0;x--){if(b=f[x],b[1].toLowerCase()==="!important"){m.important=!0;let C=this.stringFrom(f,x);C=this.spacesFromEnd(f)+C,C!==" !important"&&(m.raws.important=C);break}else if(b[1].toLowerCase()==="important"){let C=f.slice(0),R="";for(let T=x;T>0;T--){let N=C[T][0];if(R.trim().startsWith("!")&&N!=="space")break;R=C.pop()[1]+R}R.trim().startsWith("!")&&(m.important=!0,m.raws.important=R,f=C)}if(b[0]!=="space"&&b[0]!=="comment")break}f.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(m.raws.between+=S.map(x=>x[1]).join(""),S=[]),this.raw(m,"value",S.concat(f),p),m.value.includes(":")&&!p&&this.checkMissedSemicolon(f)}doubleColon(f){throw this.input.error("Double colon",{offset:f[2]},{offset:f[2]+f[1].length})}emptyRule(f){let p=new i;this.init(p,f[2]),p.selector="",p.raws.between="",this.current=p}end(f){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(f[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(f)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(f){if(this.spaces+=f[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="",p.source.end=this.getPosition(f[2]),p.source.end.offset+=p.raws.ownSemicolon.length)}}getPosition(f){let p=this.input.fromOffset(f);return{column:p.col,line:p.line,offset:f}}init(f,p){this.current.push(f),f.source={input:this.input,start:this.getPosition(p)},f.raws.before=this.spaces,this.spaces="",f.type!=="comment"&&(this.semicolon=!1)}other(f){let p=!1,m=null,g=!1,b=null,S=[],y=f[1].startsWith("--"),E=[],x=f;for(;x;){if(m=x[0],E.push(x),m==="("||m==="[")b||(b=x),S.push(m==="("?")":"]");else if(y&&g&&m==="{")b||(b=x),S.push("}");else if(S.length===0)if(m===";")if(g){this.decl(E,y);return}else break;else if(m==="{"){this.rule(E);return}else if(m==="}"){this.tokenizer.back(E.pop()),p=!0;break}else m===":"&&(g=!0);else m===S[S.length-1]&&(S.pop(),S.length===0&&(b=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),S.length>0&&this.unclosedBracket(b),p&&g){if(!y)for(;E.length&&(x=E[E.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,y)}else this.unknownWord(E)}parse(){let f;for(;!this.tokenizer.endOfFile();)switch(f=this.tokenizer.nextToken(),f[0]){case"space":this.spaces+=f[1];break;case";":this.freeSemicolon(f);break;case"}":this.end(f);break;case"comment":this.comment(f);break;case"at-word":this.atrule(f);break;case"{":this.emptyRule(f);break;default:this.other(f);break}this.endFile()}precheckMissedSemicolon(){}raw(f,p,m,g){let b,S,y=m.length,E="",x=!0,C,R;for(let T=0;T<y;T+=1)b=m[T],S=b[0],S==="space"&&T===y-1&&!g?x=!1:S==="comment"?(R=m[T-1]?m[T-1][0]:"empty",C=m[T+1]?m[T+1][0]:"empty",!s[R]&&!s[C]?E.slice(-1)===","?x=!1:E+=b[1]:x=!1):E+=b[1];if(!x){let T=m.reduce((N,w)=>N+w[1],"");f.raws[p]={raw:T,value:E}}f[p]=E}rule(f){f.pop();let p=new i;this.init(p,f[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(f),this.raw(p,"selector",f),this.current=p}spacesAndCommentsFromEnd(f){let p,m="";for(;f.length&&(p=f[f.length-1][0],!(p!=="space"&&p!=="comment"));)m=f.pop()[1]+m;return m}spacesAndCommentsFromStart(f){let p,m="";for(;f.length&&(p=f[0][0],!(p!=="space"&&p!=="comment"));)m+=f.shift()[1];return m}spacesFromEnd(f){let p,m="";for(;f.length&&(p=f[f.length-1][0],p==="space");)m=f.pop()[1]+m;return m}stringFrom(f,p){let m="";for(let g=p;g<f.length;g++)m+=f[g][1];return f.splice(p,f.length-p),m}unclosedBlock(){let f=this.current.source.start;throw this.input.error("Unclosed block",f.line,f.column)}unclosedBracket(f){throw this.input.error("Unclosed bracket",{offset:f[2]},{offset:f[2]+1})}unexpectedClose(f){throw this.input.error("Unexpected }",{offset:f[2]},{offset:f[2]+1})}unknownWord(f){throw this.input.error("Unknown word "+f[0][1],{offset:f[0][2]},{offset:f[0][2]+f[0][1].length})}unnamedAtrule(f,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return tR=c,tR}var nR,e4;function kk(){if(e4)return nR;e4=1;let t=ah(),e=dT(),n=ETe();function r(i,a){let s=new e(i,a),o=new n(s);try{o.parse()}catch(c){throw c}return o.root}return nR=r,r.default=r,t.registerParse(r),nR}var rR,t4;function $Q(){if(t4)return rR;t4=1;class t{constructor(n,r={}){if(this.type="warning",this.text=n,r.node&&r.node.source){let i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in r)this[i]=r[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return rR=t,t.default=t,rR}var iR,n4;function Pk(){if(n4)return iR;n4=1;let t=$Q();class e{get content(){return this.css}constructor(r,i,a){this.processor=r,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(r,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new t(r,i);return this.messages.push(a),a}warnings(){return this.messages.filter(r=>r.type==="warning")}}return iR=e,e.default=e,iR}var aR,r4;function zQ(){if(r4)return aR;r4=1;let t=ah(),e=Mk(),n=qQ(),r=kk(),i=Pk(),a=U0(),s=oT(),{isClean:o,my:c}=Dk();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function g(C){return typeof C=="object"&&typeof C.then=="function"}function b(C){let R=!1,T=d[C.type];return C.type==="decl"?R=C.prop.toLowerCase():C.type==="atrule"&&(R=C.name.toLowerCase()),R&&C.append?[T,T+"-"+R,m,T+"Exit",T+"Exit-"+R]:R?[T,T+"-"+R,T+"Exit",T+"Exit-"+R]:C.append?[T,m,T+"Exit"]:[T,T+"Exit"]}function S(C){let R;return C.type==="document"?R=["Document",m,"DocumentExit"]:C.type==="root"?R=["Root",m,"RootExit"]:R=b(C),{eventIndex:0,events:R,iterator:0,node:C,visitorIndex:0,visitors:[]}}function y(C){return C[o]=!1,C.nodes&&C.nodes.forEach(R=>y(R)),C}let E={};class x{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(R,T,N){this.stringified=!1,this.processed=!1;let w;if(typeof T=="object"&&T!==null&&(T.type==="root"||T.type==="document"))w=y(T);else if(T instanceof x||T instanceof i)w=y(T.root),T.map&&(typeof N.map>"u"&&(N.map={}),N.map.inline||(N.map.inline=!1),N.map.prev=T.map);else{let D=r;N.syntax&&(D=N.syntax.parse),N.parser&&(D=N.parser),D.parse&&(D=D.parse);try{w=D(T,N)}catch(L){this.processed=!0,this.error=L}w&&!w[c]&&t.rebuild(w)}this.result=new i(R,w,N),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(D=>typeof D=="object"&&D.prepare?{...D,...D.prepare(this.result)}:D)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(R){return this.async().catch(R)}finally(R){return this.async().then(R,R)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(R,T){let N=this.result.lastPlugin;try{T&&T.addToError(R),this.error=R,R.name==="CssSyntaxError"&&!R.plugin?(R.plugin=N.postcssPlugin,R.setMessage()):N.postcssVersion}catch(w){console&&console.error&&console.error(w)}return R}prepareVisitors(){this.listeners={};let R=(T,N,w)=>{this.listeners[N]||(this.listeners[N]=[]),this.listeners[N].push([T,w])};for(let T of this.plugins)if(typeof T=="object")for(let N in T){if(!f[N]&&/^[A-Z]/.test(N))throw new Error(`Unknown event ${N} in ${T.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[N])if(typeof T[N]=="object")for(let w in T[N])w==="*"?R(T,N,T[N][w]):R(T,N+"-"+w.toLowerCase(),T[N][w]);else typeof T[N]=="function"&&R(T,N,T[N])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let R=0;R<this.plugins.length;R++){let T=this.plugins[R],N=this.runOnRoot(T);if(g(N))try{await N}catch(w){throw this.handleError(w)}}if(this.prepareVisitors(),this.hasListener){let R=this.result.root;for(;!R[o];){R[o]=!0;let T=[S(R)];for(;T.length>0;){let N=this.visitTick(T);if(g(N))try{await N}catch(w){let D=T[T.length-1].node;throw this.handleError(w,D)}}}if(this.listeners.OnceExit)for(let[T,N]of this.listeners.OnceExit){this.result.lastPlugin=T;try{if(R.type==="document"){let w=R.nodes.map(D=>N(D,this.helpers));await Promise.all(w)}else await N(R,this.helpers)}catch(w){throw this.handleError(w)}}}return this.processed=!0,this.stringify()}runOnRoot(R){this.result.lastPlugin=R;try{if(typeof R=="object"&&R.Once){if(this.result.root.type==="document"){let T=this.result.root.nodes.map(N=>R.Once(N,this.helpers));return g(T[0])?Promise.all(T):T}return R.Once(this.result.root,this.helpers)}else if(typeof R=="function")return R(this.result.root,this.result)}catch(T){throw this.handleError(T)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let R=this.result.opts,T=s;R.syntax&&(T=R.syntax.stringify),R.stringifier&&(T=R.stringifier),T.stringify&&(T=T.stringify);let w=new n(T,this.result.root,this.result.opts).generate();return this.result.css=w[0],this.result.map=w[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let R of this.plugins){let T=this.runOnRoot(R);if(g(T))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let R=this.result.root;for(;!R[o];)R[o]=!0,this.walkSync(R);if(this.listeners.OnceExit)if(R.type==="document")for(let T of R.nodes)this.visitSync(this.listeners.OnceExit,T);else this.visitSync(this.listeners.OnceExit,R)}return this.result}then(R,T){return this.async().then(R,T)}toString(){return this.css}visitSync(R,T){for(let[N,w]of R){this.result.lastPlugin=N;let D;try{D=w(T,this.helpers)}catch(L){throw this.handleError(L,T.proxyOf)}if(T.type!=="root"&&T.type!=="document"&&!T.parent)return!0;if(g(D))throw this.getAsyncError()}}visitTick(R){let T=R[R.length-1],{node:N,visitors:w}=T;if(N.type!=="root"&&N.type!=="document"&&!N.parent){R.pop();return}if(w.length>0&&T.visitorIndex<w.length){let[L,k]=w[T.visitorIndex];T.visitorIndex+=1,T.visitorIndex===w.length&&(T.visitors=[],T.visitorIndex=0),this.result.lastPlugin=L;try{return k(N.toProxy(),this.helpers)}catch(M){throw this.handleError(M,N)}}if(T.iterator!==0){let L=T.iterator,k;for(;k=N.nodes[N.indexes[L]];)if(N.indexes[L]+=1,!k[o]){k[o]=!0,R.push(S(k));return}T.iterator=0,delete N.indexes[L]}let D=T.events;for(;T.eventIndex<D.length;){let L=D[T.eventIndex];if(T.eventIndex+=1,L===m){N.nodes&&N.nodes.length&&(N[o]=!0,T.iterator=N.getIterator());return}else if(this.listeners[L]){T.visitors=this.listeners[L];return}}R.pop()}walkSync(R){R[o]=!0;let T=b(R);for(let N of T)if(N===m)R.nodes&&R.each(w=>{w[o]||this.walkSync(w)});else{let w=this.listeners[N];if(w&&this.visitSync(w,R.toProxy()))return}}warnings(){return this.sync().warnings()}}return x.registerPostcss=C=>{E=C},aR=x,x.default=x,a.registerLazyResult(x),e.registerLazyResult(x),aR}var sR,i4;function yTe(){if(i4)return sR;i4=1;let t=qQ(),e=kk();const n=Pk();let r=oT();class i{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,o=e;try{s=o(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,o,c){o=o.toString(),this.stringified=!1,this._processor=s,this._css=o,this._opts=c,this._map=void 0;let d,f=r;this.result=new n(this._processor,d,this._opts),this.result.css=o;let p=this;Object.defineProperty(this.result,"root",{get(){return p.root}});let m=new t(f,d,this._opts,o);if(m.isMap()){let[g,b]=m.generate();g&&(this.result.css=g),b&&(this.result.map=b)}else m.clearAnnotation(),this.result.css=m.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,o){return this.async().then(s,o)}toString(){return this._css}warnings(){return[]}}return sR=i,i.default=i,sR}var oR,a4;function TTe(){if(a4)return oR;a4=1;let t=Mk(),e=zQ(),n=yTe(),r=U0();class i{constructor(s=[]){this.version="8.5.3",this.plugins=this.normalize(s)}normalize(s){let o=[];for(let c of s)if(c.postcss===!0?c=c():c.postcss&&(c=c.postcss),typeof c=="object"&&Array.isArray(c.plugins))o=o.concat(c.plugins);else if(typeof c=="object"&&c.postcssPlugin)o.push(c);else if(typeof c=="function")o.push(c);else if(!(typeof c=="object"&&(c.parse||c.stringify)))throw new Error(c+" is not a PostCSS plugin");return o}process(s,o={}){return!this.plugins.length&&!o.parser&&!o.stringifier&&!o.syntax?new n(this,s,o):new e(this,s,o)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return oR=i,i.default=i,r.registerProcessor(i),t.registerProcessor(i),oR}var lR,s4;function xTe(){if(s4)return lR;s4=1;var t={};let e=Ik(),n=cT(),r=ah(),i=wk(),a=uT(),s=Mk(),o=vTe(),c=dT(),d=zQ(),f=GQ(),p=lT(),m=kk(),g=TTe(),b=Pk(),S=U0(),y=Lk(),E=oT(),x=$Q();function C(...R){return R.length===1&&Array.isArray(R[0])&&(R=R[0]),new g(R)}return C.plugin=function(T,N){let w=!1;function D(...k){console&&console.warn&&!w&&(w=!0,console.warn(T+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(T+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let M=N(...k);return M.postcssPlugin=T,M.postcssVersion=new g().version,M}let L;return Object.defineProperty(D,"postcss",{get(){return L||(L=D()),L}}),D.process=function(k,M,P){return C([D(P)]).process(k,M)},D},C.stringify=E,C.parse=m,C.fromJSON=o,C.list=f,C.comment=R=>new n(R),C.atRule=R=>new e(R),C.decl=R=>new a(R),C.rule=R=>new y(R),C.root=R=>new S(R),C.document=R=>new s(R),C.CssSyntaxError=i,C.Declaration=a,C.Container=r,C.Processor=g,C.Document=s,C.Comment=n,C.Warning=x,C.AtRule=e,C.Result=b,C.Input=c,C.Rule=y,C.Root=S,C.Node=p,d.registerPostcss(C),lR=C,C.default=C,lR}var cR,o4;function CTe(){if(o4)return cR;o4=1;const t=cTe(),e=uTe(),{isPlainObject:n}=dTe(),r=fTe(),i=pTe(),{parse:a}=xTe(),s=["img","audio","video","picture","svg","object","map","iframe","embed"],o=["script","style"];function c(y,E){y&&Object.keys(y).forEach(function(x){E(y[x],x)})}function d(y,E){return{}.hasOwnProperty.call(y,E)}function f(y,E){const x=[];return c(y,function(C){E(C)&&x.push(C)}),x}function p(y){for(const E in y)if(d(y,E))return!1;return!0}function m(y){return y.map(function(E){if(!E.url)throw new Error("URL missing");return E.url+(E.w?` ${E.w}w`:"")+(E.h?` ${E.h}h`:"")+(E.d?` ${E.d}x`:"")}).join(", ")}cR=b;const g=/^[^\0\t\n\f\r /<=>]+$/;function b(y,E,x){if(y==null)return"";typeof y=="number"&&(y=y.toString());let C="",R="";function T(se,xe){const ce=this;this.tag=se,this.attribs=xe||{},this.tagPosition=C.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(F.length){const je=F[F.length-1];je.text+=ce.text}},this.updateParentNodeMediaChildren=function(){F.length&&s.includes(this.tag)&&F[F.length-1].mediaChildren.push(this.tag)}}E=Object.assign({},b.defaults,E),E.parser=Object.assign({},S,E.parser);const N=function(se){return E.allowedTags===!1||(E.allowedTags||[]).indexOf(se)>-1};o.forEach(function(se){N(se)&&!E.allowVulnerableTags&&console.warn(`

⚠️ Your \`allowedTags\` option includes, \`${se}\`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.

`)});const w=E.nonTextTags||["script","style","textarea","option"];let D,L;E.allowedAttributes&&(D={},L={},c(E.allowedAttributes,function(se,xe){D[xe]=[];const ce=[];se.forEach(function(je){typeof je=="string"&&je.indexOf("*")>=0?ce.push(e(je).replace(/\\\*/g,".*")):D[xe].push(je)}),ce.length&&(L[xe]=new RegExp("^("+ce.join("|")+")$"))}));const k={},M={},P={};c(E.allowedClasses,function(se,xe){if(D&&(d(D,xe)||(D[xe]=[]),D[xe].push("class")),k[xe]=se,Array.isArray(se)){const ce=[];k[xe]=[],P[xe]=[],se.forEach(function(je){typeof je=="string"&&je.indexOf("*")>=0?ce.push(e(je).replace(/\\\*/g,".*")):je instanceof RegExp?P[xe].push(je):k[xe].push(je)}),ce.length&&(M[xe]=new RegExp("^("+ce.join("|")+")$"))}});const V={};let Y;c(E.transformTags,function(se,xe){let ce;typeof se=="function"?ce=se:typeof se=="string"&&(ce=b.simpleTransform(se)),xe==="*"?Y=ce:V[xe]=ce});let G,F,q,z,H,U,Q=!1;te();const X=new t.Parser({onopentag:function(se,xe){if(E.enforceHtmlBoundary&&se==="html"&&te(),H){U++;return}const ce=new T(se,xe);F.push(ce);let je=!1;const rt=!!ce.text;let _t;if(d(V,se)&&(_t=V[se](se,xe),ce.attribs=xe=_t.attribs,_t.text!==void 0&&(ce.innerText=_t.text),se!==_t.tagName&&(ce.name=se=_t.tagName,z[G]=_t.tagName)),Y&&(_t=Y(se,xe),ce.attribs=xe=_t.attribs,se!==_t.tagName&&(ce.name=se=_t.tagName,z[G]=_t.tagName)),(!N(se)||E.disallowedTagsMode==="recursiveEscape"&&!p(q)||E.nestingLimit!=null&&G>=E.nestingLimit)&&(je=!0,q[G]=!0,(E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard")&&w.indexOf(se)!==-1&&(H=!0,U=1),q[G]=!0),G++,je){if(E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard"){if(ce.innerText&&!rt){const Te=ie(ce.innerText);E.textFilter?C+=E.textFilter(Te,se):C+=ie(ce.innerText),Q=!0}return}R=C,C=""}C+="<"+se,se==="script"&&(E.allowedScriptHostnames||E.allowedScriptDomains)&&(ce.innerText=""),(!D||d(D,se)||D["*"])&&c(xe,function(Te,Ne){if(!g.test(Ne)){delete ce.attribs[Ne];return}if(Te===""&&!E.allowedEmptyAttributes.includes(Ne)&&(E.nonBooleanAttributes.includes(Ne)||E.nonBooleanAttributes.includes("*"))){delete ce.attribs[Ne];return}let at=!1;if(!D||d(D,se)&&D[se].indexOf(Ne)!==-1||D["*"]&&D["*"].indexOf(Ne)!==-1||d(L,se)&&L[se].test(Ne)||L["*"]&&L["*"].test(Ne))at=!0;else if(D&&D[se]){for(const ze of D[se])if(n(ze)&&ze.name&&ze.name===Ne){at=!0;let Ze="";if(ze.multiple===!0){const Ye=Te.split(" ");for(const ve of Ye)ze.values.indexOf(ve)!==-1&&(Ze===""?Ze=ve:Ze+=" "+ve)}else ze.values.indexOf(Te)>=0&&(Ze=Te);Te=Ze}}if(at){if(E.allowedSchemesAppliedToAttributes.indexOf(Ne)!==-1&&fe(se,Te)){delete ce.attribs[Ne];return}if(se==="script"&&Ne==="src"){let ze=!0;try{const Ze=Ce(Te);if(E.allowedScriptHostnames||E.allowedScriptDomains){const Ye=(E.allowedScriptHostnames||[]).find(function(Ue){return Ue===Ze.url.hostname}),ve=(E.allowedScriptDomains||[]).find(function(Ue){return Ze.url.hostname===Ue||Ze.url.hostname.endsWith(`.${Ue}`)});ze=Ye||ve}}catch{ze=!1}if(!ze){delete ce.attribs[Ne];return}}if(se==="iframe"&&Ne==="src"){let ze=!0;try{const Ze=Ce(Te);if(Ze.isRelativeUrl)ze=d(E,"allowIframeRelativeUrls")?E.allowIframeRelativeUrls:!E.allowedIframeHostnames&&!E.allowedIframeDomains;else if(E.allowedIframeHostnames||E.allowedIframeDomains){const Ye=(E.allowedIframeHostnames||[]).find(function(Ue){return Ue===Ze.url.hostname}),ve=(E.allowedIframeDomains||[]).find(function(Ue){return Ze.url.hostname===Ue||Ze.url.hostname.endsWith(`.${Ue}`)});ze=Ye||ve}}catch{ze=!1}if(!ze){delete ce.attribs[Ne];return}}if(Ne==="srcset")try{let ze=i(Te);if(ze.forEach(function(Ze){fe("srcset",Ze.url)&&(Ze.evil=!0)}),ze=f(ze,function(Ze){return!Ze.evil}),ze.length)Te=m(f(ze,function(Ze){return!Ze.evil})),ce.attribs[Ne]=Te;else{delete ce.attribs[Ne];return}}catch{delete ce.attribs[Ne];return}if(Ne==="class"){const ze=k[se],Ze=k["*"],Ye=M[se],ve=P[se],Ue=P["*"],Ke=M["*"],yt=[Ye,Ke].concat(ve,Ue).filter(function(Ut){return Ut});if(ze&&Ze?Te=Oe(Te,r(ze,Ze),yt):Te=Oe(Te,ze||Ze,yt),!Te.length){delete ce.attribs[Ne];return}}if(Ne==="style"){if(E.parseStyleAttributes)try{const ze=a(se+" {"+Te+"}",{map:!1}),Ze=Re(ze,E.allowedStyles);if(Te=_e(Ze),Te.length===0){delete ce.attribs[Ne];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+se+" {"+Te+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete ce.attribs[Ne];return}else if(E.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}C+=" "+Ne,Te&&Te.length?C+='="'+ie(Te,!0)+'"':E.allowedEmptyAttributes.includes(Ne)&&(C+='=""')}else delete ce.attribs[Ne]}),E.selfClosing.indexOf(se)!==-1?C+=" />":(C+=">",ce.innerText&&!rt&&!E.textFilter&&(C+=ie(ce.innerText),Q=!0)),je&&(C=R+ie(C),R="")},ontext:function(se){if(H)return;const xe=F[F.length-1];let ce;if(xe&&(ce=xe.tag,se=xe.innerText!==void 0?xe.innerText:se),E.disallowedTagsMode==="completelyDiscard"&&!N(ce))se="";else if((E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard")&&(ce==="script"||ce==="style"))C+=se;else{const je=ie(se,!1);E.textFilter&&!Q?C+=E.textFilter(je,ce):Q||(C+=je)}if(F.length){const je=F[F.length-1];je.text+=se}},onclosetag:function(se,xe){if(H)if(U--,!U)H=!1;else return;const ce=F.pop();if(!ce)return;if(ce.tag!==se){F.push(ce);return}H=E.enforceHtmlBoundary?se==="html":!1,G--;const je=q[G];if(je){if(delete q[G],E.disallowedTagsMode==="discard"||E.disallowedTagsMode==="completelyDiscard"){ce.updateParentNodeText();return}R=C,C=""}if(z[G]&&(se=z[G],delete z[G]),E.exclusiveFilter&&E.exclusiveFilter(ce)){C=C.substr(0,ce.tagPosition);return}if(ce.updateParentNodeMediaChildren(),ce.updateParentNodeText(),E.selfClosing.indexOf(se)!==-1||xe&&!N(se)&&["escape","recursiveEscape"].indexOf(E.disallowedTagsMode)>=0){je&&(C=R,R="");return}C+="</"+se+">",je&&(C=R+ie(C),R=""),Q=!1}},E.parser);return X.write(y),X.end(),C;function te(){C="",G=0,F=[],q={},z={},H=!1,U=0}function ie(se,xe){return typeof se!="string"&&(se=se+""),E.parser.decodeEntities&&(se=se.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),xe&&(se=se.replace(/"/g,"&quot;"))),se=se.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),xe&&(se=se.replace(/"/g,"&quot;")),se}function fe(se,xe){for(xe=xe.replace(/[\x00-\x20]+/g,"");;){const rt=xe.indexOf("<!--");if(rt===-1)break;const _t=xe.indexOf("-->",rt+4);if(_t===-1)break;xe=xe.substring(0,rt)+xe.substring(_t+3)}const ce=xe.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!ce)return xe.match(/^[/\\]{2}/)?!E.allowProtocolRelative:!1;const je=ce[1].toLowerCase();return d(E.allowedSchemesByTag,se)?E.allowedSchemesByTag[se].indexOf(je)===-1:!E.allowedSchemes||E.allowedSchemes.indexOf(je)===-1}function Ce(se){if(se=se.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),se.startsWith("relative:"))throw new Error("relative: exploit attempt");let xe="relative://relative-site";for(let rt=0;rt<100;rt++)xe+=`/${rt}`;const ce=new URL(se,xe);return{isRelativeUrl:ce&&ce.hostname==="relative-site"&&ce.protocol==="relative:",url:ce}}function Re(se,xe){if(!xe)return se;const ce=se.nodes[0];let je;return xe[ce.selector]&&xe["*"]?je=r(xe[ce.selector],xe["*"]):je=xe[ce.selector]||xe["*"],je&&(se.nodes[0].nodes=ce.nodes.reduce(Ie(je),[])),se}function _e(se){return se.nodes[0].nodes.reduce(function(xe,ce){return xe.push(`${ce.prop}:${ce.value}${ce.important?" !important":""}`),xe},[]).join(";")}function Ie(se){return function(xe,ce){return d(se,ce.prop)&&se[ce.prop].some(function(rt){return rt.test(ce.value)})&&xe.push(ce),xe}}function Oe(se,xe,ce){return xe?(se=se.split(/\s+/),se.filter(function(je){return xe.indexOf(je)!==-1||ce.some(function(rt){return rt.test(je)})}).join(" ")):se}}const S={decodeEntities:!0};return b.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},b.simpleTransform=function(y,E,x){return x=x===void 0?!0:x,E=E||{},function(C,R){let T;if(x)for(T in E)R[T]=E[T];else R=E;return{tagName:y,attribs:R}}},cR}var OTe=CTe();const RTe=nl(OTe);var pt=(t=>(t.aggregation="aggregation",t.binaryExpr="binaryExpr",t.call="call",t.matrixSelector="matrixSelector",t.subquery="subquery",t.numberLiteral="numberLiteral",t.parenExpr="parenExpr",t.stringLiteral="stringLiteral",t.unaryExpr="unaryExpr",t.vectorSelector="vectorSelector",t.placeholder="placeholder",t))(pt||{}),Vt=(t=>(t.add="+",t.sub="-",t.mul="*",t.div="/",t.mod="%",t.pow="^",t.eql="==",t.neq="!=",t.gtr=">",t.lss="<",t.gte=">=",t.lte="<=",t.and="and",t.or="or",t.unless="unless",t.atan2="atan2",t))(Vt||{});const NTe=["==","!=",">","<",">=","<="],ATe=["and","or","unless"];var Wr=(t=>(t.oneToOne="one-to-one",t.manyToOne="many-to-one",t.oneToMany="one-to-many",t.manyToMany="many-to-many",t))(Wr||{}),ue=(t=>(t.none="none",t.vector="vector",t.scalar="scalar",t.matrix="matrix",t.string="string",t))(ue||{}),io=(t=>(t.equal="=",t.notEqual="!=",t.matchRegexp="=~",t.matchNotRegexp="!~",t))(io||{});const ad=t=>t.replace(/([\\"])/g,"\\$1"),Bk=t=>NTe.includes(t),iI=t=>ATe.includes(t),l4={[Vt.add]:3,[Vt.sub]:3,[Vt.mul]:2,[Vt.div]:2,[Vt.mod]:2,[Vt.pow]:1,[Vt.eql]:4,[Vt.neq]:4,[Vt.gtr]:4,[Vt.lss]:4,[Vt.gte]:4,[Vt.lte]:4,[Vt.and]:5,[Vt.or]:6,[Vt.unless]:5,[Vt.atan2]:2},NE=(t,e)=>e.type!==pt.binaryExpr||l4[t]>l4[e.op]?e:{type:pt.parenExpr,expr:e},wTe=t=>{switch(t.type){case pt.aggregation:return t.param===null?[t.expr]:[t.param,t.expr];case pt.subquery:return[t.expr];case pt.parenExpr:return[t.expr];case pt.call:return t.args;case pt.matrixSelector:case pt.vectorSelector:case pt.numberLiteral:case pt.stringLiteral:return[];case pt.placeholder:return t.children;case pt.unaryExpr:return[t.expr];case pt.binaryExpr:return[t.lhs,t.rhs];default:throw new Error("unsupported node type")}},tp=t=>{switch(t.type){case pt.aggregation:return ue.vector;case pt.binaryExpr:{const e=[tp(t.lhs),tp(t.rhs)];return e.includes(null)?null:e.includes(ue.vector)?ue.vector:ue.scalar}case pt.call:return t.func.returnType;case pt.matrixSelector:return ue.matrix;case pt.numberLiteral:return ue.scalar;case pt.parenExpr:return tp(t.expr);case pt.placeholder:return null;case pt.stringLiteral:return ue.string;case pt.subquery:return ue.matrix;case pt.unaryExpr:return tp(t.expr);case pt.vectorSelector:return ue.vector;default:throw new Error("invalid node type")}},DTe=["topk","bottomk","quantile","count_values","limitk","limit_ratio"];ue.scalar,ue.string,ue.matrix,ue.vector;ue.none+"",ue.string+"",ue.scalar+"",ue.vector+"",ue.matrix+"";const ITe=/^[a-zA-Z_:][a-zA-Z0-9_:]*$/,MTe=/^[a-zA-Z_][a-zA-Z0-9_]*$/,fT=t=>t!==""&&!ITe.test(t),LTe=t=>!MTe.test(t),Xi=t=>t.replace(/([\\"])/g,"\\$1"),_d=t=>LTe(t)?`"${Xi(t)}"`:t,Ug=t=>t.map(e=>_d(e)).join(", "),YQ=(t,e,n)=>`${t!==null?` @ ${(t/1e3).toFixed(3)}`:e!==null?` @ ${e}()`:""}${n===0?"":n>0?` offset ${Nn(n)}`:` offset -${Nn(-n)}`}`,c4=t=>{var s;const e=t.matchers.filter(o=>!(o.name==="__name__"&&o.type===io.equal)).map(o=>`${_d(o.name)}${o.type}"${Xi(o.value)}"`),n=t.name||((s=t.matchers.find(o=>o.name==="__name__"&&o.type===io.equal))==null?void 0:s.value)||"",r=fT(n);r&&e.unshift(`"${Xi(n)}"`);const i=t.type===pt.matrixSelector?`[${Nn(t.range)}]`:"",a=YQ(t.timestamp,t.startOrEnd,t.offset);return`${r?"":n}${e.length>0?`{${e.join(",")}}`:""}${i}${a}`},Ki=(t,e=0,n=!1,r=!0)=>{const i=n?`
`:"",a=n?`
`:" ",s=e+2,o=n?" ".repeat(e):"",c=r?o:"";switch(t.type){case pt.aggregation:return`${c}${t.op}${t.without?` without(${Ug(t.grouping)}) `:t.grouping.length>0?` by(${Ug(t.grouping)}) `:""}(${i}${DTe.includes(t.op)&&t.param!==null?`${Ki(t.param,s,n)},${a}`:""}${Ki(t.expr,s,n)}${i}${o})`;case pt.subquery:return`${c}${Ki(t.expr,e,n)}[${Nn(t.range)}:${t.step!==0?Nn(t.step):""}]${YQ(t.timestamp,t.startOrEnd,t.offset)}`;case pt.parenExpr:return`${c}(${i}${Ki(t.expr,s,n)}${i}${o})`;case pt.call:{const d=t.args.length>0?i:"";return`${c}${t.func.name}(${d}${t.args.map(f=>Ki(f,s,n)).join(","+a)}${d}${t.args.length>0?o:""})`}case pt.matrixSelector:return`${c}${c4(t)}`;case pt.vectorSelector:return`${c}${c4(t)}`;case pt.numberLiteral:return`${c}${t.val}`;case pt.stringLiteral:return`${c}"${Xi(t.val)}"`;case pt.unaryExpr:return`${c}${t.op}${Ki(t.expr,e,n,!1)}`;case pt.binaryExpr:{let d="",f="";const p=t.matching;return p!==null&&(p.labels.length>0||p.on)&&(p.on?d=` on(${Ug(p.labels)})`:d=` ignoring(${Ug(p.labels)})`,(p.card===Wr.manyToOne||p.card===Wr.oneToMany)&&(f=` group_${p.card===Wr.manyToOne?"left":"right"}(${Ug(p.include)})`)),`${Ki(NE(t.op,t.lhs),s,n)}${a}${o}${t.op}${t.bool?" bool":""}${d}${f}${a}${Ki(NE(t.op,t.rhs),s,n)}`}case pt.placeholder:return`${c}…${t.children.length>0?`(${i}${t.children.map(d=>Ki(d,s,n)).join(","+a)}${i}${o})`:""}`;default:throw new Error("unsupported node type")}},Fa=t=>t.map((e,n)=>l.jsxs("span",{children:[n!==0&&", ",l.jsx("span",{className:"promql-code promql-label-name",children:_d(e)})]},n)),HQ=(t,e,n)=>l.jsxs(l.Fragment,{children:[t!==null?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-operator",children:"@"})," ",l.jsx("span",{className:"promql-number",children:(t/1e3).toFixed(3)})]}):e!==null?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-operator",children:"@"})," ",l.jsx("span",{className:"promql-keyword",children:e}),l.jsx("span",{className:"promql-paren",children:"("}),l.jsx("span",{className:"promql-paren",children:")"})]}):l.jsx(l.Fragment,{}),n===0?l.jsx(l.Fragment,{}):n>0?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"offset"})," ",l.jsx("span",{className:"promql-duration",children:Nn(n)})]}):l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"offset"})," ",l.jsxs("span",{className:"promql-duration",children:["-",Nn(-n)]})]})]}),u4=t=>{var i;const e=[],n=t.name||((i=t.matchers.find(a=>a.name==="__name__"&&a.type===io.equal))==null?void 0:i.value)||"",r=fT(n);return r&&e.push(l.jsx("span",{children:l.jsxs("span",{className:"promql-string",children:['"',Xi(n),'"']})},"__name__")),e.push(...t.matchers.filter(a=>!(a.name==="__name__"&&a.type===io.equal)).map((a,s)=>l.jsxs("span",{children:[(s!==0||r)&&",",l.jsx("span",{className:"promql-label-name",children:_d(a.name)}),a.type,l.jsxs("span",{className:"promql-string",children:['"',Xi(a.value),'"']})]},s))),l.jsxs(l.Fragment,{children:[!r&&l.jsx("span",{className:"promql-metric-name",children:n}),e.length>0&&l.jsxs(l.Fragment,{children:["{",l.jsx("span",{className:"promql-metric-name",children:e}),"}"]}),t.type===pt.matrixSelector&&l.jsxs(l.Fragment,{children:["[",l.jsx("span",{className:"promql-duration",children:Nn(t.range)}),"]"]}),HQ(t.timestamp,t.startOrEnd,t.offset)]})},uR=l.jsx("span",{className:"promql-ellipsis",children:"…"}),kTe=(t,e,n)=>{if(n===0)return uR;const r=n===void 0?void 0:n-1;switch(t.type){case pt.aggregation:return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-keyword",children:t.op}),t.without?l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"without"}),l.jsx("span",{className:"promql-paren",children:"("}),Fa(t.grouping),l.jsx("span",{className:"promql-paren",children:")"})," "]}):t.grouping.length>0&&l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"by"}),l.jsx("span",{className:"promql-paren",children:"("}),Fa(t.grouping),l.jsx("span",{className:"promql-paren",children:")"})," "]}),e&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-paren",children:"("}),t.param!==null&&l.jsxs(l.Fragment,{children:[Do(t.param,e,r),", "]}),Do(t.expr,e,r),l.jsx("span",{className:"promql-paren",children:")"})]})]});case pt.subquery:return l.jsxs(l.Fragment,{children:[e&&Do(t.expr,e,r),"[",l.jsx("span",{className:"promql-duration",children:Nn(t.range)}),":",t.step!==0&&l.jsx("span",{className:"promql-duration",children:Nn(t.step)}),"]",HQ(t.timestamp,t.startOrEnd,t.offset)]});case pt.parenExpr:return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-paren",children:"("}),e&&Do(t.expr,e,r),l.jsx("span",{className:"promql-paren",children:")"})]});case pt.call:{const i=r===void 0||r>0?t.args.map((a,s)=>l.jsxs("span",{children:[s!==0&&", ",Do(a,e)]},s)):t.args.length>0?uR:"";return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-keyword",children:t.func.name}),e&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-paren",children:"("}),i,l.jsx("span",{className:"promql-paren",children:")"})]})]})}case pt.matrixSelector:return u4(t);case pt.vectorSelector:return u4(t);case pt.numberLiteral:return l.jsx("span",{className:"promql-number",children:t.val});case pt.stringLiteral:return l.jsxs("span",{className:"promql-string",children:['"',Xi(t.val),'"']});case pt.unaryExpr:return l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"promql-operator",children:t.op}),e&&Do(t.expr,e,r)]});case pt.binaryExpr:{let i=l.jsx(l.Fragment,{}),a=l.jsx(l.Fragment,{});const s=t.matching;return s!==null&&(s.labels.length>0||s.on)&&(s.on?i=l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"on"}),l.jsx("span",{className:"promql-paren",children:"("}),Fa(s.labels),l.jsx("span",{className:"promql-paren",children:")"})]}):i=l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"ignoring"}),l.jsx("span",{className:"promql-paren",children:"("}),Fa(s.labels),l.jsx("span",{className:"promql-paren",children:")"})]}),(s.card===Wr.manyToOne||s.card===Wr.oneToMany)&&(a=l.jsxs(l.Fragment,{children:[l.jsxs("span",{className:"promql-keyword",children:[" ","group_",s.card===Wr.manyToOne?"left":"right"]}),l.jsx("span",{className:"promql-paren",children:"("}),Fa(s.include),l.jsx("span",{className:"promql-paren",children:")"})]}))),l.jsxs(l.Fragment,{children:[e&&Do(NE(t.op,t.lhs),e,r)," ",["atan2","and","or","unless"].includes(t.op)?l.jsx("span",{className:"promql-keyword",children:t.op}):l.jsx("span",{className:"promql-operator",children:t.op}),t.bool&&l.jsxs(l.Fragment,{children:[" ",l.jsx("span",{className:"promql-keyword",children:"bool"})]}),i,a," ",e&&Do(NE(t.op,t.rhs),e,r)]})}case pt.placeholder:return uR;default:throw new Error("unsupported node type")}},Do=(t,e,n)=>l.jsx("span",{className:"promql-code",children:kTe(t,e,n)}),PTe="_labelValue_1cwwq_1",BTe="_promqlPill_1cwwq_13",dR={labelValue:PTe,promqlPill:BTe},Ua={width:me(16),height:me(16)},Lv={width:me(14),height:me(14)},Ac={width:ss(17),height:ss(17)},Zp={width:"70%",height:"70%"},Rm={width:ss(16),height:ss(16)},n_={width:ss(20),height:ss(20)},FTe={width:ss(17.5),height:ss(17.5)},AE={width:ss(16),height:ss(16)};me(20),me(20);const UTe=({metricName:t,insertText:e,hideLabelsExplorer:n})=>{const[r,i]=I.useState([]),[a,s]=I.useState([]),[o,c]=I.useState(null),[d,f]=I.useState(!0),p=T=>{s(a.filter(N=>N.name!==T))},m=()=>{if(o===null)throw new Error("tried to add null label matcher");s([...a,o]),c(null)},g=T=>l.jsx(wc,{size:"md",withRemoveButton:!0,onRemove:()=>{p(T.name)},className:dR.promqlPill,children:l.jsxs("span",{className:"promql-code",children:[l.jsx("span",{className:"promql-label-name",children:T.name}),T.type,l.jsxs("span",{className:"promql-string",children:['"',ad(T.value),'"']})]})},T.name),b={type:pt.vectorSelector,name:t,matchers:a,offset:0,timestamp:null,startOrEnd:null},{data:S,error:y,isLoading:E}=md({path:"/series",params:{"match[]":Ki(b)}}),[x,C,R]=I.useMemo(()=>{const T={},N={},w={};S!==void 0&&(S.data.forEach(L=>{Object.entries(L).forEach(([k,M])=>{k!=="__name__"&&(k in w?M in w[k]?w[k][M]++:w[k][M]=1:w[k]={[M]:1})})}),Object.entries(w).forEach(([L,k])=>{T[L]=Object.keys(k).length,N[L]=Object.entries(k).sort(([,M],[,P])=>P-M).map(([M,P])=>({value:M,count:P}))}));const D=Object.entries(T).sort((L,k)=>d?k[1]-L[1]:0);return[S==null?void 0:S.data.length,D,N]},[S,d]);return y?l.jsxs(Lt,{color:"red",title:"Error querying series",icon:l.jsx(na,{}),children:[l.jsx("strong",{children:"Error:"})," ",y.message]}):l.jsxs(Mn,{fz:"sm",children:[l.jsxs(Mn,{style:{overflow:"auto"},children:[l.jsxs(mt,{align:"center",mt:"lg",wrap:"nowrap",children:[l.jsx(Se,{w:70,fw:700,style:{flexShrink:0},children:"Selector:"}),l.jsx(wc.Group,{children:l.jsx(wc,{size:"md",className:dR.promqlPill,children:l.jsx("span",{style:{wordBreak:"break-word",whiteSpace:"pre"},children:Do(b,!1)})})}),l.jsxs(mt,{wrap:"nowrap",children:[l.jsx(Ea,{variant:"light",size:"xs",onClick:()=>e(Ki(b)),leftSection:l.jsx(mH,{style:n_}),title:"Insert selector at cursor and close explorer",children:"Insert"}),l.jsx(BM,{value:Ki(b),children:({copied:T,copy:N})=>l.jsx(Ea,{variant:"light",size:"xs",leftSection:T?l.jsx(Woe,{style:n_}):l.jsx(gH,{style:n_}),onClick:N,title:"Copy selector to clipboard",children:"Copy"})})]})]}),l.jsxs(mt,{align:"center",children:[l.jsx(Se,{w:70,fw:700,style:{flexShrink:0},children:"Filters:"}),a.length>0?l.jsx(wc.Group,{children:a.map(T=>g(T))}):l.jsx(l.Fragment,{children:"No label filters"})]}),l.jsxs(mt,{style:{display:"flex",alignItems:"center",marginBottom:25},children:[l.jsx(Se,{w:70,fw:700,style:{flexShrink:0},children:"Results:"}),l.jsx(l.Fragment,{children:x!==void 0?`${x} series`:"loading..."})]})]}),l.jsxs(mt,{justify:"space-between",children:[l.jsx(Se,{children:l.jsx(Ea,{variant:"light",size:"xs",onClick:n,leftSection:l.jsx($oe,{style:n_}),children:"Back to all metrics"})}),l.jsx(E0,{w:"fit-content",size:"xs",value:d?"cardinality":"alphabetic",onChange:T=>f(T==="cardinality"),data:[{label:"By cardinality",value:"cardinality"},{label:"Alphabetic",value:"alphabetic"}]})]}),E?l.jsx(Se,{mt:"lg",children:Array.from(Array(10),(T,N)=>l.jsx(Zo,{height:40,mb:15,width:"100%"},N))}):l.jsxs(ae,{fz:"sm",children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{children:"Label"}),l.jsx(ae.Th,{children:"Values"})]})}),l.jsx(ae.Tbody,{children:C.map(([T,N])=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{w:"50%",children:l.jsx("form",{onSubmit:w=>{w.preventDefault()},children:l.jsxs(mt,{justify:"space-between",align:"baseline",children:[l.jsx("span",{className:"promql-code promql-label-name",children:T}),a.some(w=>w.name===T)?g(a.find(w=>w.name===T)):(o==null?void 0:o.name)===T?l.jsxs(mt,{wrap:"nowrap",gap:"xs",children:[l.jsx(vm,{size:"xs",w:50,style:{width:"auto"},value:o.type,data:Object.values(io).map(w=>({value:w,label:w})),onChange:(w,D)=>c({...o,type:D.value})}),l.jsx(DM,{value:o.value,size:"xs",placeholder:"label value",onChange:w=>c({...o,value:w}),data:R[T].map(w=>w.value),autoFocus:!0}),l.jsx(Ea,{variant:"secondary",size:"xs",onClick:()=>m(),style:{flexShrink:0},children:"Apply"}),l.jsx(Ea,{variant:"light",w:40,size:"xs",onClick:()=>c(null),title:"Cancel",style:{flexShrink:0},children:l.jsx(ble,{style:{width:me(18),height:me(18)}})})]}):l.jsx(Ea,{variant:"light",size:"xs",mr:"xs",onClick:()=>c({name:T,type:io.equal,value:""}),children:"Filter..."})]})})}),l.jsxs(ae.Td,{w:"50%",children:[l.jsxs(ht,{fw:700,fz:"sm",my:"xs",children:[N," value",N>1&&"s"]}),l.jsxs(mr,{size:"sm",listStyleType:"none",children:[(r.includes(T)?R[T]:R[T].slice(0,5)).map(({value:w,count:D})=>l.jsxs(mr.Item,{children:[l.jsxs("span",{className:`${dR.labelValue} promql-code promql-string`,onClick:()=>{s([...a.filter(L=>L.name!==T),{name:T,type:io.equal,value:w}]),c(null)},title:"Click to filter by value",children:['"',ad(w),'"']})," ","(",D," series)"]},w)),r.includes(T)?l.jsx(mr.Item,{my:"xs",children:l.jsx(Ei,{size:"sm",href:"#",onClick:w=>{w.preventDefault(),i(r.filter(D=>D!=T))},children:"Hide full values"})}):R[T].length>5&&l.jsx(mr.Item,{my:"xs",children:l.jsxs(Ei,{size:"sm",href:"#",onClick:w=>{w.preventDefault(),i([...r,T])},children:["Show ",R[T].length-5," more values..."]})})]})]})]},T))})]})]})},jTe="_typeLabel_u9odf_1",GTe="_helpLabel_u9odf_5",d4={typeLabel:jTe,helpLabel:GTe};/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var aI=function(t,e){return aI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},aI(t,e)};function qTe(t,e){aI(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var g_=function(){return g_=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},g_.apply(this,arguments)};function $Te(t,e,n,r){var i,a=!1,s=0;function o(){i&&clearTimeout(i)}function c(){o(),a=!0}typeof e!="boolean"&&(r=n,n=e,e=void 0);function d(){var f=this,p=Date.now()-s,m=arguments;if(a)return;function g(){s=Date.now(),n.apply(f,m)}function b(){i=void 0}r&&!i&&g(),o(),r===void 0&&p>t?g():e!==!0&&(i=setTimeout(r?b:g,r===void 0?t-p:t))}return d.cancel=c,d}var gp={Pixel:"Pixel",Percent:"Percent"},f4={unit:gp.Percent,value:.8};function h4(t){return typeof t=="number"?{unit:gp.Percent,value:t*100}:typeof t=="string"?t.match(/^(\d*(\.\d+)?)px$/)?{unit:gp.Pixel,value:parseFloat(t)}:t.match(/^(\d*(\.\d+)?)%$/)?{unit:gp.Percent,value:parseFloat(t)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),f4):(console.warn("scrollThreshold should be string or number"),f4)}var zTe=function(t){qTe(e,t);function e(n){var r=t.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might
        happen because the element may not have been added to DOM yet.
        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
      `),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY<r.startY)&&(r.currentY-r.startY>=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var a=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var s=r.props.inverse?r.isElementAtTop(a,r.props.scrollThreshold):r.isElementAtBottom(a,r.props.scrollThreshold);s&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=a.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=$Te(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return e.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing.
          Pull Down To Refresh functionality will not work
          as expected. Check README.md for usage'`)},e.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},e.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},e.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?g_(g_({},r),{prevDataLength:n.dataLength}):null},e.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=h4(r);return a.unit===gp.Pixel?n.scrollTop<=a.value+i-n.scrollHeight+1:n.scrollTop<=a.value/100+i-n.scrollHeight+1},e.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,a=h4(r);return a.unit===gp.Pixel?n.scrollTop+i>=n.scrollHeight-a.value:n.scrollTop+i>=a.value/100*n.scrollHeight},e.prototype.render=function(){var n=this,r=g_({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),a=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return xn.createElement("div",{style:a,className:"infinite-scroll-component__outerdiv"},xn.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(s){return n._infScroll=s},style:r},this.props.pullDownToRefresh&&xn.createElement("div",{style:{position:"relative"},ref:function(s){return n._pullDown=s}},xn.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},e}(I.Component);const jg=50,j0=({allItems:t,child:e})=>{const[n,r]=I.useState(t.slice(0,50)),[i,a]=I.useState(jg),[s,o]=I.useState(t.length>jg),c=e;I.useEffect(()=>{r(t.slice(0,jg)),o(t.length>jg)},[t]);const d=()=>{if(n.length===t.length)o(!1);else{const f=i+jg;a(f),r(t.slice(0,f))}};return l.jsx(zTe,{next:d,hasMore:s,loader:l.jsx("h4",{children:"loading..."}),dataLength:n.length,height:n.length>25?"75vh":"",children:l.jsx(c,{items:n})})},YTe=new MQ({pre:'<b style="color: rgb(0, 102, 191)">',post:"</b>",shouldSort:!0}),HTe={allowedTags:["b"],allowedAttributes:{b:["style"]}},VTe=(t,e)=>YTe.filter(t.replace(/ /g,""),e,{pre:'<b style="color: rgb(0, 102, 191)">',post:"</b>"}),WTe=({metricNames:t,insertText:e,close:n})=>{const{data:r}=Fi({path:"/metadata"}),[i,a]=I.useState(null),[s,o]=I.useState(""),[c]=FE(s,250),d=I.useMemo(()=>c===""?t.map(p=>({original:p,rendered:p})):VTe(c,t),[c,t]),f=p=>r.data[p.replace(/(_count|_sum|_bucket)$/,"")]||[{help:"unknown",type:"unknown",unit:"unknown"}];return i!==null?l.jsx(UTe,{metricName:i,insertText:p=>{e(p),n()},hideLabelsExplorer:()=>a(null)}):l.jsxs(Mn,{children:[l.jsx(Wc,{title:"Filter by text",placeholder:"Enter text to filter metric names by...",value:s,onChange:p=>o(p.target.value),autoFocus:!0}),l.jsx(j0,{allItems:d,child:({items:p})=>l.jsxs(ae,{children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{children:"Metric"}),l.jsx(ae.Th,{children:"Type"}),l.jsx(ae.Th,{children:"Help"})]})}),l.jsx(ae.Tbody,{children:p.map(m=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:l.jsxs(mt,{justify:"space-between",wrap:"nowrap",children:[c===""?m.original:l.jsx("div",{dangerouslySetInnerHTML:{__html:RTe(m.rendered,HTe)}}),l.jsxs(mt,{gap:"xs",children:[l.jsx(jr,{size:"sm",color:"gray",variant:"light",title:"Explore metric",onClick:()=>{a(m.original)},children:l.jsx(vle,{style:{width:"70%",height:"70%"},stroke:1.5})}),l.jsx(jr,{size:"sm",color:"gray",variant:"light",title:"Insert at cursor and close explorer",onClick:()=>{e(m.original),n()},children:l.jsx(mH,{style:{width:"70%",height:"70%"},stroke:1.5})}),l.jsx(jr,{size:"sm",color:"gray",variant:"light",title:"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(m.original)},children:l.jsx(gH,{style:{width:"70%",height:"70%"},stroke:1.5})})]})]})}),l.jsx(ae.Td,{px:"lg",children:f(m.original).map((g,b)=>l.jsxs(xn.Fragment,{children:[l.jsx("span",{className:d4.typeLabel,children:g.type}),l.jsx("br",{})]},b))}),l.jsx(ae.Td,{children:f(m.original).map((g,b)=>l.jsxs(xn.Fragment,{children:[l.jsx("span",{className:d4.helpLabel,children:g.help}),l.jsx("br",{})]},b))})]},m.original))})]})})]})};class QTe extends I.Component{constructor(){super(...arguments);In(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.error!==null?l.jsxs(Lt,{color:"red",title:this.props.title||"Error querying page data",icon:l.jsx(na,{}),maw:500,mx:"auto",mt:"lg",children:[l.jsx("strong",{children:"Error:"})," ",this.state.error.message]}):this.props.children}}const Jp=t=>{const e=Vl();return l.jsx(QTe,{title:t.title,children:t.children},e.pathname)},p4=new AW;class KTe{constructor(e,n){In(this,"complete");In(this,"queryHistory");this.complete=e,this.queryHistory=n}promQL(e){return Promise.resolve(this.complete.promQL(e)).then(n=>{const{state:r,pos:i}=e,a=Ti(r).resolve(i,-1),s=n!=null?n.from:a.from;if(s!==0)return n;const o={from:s,to:i,options:this.queryHistory.map(c=>({label:c.length<80?c:c.slice(0,76).concat("..."),detail:"past query",apply:c,info:c.length<80?void 0:c})),validFor:/^[a-zA-Z0-9_:]+$/};return n!==null&&(o.options=o.options.concat(n.options)),o})}}const XTe=({initialExpr:t,metricNames:e,executeQuery:n,removePanel:r,treeShown:i,setShowTree:a})=>{const s=II(),{queryHistory:o}=Wl(N=>N.queryPage),{pathPrefix:c,enableAutocomplete:d,enableSyntaxHighlighting:f,enableLinter:p,enableQueryHistory:m}=yi(),[g,b]=I.useState(t);I.useEffect(()=>{b(t)},[t]);const{data:S,error:y,isFetching:E,refetch:x}=md({path:"/format_query",params:{query:g},enabled:!1});I.useEffect(()=>{if(y){Qo.show({color:"red",title:"Error formatting query",message:y.message});return}S&&(b(S.data),Qo.show({title:"Expression formatted",message:"Expression formatted successfully!"}))},[S,y]);const C=I.useRef(null),[R,T]=I.useState(!1);return I.useEffect(()=>{p4.activateCompletion(d).activateLinter(p).setComplete({completeStrategy:new KTe(YD({remote:{url:c,cache:{initialMetricList:e}}}),m?o:[])})},[c,e,d,p,m,o]),l.jsxs(mt,{align:"flex-start",wrap:"nowrap",gap:"xs",children:[l.jsx(cs,{leftSection:E?l.jsx(ql,{size:"xs",color:"gray.5"}):l.jsx(ple,{}),rightSection:l.jsxs(hr,{shadow:"md",width:200,children:[l.jsx(hr.Target,{children:l.jsx(jr,{size:"lg",variant:"transparent",color:"gray","aria-label":"Show query options",children:l.jsx(tle,{style:Rm})})}),l.jsxs(hr.Dropdown,{children:[l.jsx(hr.Label,{children:"Query options"}),l.jsx(hr.Item,{leftSection:l.jsx(th,{style:Lv}),onClick:()=>T(!0),children:"Explore metrics"}),l.jsx(hr.Item,{leftSection:l.jsx(qoe,{style:Lv}),onClick:()=>x(),disabled:E||g===""||g===(S==null?void 0:S.data),children:"Format expression"}),l.jsxs(hr.Item,{leftSection:l.jsx(Yoe,{style:Lv}),onClick:()=>a(!i),children:[i?"Hide":"Show"," tree view"]}),l.jsx(hr.Item,{color:"red",leftSection:l.jsx(gle,{style:Lv}),onClick:r,children:"Remove query"})]})]}),component:Nk,className:Cye.input,basicSetup:!1,value:g,onChange:b,autoFocus:!0,ref:C,extensions:[yQ,M7(),MW(),ln.allowMultipleSelections.of(!0),q7(),eW(),lW(),hW(),mQ(),et.lineWrapping,rd.of([...dW,...dQ,...BW,...bk,...CW]),L7("Enter expression (press Shift+Enter for newlines)"),f?tT(s==="light"?xQ:CQ):[],p4.asExtension(),s==="light"?TQ:Tye,rd.of([{key:"Escape",run:N=>(N.contentDOM.blur(),!1)}]),Kc.highest(rd.of([{key:"Enter",run:()=>(n(g),!0)},{key:"Shift-Enter",run:oQ}]))],multiline:!0}),l.jsx(Ea,{variant:"primary",onClick:()=>n(g),style:{flexShrink:0},children:"Execute"}),l.jsx(po,{size:"95%",opened:R,onClose:()=>T(!1),title:"Explore metrics",children:l.jsx(Jp,{title:"Error showing metrics",children:l.jsx(I.Suspense,{fallback:l.jsx(Se,{mt:"lg",children:Array.from(Array(20),(N,w)=>l.jsx(Zo,{height:30,mb:15,width:"100%"},w))}),children:l.jsx(WTe,{metricNames:e,insertText:N=>{if(C.current&&C.current.view){const w=C.current.view;w.dispatch(w.state.update({changes:{from:w.state.selection.ranges[0].from,to:w.state.selection.ranges[0].to,insert:N}}))}},close:()=>T(!1)})})},location.pathname)})]})},ZTe="_chartWrapper_apsqz_1",JTe="_uplotChart_apsqz_7",VQ={chartWrapper:ZTe,uplotChart:JTe};var SS={exports:{}};const exe=!0,xi="u-",txe="uplot",nxe=xi+"hz",rxe=xi+"vt",ixe=xi+"title",axe=xi+"wrap",sxe=xi+"under",oxe=xi+"over",lxe=xi+"axis",gf=xi+"off",cxe=xi+"select",uxe=xi+"cursor-x",dxe=xi+"cursor-y",fxe=xi+"cursor-pt",hxe=xi+"legend",pxe=xi+"live",mxe=xi+"inline",gxe=xi+"series",_xe=xi+"marker",m4=xi+"label",bxe=xi+"value",r_="width",i_="height",Gg="top",g4="bottom",$h="left",fR="right",Fk="#000",_4=Fk+"0",b4="mousemove",v4="mousedown",hR="mouseup",S4="mouseenter",E4="mouseleave",y4="dblclick",vxe="resize",Sxe="scroll",T4="change",wE="dppxchange",Uk="--",Nm=typeof window<"u",sI=Nm?document:null,_p=Nm?window:null,Exe=Nm?navigator:null;let Tn,kv;function oI(){let t=devicePixelRatio;Tn!=t&&(Tn=t,kv&&cI(T4,kv,oI),kv=matchMedia(`(min-resolution: ${Tn-.001}dppx) and (max-resolution: ${Tn+.001}dppx)`),Gf(T4,kv,oI),_p.dispatchEvent(new CustomEvent(wE)))}function Ss(t,e){if(e!=null){let n=t.classList;!n.contains(e)&&n.add(e)}}function lI(t,e){let n=t.classList;n.contains(e)&&n.remove(e)}function dr(t,e,n){t.style[e]=n+"px"}function Ao(t,e,n,r){let i=sI.createElement(t);return e!=null&&Ss(i,e),n!=null&&n.insertBefore(i,r),i}function Qs(t,e){return Ao("div",t,e)}const x4=new WeakMap;function yl(t,e,n,r,i){let a="translate("+e+"px,"+n+"px)",s=x4.get(t);a!=s&&(t.style.transform=a,x4.set(t,a),e<0||n<0||e>r||n>i?Ss(t,gf):lI(t,gf))}const C4=new WeakMap;function O4(t,e,n){let r=e+n,i=C4.get(t);r!=i&&(C4.set(t,r),t.style.background=e,t.style.borderColor=n)}const R4=new WeakMap;function N4(t,e,n,r){let i=e+""+n,a=R4.get(t);i!=a&&(R4.set(t,i),t.style.height=n+"px",t.style.width=e+"px",t.style.marginLeft=r?-e/2+"px":0,t.style.marginTop=r?-n/2+"px":0)}const jk={passive:!0},yxe={...jk,capture:!0};function Gf(t,e,n,r){e.addEventListener(t,n,r?yxe:jk)}function cI(t,e,n,r){e.removeEventListener(t,n,jk)}Nm&&oI();function qo(t,e,n,r){let i;n=n||0,r=r||e.length-1;let a=r<=2147483647;for(;r-n>1;)i=a?n+r>>1:ws((n+r)/2),e[i]<t?n=i:r=i;return t-e[n]<=e[r]-t?n:r}function em(t,e,n,r){for(let i=r==1?e:n;i>=e&&i<=n;i+=r)if(t[i]!=null)return i;return-1}function Txe(t,e,n,r){let i=cn,a=-cn;if(r==1)i=t[e],a=t[n];else if(r==-1)i=t[n],a=t[e];else for(let s=e;s<=n;s++){let o=t[s];o!=null&&(o<i&&(i=o),o>a&&(a=o))}return[i,a]}function xxe(t,e,n){let r=cn,i=-cn;for(let a=e;a<=n;a++){let s=t[a];s!=null&&s>0&&(s<r&&(r=s),s>i&&(i=s))}return[r,i]}function hT(t,e,n,r){let i=D4(t),a=D4(e);t==e&&(i==-1?(t*=n,e/=n):(t/=n,e*=n));let s=n==10?kc:WQ,o=i==1?ws:Zs,c=a==1?Zs:ws,d=o(s(_i(t))),f=c(s(_i(e))),p=tm(n,d),m=tm(n,f);return n==10&&(d<0&&(p=Hn(p,-d)),f<0&&(m=Hn(m,-f))),r||n==2?(t=p*i,e=m*a):(t=XQ(t,p),e=pT(e,m)),[t,e]}function Gk(t,e,n,r){let i=hT(t,e,n,r);return t==0&&(i[0]=0),e==0&&(i[1]=0),i}const qk=.1,A4={mode:3,pad:qk},__={pad:0,soft:null,mode:0},Cxe={min:__,max:__};function DE(t,e,n,r){return mT(n)?w4(t,e,n):(__.pad=n,__.soft=r?0:null,__.mode=r?3:0,w4(t,e,Cxe))}function Sn(t,e){return t??e}function Oxe(t,e,n){for(e=Sn(e,0),n=Sn(n,t.length-1);e<=n;){if(t[e]!=null)return!0;e++}return!1}function w4(t,e,n){let r=n.min,i=n.max,a=Sn(r.pad,0),s=Sn(i.pad,0),o=Sn(r.hard,-cn),c=Sn(i.hard,cn),d=Sn(r.soft,cn),f=Sn(i.soft,-cn),p=Sn(r.mode,0),m=Sn(i.mode,0),g=e-t,b=kc(g),S=Ta(_i(t),_i(e)),y=kc(S),E=_i(y-b);(g<1e-24||E>10)&&(g=0,(t==0||e==0)&&(g=1e-24,p==2&&d!=cn&&(a=0),m==2&&f!=-cn&&(s=0)));let x=g||S||1e3,C=kc(x),R=tm(10,ws(C)),T=x*(g==0?t==0?.1:1:a),N=Hn(XQ(t-T,R/10),24),w=t>=d&&(p==1||p==3&&N<=d||p==2&&N>=d)?d:cn,D=Ta(o,N<w&&t>=w?w:eo(w,N)),L=x*(g==0?e==0?.1:1:s),k=Hn(pT(e+L,R/10),24),M=e<=f&&(m==1||m==3&&k>=f||m==2&&k<=f)?f:-cn,P=eo(c,k>M&&e<=M?M:Ta(M,k));return D==P&&D==0&&(P=100),[D,P]}const Rxe=new Intl.NumberFormat(Nm?Exe.language:"en-US"),$k=t=>Rxe.format(t),ks=Math,ES=ks.PI,_i=ks.abs,ws=ks.floor,gi=ks.round,Zs=ks.ceil,eo=ks.min,Ta=ks.max,tm=ks.pow,D4=ks.sign,kc=ks.log10,WQ=ks.log2,Nxe=(t,e=1)=>ks.sinh(t)*e,pR=(t,e=1)=>ks.asinh(t/e),cn=1/0;function I4(t){return(kc((t^t>>31)-(t>>31))|0)+1}function uI(t,e,n){return eo(Ta(t,e),n)}function on(t){return typeof t=="function"?t:()=>t}const Axe=()=>{},QQ=t=>t,KQ=(t,e)=>e,wxe=t=>null,M4=t=>!0,L4=(t,e)=>t==e,Dxe=/\.\d*?(?=9{6,}|0{6,})/gm,Xf=t=>{if(JQ(t)||bd.has(t))return t;const e=`${t}`,n=e.match(Dxe);if(n==null)return t;let r=n[0].length-1;if(e.indexOf("e-")!=-1){let[i,a]=e.split("e");return+`${Xf(i)}e${a}`}return Hn(t,r)};function uf(t,e){return Xf(Hn(Xf(t/e))*e)}function pT(t,e){return Xf(Zs(Xf(t/e))*e)}function XQ(t,e){return Xf(ws(Xf(t/e))*e)}function Hn(t,e=0){if(JQ(t))return t;let n=10**e,r=t*n*(1+Number.EPSILON);return gi(r)/n}const bd=new Map;function ZQ(t){return((""+t).split(".")[1]||"").length}function e0(t,e,n,r){let i=[],a=r.map(ZQ);for(let s=e;s<n;s++){let o=_i(s),c=Hn(tm(t,s),o);for(let d=0;d<r.length;d++){let f=t==10?+`${r[d]}e${s}`:r[d]*c,p=(s>=0?0:o)+(s>=a[d]?0:a[d]),m=t==10?f:Hn(f,p);i.push(m),bd.set(m,p)}}return i}const b_={},zk=[],nm=[null,null],ju=Array.isArray,JQ=Number.isInteger,Ixe=t=>t===void 0;function k4(t){return typeof t=="string"}function mT(t){let e=!1;if(t!=null){let n=t.constructor;e=n==null||n==Object}return e}function Mxe(t){return t!=null&&typeof t=="object"}const Lxe=Object.getPrototypeOf(Uint8Array),eK="__proto__";function rm(t,e=mT){let n;if(ju(t)){let r=t.find(i=>i!=null);if(ju(r)||e(r)){n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=rm(t[i],e)}else n=t.slice()}else if(t instanceof Lxe)n=t.slice();else if(e(t)){n={};for(let r in t)r!=eK&&(n[r]=rm(t[r],e))}else n=t;return n}function ai(t){let e=arguments;for(let n=1;n<e.length;n++){let r=e[n];for(let i in r)i!=eK&&(mT(t[i])?ai(t[i],rm(r[i])):t[i]=rm(r[i]))}return t}const kxe=0,Pxe=1,Bxe=2;function Fxe(t,e,n){for(let r=0,i,a=-1;r<e.length;r++){let s=e[r];if(s>a){for(i=s-1;i>=0&&t[i]==null;)t[i--]=null;for(i=s+1;i<n&&t[i]==null;)t[a=i++]=null}}}function Uxe(t,e){if(qxe(t)){let s=t[0].slice();for(let o=1;o<t.length;o++)s.push(...t[o].slice(1));return $xe(s[0])||(s=Gxe(s)),s}let n=new Set;for(let s=0;s<t.length;s++){let c=t[s][0],d=c.length;for(let f=0;f<d;f++)n.add(c[f])}let r=[Array.from(n).sort((s,o)=>s-o)],i=r[0].length,a=new Map;for(let s=0;s<i;s++)a.set(r[0][s],s);for(let s=0;s<t.length;s++){let o=t[s],c=o[0];for(let d=1;d<o.length;d++){let f=o[d],p=Array(i).fill(void 0),m=e?e[s][d]:Pxe,g=[];for(let b=0;b<f.length;b++){let S=f[b],y=a.get(c[b]);S===null?m!=kxe&&(p[y]=S,m==Bxe&&g.push(y)):p[y]=S}Fxe(p,g,i),r.push(p)}}return r}const jxe=typeof queueMicrotask>"u"?t=>Promise.resolve().then(t):queueMicrotask;function Gxe(t){let e=t[0],n=e.length,r=Array(n);for(let a=0;a<r.length;a++)r[a]=a;r.sort((a,s)=>e[a]-e[s]);let i=[];for(let a=0;a<t.length;a++){let s=t[a],o=Array(n);for(let c=0;c<n;c++)o[c]=s[r[c]];i.push(o)}return i}function qxe(t){let e=t[0][0],n=e.length;for(let r=1;r<t.length;r++){let i=t[r][0];if(i.length!=n)return!1;if(i!=e){for(let a=0;a<n;a++)if(i[a]!=e[a])return!1}}return!0}function $xe(t,e=100){const n=t.length;if(n<=1)return!0;let r=0,i=n-1;for(;r<=i&&t[r]==null;)r++;for(;i>=r&&t[i]==null;)i--;if(i<=r)return!0;const a=Ta(1,ws((i-r+1)/e));for(let s=t[r],o=r+a;o<=i;o+=a){const c=t[o];if(c!=null){if(c<=s)return!1;s=c}}return!0}const tK=["January","February","March","April","May","June","July","August","September","October","November","December"],nK=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function rK(t){return t.slice(0,3)}const zxe=nK.map(rK),Yxe=tK.map(rK),Hxe={MMMM:tK,MMM:Yxe,WWWW:nK,WWW:zxe};function qg(t){return(t<10?"0":"")+t}function Vxe(t){return(t<10?"00":t<100?"0":"")+t}const Wxe={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,e)=>e.MMMM[t.getMonth()],MMM:(t,e)=>e.MMM[t.getMonth()],MM:t=>qg(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>qg(t.getDate()),D:t=>t.getDate(),WWWW:(t,e)=>e.WWWW[t.getDay()],WWW:(t,e)=>e.WWW[t.getDay()],HH:t=>qg(t.getHours()),H:t=>t.getHours(),h:t=>{let e=t.getHours();return e==0?12:e>12?e-12:e},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>qg(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>qg(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>Vxe(t.getMilliseconds())};function Yk(t,e){e=e||Hxe;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,i;for(;i=r.exec(t);)n.push(i[0][0]=="{"?Wxe[i[1]]:i[0]);return a=>{let s="";for(let o=0;o<n.length;o++)s+=typeof n[o]=="string"?n[o]:n[o](a,e);return s}}const Qxe=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Kxe(t,e){let n;return e=="UTC"||e=="Etc/UTC"?n=new Date(+t+t.getTimezoneOffset()*6e4):e==Qxe?n=t:(n=new Date(t.toLocaleString("en-US",{timeZone:e})),n.setMilliseconds(t.getMilliseconds())),n}const iK=t=>t%1==0,IE=[1,2,2.5,5],Xxe=e0(10,-32,0,IE),aK=e0(10,0,32,IE),Zxe=aK.filter(iK),df=Xxe.concat(aK),Hk=`
`,sK="{YYYY}",P4=Hk+sK,oK="{M}/{D}",a_=Hk+oK,Pv=a_+"/{YY}",lK="{aa}",Jxe="{h}:{mm}",Kh=Jxe+lK,B4=Hk+Kh,F4=":{ss}",On=null;function cK(t){let e=t*1e3,n=e*60,r=n*60,i=r*24,a=i*30,s=i*365,c=(t==1?e0(10,0,3,IE).filter(iK):e0(10,-3,0,IE)).concat([e,e*5,e*10,e*15,e*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,i,i*2,i*3,i*4,i*5,i*6,i*7,i*8,i*9,i*10,i*15,a,a*2,a*3,a*4,a*6,s,s*2,s*5,s*10,s*25,s*50,s*100]);const d=[[s,sK,On,On,On,On,On,On,1],[i*28,"{MMM}",P4,On,On,On,On,On,1],[i,oK,P4,On,On,On,On,On,1],[r,"{h}"+lK,Pv,On,a_,On,On,On,1],[n,Kh,Pv,On,a_,On,On,On,1],[e,F4,Pv+" "+Kh,On,a_+" "+Kh,On,B4,On,1],[t,F4+".{fff}",Pv+" "+Kh,On,a_+" "+Kh,On,B4,On,1]];function f(p){return(m,g,b,S,y,E)=>{let x=[],C=y>=s,R=y>=a&&y<s,T=p(b),N=Hn(T*t,3),w=mR(T.getFullYear(),C?0:T.getMonth(),R||C?1:T.getDate()),D=Hn(w*t,3);if(R||C){let L=R?y/a:0,k=C?y/s:0,M=N==D?N:Hn(mR(w.getFullYear()+k,w.getMonth()+L,1)*t,3),P=new Date(gi(M/t)),V=P.getFullYear(),Y=P.getMonth();for(let G=0;M<=S;G++){let F=mR(V+k*G,Y+L*G,1),q=F-p(Hn(F*t,3));M=Hn((+F+q)*t,3),M<=S&&x.push(M)}}else{let L=y>=i?i:y,k=ws(b)-ws(N),M=D+k+pT(N-D,L);x.push(M);let P=p(M),V=P.getHours()+P.getMinutes()/n+P.getSeconds()/r,Y=y/r,G=m.axes[g]._space,F=E/G;for(;M=Hn(M+y,t==1?0:3),!(M>S);)if(Y>1){let q=ws(Hn(V+Y,6))%24,U=p(M).getHours()-q;U>1&&(U=-1),M-=U*r,V=(V+Y)%24;let Q=x[x.length-1];Hn((M-Q)/y,3)*F>=.7&&x.push(M)}else x.push(M)}return x}}return[c,d,f]}const[eCe,tCe,nCe]=cK(1),[rCe,iCe,aCe]=cK(.001);e0(2,-53,53,[1]);function U4(t,e){return t.map(n=>n.map((r,i)=>i==0||i==8||r==null?r:e(i==1||n[8]==0?r:n[1]+r)))}function j4(t,e){return(n,r,i,a,s)=>{let o=e.find(b=>s>=b[0])||e[e.length-1],c,d,f,p,m,g;return r.map(b=>{let S=t(b),y=S.getFullYear(),E=S.getMonth(),x=S.getDate(),C=S.getHours(),R=S.getMinutes(),T=S.getSeconds(),N=y!=c&&o[2]||E!=d&&o[3]||x!=f&&o[4]||C!=p&&o[5]||R!=m&&o[6]||T!=g&&o[7]||o[1];return c=y,d=E,f=x,p=C,m=R,g=T,N(S)})}}function sCe(t,e){let n=Yk(e);return(r,i,a,s,o)=>i.map(c=>n(t(c)))}function mR(t,e,n){return new Date(t,e,n)}function G4(t,e){return e(t)}const oCe="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function q4(t,e){return(n,r,i,a)=>a==null?Uk:e(t(r))}function lCe(t,e){let n=t.series[e];return n.width?n.stroke(t,e):n.points.width?n.points.stroke(t,e):null}function cCe(t,e){return t.series[e].fill(t,e)}const uCe={show:!0,live:!0,isolate:!1,mount:Axe,markers:{show:!0,width:2,stroke:lCe,fill:cCe,dash:"solid"},idx:null,idxs:null,values:[]};function dCe(t,e){let n=t.cursor.points,r=Qs(),i=n.size(t,e);dr(r,r_,i),dr(r,i_,i);let a=i/-2;dr(r,"marginLeft",a),dr(r,"marginTop",a);let s=n.width(t,e,i);return s&&dr(r,"borderWidth",s),r}function fCe(t,e){let n=t.series[e].points;return n._fill||n._stroke}function hCe(t,e){let n=t.series[e].points;return n._stroke||n._fill}function pCe(t,e){return t.series[e].points.size}const gR=[0,0];function mCe(t,e,n){return gR[0]=e,gR[1]=n,gR}function Bv(t,e,n,r=!0){return i=>{i.button==0&&(!r||i.target==e)&&n(i)}}function _R(t,e,n,r=!0){return i=>{(!r||i.target==e)&&n(i)}}const gCe={show:!0,x:!0,y:!0,lock:!1,move:mCe,points:{one:!1,show:dCe,size:pCe,width:0,stroke:hCe,fill:fCe},bind:{mousedown:Bv,mouseup:Bv,click:Bv,dblclick:Bv,mousemove:_R,mouseleave:_R,mouseenter:_R},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,e,n,r,i)=>r-i,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},uK={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Vk=ai({},uK,{filter:KQ}),dK=ai({},Vk,{size:10}),fK=ai({},uK,{show:!1}),Wk='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',hK="bold "+Wk,pK=1.5,$4={show:!0,scale:"x",stroke:Fk,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:hK,side:2,grid:Vk,ticks:dK,border:fK,font:Wk,lineGap:pK,rotate:0},_Ce="Value",bCe="Time",z4={show:!0,scale:"x",auto:!1,sorted:1,min:cn,max:-cn,idxs:[]};function vCe(t,e,n,r,i){return e.map(a=>a==null?"":$k(a))}function SCe(t,e,n,r,i,a,s){let o=[],c=bd.get(i)||0;n=s?n:Hn(pT(n,i),c);for(let d=n;d<=r;d=Hn(d+i,c))o.push(Object.is(d,-0)?0:d);return o}function dI(t,e,n,r,i,a,s){const o=[],c=t.scales[t.axes[e].scale].log,d=c==10?kc:WQ,f=ws(d(n));i=tm(c,f),c==10&&(i=df[qo(i,df)]);let p=n,m=i*c;c==10&&(m=df[qo(m,df)]);do o.push(p),p=p+i,c==10&&!bd.has(p)&&(p=Hn(p,bd.get(i))),p>=m&&(i=p,m=i*c,c==10&&(m=df[qo(m,df)]));while(p<=r);return o}function ECe(t,e,n,r,i,a,s){let c=t.scales[t.axes[e].scale].asinh,d=r>c?dI(t,e,Ta(c,n),r,i):[c],f=r>=0&&n<=0?[0]:[];return(n<-c?dI(t,e,Ta(c,-r),-n,i):[c]).reverse().map(m=>-m).concat(f,d)}const mK=/./,yCe=/[12357]/,TCe=/[125]/,Y4=/1/,fI=(t,e,n,r)=>t.map((i,a)=>e==4&&i==0||a%r==0&&n.test(i.toExponential()[i<0?1:0])?i:null);function xCe(t,e,n,r,i){let a=t.axes[n],s=a.scale,o=t.scales[s],c=t.valToPos,d=a._space,f=c(10,s),p=c(9,s)-f>=d?mK:c(7,s)-f>=d?yCe:c(5,s)-f>=d?TCe:Y4;if(p==Y4){let m=_i(c(1,s)-f);if(m<d)return fI(e.slice().reverse(),o.distr,p,Zs(d/m)).reverse()}return fI(e,o.distr,p,1)}function CCe(t,e,n,r,i){let a=t.axes[n],s=a.scale,o=a._space,c=t.valToPos,d=_i(c(1,s)-c(2,s));return d<o?fI(e.slice().reverse(),3,mK,Zs(o/d)).reverse():e}function OCe(t,e,n,r){return r==null?Uk:e==null?"":$k(e)}const H4={show:!0,scale:"y",stroke:Fk,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:hK,side:3,grid:Vk,ticks:dK,border:fK,font:Wk,lineGap:pK,rotate:0};function RCe(t,e){let n=3+(t||1)*2;return Hn(n*e,3)}function NCe(t,e){let{scale:n,idxs:r}=t.series[0],i=t._data[0],a=t.valToPos(i[r[0]],n,!0),s=t.valToPos(i[r[1]],n,!0),o=_i(s-a),c=t.series[e],d=o/(c.points.space*Tn);return r[1]-r[0]<=d}const V4={scale:null,auto:!0,sorted:0,min:cn,max:-cn},gK=(t,e,n,r,i)=>i,W4={show:!0,auto:!0,sorted:0,gaps:gK,alpha:1,facets:[ai({},V4,{scale:"x"}),ai({},V4,{scale:"y"})]},Q4={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:gK,alpha:1,points:{show:NCe,filter:null},values:null,min:cn,max:-cn,idxs:[],path:null,clip:null};function ACe(t,e,n,r,i){return n/10}const _K={time:exe,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},wCe=ai({},_K,{time:!1,ori:1}),K4={};function bK(t,e){let n=K4[t];return n||(n={key:t,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(i=>i!=r)},pub(r,i,a,s,o,c,d){for(let f=0;f<n.plots.length;f++)n.plots[f]!=i&&n.plots[f].pub(r,i,a,s,o,c,d)}},t!=null&&(K4[t]=n)),n}const im=1,hI=2;function sh(t,e,n){const r=t.mode,i=t.series[e],a=r==2?t._data[e]:t._data,s=t.scales,o=t.bbox;let c=a[0],d=r==2?a[1]:a[e],f=r==2?s[i.facets[0].scale]:s[t.series[0].scale],p=r==2?s[i.facets[1].scale]:s[i.scale],m=o.left,g=o.top,b=o.width,S=o.height,y=t.valToPosH,E=t.valToPosV;return f.ori==0?n(i,c,d,f,p,y,E,m,g,b,S,_T,Am,vT,SK,yK):n(i,c,d,f,p,E,y,g,m,S,b,bT,wm,Xk,EK,TK)}function Qk(t,e){let n=0,r=0,i=Sn(t.bands,zk);for(let a=0;a<i.length;a++){let s=i[a];s.series[0]==e?n=s.dir:s.series[1]==e&&(s.dir==1?r|=1:r|=2)}return[n,r==1?-1:r==2?1:r==3?2:0]}function DCe(t,e,n,r,i){let a=t.mode,s=t.series[e],o=a==2?s.facets[1].scale:s.scale,c=t.scales[o];return i==-1?c.min:i==1?c.max:c.distr==3?c.dir==1?c.min:c.max:0}function Pc(t,e,n,r,i,a){return sh(t,e,(s,o,c,d,f,p,m,g,b,S,y)=>{let E=s.pxRound;const x=d.dir*(d.ori==0?1:-1),C=d.ori==0?Am:wm;let R,T;x==1?(R=n,T=r):(R=r,T=n);let N=E(p(o[R],d,S,g)),w=E(m(c[R],f,y,b)),D=E(p(o[T],d,S,g)),L=E(m(a==1?f.max:f.min,f,y,b)),k=new Path2D(i);return C(k,D,L),C(k,N,L),C(k,N,w),k})}function gT(t,e,n,r,i,a){let s=null;if(t.length>0){s=new Path2D;const o=e==0?vT:Xk;let c=n;for(let p=0;p<t.length;p++){let m=t[p];if(m[1]>m[0]){let g=m[0]-c;g>0&&o(s,c,r,g,r+a),c=m[1]}}let d=n+i-c,f=10;d>0&&o(s,c,r-f/2,d,r+a+f)}return s}function ICe(t,e,n){let r=t[t.length-1];r&&r[0]==e?r[1]=n:t.push([e,n])}function Kk(t,e,n,r,i,a,s){let o=[],c=t.length;for(let d=i==1?n:r;d>=n&&d<=r;d+=i)if(e[d]===null){let p=d,m=d;if(i==1)for(;++d<=r&&e[d]===null;)m=d;else for(;--d>=n&&e[d]===null;)m=d;let g=a(t[p]),b=m==p?g:a(t[m]),S=p-i;g=s<=0&&S>=0&&S<c?a(t[S]):g;let E=m+i;b=s>=0&&E>=0&&E<c?a(t[E]):b,b>=g&&o.push([g,b])}return o}function X4(t){return t==0?QQ:t==1?gi:e=>uf(e,t)}function vK(t){let e=t==0?_T:bT,n=t==0?(i,a,s,o,c,d)=>{i.arcTo(a,s,o,c,d)}:(i,a,s,o,c,d)=>{i.arcTo(s,a,c,o,d)},r=t==0?(i,a,s,o,c)=>{i.rect(a,s,o,c)}:(i,a,s,o,c)=>{i.rect(s,a,c,o)};return(i,a,s,o,c,d=0,f=0)=>{d==0&&f==0?r(i,a,s,o,c):(d=eo(d,o/2,c/2),f=eo(f,o/2,c/2),e(i,a+d,s),n(i,a+o,s,a+o,s+c,d),n(i,a+o,s+c,a,s+c,f),n(i,a,s+c,a,s,f),n(i,a,s,a+o,s,d),i.closePath())}}const _T=(t,e,n)=>{t.moveTo(e,n)},bT=(t,e,n)=>{t.moveTo(n,e)},Am=(t,e,n)=>{t.lineTo(e,n)},wm=(t,e,n)=>{t.lineTo(n,e)},vT=vK(0),Xk=vK(1),SK=(t,e,n,r,i,a)=>{t.arc(e,n,r,i,a)},EK=(t,e,n,r,i,a)=>{t.arc(n,e,r,i,a)},yK=(t,e,n,r,i,a,s)=>{t.bezierCurveTo(e,n,r,i,a,s)},TK=(t,e,n,r,i,a,s)=>{t.bezierCurveTo(n,e,i,r,s,a)};function xK(t){return(e,n,r,i,a)=>sh(e,n,(s,o,c,d,f,p,m,g,b,S,y)=>{let{pxRound:E,points:x}=s,C,R;d.ori==0?(C=_T,R=SK):(C=bT,R=EK);const T=Hn(x.width*Tn,3);let N=(x.size-x.width)/2*Tn,w=Hn(N*2,3),D=new Path2D,L=new Path2D,{left:k,top:M,width:P,height:V}=e.bbox;vT(L,k-w,M-w,P+w*2,V+w*2);const Y=G=>{if(c[G]!=null){let F=E(p(o[G],d,S,g)),q=E(m(c[G],f,y,b));C(D,F+N,q),R(D,F,q,N,0,ES*2)}};if(a)a.forEach(Y);else for(let G=r;G<=i;G++)Y(G);return{stroke:T>0?D:null,fill:D,clip:L,flags:im|hI}})}function CK(t){return(e,n,r,i,a,s)=>{r!=i&&(a!=r&&s!=r&&t(e,n,r),a!=i&&s!=i&&t(e,n,i),t(e,n,s))}}const MCe=CK(Am),LCe=CK(wm);function OK(t){const e=Sn(t==null?void 0:t.alignGaps,0);return(n,r,i,a)=>sh(n,r,(s,o,c,d,f,p,m,g,b,S,y)=>{let E=s.pxRound,x=X=>E(p(X,d,S,g)),C=X=>E(m(X,f,y,b)),R,T;d.ori==0?(R=Am,T=MCe):(R=wm,T=LCe);const N=d.dir*(d.ori==0?1:-1),w={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:im},D=w.stroke;let L=cn,k=-cn,M,P,V,Y=x(o[N==1?i:a]),G=em(c,i,a,1*N),F=em(c,i,a,-1*N),q=x(o[G]),z=x(o[F]),H=!1;for(let X=N==1?i:a;X>=i&&X<=a;X+=N){let te=x(o[X]),ie=c[X];te==Y?ie!=null?(P=C(ie),L==cn&&(R(D,te,P),M=P),L=eo(P,L),k=Ta(P,k)):ie===null&&(H=!0):(L!=cn&&(T(D,Y,L,k,M,P),V=Y),ie!=null?(P=C(ie),R(D,te,P),L=k=M=P):(L=cn,k=-cn,ie===null&&(H=!0)),Y=te)}L!=cn&&L!=k&&V!=Y&&T(D,Y,L,k,M,P);let[U,Q]=Qk(n,r);if(s.fill!=null||U!=0){let X=w.fill=new Path2D(D),te=s.fillTo(n,r,s.min,s.max,U),ie=C(te);R(X,z,ie),R(X,q,ie)}if(!s.spanGaps){let X=[];H&&X.push(...Kk(o,c,i,a,N,x,e)),w.gaps=X=s.gaps(n,r,i,a,X),w.clip=gT(X,d.ori,g,b,S,y)}return Q!=0&&(w.band=Q==2?[Pc(n,r,i,a,D,-1),Pc(n,r,i,a,D,1)]:Pc(n,r,i,a,D,Q)),w})}function kCe(t){const e=Sn(t.align,1),n=Sn(t.ascDesc,!1),r=Sn(t.alignGaps,0),i=Sn(t.extend,!1);return(a,s,o,c)=>sh(a,s,(d,f,p,m,g,b,S,y,E,x,C)=>{let R=d.pxRound,{left:T,width:N}=a.bbox,w=U=>R(b(U,m,x,y)),D=U=>R(S(U,g,C,E)),L=m.ori==0?Am:wm;const k={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:im},M=k.stroke,P=m.dir*(m.ori==0?1:-1);o=em(p,o,c,1),c=em(p,o,c,-1);let V=D(p[P==1?o:c]),Y=w(f[P==1?o:c]),G=Y,F=Y;i&&e==-1&&(F=T,L(M,F,V)),L(M,Y,V);for(let U=P==1?o:c;U>=o&&U<=c;U+=P){let Q=p[U];if(Q==null)continue;let X=w(f[U]),te=D(Q);e==1?L(M,X,V):L(M,G,te),L(M,X,te),V=te,G=X}let q=G;i&&e==1&&(q=T+N,L(M,q,V));let[z,H]=Qk(a,s);if(d.fill!=null||z!=0){let U=k.fill=new Path2D(M),Q=d.fillTo(a,s,d.min,d.max,z),X=D(Q);L(U,q,X),L(U,F,X)}if(!d.spanGaps){let U=[];U.push(...Kk(f,p,o,c,P,w,r));let Q=d.width*Tn/2,X=n||e==1?Q:-Q,te=n||e==-1?-Q:Q;U.forEach(ie=>{ie[0]+=X,ie[1]+=te}),k.gaps=U=d.gaps(a,s,o,c,U),k.clip=gT(U,m.ori,y,E,x,C)}return H!=0&&(k.band=H==2?[Pc(a,s,o,c,M,-1),Pc(a,s,o,c,M,1)]:Pc(a,s,o,c,M,H)),k})}function Z4(t,e,n,r,i,a,s=cn){if(t.length>1){let o=null;for(let c=0,d=1/0;c<t.length;c++)if(e[c]!==void 0){if(o!=null){let f=_i(t[c]-t[o]);f<d&&(d=f,s=_i(n(t[c],r,i,a)-n(t[o],r,i,a)))}o=c}}return s}function PCe(t){t=t||b_;const e=Sn(t.size,[.6,cn,1]),n=t.align||0,r=t.gap||0;let i=t.radius;i=i==null?[0,0]:typeof i=="number"?[i,0]:i;const a=on(i),s=1-e[0],o=Sn(e[1],cn),c=Sn(e[2],1),d=Sn(t.disp,b_),f=Sn(t.each,g=>{}),{fill:p,stroke:m}=d;return(g,b,S,y)=>sh(g,b,(E,x,C,R,T,N,w,D,L,k,M)=>{let P=E.pxRound,V=n,Y=r*Tn,G=o*Tn,F=c*Tn,q,z;R.ori==0?[q,z]=a(g,b):[z,q]=a(g,b);const H=R.dir*(R.ori==0?1:-1);let U=R.ori==0?vT:Xk,Q=R.ori==0?f:(Ke,yt,Ut,Nt,Qt,sn,wr)=>{f(Ke,yt,Ut,Qt,Nt,wr,sn)},X=Sn(g.bands,zk).find(Ke=>Ke.series[0]==b),te=X!=null?X.dir:0,ie=E.fillTo(g,b,E.min,E.max,te),fe=P(w(ie,T,M,L)),Ce,Re,_e,Ie=k,Oe=P(E.width*Tn),se=!1,xe=null,ce=null,je=null,rt=null;p!=null&&(Oe==0||m!=null)&&(se=!0,xe=p.values(g,b,S,y),ce=new Map,new Set(xe).forEach(Ke=>{Ke!=null&&ce.set(Ke,new Path2D)}),Oe>0&&(je=m.values(g,b,S,y),rt=new Map,new Set(je).forEach(Ke=>{Ke!=null&&rt.set(Ke,new Path2D)})));let{x0:_t,size:Te}=d;if(_t!=null&&Te!=null){V=1,x=_t.values(g,b,S,y),_t.unit==2&&(x=x.map(Ut=>g.posToVal(D+Ut*k,R.key,!0)));let Ke=Te.values(g,b,S,y);Te.unit==2?Re=Ke[0]*k:Re=N(Ke[0],R,k,D)-N(0,R,k,D),Ie=Z4(x,C,N,R,k,D,Ie),_e=Ie-Re+Y}else Ie=Z4(x,C,N,R,k,D,Ie),_e=Ie*s+Y,Re=Ie-_e;_e<1&&(_e=0),Oe>=Re/2&&(Oe=0),_e<5&&(P=QQ);let Ne=_e>0,at=Ie-_e-(Ne?Oe:0);Re=P(uI(at,F,G)),Ce=(V==0?Re/2:V==H?0:Re)-V*H*((V==0?Y/2:0)+(Ne?Oe/2:0));const ze={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ze=se?null:new Path2D;let Ye=null;if(X!=null)Ye=g.data[X.series[1]];else{let{y0:Ke,y1:yt}=d;Ke!=null&&yt!=null&&(C=yt.values(g,b,S,y),Ye=Ke.values(g,b,S,y))}let ve=q*Re,Ue=z*Re;for(let Ke=H==1?S:y;Ke>=S&&Ke<=y;Ke+=H){let yt=C[Ke];if(yt==null)continue;if(Ye!=null){let Kt=Ye[Ke]??0;if(yt-Kt==0)continue;fe=w(Kt,T,M,L)}let Ut=R.distr!=2||d!=null?x[Ke]:Ke,Nt=N(Ut,R,k,D),Qt=w(Sn(yt,ie),T,M,L),sn=P(Nt-Ce),wr=P(Ta(Qt,fe)),Wn=P(eo(Qt,fe)),er=wr-Wn;if(yt!=null){let Kt=yt<0?Ue:ve,ci=yt<0?ve:Ue;se?(Oe>0&&je[Ke]!=null&&U(rt.get(je[Ke]),sn,Wn+ws(Oe/2),Re,Ta(0,er-Oe),Kt,ci),xe[Ke]!=null&&U(ce.get(xe[Ke]),sn,Wn+ws(Oe/2),Re,Ta(0,er-Oe),Kt,ci)):U(Ze,sn,Wn+ws(Oe/2),Re,Ta(0,er-Oe),Kt,ci),Q(g,b,Ke,sn-Oe/2,Wn,Re+Oe,er)}}return Oe>0?ze.stroke=se?rt:Ze:se||(ze._fill=E.width==0?E._fill:E._stroke??E._fill,ze.width=0),ze.fill=se?ce:Ze,ze})}function BCe(t,e){const n=Sn(e==null?void 0:e.alignGaps,0);return(r,i,a,s)=>sh(r,i,(o,c,d,f,p,m,g,b,S,y,E)=>{let x=o.pxRound,C=q=>x(m(q,f,y,b)),R=q=>x(g(q,p,E,S)),T,N,w;f.ori==0?(T=_T,w=Am,N=yK):(T=bT,w=wm,N=TK);const D=f.dir*(f.ori==0?1:-1);a=em(d,a,s,1),s=em(d,a,s,-1);let L=C(c[D==1?a:s]),k=L,M=[],P=[];for(let q=D==1?a:s;q>=a&&q<=s;q+=D)if(d[q]!=null){let H=c[q],U=C(H);M.push(k=U),P.push(R(d[q]))}const V={stroke:t(M,P,T,w,N,x),fill:null,clip:null,band:null,gaps:null,flags:im},Y=V.stroke;let[G,F]=Qk(r,i);if(o.fill!=null||G!=0){let q=V.fill=new Path2D(Y),z=o.fillTo(r,i,o.min,o.max,G),H=R(z);w(q,k,H),w(q,L,H)}if(!o.spanGaps){let q=[];q.push(...Kk(c,d,a,s,D,C,n)),V.gaps=q=o.gaps(r,i,a,s,q),V.clip=gT(q,f.ori,b,S,y,E)}return F!=0&&(V.band=F==2?[Pc(r,i,a,s,Y,-1),Pc(r,i,a,s,Y,1)]:Pc(r,i,a,s,Y,F)),V})}function FCe(t){return BCe(UCe,t)}function UCe(t,e,n,r,i,a){const s=t.length;if(s<2)return null;const o=new Path2D;if(n(o,t[0],e[0]),s==2)r(o,t[1],e[1]);else{let c=Array(s),d=Array(s-1),f=Array(s-1),p=Array(s-1);for(let m=0;m<s-1;m++)f[m]=e[m+1]-e[m],p[m]=t[m+1]-t[m],d[m]=f[m]/p[m];c[0]=d[0];for(let m=1;m<s-1;m++)d[m]===0||d[m-1]===0||d[m-1]>0!=d[m]>0?c[m]=0:(c[m]=3*(p[m-1]+p[m])/((2*p[m]+p[m-1])/d[m-1]+(p[m]+2*p[m-1])/d[m]),isFinite(c[m])||(c[m]=0));c[s-1]=d[s-2];for(let m=0;m<s-1;m++)i(o,t[m]+p[m]/3,e[m]+c[m]*p[m]/3,t[m+1]-p[m]/3,e[m+1]-c[m+1]*p[m]/3,t[m+1],e[m+1])}return o}const pI=new Set;function J4(){for(let t of pI)t.syncRect(!0)}Nm&&(Gf(vxe,_p,J4),Gf(Sxe,_p,J4,!0),Gf(wE,_p,()=>{Bi.pxRatio=Tn}));const jCe=OK(),GCe=xK();function eG(t,e,n,r){return(r?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((a,s)=>mI(a,s,e,n))}function qCe(t,e){return t.map((n,r)=>r==0?{}:ai({},e,n))}function mI(t,e,n,r){return ai({},e==0?n:r,t)}function RK(t,e,n){return e==null?nm:[e,n]}const $Ce=RK;function zCe(t,e,n){return e==null?nm:DE(e,n,qk,!0)}function NK(t,e,n,r){return e==null?nm:hT(e,n,t.scales[r].log,!1)}const YCe=NK;function AK(t,e,n,r){return e==null?nm:Gk(e,n,t.scales[r].log,!1)}const HCe=AK;function VCe(t,e,n,r,i){let a=Ta(I4(t),I4(e)),s=e-t,o=qo(i/r*s,n);do{let c=n[o],d=r*c/s;if(d>=i&&a+(c<5?bd.get(c):0)<=17)return[c,d]}while(++o<n.length);return[0,0]}function tG(t){let e,n;return t=t.replace(/(\d+)px/,(r,i)=>(e=gi((n=+i)*Tn))+"px"),[t,e,n]}function WCe(t){t.show&&[t.font,t.labelFont].forEach(e=>{let n=Hn(e[2]*Tn,1);e[0]=e[0].replace(/[0-9.]+px/,n+"px"),e[1]=n})}function Bi(t,e,n){const r={mode:Sn(t.mode,1)},i=r.mode;function a(B,W){return((W.distr==3?kc(B>0?B:W.clamp(r,B,W.min,W.max,W.key)):W.distr==4?pR(B,W.asinh):W.distr==100?W.fwd(B):B)-W._min)/(W._max-W._min)}function s(B,W,Z,J){let oe=a(B,W);return J+Z*(W.dir==-1?1-oe:oe)}function o(B,W,Z,J){let oe=a(B,W);return J+Z*(W.dir==-1?oe:1-oe)}function c(B,W,Z,J){return W.ori==0?s(B,W,Z,J):o(B,W,Z,J)}r.valToPosH=s,r.valToPosV=o;let d=!1;r.status=0;const f=r.root=Qs(txe);if(t.id!=null&&(f.id=t.id),Ss(f,t.class),t.title){let B=Qs(ixe,f);B.textContent=t.title}const p=Ao("canvas"),m=r.ctx=p.getContext("2d"),g=Qs(axe,f);Gf("click",g,B=>{B.target===S&&(Cn!=cl||jn!=vo)&&sr.click(r,B)},!0);const b=r.under=Qs(sxe,g);g.appendChild(p);const S=r.over=Qs(oxe,g);t=rm(t);const y=+Sn(t.pxAlign,1),E=X4(y);(t.plugins||[]).forEach(B=>{B.opts&&(t=B.opts(r,t)||t)});const x=t.ms||.001,C=r.series=i==1?eG(t.series||[],z4,Q4,!1):qCe(t.series||[null],W4),R=r.axes=eG(t.axes||[],$4,H4,!0),T=r.scales={},N=r.bands=t.bands||[];N.forEach(B=>{B.fill=on(B.fill||null),B.dir=Sn(B.dir,-1)});const w=i==2?C[1].facets[0].scale:C[0].scale,D={axes:ar,series:ll},L=(t.drawOrder||["axes","series"]).map(B=>D[B]);function k(B){let W=T[B];if(W==null){let Z=(t.scales||b_)[B]||b_;if(Z.from!=null)k(Z.from),T[B]=ai({},T[Z.from],Z,{key:B});else{W=T[B]=ai({},B==w?_K:wCe,Z),W.key=B;let J=W.time,oe=W.range,be=ju(oe);if((B!=w||i==2&&!J)&&(be&&(oe[0]==null||oe[1]==null)&&(oe={min:oe[0]==null?A4:{mode:1,hard:oe[0],soft:oe[0]},max:oe[1]==null?A4:{mode:1,hard:oe[1],soft:oe[1]}},be=!1),!be&&mT(oe))){let ke=oe;oe=(qe,Qe,ot)=>Qe==null?nm:DE(Qe,ot,ke)}W.range=on(oe||(J?$Ce:B==w?W.distr==3?YCe:W.distr==4?HCe:RK:W.distr==3?NK:W.distr==4?AK:zCe)),W.auto=on(be?!1:W.auto),W.clamp=on(W.clamp||ACe),W._min=W._max=null}}}k("x"),k("y"),i==1&&C.forEach(B=>{k(B.scale)}),R.forEach(B=>{k(B.scale)});for(let B in t.scales)k(B);const M=T[w],P=M.distr;let V,Y;M.ori==0?(Ss(f,nxe),V=s,Y=o):(Ss(f,rxe),V=o,Y=s);const G={};for(let B in T){let W=T[B];(W.min!=null||W.max!=null)&&(G[B]={min:W.min,max:W.max},W.min=W.max=null)}const F=t.tzDate||(B=>new Date(gi(B/x))),q=t.fmtDate||Yk,z=x==1?nCe(F):aCe(F),H=j4(F,U4(x==1?tCe:iCe,q)),U=q4(F,G4(oCe,q)),Q=[],X=r.legend=ai({},uCe,t.legend),te=X.show,ie=X.markers;X.idxs=Q,ie.width=on(ie.width),ie.dash=on(ie.dash),ie.stroke=on(ie.stroke),ie.fill=on(ie.fill);let fe,Ce,Re,_e=[],Ie=[],Oe,se=!1,xe={};if(X.live){const B=C[1]?C[1].values:null;se=B!=null,Oe=se?B(r,1,0):{_:0};for(let W in Oe)xe[W]=Uk}if(te)if(fe=Ao("table",hxe,f),Re=Ao("tbody",null,fe),X.mount(r,fe),se){Ce=Ao("thead",null,fe,Re);let B=Ao("tr",null,Ce);Ao("th",null,B);for(var ce in Oe)Ao("th",m4,B).textContent=ce}else Ss(fe,mxe),X.live&&Ss(fe,pxe);const je={show:!0},rt={show:!1};function _t(B,W){if(W==0&&(se||!X.live||i==2))return nm;let Z=[],J=Ao("tr",gxe,Re,Re.childNodes[W]);Ss(J,B.class),B.show||Ss(J,gf);let oe=Ao("th",null,J);if(ie.show){let qe=Qs(_xe,oe);if(W>0){let Qe=ie.width(r,W);Qe&&(qe.style.border=Qe+"px "+ie.dash(r,W)+" "+ie.stroke(r,W)),qe.style.background=ie.fill(r,W)}}let be=Qs(m4,oe);be.textContent=B.label,W>0&&(ie.show||(be.style.color=B.width>0?ie.stroke(r,W):ie.fill(r,W)),Ne("click",oe,qe=>{if(Me._lock)return;Xt(qe);let Qe=C.indexOf(B);if((qe.ctrlKey||qe.metaKey)!=X.isolate){let ot=C.some((lt,gt)=>gt>0&&gt!=Qe&&lt.show);C.forEach((lt,gt)=>{gt>0&&ds(gt,ot?gt==Qe?je:rt:je,!0,Mr.setSeries)})}else ds(Qe,{show:!B.show},!0,Mr.setSeries)},!1),st&&Ne(S4,oe,qe=>{Me._lock||(Xt(qe),ds(C.indexOf(B),ou,!0,Mr.setSeries))},!1));for(var ke in Oe){let qe=Ao("td",bxe,J);qe.textContent="--",Z.push(qe)}return[J,Z]}const Te=new Map;function Ne(B,W,Z,J=!0){const oe=Te.get(W)||{},be=Me.bind[B](r,W,Z,J);be&&(Gf(B,W,oe[B]=be),Te.set(W,oe))}function at(B,W,Z){const J=Te.get(W)||{};for(let oe in J)(B==null||oe==B)&&(cI(oe,W,J[oe]),delete J[oe]);B==null&&Te.delete(W)}let ze=0,Ze=0,Ye=0,ve=0,Ue=0,Ke=0,yt=Ue,Ut=Ke,Nt=Ye,Qt=ve,sn=0,wr=0,Wn=0,er=0;r.bbox={};let Kt=!1,ci=!1,Dr=!1,mn=!1,qt=!1,tr=!1;function nr(B,W,Z){(Z||B!=r.width||W!=r.height)&&za(B,W),Zt(!1),Dr=!0,ci=!0,We()}function za(B,W){r.width=ze=Ye=B,r.height=Ze=ve=W,Ue=Ke=0,Ae(),Xe();let Z=r.bbox;sn=Z.left=uf(Ue*Tn,.5),wr=Z.top=uf(Ke*Tn,.5),Wn=Z.width=uf(Ye*Tn,.5),er=Z.height=uf(ve*Tn,.5)}const Ps=3;function ui(){let B=!1,W=0;for(;!B;){W++;let Z=Dt(W),J=tc(W);B=W==Ps||Z&&J,B||(za(r.width,r.height),ci=!0)}}function ne({width:B,height:W}){nr(B,W)}r.setSize=ne;function Ae(){let B=!1,W=!1,Z=!1,J=!1;R.forEach((oe,be)=>{if(oe.show&&oe._show){let{side:ke,_size:qe}=oe,Qe=ke%2,ot=oe.label!=null?oe.labelSize:0,lt=qe+ot;lt>0&&(Qe?(Ye-=lt,ke==3?(Ue+=lt,J=!0):Z=!0):(ve-=lt,ke==0?(Ke+=lt,B=!0):W=!0))}}),Gi[0]=B,Gi[1]=Z,Gi[2]=W,Gi[3]=J,Ye-=qi[1]+qi[3],Ue+=qi[3],ve-=qi[2]+qi[0],Ke+=qi[0]}function Xe(){let B=Ue+Ye,W=Ke+ve,Z=Ue,J=Ke;function oe(be,ke){switch(be){case 1:return B+=ke,B-ke;case 2:return W+=ke,W-ke;case 3:return Z-=ke,Z+ke;case 0:return J-=ke,J+ke}}R.forEach((be,ke)=>{if(be.show&&be._show){let qe=be.side;be._pos=oe(qe,be._size),be.label!=null&&(be._lpos=oe(qe,be.labelSize))}})}const Me=r.cursor=ai({},gCe,{drag:{y:i==2}},t.cursor);if(Me.dataIdx==null){let B=Me.hover,W=B.skip=new Set(B.skip??[]);W.add(void 0);let Z=B.prox=on(B.prox),J=B.bias??(B.bias=0);Me.dataIdx=(oe,be,ke,qe)=>{if(be==0)return ke;let Qe=ke,ot=Z(oe,be,ke,qe)??cn,lt=ot>=0&&ot<cn,gt=M.ori==0?Ye:ve,It=Me.left,$t=e[0],zt=e[be];if(W.has(zt[ke])){Qe=null;let Wt=null,Mt=null,St;if(J==0||J==-1)for(St=ke;Wt==null&&St-- >0;)W.has(zt[St])||(Wt=St);if(J==0||J==1)for(St=ke;Mt==null&&St++<zt.length;)W.has(zt[St])||(Mt=St);if(Wt!=null||Mt!=null)if(lt){let yn=Wt==null?-1/0:V($t[Wt],M,gt,0),lr=Mt==null?1/0:V($t[Mt],M,gt,0),Sr=It-yn,qn=lr-It;Sr<=qn?Sr<=ot&&(Qe=Wt):qn<=ot&&(Qe=Mt)}else Qe=Mt==null?Wt:Wt==null?Mt:ke-Wt<=Mt-ke?Wt:Mt}else lt&&_i(It-V($t[ke],M,gt,0))>ot&&(Qe=null);return Qe}}const Xt=B=>{Me.event=B};Me.idxs=Q,Me._lock=!1;let jt=Me.points;jt.show=on(jt.show),jt.size=on(jt.size),jt.stroke=on(jt.stroke),jt.width=on(jt.width),jt.fill=on(jt.fill);const it=r.focus=ai({},t.focus||{alpha:.3},Me.focus),st=it.prox>=0,xt=st&&jt.one;let un=[],En=[],ia=[];function Jl(B,W){let Z=jt.show(r,W);if(Z)return Ss(Z,fxe),Ss(Z,B.class),yl(Z,-10,-10,Ye,ve),S.insertBefore(Z,un[W]),Z}function aa(B,W){if(i==1||W>0){let Z=i==1&&T[B.scale].time,J=B.value;B.value=Z?k4(J)?q4(F,G4(J,q)):J||U:J||OCe,B.label=B.label||(Z?bCe:_Ce)}if(xt||W>0){B.width=B.width==null?1:B.width,B.paths=B.paths||jCe||wxe,B.fillTo=on(B.fillTo||DCe),B.pxAlign=+Sn(B.pxAlign,y),B.pxRound=X4(B.pxAlign),B.stroke=on(B.stroke||null),B.fill=on(B.fill||null),B._stroke=B._fill=B._paths=B._focus=null;let Z=RCe(Ta(1,B.width),1),J=B.points=ai({},{size:Z,width:Ta(1,Z*.2),stroke:B.stroke,space:Z*2,paths:GCe,_stroke:null,_fill:null},B.points);J.show=on(J.show),J.filter=on(J.filter),J.fill=on(J.fill),J.stroke=on(J.stroke),J.paths=on(J.paths),J.pxAlign=B.pxAlign}if(te){let Z=_t(B,W);_e.splice(W,0,Z[0]),Ie.splice(W,0,Z[1]),X.values.push(null)}if(Me.show){Q.splice(W,0,null);let Z=null;xt?W==0&&(Z=Jl(B,W)):W>0&&(Z=Jl(B,W)),un.splice(W,0,Z),En.splice(W,0,0),ia.splice(W,0,0)}or("addSeries",W)}function qr(B,W){W=W??C.length,B=i==1?mI(B,W,z4,Q4):mI(B,W,{},W4),C.splice(W,0,B),aa(C[W],W)}r.addSeries=qr;function $r(B){if(C.splice(B,1),te){X.values.splice(B,1),Ie.splice(B,1);let W=_e.splice(B,1)[0];at(null,W.firstChild),W.remove()}Me.show&&(Q.splice(B,1),un.splice(B,1)[0].remove(),En.splice(B,1),ia.splice(B,1)),or("delSeries",B)}r.delSeries=$r;const Gi=[!1,!1,!1,!1];function Jc(B,W){if(B._show=B.show,B.show){let Z=B.side%2,J=T[B.scale];J==null&&(B.scale=Z?C[1].scale:w,J=T[B.scale]);let oe=J.time;B.size=on(B.size),B.space=on(B.space),B.rotate=on(B.rotate),ju(B.incrs)&&B.incrs.forEach(ke=>{!bd.has(ke)&&bd.set(ke,ZQ(ke))}),B.incrs=on(B.incrs||(J.distr==2?Zxe:oe?x==1?eCe:rCe:df)),B.splits=on(B.splits||(oe&&J.distr==1?z:J.distr==3?dI:J.distr==4?ECe:SCe)),B.stroke=on(B.stroke),B.grid.stroke=on(B.grid.stroke),B.ticks.stroke=on(B.ticks.stroke),B.border.stroke=on(B.border.stroke);let be=B.values;B.values=ju(be)&&!ju(be[0])?on(be):oe?ju(be)?j4(F,U4(be,q)):k4(be)?sCe(F,be):be||H:be||vCe,B.filter=on(B.filter||(J.distr>=3&&J.log==10?xCe:J.distr==3&&J.log==2?CCe:KQ)),B.font=tG(B.font),B.labelFont=tG(B.labelFont),B._size=B.size(r,null,W,0),B._space=B._rotate=B._incrs=B._found=B._splits=B._values=null,B._size>0&&(Gi[W]=!0,B._el=Qs(lxe,g))}}function al(B,W,Z,J){let[oe,be,ke,qe]=Z,Qe=W%2,ot=0;return Qe==0&&(qe||be)&&(ot=W==0&&!oe||W==2&&!ke?gi($4.size/3):0),Qe==1&&(oe||ke)&&(ot=W==1&&!be||W==3&&!qe?gi(H4.size/2):0),ot}const eu=r.padding=(t.padding||[al,al,al,al]).map(B=>on(Sn(B,al))),qi=r._padding=eu.map((B,W)=>B(r,W,Gi,0));let Qn,rr=null,wn=null;const Ya=i==1?C[0].idxs:null;let Bn=null,sa=!1;function ir(B,W){if(e=B??[],r.data=r._data=e,i==2){Qn=0;for(let Z=1;Z<C.length;Z++)Qn+=e[Z][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),Bn=e[0],Qn=Bn.length;let Z=e;if(P==2){Z=e.slice();let J=Z[0]=Array(Qn);for(let oe=0;oe<Qn;oe++)J[oe]=oe}r._data=e=Z}if(Zt(!0),or("setData"),P==2&&(Dr=!0),W!==!1){let Z=M;Z.auto(r,sa)?ec():us(w,Z.min,Z.max),mn=mn||Me.left>=0,tr=!0,We()}}r.setData=ir;function ec(){sa=!0;let B,W;i==1&&(Qn>0?(rr=Ya[0]=0,wn=Ya[1]=Qn-1,B=e[0][rr],W=e[0][wn],P==2?(B=rr,W=wn):B==W&&(P==3?[B,W]=hT(B,B,M.log,!1):P==4?[B,W]=Gk(B,B,M.log,!1):M.time?W=B+gi(86400/x):[B,W]=DE(B,W,qk,!0))):(rr=Ya[0]=B=null,wn=Ya[1]=W=null)),us(w,B,W)}let sl,$i,oa,la,He,Et,Gt,gn,Dn,Fn;function Ir(B,W,Z,J,oe,be){B??(B=_4),Z??(Z=zk),J??(J="butt"),oe??(oe=_4),be??(be="round"),B!=sl&&(m.strokeStyle=sl=B),oe!=$i&&(m.fillStyle=$i=oe),W!=oa&&(m.lineWidth=oa=W),be!=He&&(m.lineJoin=He=be),J!=Et&&(m.lineCap=Et=J),Z!=la&&m.setLineDash(la=Z)}function zr(B,W,Z,J){W!=$i&&(m.fillStyle=$i=W),B!=Gt&&(m.font=Gt=B),Z!=gn&&(m.textAlign=gn=Z),J!=Dn&&(m.textBaseline=Dn=J)}function Yr(B,W,Z,J,oe=0){if(J.length>0&&B.auto(r,sa)&&(W==null||W.min==null)){let be=Sn(rr,0),ke=Sn(wn,J.length-1),qe=Z.min==null?B.distr==3?xxe(J,be,ke):Txe(J,be,ke,oe):[Z.min,Z.max];B.min=eo(B.min,Z.min=qe[0]),B.max=Ta(B.max,Z.max=qe[1])}}const ca={min:null,max:null};function ol(){for(let J in T){let oe=T[J];G[J]==null&&(oe.min==null||G[w]!=null&&oe.auto(r,sa))&&(G[J]=ca)}for(let J in T){let oe=T[J];G[J]==null&&oe.from!=null&&G[oe.from]!=null&&(G[J]=ca)}G[w]!=null&&Zt(!0);let B={};for(let J in G){let oe=G[J];if(oe!=null){let be=B[J]=rm(T[J],Mxe);if(oe.min!=null)ai(be,oe);else if(J!=w||i==2)if(Qn==0&&be.from==null){let ke=be.range(r,null,null,J);be.min=ke[0],be.max=ke[1]}else be.min=cn,be.max=-cn}}if(Qn>0){C.forEach((J,oe)=>{if(i==1){let be=J.scale,ke=G[be];if(ke==null)return;let qe=B[be];if(oe==0){let Qe=qe.range(r,qe.min,qe.max,be);qe.min=Qe[0],qe.max=Qe[1],rr=qo(qe.min,e[0]),wn=qo(qe.max,e[0]),wn-rr>1&&(e[0][rr]<qe.min&&rr++,e[0][wn]>qe.max&&wn--),J.min=Bn[rr],J.max=Bn[wn]}else J.show&&J.auto&&Yr(qe,ke,J,e[oe],J.sorted);J.idxs[0]=rr,J.idxs[1]=wn}else if(oe>0&&J.show&&J.auto){let[be,ke]=J.facets,qe=be.scale,Qe=ke.scale,[ot,lt]=e[oe],gt=B[qe],It=B[Qe];gt!=null&&Yr(gt,G[qe],be,ot,be.sorted),It!=null&&Yr(It,G[Qe],ke,lt,ke.sorted),J.min=ke.min,J.max=ke.max}});for(let J in B){let oe=B[J],be=G[J];if(oe.from==null&&(be==null||be.min==null)){let ke=oe.range(r,oe.min==cn?null:oe.min,oe.max==-cn?null:oe.max,J);oe.min=ke[0],oe.max=ke[1]}}}for(let J in B){let oe=B[J];if(oe.from!=null){let be=B[oe.from];if(be.min==null)oe.min=oe.max=null;else{let ke=oe.range(r,be.min,be.max,J);oe.min=ke[0],oe.max=ke[1]}}}let W={},Z=!1;for(let J in B){let oe=B[J],be=T[J];if(be.min!=oe.min||be.max!=oe.max){be.min=oe.min,be.max=oe.max;let ke=be.distr;be._min=ke==3?kc(be.min):ke==4?pR(be.min,be.asinh):ke==100?be.fwd(be.min):be.min,be._max=ke==3?kc(be.max):ke==4?pR(be.max,be.asinh):ke==100?be.fwd(be.max):be.max,W[J]=Z=!0}}if(Z){C.forEach((J,oe)=>{i==2?oe>0&&W.y&&(J._paths=null):W[J.scale]&&(J._paths=null)});for(let J in W)Dr=!0,or("setScale",J);Me.show&&Me.left>=0&&(mn=tr=!0)}for(let J in G)G[J]=null}function tu(B){let W=uI(rr-1,0,Qn-1),Z=uI(wn+1,0,Qn-1);for(;B[W]==null&&W>0;)W--;for(;B[Z]==null&&Z<Qn-1;)Z++;return[W,Z]}function ll(){Qn>0&&(C.forEach((B,W)=>{if(W>0&&B.show&&(Ad(W,!1),Ad(W,!0),B._paths==null)){Fn!=B.alpha&&(m.globalAlpha=Fn=B.alpha);let Z=i==2?[0,e[W][0].length-1]:tu(e[W]);B._paths=B.paths(r,W,Z[0],Z[1]),Fn!=1&&(m.globalAlpha=Fn=1)}}),C.forEach((B,W)=>{if(W>0&&B.show){Fn!=B.alpha&&(m.globalAlpha=Fn=B.alpha),B._paths!=null&&Ci(W,!1);{let Z=B._paths!=null?B._paths.gaps:null,J=B.points.show(r,W,rr,wn,Z),oe=B.points.filter(r,W,J,Z);(J||oe)&&(B.points._paths=B.points.paths(r,W,rr,wn,oe),Ci(W,!0))}Fn!=1&&(m.globalAlpha=Fn=1),or("drawSeries",W)}}))}function Ad(B,W){let Z=W?C[B].points:C[B];Z._stroke=Z.stroke(r,B),Z._fill=Z.fill(r,B)}function Ci(B,W){let Z=W?C[B].points:C[B],{stroke:J,fill:oe,clip:be,flags:ke,_stroke:qe=Z._stroke,_fill:Qe=Z._fill,_width:ot=Z.width}=Z._paths;ot=Hn(ot*Tn,3);let lt=null,gt=ot%2/2;W&&Qe==null&&(Qe=ot>0?"#fff":qe);let It=Z.pxAlign==1&&gt>0;if(It&&m.translate(gt,gt),!W){let $t=sn-ot/2,zt=wr-ot/2,Wt=Wn+ot,Mt=er+ot;lt=new Path2D,lt.rect($t,zt,Wt,Mt)}W?Ha(qe,ot,Z.dash,Z.cap,Qe,J,oe,ke,be):nu(B,qe,ot,Z.dash,Z.cap,Qe,J,oe,ke,lt,be),It&&m.translate(-gt,-gt)}function nu(B,W,Z,J,oe,be,ke,qe,Qe,ot,lt){let gt=!1;Qe!=0&&N.forEach((It,$t)=>{if(It.series[0]==B){let zt=C[It.series[1]],Wt=e[It.series[1]],Mt=(zt._paths||b_).band;ju(Mt)&&(Mt=It.dir==1?Mt[0]:Mt[1]);let St,yn=null;zt.show&&Mt&&Oxe(Wt,rr,wn)?(yn=It.fill(r,$t)||be,St=zt._paths.clip):Mt=null,Ha(W,Z,J,oe,yn,ke,qe,Qe,ot,lt,St,Mt),gt=!0}}),gt||Ha(W,Z,J,oe,be,ke,qe,Qe,ot,lt)}const ru=im|hI;function Ha(B,W,Z,J,oe,be,ke,qe,Qe,ot,lt,gt){Ir(B,W,Z,J,oe),(Qe||ot||gt)&&(m.save(),Qe&&m.clip(Qe),ot&&m.clip(ot)),gt?(qe&ru)==ru?(m.clip(gt),lt&&m.clip(lt),Zr(oe,ke),ua(B,be,W)):qe&hI?(Zr(oe,ke),m.clip(gt),ua(B,be,W)):qe&im&&(m.save(),m.clip(gt),lt&&m.clip(lt),Zr(oe,ke),m.restore(),ua(B,be,W)):(Zr(oe,ke),ua(B,be,W)),(Qe||ot||gt)&&m.restore()}function ua(B,W,Z){Z>0&&(W instanceof Map?W.forEach((J,oe)=>{m.strokeStyle=sl=oe,m.stroke(J)}):W!=null&&B&&m.stroke(W))}function Zr(B,W){W instanceof Map?W.forEach((Z,J)=>{m.fillStyle=$i=J,m.fill(Z)}):W!=null&&B&&m.fill(W)}function iu(B,W,Z,J){let oe=R[B],be;if(J<=0)be=[0,0];else{let ke=oe._space=oe.space(r,B,W,Z,J),qe=oe._incrs=oe.incrs(r,B,W,Z,J,ke);be=VCe(W,Z,qe,J,ke)}return oe._found=be}function da(B,W,Z,J,oe,be,ke,qe,Qe,ot){let lt=ke%2/2;y==1&&m.translate(lt,lt),Ir(qe,ke,Qe,ot,qe),m.beginPath();let gt,It,$t,zt,Wt=oe+(J==0||J==3?-be:be);Z==0?(It=oe,zt=Wt):(gt=oe,$t=Wt);for(let Mt=0;Mt<B.length;Mt++)W[Mt]!=null&&(Z==0?gt=$t=B[Mt]:It=zt=B[Mt],m.moveTo(gt,It),m.lineTo($t,zt));m.stroke(),y==1&&m.translate(-lt,-lt)}function Dt(B){let W=!0;return R.forEach((Z,J)=>{if(!Z.show)return;let oe=T[Z.scale];if(oe.min==null){Z._show&&(W=!1,Z._show=!1,Zt(!1));return}else Z._show||(W=!1,Z._show=!0,Zt(!1));let be=Z.side,ke=be%2,{min:qe,max:Qe}=oe,[ot,lt]=iu(J,qe,Qe,ke==0?Ye:ve);if(lt==0)return;let gt=oe.distr==2,It=Z._splits=Z.splits(r,J,qe,Qe,ot,lt,gt),$t=oe.distr==2?It.map(St=>Bn[St]):It,zt=oe.distr==2?Bn[It[1]]-Bn[It[0]]:ot,Wt=Z._values=Z.values(r,Z.filter(r,$t,J,lt,zt),J,lt,zt);Z._rotate=be==2?Z.rotate(r,Wt,J,lt):0;let Mt=Z._size;Z._size=Zs(Z.size(r,Wt,J,B)),Mt!=null&&Z._size!=Mt&&(W=!1)}),W}function tc(B){let W=!0;return eu.forEach((Z,J)=>{let oe=Z(r,J,Gi,B);oe!=qi[J]&&(W=!1),qi[J]=oe}),W}function ar(){for(let B=0;B<R.length;B++){let W=R[B];if(!W.show||!W._show)continue;let Z=W.side,J=Z%2,oe,be,ke=W.stroke(r,B),qe=Z==0||Z==3?-1:1;if(W.label){let Or=W.labelGap*qe,pa=gi((W._lpos+Or)*Tn);zr(W.labelFont[0],ke,"center",Z==2?Gg:g4),m.save(),J==1?(oe=be=0,m.translate(pa,gi(wr+er/2)),m.rotate((Z==3?-ES:ES)/2)):(oe=gi(sn+Wn/2),be=pa),m.fillText(W.label,oe,be),m.restore()}let[Qe,ot]=W._found;if(ot==0)continue;let lt=T[W.scale],gt=J==0?Wn:er,It=J==0?sn:wr,$t=gi(W.gap*Tn),zt=W._splits,Wt=lt.distr==2?zt.map(Or=>Bn[Or]):zt,Mt=lt.distr==2?Bn[zt[1]]-Bn[zt[0]]:Qe,St=W.ticks,yn=W.border,lr=St.show?gi(St.size*Tn):0,Sr=W._rotate*-ES/180,qn=E(W._pos*Tn),$n=(lr+$t)*qe,Oi=qn+$n;be=J==0?Oi:0,oe=J==1?Oi:0;let Jr=W.font[0],ha=W.align==1?$h:W.align==2?fR:Sr>0?$h:Sr<0?fR:J==0?"center":Z==3?fR:$h,Wa=Sr||J==1?"middle":Z==2?Gg:g4;zr(Jr,ke,ha,Wa);let di=W.font[1]*W.lineGap,Lr=zt.map(Or=>E(c(Or,lt,gt,It))),Qa=W._values;for(let Or=0;Or<Qa.length;Or++){let pa=Qa[Or];if(pa!=null){J==0?oe=Lr[Or]:be=Lr[Or],pa=""+pa;let ac=pa.indexOf(`
`)==-1?[pa]:pa.split(/\n/gm);for(let Eo=0;Eo<ac.length;Eo++){let Ka=ac[Eo];Sr?(m.save(),m.translate(oe,be+Eo*di),m.rotate(Sr),m.fillText(Ka,0,0),m.restore()):m.fillText(Ka,oe,be+Eo*di)}}}St.show&&da(Lr,St.filter(r,Wt,B,ot,Mt),J,Z,qn,lr,Hn(St.width*Tn,3),St.stroke(r,B),St.dash,St.cap);let Ri=W.grid;Ri.show&&da(Lr,Ri.filter(r,Wt,B,ot,Mt),J,J==0?2:1,J==0?wr:sn,J==0?er:Wn,Hn(Ri.width*Tn,3),Ri.stroke(r,B),Ri.dash,Ri.cap),yn.show&&da([qn],[1],J==0?1:0,J==0?1:2,J==1?wr:sn,J==1?er:Wn,Hn(yn.width*Tn,3),yn.stroke(r,B),yn.dash,yn.cap)}or("drawAxes")}function Zt(B){C.forEach((W,Z)=>{Z>0&&(W._paths=null,B&&(i==1?(W.min=null,W.max=null):W.facets.forEach(J=>{J.min=null,J.max=null})))})}let Va=!1,Ra=!1,fa=[];function Bs(){Ra=!1;for(let B=0;B<fa.length;B++)or(...fa[B]);fa.length=0}function We(){Va||(jxe(At),Va=!0)}function dt(B,W=!1){Va=!0,Ra=W,B(r),At(),W&&fa.length>0&&queueMicrotask(Bs)}r.batch=dt;function At(){if(Kt&&(ol(),Kt=!1),Dr&&(ui(),Dr=!1),ci){if(dr(b,$h,Ue),dr(b,Gg,Ke),dr(b,r_,Ye),dr(b,i_,ve),dr(S,$h,Ue),dr(S,Gg,Ke),dr(S,r_,Ye),dr(S,i_,ve),dr(g,r_,ze),dr(g,i_,Ze),p.width=gi(ze*Tn),p.height=gi(Ze*Tn),R.forEach(({_el:B,_show:W,_size:Z,_pos:J,side:oe})=>{if(B!=null)if(W){let be=oe===3||oe===0?Z:0,ke=oe%2==1;dr(B,ke?"left":"top",J-be),dr(B,ke?"width":"height",Z),dr(B,ke?"top":"left",ke?Ke:Ue),dr(B,ke?"height":"width",ke?ve:Ye),lI(B,gf)}else Ss(B,gf)}),sl=$i=oa=He=Et=Gt=gn=Dn=la=null,Fn=1,Md(!0),Ue!=yt||Ke!=Ut||Ye!=Nt||ve!=Qt){Zt(!1);let B=Ye/Nt,W=ve/Qt;if(Me.show&&!mn&&Me.left>=0){Me.left*=B,Me.top*=W,Na&&yl(Na,gi(Me.left),0,Ye,ve),Fs&&yl(Fs,0,gi(Me.top),Ye,ve);for(let Z=0;Z<un.length;Z++){let J=un[Z];J!=null&&(En[Z]*=B,ia[Z]*=W,yl(J,Zs(En[Z]),Zs(ia[Z]),Ye,ve))}}if(Gn.show&&!qt&&Gn.left>=0&&Gn.width>0){Gn.left*=B,Gn.width*=B,Gn.top*=W,Gn.height*=W;for(let Z in Pm)dr(ul,Z,Gn[Z])}yt=Ue,Ut=Ke,Nt=Ye,Qt=ve}or("setSize"),ci=!1}ze>0&&Ze>0&&(m.clearRect(0,0,p.width,p.height),or("drawClear"),L.forEach(B=>B()),or("draw")),Gn.show&&qt&&(su(Gn),qt=!1),Me.show&&mn&&(fl(null,!0,!1),mn=!1),X.show&&X.live&&tr&&(Lm(),tr=!1),d||(d=!0,r.status=1,or("ready")),sa=!1,Va=!1}r.redraw=(B,W)=>{Dr=W||!1,B!==!1?us(w,M.min,M.max):We()};function Jt(B,W){let Z=T[B];if(Z.from==null){if(Qn==0){let J=Z.range(r,W.min,W.max,B);W.min=J[0],W.max=J[1]}if(W.min>W.max){let J=W.min;W.min=W.max,W.max=J}if(Qn>1&&W.min!=null&&W.max!=null&&W.max-W.min<1e-16)return;B==w&&Z.distr==2&&Qn>0&&(W.min=qo(W.min,e[0]),W.max=qo(W.max,e[0]),W.min==W.max&&W.max++),G[B]=W,Kt=!0,We()}}r.setScale=Jt;let Un,zi,Na,Fs,au,bo,cl,vo,Im,wd,Cn,jn,xr=!1;const sr=Me.drag;let Cr=sr.x,vr=sr.y;Me.show&&(Me.x&&(Un=Qs(uxe,S)),Me.y&&(zi=Qs(dxe,S)),M.ori==0?(Na=Un,Fs=zi):(Na=zi,Fs=Un),Cn=Me.left,jn=Me.top);const Gn=r.select=ai({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),ul=Gn.show?Qs(cxe,Gn.over?S:b):null;function su(B,W){if(Gn.show){for(let Z in B)Gn[Z]=B[Z],Z in Pm&&dr(ul,Z,B[Z]);W!==!1&&or("setSelect")}}r.setSelect=su;function Dd(B,W){let Z=C[B],J=te?_e[B]:null;if(Z.show)J&&lI(J,gf);else{J&&Ss(J,gf);let oe=xt?un[0]:un[B];yl(oe,-10,-10,Ye,ve)}}function us(B,W,Z){Jt(B,{min:W,max:Z})}function ds(B,W,Z,J){W.focus!=null&&OT(B),W.show!=null&&C.forEach((oe,be)=>{be>0&&(B==be||B==null)&&(oe.show=W.show,Dd(be,W.show),i==2?(us(oe.facets[0].scale,null,null),us(oe.facets[1].scale,null,null)):us(oe.scale,null,null),We())}),Z!==!1&&or("setSeries",B,W),J&&cu("setSeries",r,B,W)}r.setSeries=ds;function TT(B,W){ai(N[B],W)}function xT(B,W){B.fill=on(B.fill||null),B.dir=Sn(B.dir,-1),W=W??N.length,N.splice(W,0,B)}function CT(B){B==null?N.length=0:N.splice(B,1)}r.addBand=xT,r.setBand=TT,r.delBand=CT;function Mm(B,W){C[B].alpha=W,Me.show&&un[B]&&(un[B].style.opacity=W),te&&_e[B]&&(_e[B].style.opacity=W)}let So,dl,nc;const ou={focus:!0};function OT(B){if(B!=nc){let W=B==null,Z=it.alpha!=1;C.forEach((J,oe)=>{if(i==1||oe>0){let be=W||oe==0||oe==B;J._focus=W?null:be,Z&&Mm(oe,be?1:it.alpha)}}),nc=B,Z&&We()}}te&&st&&Ne(E4,fe,B=>{Me._lock||(Xt(B),nc!=null&&ds(null,ou,!0,Mr.setSeries))});function fs(B,W,Z){let J=T[W];Z&&(B=B/Tn-(J.ori==1?Ke:Ue));let oe=Ye;J.ori==1&&(oe=ve,B=oe-B),J.dir==-1&&(B=oe-B);let be=J._min,ke=J._max,qe=B/oe,Qe=be+(ke-be)*qe,ot=J.distr;return ot==3?tm(10,Qe):ot==4?Nxe(Qe,J.asinh):ot==100?J.bwd(Qe):Qe}function RT(B,W){let Z=fs(B,w,W);return qo(Z,e[0],rr,wn)}r.valToIdx=B=>qo(B,e[0]),r.posToIdx=RT,r.posToVal=fs,r.valToPos=(B,W,Z)=>T[W].ori==0?s(B,T[W],Z?Wn:Ye,Z?sn:0):o(B,T[W],Z?er:ve,Z?wr:0),r.setCursor=(B,W,Z)=>{Cn=B.left,jn=B.top,fl(null,W,Z)};function q0(B,W){dr(ul,$h,Gn.left=B),dr(ul,r_,Gn.width=W)}function $0(B,W){dr(ul,Gg,Gn.top=B),dr(ul,i_,Gn.height=W)}let Id=M.ori==0?q0:$0,rc=M.ori==1?q0:$0;function NT(){if(te&&X.live)for(let B=i==2?1:0;B<C.length;B++){if(B==0&&se)continue;let W=X.values[B],Z=0;for(let J in W)Ie[B][Z++].firstChild.nodeValue=W[J]}}function Lm(B,W){if(B!=null&&(B.idxs?B.idxs.forEach((Z,J)=>{Q[J]=Z}):Ixe(B.idx)||Q.fill(B.idx),X.idx=Q[0]),te&&X.live){for(let Z=0;Z<C.length;Z++)(Z>0||i==1&&!se)&&AT(Z,Q[Z]);NT()}tr=!1,W!==!1&&or("setLegend")}r.setLegend=Lm;function AT(B,W){let Z=C[B],J=B==0&&P==2?Bn:e[B],oe;se?oe=Z.values(r,B,W)??xe:(oe=Z.value(r,W==null?null:J[W],B,W),oe=oe==null?xe:{_:oe}),X.values[B]=oe}function fl(B,W,Z){Im=Cn,wd=jn,[Cn,jn]=Me.move(r,Cn,jn),Me.left=Cn,Me.top=jn,Me.show&&(Na&&yl(Na,gi(Cn),0,Ye,ve),Fs&&yl(Fs,0,gi(jn),Ye,ve));let J,oe=rr>wn;So=cn,dl=null;let be=M.ori==0?Ye:ve,ke=M.ori==1?Ye:ve;if(Cn<0||Qn==0||oe){J=Me.idx=null;for(let qe=0;qe<C.length;qe++){let Qe=un[qe];Qe!=null&&yl(Qe,-10,-10,Ye,ve)}st&&ds(null,ou,!0,B==null&&Mr.setSeries),X.live&&(Q.fill(J),tr=!0)}else{let qe,Qe,ot;i==1&&(qe=M.ori==0?Cn:jn,Qe=fs(qe,w),J=Me.idx=qo(Qe,e[0],rr,wn),ot=V(e[0][J],M,be,0));let lt=-10,gt=-10,It=0,$t=0,zt=!0,Wt="",Mt="";for(let St=i==2?1:0;St<C.length;St++){let yn=C[St],lr=Q[St],Sr=lr==null?null:i==1?e[St][lr]:e[St][1][lr],qn=Me.dataIdx(r,St,J,Qe),$n=qn==null?null:i==1?e[St][qn]:e[St][1][qn];tr=tr||$n!=Sr||qn!=lr,Q[St]=qn;let Oi=qn==J?ot:V(i==1?e[0][qn]:e[St][0][qn],M,be,0);if(St>0&&yn.show){let Jr=$n==null?-10:Y($n,i==1?T[yn.scale]:T[yn.facets[1].scale],ke,0);if(st&&$n!=null){let ha=M.ori==1?Cn:jn,Wa=_i(it.dist(r,St,qn,Jr,ha));if(Wa<So){let di=it.bias;if(di!=0){let Lr=fs(ha,yn.scale),Qa=$n>=0?1:-1,Ri=Lr>=0?1:-1;Ri==Qa&&(Ri==1?di==1?$n>=Lr:$n<=Lr:di==1?$n<=Lr:$n>=Lr)&&(So=Wa,dl=St)}else So=Wa,dl=St}}if(tr||xt){let ha,Wa;M.ori==0?(ha=Oi,Wa=Jr):(ha=Jr,Wa=Oi);let di,Lr,Qa,Ri,Or,pa,ac=!0,Eo=jt.bbox;if(Eo!=null){ac=!1;let Ka=Eo(r,St);Qa=Ka.left,Ri=Ka.top,di=Ka.width,Lr=Ka.height}else Qa=ha,Ri=Wa,di=Lr=jt.size(r,St);if(pa=jt.fill(r,St),Or=jt.stroke(r,St),xt)St==dl&&So<=it.prox&&(lt=Qa,gt=Ri,It=di,$t=Lr,zt=ac,Wt=pa,Mt=Or);else{let Ka=un[St];Ka!=null&&(En[St]=Qa,ia[St]=Ri,N4(Ka,di,Lr,ac),O4(Ka,pa,Or),yl(Ka,Zs(Qa),Zs(Ri),Ye,ve))}}}}if(xt){let St=it.prox,yn=nc==null?So<=St:So>St||dl!=nc;if(tr||yn){let lr=un[0];En[0]=lt,ia[0]=gt,N4(lr,It,$t,zt),O4(lr,Wt,Mt),yl(lr,Zs(lt),Zs(gt),Ye,ve)}}}if(Gn.show&&xr)if(B!=null){let[qe,Qe]=Mr.scales,[ot,lt]=Mr.match,[gt,It]=B.cursor.sync.scales,$t=B.cursor.drag;if(Cr=$t._x,vr=$t._y,Cr||vr){let{left:zt,top:Wt,width:Mt,height:St}=B.select,yn=B.scales[gt].ori,lr=B.posToVal,Sr,qn,$n,Oi,Jr,ha=qe!=null&&ot(qe,gt),Wa=Qe!=null&&lt(Qe,It);ha&&Cr?(yn==0?(Sr=zt,qn=Mt):(Sr=Wt,qn=St),$n=T[qe],Oi=V(lr(Sr,gt),$n,be,0),Jr=V(lr(Sr+qn,gt),$n,be,0),Id(eo(Oi,Jr),_i(Jr-Oi))):Id(0,be),Wa&&vr?(yn==1?(Sr=zt,qn=Mt):(Sr=Wt,qn=St),$n=T[Qe],Oi=Y(lr(Sr,It),$n,ke,0),Jr=Y(lr(Sr+qn,It),$n,ke,0),rc(eo(Oi,Jr),_i(Jr-Oi))):rc(0,ke)}else oh()}else{let qe=_i(Im-au),Qe=_i(wd-bo);if(M.ori==1){let It=qe;qe=Qe,Qe=It}Cr=sr.x&&qe>=sr.dist,vr=sr.y&&Qe>=sr.dist;let ot=sr.uni;ot!=null?Cr&&vr&&(Cr=qe>=ot,vr=Qe>=ot,!Cr&&!vr&&(Qe>qe?vr=!0:Cr=!0)):sr.x&&sr.y&&(Cr||vr)&&(Cr=vr=!0);let lt,gt;Cr&&(M.ori==0?(lt=cl,gt=Cn):(lt=vo,gt=jn),Id(eo(lt,gt),_i(gt-lt)),vr||rc(0,ke)),vr&&(M.ori==1?(lt=cl,gt=Cn):(lt=vo,gt=jn),rc(eo(lt,gt),_i(gt-lt)),Cr||Id(0,be)),!Cr&&!vr&&(Id(0,0),rc(0,0))}if(sr._x=Cr,sr._y=vr,B==null){if(Z){if(X0!=null){let[qe,Qe]=Mr.scales;Mr.values[0]=qe!=null?fs(M.ori==0?Cn:jn,qe):null,Mr.values[1]=Qe!=null?fs(M.ori==1?Cn:jn,Qe):null}cu(b4,r,Cn,jn,Ye,ve,J)}if(st){let qe=Z&&Mr.setSeries,Qe=it.prox;nc==null?So<=Qe&&ds(dl,ou,!0,qe):So>Qe?ds(null,ou,!0,qe):dl!=nc&&ds(dl,ou,!0,qe)}}tr&&(X.idx=J,Lm()),W!==!1&&or("setCursor")}let hl=null;Object.defineProperty(r,"rect",{get(){return hl==null&&Md(!1),hl}});function Md(B=!1){B?hl=null:(hl=S.getBoundingClientRect(),or("syncRect",hl))}function z0(B,W,Z,J,oe,be,ke){Me._lock||xr&&B!=null&&B.movementX==0&&B.movementY==0||(km(B,W,Z,J,oe,be,ke,!1,B!=null),B!=null?fl(null,!0,!0):fl(W,!0,!1))}function km(B,W,Z,J,oe,be,ke,qe,Qe){if(hl==null&&Md(!1),Xt(B),B!=null)Z=B.clientX-hl.left,J=B.clientY-hl.top;else{if(Z<0||J<0){Cn=-10,jn=-10;return}let[ot,lt]=Mr.scales,gt=W.cursor.sync,[It,$t]=gt.values,[zt,Wt]=gt.scales,[Mt,St]=Mr.match,yn=W.axes[0].side%2==1,lr=M.ori==0?Ye:ve,Sr=M.ori==1?Ye:ve,qn=yn?be:oe,$n=yn?oe:be,Oi=yn?J:Z,Jr=yn?Z:J;if(zt!=null?Z=Mt(ot,zt)?c(It,T[ot],lr,0):-10:Z=lr*(Oi/qn),Wt!=null?J=St(lt,Wt)?c($t,T[lt],Sr,0):-10:J=Sr*(Jr/$n),M.ori==1){let ha=Z;Z=J,J=ha}}Qe&&((Z<=1||Z>=Ye-1)&&(Z=uf(Z,Ye)),(J<=1||J>=ve-1)&&(J=uf(J,ve))),qe?(au=Z,bo=J,[cl,vo]=Me.move(r,Z,J)):(Cn=Z,jn=J)}const Pm={width:0,height:0,left:0,top:0};function oh(){su(Pm,!1)}let Y0,H0,V0,lh;function lu(B,W,Z,J,oe,be,ke){xr=!0,Cr=vr=sr._x=sr._y=!1,km(B,W,Z,J,oe,be,ke,!0,!1),B!=null&&(Ne(hR,sI,W0,!1),cu(v4,r,cl,vo,Ye,ve,null));let{left:qe,top:Qe,width:ot,height:lt}=Gn;Y0=qe,H0=Qe,V0=ot,lh=lt,oh()}function W0(B,W,Z,J,oe,be,ke){xr=sr._x=sr._y=!1,km(B,W,Z,J,oe,be,ke,!1,!0);let{left:qe,top:Qe,width:ot,height:lt}=Gn,gt=ot>0||lt>0,It=Y0!=qe||H0!=Qe||V0!=ot||lh!=lt;if(gt&&It&&su(Gn),sr.setScale&&gt&&It){let $t=qe,zt=ot,Wt=Qe,Mt=lt;if(M.ori==1&&($t=Qe,zt=lt,Wt=qe,Mt=ot),Cr&&us(w,fs($t,w),fs($t+zt,w)),vr)for(let St in T){let yn=T[St];St!=w&&yn.from==null&&yn.min!=cn&&us(St,fs(Wt+Mt,St),fs(Wt,St))}oh()}else Me.lock&&(Me._lock=!Me._lock,fl(null,!0,!1));B!=null&&(at(hR,sI),cu(hR,r,Cn,jn,Ye,ve,null))}function Q0(B,W,Z,J,oe,be,ke){if(Me._lock)return;Xt(B);let qe=xr;if(xr){let Qe=!0,ot=!0,lt=10,gt,It;M.ori==0?(gt=Cr,It=vr):(gt=vr,It=Cr),gt&&It&&(Qe=Cn<=lt||Cn>=Ye-lt,ot=jn<=lt||jn>=ve-lt),gt&&Qe&&(Cn=Cn<cl?0:Ye),It&&ot&&(jn=jn<vo?0:ve),fl(null,!0,!0),xr=!1}Cn=-10,jn=-10,fl(null,!0,!0),qe&&(xr=qe)}function Bm(B,W,Z,J,oe,be,ke){Me._lock||(Xt(B),ec(),oh(),B!=null&&cu(y4,r,Cn,jn,Ye,ve,null))}function Fm(){R.forEach(WCe),nr(r.width,r.height,!0)}Gf(wE,_p,Fm);const ic={};ic.mousedown=lu,ic.mousemove=z0,ic.mouseup=W0,ic.dblclick=Bm,ic.setSeries=(B,W,Z,J)=>{let oe=Mr.match[2];Z=oe(r,W,Z),Z!=-1&&ds(Z,J,!0,!1)},Me.show&&(Ne(v4,S,lu),Ne(b4,S,z0),Ne(S4,S,B=>{Xt(B),Md(!1)}),Ne(E4,S,Q0),Ne(y4,S,Bm),pI.add(r),r.syncRect=Md);const Ld=r.hooks=t.hooks||{};function or(B,W,Z){Ra?fa.push([B,W,Z]):B in Ld&&Ld[B].forEach(J=>{J.call(null,r,W,Z)})}(t.plugins||[]).forEach(B=>{for(let W in B.hooks)Ld[W]=(Ld[W]||[]).concat(B.hooks[W])});const K0=(B,W,Z)=>Z,Mr=ai({key:null,setSeries:!1,filters:{pub:M4,sub:M4},scales:[w,C[1]?C[1].scale:null],match:[L4,L4,K0],values:[null,null]},Me.sync);Mr.match.length==2&&Mr.match.push(K0),Me.sync=Mr;const X0=Mr.key,ch=bK(X0);function cu(B,W,Z,J,oe,be,ke){Mr.filters.pub(B,W,Z,J,oe,be,ke)&&ch.pub(B,W,Z,J,oe,be,ke)}ch.sub(r);function kd(B,W,Z,J,oe,be,ke){Mr.filters.sub(B,W,Z,J,oe,be,ke)&&ic[B](null,W,Z,J,oe,be,ke)}r.pub=kd;function Pd(){ch.unsub(r),pI.delete(r),Te.clear(),cI(wE,_p,Fm),f.remove(),fe==null||fe.remove(),or("destroy")}r.destroy=Pd;function Um(){or("init",t,e),ir(e||t.data,!1),G[w]?Jt(w,G[w]):ec(),qt=Gn.show&&(Gn.width>0||Gn.height>0),mn=tr=!0,nr(t.width,t.height)}return C.forEach(aa),R.forEach(Jc),n?n instanceof HTMLElement?(n.appendChild(f),Um()):n(r,Um):Um(),r}Bi.assign=ai;Bi.fmtNum=$k;Bi.rangeNum=DE;Bi.rangeLog=hT;Bi.rangeAsinh=Gk;Bi.orient=sh;Bi.pxRatio=Tn;Bi.join=Uxe;Bi.fmtDate=Yk,Bi.tzDate=Kxe;Bi.sync=bK;{Bi.addGap=ICe,Bi.clipGaps=gT;let t=Bi.paths={points:xK};t.linear=OK,t.stepped=kCe,t.bars=PCe,t.spline=FCe}const QCe=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),KCe=T5(QCe);var XCe=SS.exports,nG;function ZCe(){return nG||(nG=1,function(t,e){(function(r,i){t.exports=i(l0(),KCe)})(XCe,(n,r)=>(()=>{var i={"./common/index.ts":(c,d,f)=>{f.r(d),f.d(d,{dataMatch:()=>g,optionsUpdateState:()=>m});var p=function(b,S){var y={};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&S.indexOf(E)<0&&(y[E]=b[E]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,E=Object.getOwnPropertySymbols(b);x<E.length;x++)S.indexOf(E[x])<0&&Object.prototype.propertyIsEnumerable.call(b,E[x])&&(y[E[x]]=b[E[x]]);return y};Object.is||Object.defineProperty(Object,"is",{value:function(S,y){return S===y&&(S!==0||1/S===1/y)||S!==S&&y!==y}});var m=function(S,y){var E=S.width,x=S.height,C=p(S,["width","height"]),R=y.width,T=y.height,N=p(y,["width","height"]),w="keep";if((x!==T||E!==R)&&(w="update"),Object.keys(C).length!==Object.keys(N).length)return"create";for(var D=0,L=Object.keys(C);D<L.length;D++){var k=L[D];if(!Object.is(C[k],N[k])){w="create";break}}return w},g=function(S,y){return S.length!==y.length?!1:S.every(function(E,x){var C=y[x];return E.length!==C.length?!1:E.every(function(R,T){return R===C[T]})})}},react:c=>{c.exports=n},uplot:c=>{c.exports=r}},a={};function s(c){var d=a[c];if(d!==void 0)return d.exports;var f=a[c]={exports:{}};return i[c](f,f.exports,s),f.exports}s.n=c=>{var d=c&&c.__esModule?()=>c.default:()=>c;return s.d(d,{a:d}),d},s.d=(c,d)=>{for(var f in d)s.o(d,f)&&!s.o(c,f)&&Object.defineProperty(c,f,{enumerable:!0,get:d[f]})},s.o=(c,d)=>Object.prototype.hasOwnProperty.call(c,d),s.r=c=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})};var o={};return(()=>{/*!*******************************!*\
  !*** ./react/uplot-react.tsx ***!
  \*******************************/s.r(o),s.d(o,{default:()=>g});var c=s("react"),d=s.n(c),f=s("uplot"),p=s.n(f),m=s("./common/index.ts");function g(b){var S=b.options,y=b.data,E=b.target,x=b.onDelete,C=b.onCreate,R=b.resetScales,T=R===void 0?!0:R,N=b.className,w=(0,c.useRef)(null),D=(0,c.useRef)(null),L=(0,c.useRef)(S),k=(0,c.useRef)(E),M=(0,c.useRef)(y),P=(0,c.useRef)(C),V=(0,c.useRef)(x);(0,c.useEffect)(function(){P.current=C,V.current=x});var Y=(0,c.useCallback)(function(F){var q;F&&((q=V.current)===null||q===void 0||q.call(V,F),F.destroy(),w.current=null)},[]),G=(0,c.useCallback)(function(){var F,q=new(p())(L.current,M.current,k.current||D.current);w.current=q,(F=P.current)===null||F===void 0||F.call(P,q)},[]);return(0,c.useEffect)(function(){return G(),function(){Y(w.current)}},[G,Y]),(0,c.useEffect)(function(){if(L.current!==S){var F=(0,m.optionsUpdateState)(L.current,S);L.current=S,!w.current||F==="create"?(Y(w.current),G()):F==="update"&&w.current.setSize({width:S.width,height:S.height})}},[S,G,Y]),(0,c.useEffect)(function(){M.current!==y&&(w.current?(0,m.dataMatch)(M.current,y)||(T?w.current.setData(y,!0):(w.current.setData(y,!1),w.current.redraw())):(M.current=y,G()),M.current=y)},[y,T,G]),(0,c.useEffect)(function(){return k.current!==E&&(k.current=E,G()),function(){return Y(w.current)}},[E,G,Y]),E?null:d().createElement("div",{ref:D,className:N})}})(),o=o.default,o})())}(SS)),SS.exports}var JCe=ZCe();const eOe=nl(JCe),wK=t=>t===null?"scalar":fT(t.__name__||"")?`{"${ad(t.__name__)}",${Object.entries(t).filter(([e])=>e!=="__name__").map(([e,n])=>`${_d(e)}="${ad(n)}"`).join(", ")}}`:`${t.__name__||""}{${Object.entries(t).filter(([e])=>e!=="__name__").map(([e,n])=>`${_d(e)}="${ad(n)}"`).join(", ")}}`,rG=(t,e)=>{const n=iG[t%iG.length];return e?n:V5(n,.4)},iG=["#008000","#008080","#800000","#800080","#808000","#808080","#0000c0","#008040","#0080c0","#800040","#8000c0","#808040","#8080c0","#00c000","#00c080","#804000","#804080","#80c000","#80c080","#0040c0","#00c040","#00c0c0","#804040","#8040c0","#80c040","#80c0c0","#408000","#408080","#c00000","#c00080","#c08000","#c08080","#4000c0","#408040","#4080c0","#c00040","#c000c0","#c08040","#c080c0","#404000","#404080","#40c000","#40c080","#c04000","#c04080","#c0c000","#c0c080","#404040","#4040c0","#40c040","#40c0c0","#c04040","#c040c0","#c0c040","#0000a0","#008020","#0080a0","#800020","#8000a0","#808020","#8080a0","#0000e0","#008060","#0080e0","#800060","#8000e0","#808060","#8080e0","#0040a0","#00c020","#00c0a0","#804020","#8040a0","#80c020","#80c0a0","#0040e0","#00c060","#00c0e0","#804060","#8040e0","#80c060","#80c0e0","#4000a0","#408020","#4080a0","#c00020","#c000a0","#c08020","#c080a0","#4000e0","#408060","#4080e0","#c00060","#c000e0","#c08060","#c080e0","#404020","#4040a0","#40c020","#40c0a0","#c04020","#c040a0","#c0c020","#c0c0a0","#404060","#4040e0","#40c060","#40c0e0","#c04060","#c040e0","#c0c060","#00a000","#00a080","#802000","#802080","#80a000","#80a080","#0020c0","#00a040","#00a0c0","#802040","#8020c0","#80a040","#80a0c0","#006000","#006080","#00e000","#00e080","#806000","#806080","#80e000","#80e080","#006040","#0060c0","#00e040","#00e0c0","#806040","#8060c0","#80e040","#80e0c0","#40a000","#40a080","#c02000","#c02080","#c0a000","#c0a080","#4020c0","#40a040","#40a0c0","#c02040","#c020c0","#c0a040","#c0a0c0","#406000","#406080","#40e000","#40e080","#c06000","#c06080","#c0e000","#c0e080","#406040","#4060c0","#40e040","#40e0c0","#c06040","#c060c0","#c0e040","#c0e0c0","#0020a0","#00a020","#00a0a0","#802020","#8020a0","#80a020","#80a0a0","#0020e0","#00a060","#00a0e0","#802060","#8020e0","#80a060","#80a0e0","#006020","#0060a0","#00e020","#00e0a0","#806020","#8060a0","#80e020","#80e0a0","#006060","#0060e0","#00e060","#00e0e0","#806060","#8060e0","#80e060","#80e0e0","#4020a0","#40a020","#40a0a0","#c02020","#c020a0","#c0a020","#c0a0a0","#4020e0","#40a060","#40a0e0","#c02060","#c020e0","#c0a060","#c0a0e0","#406020","#4060a0","#40e020","#40e0a0","#c06020","#c060a0","#c0e020","#c0e0a0","#406060","#4060e0","#40e060","#40e0e0","#c06060","#c060e0","#c0e060","#208000","#208080","#a00000","#a00080","#a08000","#a08080","#208040","#2080c0","#a00040","#a000c0","#a08040","#a080c0","#204080","#20c000","#20c080","#a04000","#a04080","#a0c000","#a0c080","#2040c0","#20c040","#20c0c0","#a04040","#a040c0","#a0c040","#a0c0c0","#608000","#608080","#e00000","#e00080","#e08000","#e08080","#6000c0","#608040","#6080c0","#e00040","#e000c0","#e08040","#e080c0","#604080","#60c000","#60c080","#e04000","#e04080","#e0c000","#e0c080","#604040","#6040c0","#60c040","#60c0c0","#e04040","#e040c0","#e0c040","#e0c0c0","#208020","#2080a0","#a00020","#a000a0","#a08020","#a080a0","#2000e0","#208060","#2080e0","#a00060","#a000e0","#a08060","#a080e0","#2040a0","#20c020","#20c0a0","#a04020","#a040a0","#a0c020","#2040e0","#20c060","#20c0e0","#a04060","#a040e0","#a0c060","#a0c0e0","#6000a0","#608020","#6080a0","#e00020","#e000a0","#e08020","#e080a0","#6000e0","#608060","#6080e0","#e00060","#e000e0","#e08060","#e080e0","#604020","#6040a0","#60c020","#60c0a0","#e04020","#e040a0","#e0c020","#e0c0a0","#604060","#6040e0","#60c060","#60c0e0","#e04060","#e040e0","#e0c060","#e0c0e0","#20a000","#20a080","#a02000","#a02080","#a0a000","#a0a080","#2020c0","#20a040","#20a0c0","#a02040","#a020c0","#a0a040","#a0a0c0","#206000","#206080","#20e000","#20e080","#a06000","#a06080","#a0e000","#a0e080","#206040","#2060c0","#20e040","#20e0c0","#a06040","#a060c0","#a0e040","#a0e0c0","#602080","#60a000","#60a080","#e02000","#e02080","#e0a000","#e0a080","#6020c0","#60a040","#60a0c0","#e02040","#e020c0","#e0a040","#e0a0c0","#606000","#606080","#60e000","#60e080","#e06000","#e06080","#e0e000","#e0e080","#606040","#6060c0","#60e040","#60e0c0","#e06040","#e060c0","#e0e040","#e0e0c0","#20a020","#20a0a0","#a02020","#a020a0","#a0a020","#a0a0a0","#2020e0","#20a060","#20a0e0","#a02060","#a020e0","#a0a060","#a0a0e0","#206020","#2060a0","#20e020","#20e0a0","#a06020","#a060a0","#a0e020","#a0e0a0","#206060","#2060e0","#20e060","#20e0e0","#a06060","#a060e0","#a0e060","#a0e0e0","#6020a0","#60a020","#60a0a0","#e02020","#e020a0","#e0a020","#e0a0a0","#602060","#6020e0","#60a060","#60a0e0","#e02060","#e020e0","#e0a060","#e0a0e0","#606020","#6060a0","#60e020","#60e0a0","#e06020","#e060a0","#e0e020","#e0e0a0","#606060","#6060e0","#60e060","#60e0e0","#e06060","#e060e0","#e0e060","#008010","#008090","#800010","#800090","#808010","#808090","#0000d0","#008050","#0080d0","#800050","#8000d0","#808050","#8080d0","#004010","#004090","#00c010","#00c090","#804010","#804090","#80c010","#80c090","#004050","#0040d0","#00c050","#00c0d0","#804050","#8040d0","#80c050","#80c0d0","#400090","#408010","#408090","#c00010","#c00090","#c08010","#c08090","#4000d0","#408050","#4080d0","#c00050","#c000d0","#c08050","#c080d0","#404010","#404090","#40c010","#40c090","#c04010","#c04090","#c0c010","#c0c090","#404050","#4040d0","#40c050","#40c0d0","#c04050","#c040d0","#c0c050","#0000b0","#008030","#0080b0","#800030","#8000b0","#808030","#8080b0","#0000f0","#008070","#0080f0","#800070","#8000f0","#808070","#8080f0","#004030","#0040b0","#00c030","#00c0b0","#804030","#8040b0","#80c030","#80c0b0","#004070","#0040f0","#00c070","#00c0f0","#804070","#8040f0","#80c070","#80c0f0","#4000b0","#408030","#4080b0","#c00030","#c000b0","#c08030","#c080b0","#400070","#4000f0","#408070","#4080f0","#c00070","#c000f0","#c08070","#c080f0","#404030","#4040b0","#40c030","#40c0b0","#c04030","#c040b0","#c0c030","#c0c0b0","#404070","#4040f0","#40c070","#40c0f0","#c04070","#c040f0","#c0c070","#c0c0f0","#002090","#00a010","#00a090","#802010","#802090","#80a010","#80a090","#0020d0","#00a050","#00a0d0","#802050","#8020d0","#80a050","#80a0d0","#006010","#006090","#00e010","#00e090","#806010","#806090","#80e010","#80e090","#006050","#0060d0","#00e050","#00e0d0","#806050","#8060d0","#80e050","#80e0d0","#402090","#40a010","#40a090","#c02010","#c02090","#c0a010","#c0a090","#402050","#4020d0","#40a050","#40a0d0","#c02050","#c020d0","#c0a050","#c0a0d0","#406010","#406090","#40e010","#40e090","#c06010","#c06090","#c0e010","#c0e090","#406050","#4060d0","#40e050","#40e0d0","#c06050","#c060d0","#c0e050","#c0e0d0","#0020b0","#00a030","#00a0b0","#802030","#8020b0","#80a030","#80a0b0","#0020f0","#00a070","#00a0f0","#802070","#8020f0","#80a070","#80a0f0","#006030","#0060b0","#00e030","#00e0b0","#806030","#8060b0","#80e030","#80e0b0","#006070","#0060f0","#00e070","#00e0f0","#806070","#8060f0","#80e070","#80e0f0","#4020b0","#40a030","#40a0b0","#c02030","#c020b0","#c0a030","#c0a0b0","#4020f0","#40a070","#40a0f0","#c02070","#c020f0","#c0a070","#c0a0f0","#406030","#4060b0","#40e030","#40e0b0","#c06030","#c060b0","#c0e030","#c0e0b0","#406070","#4060f0","#40e070","#40e0f0","#c06070","#c060f0","#c0e070","#208010","#208090","#a00010","#a00090","#a08010","#a08090","#2000d0","#208050","#2080d0","#a00050","#a000d0","#a08050","#a080d0","#204010","#204090","#20c010","#20c090","#a04010","#a04090","#a0c010","#a0c090","#204050","#2040d0","#20c050","#20c0d0","#a04050","#a040d0","#a0c050","#a0c0d0","#600090","#608010","#608090","#e00010","#e00090","#e08010","#e08090","#600050","#6000d0","#608050","#6080d0","#e00050","#e000d0","#e08050","#e080d0","#604010","#604090","#60c010","#60c090","#e04010","#e04090","#e0c010","#e0c090","#604050","#6040d0","#60c050","#60c0d0","#e04050","#e040d0","#e0c050","#e0c0d0","#2000b0","#208030","#2080b0","#a00030","#a000b0","#a08030","#a080b0","#2000f0","#208070","#2080f0","#a00070","#a000f0","#a08070","#a080f0","#204030","#2040b0","#20c030","#20c0b0","#a04030","#a040b0","#a0c030","#a0c0b0","#204070","#2040f0","#20c070","#20c0f0","#a04070","#a040f0","#a0c070","#a0c0f0","#6000b0","#608030","#6080b0","#e00030","#e000b0","#e08030","#e080b0","#600070","#6000f0","#608070","#e00070","#e000f0","#e08070","#e080f0","#604030","#6040b0","#60c030","#60c0b0","#e04030","#e040b0","#e0c030","#e0c0b0","#604070","#6040f0","#60c070","#60c0f0","#e04070","#e040f0","#e0c070","#e0c0f0","#20a010","#20a090","#a02010","#a02090","#a0a010","#a0a090","#2020d0","#20a050","#20a0d0","#a02050","#a020d0","#a0a050","#a0a0d0","#206010","#206090","#20e010","#20e090","#a06010","#a06090","#a0e010","#a0e090","#206050","#2060d0","#20e050","#20e0d0","#a06050","#a060d0","#a0e050","#a0e0d0","#602090","#60a010","#60a090","#e02010","#e02090","#e0a010","#e0a090","#602050","#6020d0","#60a050","#60a0d0","#e02050","#e020d0","#e0a050","#e0a0d0","#606010","#606090","#60e010","#60e090","#e06010","#e06090","#e0e010","#e0e090","#606050","#6060d0","#60e050","#60e0d0","#e06050","#e060d0","#e0e050","#2020b0","#20a030","#20a0b0","#a02030","#a020b0","#a0a030","#a0a0b0","#2020f0","#20a070","#20a0f0","#a02070","#a020f0","#a0a070","#a0a0f0","#206030","#2060b0","#20e030","#20e0b0","#a06030","#a060b0","#a0e030","#a0e0b0","#206070","#2060f0","#20e070","#20e0f0","#a06070","#a060f0","#a0e070","#a0e0f0","#6020b0","#60a030","#60a0b0","#e02030","#e020b0","#e0a030","#e0a0b0","#6020f0","#60a070","#60a0f0","#e02070","#e020f0","#e0a070","#e0a0f0","#606030","#6060b0","#60e030","#60e0b0","#e06030","#e060b0","#e0e030","#e0e0b0","#606070","#6060f0","#60e070","#60e0f0","#e06070","#e060f0","#e0e070"],tOe=t=>{if(t===null)return"null";const e=Math.abs(t);if(e>=1e24)return(t/1e24).toFixed(2)+"Y";if(e>=1e21)return(t/1e21).toFixed(2)+"Z";if(e>=1e18)return(t/1e18).toFixed(2)+"E";if(e>=1e15)return(t/1e15).toFixed(2)+"P";if(e>=1e12)return(t/1e12).toFixed(2)+"T";if(e>=1e9)return(t/1e9).toFixed(2)+"G";if(e>=1e6)return(t/1e6).toFixed(2)+"M";if(e>=1e3)return(t/1e3).toFixed(2)+"k";if(e>=1)return t.toFixed(2);if(e===0)return t.toFixed(2);if(e<1e-23)return(t/1e-24).toFixed(2)+"y";if(e<1e-20)return(t/1e-21).toFixed(2)+"z";if(e<1e-17)return(t/1e-18).toFixed(2)+"a";if(e<1e-14)return(t/1e-15).toFixed(2)+"f";if(e<1e-11)return(t/1e-12).toFixed(2)+"p";if(e<1e-8)return(t/1e-9).toFixed(2)+"n";if(e<1e-5)return(t/1e-6).toFixed(2)+"µ";if(e<.01)return(t/.001).toFixed(2)+"m";if(e<=1)return t.toFixed(2);throw Error("couldn't format a value, this is a bug")},bR=t=>{const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};return String(t).replace(/[&<>"'/]/g,function(n){return e[n]})},nOe=t=>`
            <div class="labels">
              ${Object.keys(t).length===0?'<div class="no-labels">no labels</div>':""}
              ${t.__name__?`<div><strong>${bR(t.__name__)}</strong></div>`:""}
              ${Object.keys(t).filter(e=>e!=="__name__").map(e=>`<div><strong>${bR(e)}</strong>: ${bR(t[e])}</div>`).join("")}
            </div>`,rOe=(t,e)=>{let n,r,i,a=null;const s=document.createElement("div");return s.className="u-tooltip",s.style.display="none",{hooks:{init:o=>{n=o.over,n.addEventListener("mouseenter",()=>{s.style.display="block"}),n.addEventListener("mouseleave",()=>{s.style.display="none"}),document.body.appendChild(s)},destroy:()=>{s.remove()},setSize:()=>{const o=n.getBoundingClientRect();r=o.left,i=o.top},setSeries:(o,c,d)=>{a=c},setCursor:o=>{const{left:c,top:d,idx:f}=o.cursor;if(f==null||c===null||c===void 0||d===null||d===void 0||a===null)return;const p=o.data[0][f],m=e[a][f],g=o.series[a],b=g.labels;if(typeof g.stroke!="function")throw new Error("series.stroke is not a function");const S=g.stroke(o,a),y=c+r,E=d+i;s.innerHTML=`
            <div class="date">${Bf(p,t)}</div>
            <div class="series-value">
              <span class="detail-swatch" style="background-color: ${S}"></span>
              <span>${b.__name__?b.__name__+": ":" "}<strong>${m}</strong></span>
            </div>
            ${nOe(b)}
          `.trimEnd(),Nz({getBoundingClientRect(){return{width:0,height:0,x:y,y:E,left:y,right:y,top:E,bottom:E}}},s,{placement:"right-start",middleware:[Cz(5),Rz(),Oz()]}).then(({x:C,y:R})=>{Object.assign(s.style,{top:`${R}px`,left:`${C}px`})})}}}},iOe=(t,e,n,r)=>{const i=t.axes[n];if(r>1)return i._size;let a=i.ticks.size+i.gap;const s=(e??[]).reduce((o,c)=>c.length>o.length?c:o,"");return s!=""&&(t.ctx.font=i.font[0],a+=t.ctx.measureText(s).width/devicePixelRatio),Math.ceil(a)},aOe=(t,e,n,r)=>{const i=[],a=t.series[e];if(!n&&r&&r.length){const[s,o]=a.idxs,c=t.data[0],d=t.data[e],f=Math.round(t.valToPos(c[s],"x",!0)),p=Math.round(t.valToPos(c[o],"x",!0));r[0][0]===f&&i.push(s);for(let m=0;m<r.length;m++){const g=r[m],b=r[m+1];if(b&&g[1]===b[0]){let S=t.posToIdx(g[1],!0);if(d[S]==null)for(let y=1;y<100;y++){if(d[S+y]!=null){S+=y;break}if(d[S-y]!=null){S-=y;break}}i.push(S)}}r[r.length-1][1]===p&&i.push(o)}return i.length?i:null},sOe=(t,e,n,r,i,a)=>({width:e-30,height:550,cursor:{focus:{prox:1e3},drag:{x:!0,setScale:!1}},tzDate:r?void 0:s=>Bi.tzDate(new Date(s*1e3),"Etc/UTC"),plugins:[rOe(r,t)],legend:{show:!0,live:!1,isolate:!0,markers:{fill:(s,o)=>rG(o-1,i)}},drawOrder:["series","axes"],focus:{alpha:1},axes:[{space:80,labelSize:20,stroke:i?"#333":"#eee",ticks:{stroke:i?"#00000010":"#ffffff20"},grid:{show:!0,stroke:i?"#00000010":"#ffffff20",width:2,dash:[]},values:[[3600*24*365,"{YYYY}",null,null,null,null,null,null,1],[3600*24*28,"{MMM}",`
{YYYY}`,null,null,null,null,null,1],[3600*24,"{MMM} {D}",`
{YYYY}`,null,null,null,null,null,1],[3600,"{HH}:{mm}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1],[60,"{HH}:{mm}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1],[1,"{HH}:{mm}:{ss}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1],[.001,"{HH}:{mm}:{ss}.{fff}",`
{MMM} {D} '{YY}`,null,`
{MMM} {D}`,null,null,null,1]]},{values:(s,o)=>o.map(tOe),ticks:{stroke:i?"#00000010":"#ffffff20"},grid:{show:!0,stroke:i?"#00000010":"#ffffff20",width:2,dash:[]},labelGap:8,labelSize:28,stroke:i?"#333":"#eee",size:iOe}],series:[{},...n.map((s,o)=>({points:{filter:aOe},label:wK(s.metric),width:1.5,labels:s.metric,stroke:rG(o,i)}))],hooks:{setSelect:[s=>{const o=s.posToVal(s.select.left,"x"),c=Math.max(s.posToVal(s.select.left+s.select.width,"x"),o+1);a(o,c)}]}}),aG=t=>{const e=parseFloat(t);return isNaN(e)?null:e},oOe=(t,e,n,r)=>{const i=[];for(let s=e;s<=n;s+=r)i.push(s);const a=t.map(({values:s,histograms:o})=>{const c=[];let d=0,f=0;for(let p=e;p<=n;p+=r){const m=s&&s[d],g=o&&o[f];m&&s.length>d&&m[0]<p+r/100?(c.push(aG(m[1])),d++):g&&o.length>f&&g[0]<p+r/100?(c.push(aG(g[1].sum)),f++):c.push(null)}return c});return[i,...a]};function sG(t,e){const n=[];let r=[];const i=t[0].length,a=Array(i);for(let s=0;s<i;s++)a[s]=0;for(let s=1;s<t.length;s++)n.push(e(s)?t[s]:t[s].map((o,c)=>a[c]+=+(o||0)));for(let s=1;s<t.length;s++)e(s)||r.push({series:[t.findIndex((o,c)=>c>s&&!e(c)),s]});return r=r.filter(s=>s.series[1]>-1),{data:[t[0]].concat(n),bands:r}}function lOe(t,e){const n=sG(e,r=>!1);return t.bands=n.bands,t.cursor=t.cursor||{},t.cursor.dataIdx=(r,i,a,s)=>e[i][a]==null?null:a,t.series.forEach(r=>{r.points=r.points||{},r.stroke&&(r.fill=V5(r.stroke,.6)),r.points.filter=(i,a,s,o)=>{if(s){const c=[];return e[a].forEach((d,f)=>{d!=null&&c.push(f)}),c}return null}}),t.scales=t.scales||{},t.scales.y={range:(r,i,a)=>[0,Bi.rangeNum(0,a,.1,!0)[1]]},t.hooks=t.hooks||{},t.hooks.setSeries=t.hooks.setSeries||[],t.hooks.setSeries.push((r,i)=>{const a=sG(e,s=>!r.series[s].show);r.delBand(null),a.bands.forEach(s=>r.addBand(s)),r.setData(a.data)}),{opts:t,data:n.data}}const cOe=({data:t,range:{startTime:e,endTime:n,resolution:r},width:i,displayMode:a,onSelectRange:s})=>{const[o,c]=I.useState(null),[d,f]=I.useState(null),{useLocalTime:p}=yi(),m=II();if(I.useEffect(()=>{if(i===0)return;const g=oOe(t,e,n,r),b=sOe(g,i,t,p,m==="light",s);a===qp.Stacked?f(lOe(b,g).data):f(g),c(b)},[i,t,a,e,n,r,p,m,s]),!(o===null||d===null))return l.jsxs(l.Fragment,{children:[l.jsx(eOe,{options:o,data:d,className:VQ.uplotChart}),l.jsxs(ht,{fz:"xs",c:"dimmed",ml:40,mt:-25,mb:"lg",children:["Click: show single series,"," ",navigator.userAgent.includes("Mac")?"⌘":"Ctrl"," + click: hide single series"]})]})},uOe=({expr:t,node:e,endTime:n,range:r,resolution:i,showExemplars:a,displayMode:s,retriggerIdx:o,onSelectRange:c})=>{const{ref:d,width:f}=HJ(),[p,m]=I.useState(!0),g=e===null?t:Ki(e.type===pt.matrixSelector?{type:pt.vectorSelector,name:e.name,matchers:e.matchers,offset:e.offset,timestamp:e.timestamp,startOrEnd:e.startOrEnd}:e),b=(n!==null?n:Date.now())/1e3,S=b-r/1e3,y=eS(i,r)/1e3,{data:E,error:x,isFetching:C,isLoading:R,refetch:T}=md({key:[I.useId()],path:"/query_range",params:{query:g,step:y.toString(),start:S.toString(),end:b.toString()},enabled:g!==""}),[N,w]=I.useState(null);if(I.useEffect(()=>{E!==void 0&&w({data:E,range:{startTime:S,endTime:b,resolution:y}})},[E]),I.useEffect(()=>{g!==""&&T()},[o,T,g,n,r,i]),I.useEffect(()=>{N!==null&&p&&m(!1)},[N,p,m]),R)return l.jsx(Se,{children:Array.from(Array(5),(L,k)=>l.jsx(Zo,{height:30,mb:15},k))});if(x)return l.jsx(Lt,{color:"red",title:"Error executing query",icon:l.jsx(na,{}),children:x.message});if(N===null)return l.jsx(Lt,{variant:"transparent",children:"No data queried yet"});const{result:D}=N.data.data;return D.length===0?l.jsx(Lt,{title:"Empty query result",icon:l.jsx(gr,{}),children:"This query returned no data."}):l.jsxs(Mn,{children:[e!==null&&e.type===pt.matrixSelector&&l.jsxs(Lt,{color:"orange",title:"Graphing modified expression",icon:l.jsx(na,{}),children:[l.jsx("strong",{children:"Note:"})," Range vector selectors can't be graphed, so graphing the equivalent instant vector selector instead."]}),l.jsxs(Se,{pos:"relative",ref:d,className:VQ.chartWrapper,children:[l.jsx(qM,{visible:C,zIndex:1e3,h:570,overlayProps:{radius:"sm",blur:.5},loaderProps:{type:"dots",color:"gray.6"}}),l.jsx(cOe,{data:N.data.data.result,range:N.range,width:f,showExemplars:a,displayMode:s,onSelectRange:c})]})]})},dOe=({resolution:t,range:e,onChangeResolution:n})=>{const[r,i]=I.useState(Nn(eS(t,e))),a=s=>{const o=AL(s);t.type==="custom"&&o===t.step||(o===null?i(Nn(eS(t,e))):n({type:"custom",step:o}))};return l.jsxs(l.Fragment,{children:[l.jsx(vm,{title:"Resolution",placeholder:"Resolution",maxDropdownHeight:500,data:[{group:"Automatic resolution",items:[{label:"Low res.",value:"low"},{label:"Medium res.",value:"medium"},{label:"High res.",value:"high"}]},{group:"Fixed resolution",items:[{label:"10s",value:"10000"},{label:"30s",value:"30000"},{label:"1m",value:"60000"},{label:"5m",value:"300000"},{label:"15m",value:"900000"},{label:"1h",value:"3600000"}]},{group:"Custom resolution",items:[{label:"Enter value...",value:"custom"}]}],w:160,value:t.type==="auto"?t.density:t.type==="fixed"?t.step.toString():"custom",onChange:(s,o)=>{if(["low","medium","high"].includes(o.value)){n({type:"auto",density:o.value});return}if(o.value==="custom"){const d=eS(t,e);n({type:"custom",step:d}),i(Nn(d));return}const c=parseInt(o.value);if(!isNaN(c))n({type:"fixed",step:c});else throw new Error("Invalid resolution value")}}),t.type==="custom"&&l.jsx(Wc,{placeholder:"Resolution",value:r,onChange:s=>i(s.currentTarget.value),onBlur:()=>a(r),onKeyDown:s=>s.key==="Enter"&&a(r),"aria-label":"Range",style:{width:`calc(44px + ${r.length+3}ch)`}})]})},fOe="_metricName_13uqi_1",hOe="_labelPair_13uqi_4",pOe="_labelName_13uqi_14",mOe="_labelValue_13uqi_18",$g={metricName:fOe,labelPair:hOe,labelName:pOe,labelValue:mOe},gOe=t=>{"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>Qo.show({title:"Copied matcher!",message:`Label matcher ${t} copied to clipboard`})).catch(()=>Qo.show({color:"red",title:"Failed to copy matcher!",message:"Label matcher could not be copied to clipboard."})):Qo.show({color:"red",title:"Failed to copy matcher!",message:"Clipboard API is not supported in this context (most likely due to non-HTTPS origin)."})},bp=({labels:t,format:e})=>{const n=()=>{const r=t&&fT(t.__name__||""),i=[];let a=!0;r&&(i.push(l.jsx("span",{children:l.jsxs("span",{className:$g.labelValue,children:['"',ad(t.__name__),'"']})},"__name__")),a=!1);for(const s in t)s!=="__name__"&&(i.push(l.jsxs("span",{children:[!a&&", ",l.jsxs("span",{className:$g.labelPair,onDoubleClick:o=>gOe(o.currentTarget.innerText),title:"Double click to copy label matcher",children:[l.jsx("span",{className:$g.labelName,children:_d(s)}),"=",l.jsxs("span",{className:$g.labelValue,children:['"',ad(t[s]),'"']})]})]},s)),a&&(a=!1));return l.jsxs("span",{children:[!r&&l.jsx("span",{className:$g.metricName,children:t?t.__name__:""}),"{",i,"}"]})};return t===null?l.jsx(l.Fragment,{children:"scalar"}):e?n():l.jsx(l.Fragment,{children:wK(t)})},_Oe="_tableWrapper_n77eh_1",bOe="_numberCell_n77eh_7",Fv={tableWrapper:_Oe,numberCell:bOe};function vOe(t,e){if(parseFloat(t[2])===0||parseFloat(t[1])===0){if(e.length>1)return Math.abs(Math.log(Math.abs(parseFloat(e[e.length-2][2])))-Math.log(Math.abs(parseFloat(e[e.length-2][1]))));throw new Error("Only one bucket in histogram ([-0, 0]). Cannot calculate defaultExpBucketWidth.")}else return Math.abs(Math.log(Math.abs(parseFloat(t[2])))-Math.log(Math.abs(parseFloat(t[1]))))}function SOe(t){if(!t||t.length===0)return 0;for(let e=0;e<t.length;e++){const n=parseFloat(t[e][2]),r=parseFloat(t[e][1]);if(r>0)return r;if(r<0&&n>0||e===t.length-1&&n>0)return n}return 0}function EOe(t){if(!t||t.length===0)return 0;for(let e=0;e<t.length;e++){const n=parseFloat(t[e][2]),r=parseFloat(t[e][1]),i=e>0?parseFloat(t[e-1][2]):0;if(n>=0)return e===0?r<0?r:0:i}return console.log("findmaxneg returning: ",t[t.length-1][2]),parseFloat(t[t.length-1][2])}function yOe(t,e,n,r,i,a,s,o,c){return t==="linear"?(0-e)/(n-e)*100+"%":i===0?"0%":r===0?"100%":a===-1?s/o*100+"%":(s+.5*c)/o>0?(s+.5*c)/o*100+"%":"0%"}function TOe(t){const e=parseFloat(t.slice(0,-1));return 5<e&&e<95}function xOe(t){for(let e=0;e<t.length;e++){const n=parseFloat(t[e][1]),r=parseFloat(t[e][2]);if(n<=0&&r>=0)return e}return-1}const COe=t=>t===3||t===1?"[":"(",OOe=t=>t===3||t===0?"]":")",DK=([t,e,n,r])=>`${COe(t)}${e} -> ${n}${OOe(t)}`,ROe="_histogramYWrapper_4ql1n_1",NOe="_histogramYLabels_4ql1n_10",AOe="_histogramYLabel_4ql1n_10",wOe="_histogramXWrapper_4ql1n_22",DOe="_histogramXLabels_4ql1n_29",IOe="_histogramXLabel_4ql1n_29",MOe="_histogramContainer_4ql1n_40",LOe="_histogramAxes_4ql1n_46",kOe="_histogramYGrid_4ql1n_55",POe="_histogramYTick_4ql1n_61",BOe="_histogramXGrid_4ql1n_69",FOe="_histogramXTick_4ql1n_76",UOe="_histogramBucketSlot_4ql1n_84",jOe="_histogramBucket_4ql1n_84",Di={histogramYWrapper:ROe,histogramYLabels:NOe,histogramYLabel:AOe,histogramXWrapper:wOe,histogramXLabels:DOe,histogramXLabel:IOe,histogramContainer:MOe,histogramAxes:LOe,histogramYGrid:kOe,histogramYTick:POe,histogramXGrid:BOe,histogramXTick:FOe,histogramBucketSlot:UOe,histogramBucket:jOe},GOe=({index:t,histogram:e,scale:n})=>{const{buckets:r}=e;if(!r||r.length===0)return l.jsx("div",{children:"No data"});const i=Intl.NumberFormat("en",{notation:"compact"}),a=[];for(const M of r){const P=parseFloat(M[1]),V=parseFloat(M[2]),Y=parseFloat(M[3]),G=V-P;if(G===0){a.push(0);continue}a.push(Y/G)}const s=Math.max(...a),o=r[0],c=r[r.length-1],d=parseFloat(c[2]),f=parseFloat(o[1]),p=Math.max(...r.map(M=>parseFloat(M[3]))),m=vOe(c,r),g=d>0?d:0,b=SOe(r),S=EOe(r),y=parseFloat(o[1])<0?parseFloat(o[1]):0,E=y!==0?-Math.log(Math.abs(y)):0,x=S!==0?-Math.log(Math.abs(S)):0,C=b!==0?Math.log(b):0,R=g!==0?Math.log(g):0,T=x-E,N=R-C,w=T+m+N,D=xOe(r),L=yOe(n,f,d,b,S,D,T,w,m),k=TOe(L);return l.jsxs("div",{className:Di.histogramYWrapper,children:[l.jsxs("div",{className:Di.histogramYLabels,children:[[1,.75,.5,.25].map(M=>l.jsx("div",{className:Di.histogramYLabel,children:n==="linear"?"":i.format(p*M)},M)),l.jsx("div",{className:Di.histogramYLabel,style:{height:0},children:"0"},0)]}),l.jsxs("div",{className:Di.histogramXWrapper,children:[l.jsxs("div",{className:Di.histogramContainer,children:[[0,.25,.5,.75,1].map(M=>l.jsxs(xn.Fragment,{children:[l.jsx("div",{className:Di.histogramYGrid,style:{bottom:M*100+"%"}}),l.jsx("div",{className:Di.histogramYTick,style:{bottom:M*100+"%"}}),l.jsx("div",{className:Di.histogramXGrid,style:{left:M*100+"%"}})]},M)),l.jsx("div",{className:Di.histogramXTick,style:{left:"0%"}}),l.jsx("div",{className:Di.histogramXTick,style:{left:L}}),l.jsx("div",{className:Di.histogramXGrid,style:{left:L}}),l.jsx("div",{className:Di.histogramXTick,style:{left:"100%"}}),l.jsx(qOe,{buckets:r,scale:n,rangeMin:f,rangeMax:d,index:t,fds:a,fdMax:s,countMax:p,defaultExpBucketWidth:m,minPositive:b,maxNegative:S,startPositive:C,startNegative:E,xWidthNegative:T,xWidthTotal:w}),l.jsx("div",{className:Di.histogramAxes})]}),l.jsx("div",{className:Di.histogramXLabels,children:l.jsx("div",{className:Di.histogramXLabel,children:l.jsxs(xn.Fragment,{children:[l.jsx("div",{style:{position:"absolute",left:0},children:i.format(f)}),f<0&&k&&l.jsx("div",{style:{position:"absolute",left:L},children:"0"}),l.jsx("div",{style:{position:"absolute",right:0},children:i.format(d)})]})})})]})]})},qOe=({buckets:t,scale:e,rangeMin:n,rangeMax:r,index:i,fds:a,fdMax:s,countMax:o,defaultExpBucketWidth:c,minPositive:d,maxNegative:f,startPositive:p,startNegative:m,xWidthNegative:g,xWidthTotal:b})=>l.jsx(xn.Fragment,{children:t.map((S,y)=>{const E=parseFloat(S[1]),x=parseFloat(S[2]),C=parseFloat(S[3]),R=`bucket-${i}-${y}-${Math.ceil(parseFloat(S[3])*100)}`,T=Math.abs(Math.log(Math.abs(x))-Math.log(Math.abs(E))),N=T===0?c:T;let w="",D="",L="";switch(e){case"linear":{w=(x-E)/(r-n)*100+"%",D=(E-n)/(r-n)*100+"%",E===0&&x===0&&(D="0%",w="0%"),L=a[y]/s*100+"%";break}case"exponential":{let k=0;(d===0||f===0)&&(k=c),w=N/(b-k)*100+"%",E<0?D=-(Math.log(Math.abs(E))+m)/(b-k)*100+"%":D=(Math.log(E)-p+c+g-k)/(b-k)*100+"%",E<0&&x>0&&(D=g/b*100+"%"),E===0&&x===0&&(D="0%",w="0%"),L=C/o*100+"%";break}default:throw new Error("Invalid scale")}return l.jsx(bi,{label:`range: ${DK(S)}`,children:l.jsx("div",{id:R,className:Di.histogramBucketSlot,style:{left:D,width:w},children:l.jsx("div",{id:R,className:Di.histogramBucket,style:{height:L}})})},y)})});Ve.extend(DL);const oG=1e3,ME=1e4,lG=(t,e)=>e&&t.length>ME?t.slice(0,ME):t,$Oe=({data:t,limitResults:e,setLimitResults:n})=>{const[r,i]=I.useState("exponential"),{useLocalTime:a}=yi(),{result:s,resultType:o}=t,c=s.length<=oG;return l.jsxs(Mn,{gap:"lg",mt:0,children:[e&&["vector","matrix"].includes(o)&&s.length>ME&&l.jsxs(Lt,{color:"orange",icon:l.jsx(na,{}),title:"Showing limited results",children:["Fetched ",t.result.length," metrics, only displaying first"," ",ME," for performance reasons.",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>n(!1),children:"Show all results"})]}),!c&&l.jsxs(Lt,{title:"Formatting turned off",icon:l.jsx(gr,{}),children:["Showing more than ",oG," series, turning off label formatting to improve rendering performance."]}),l.jsx(Se,{pos:"relative",className:Fv.tableWrapper,children:l.jsx(ae,{fz:"xs",children:l.jsx(ae.Tbody,{children:o==="vector"?lG(s,e).map((d,f)=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:l.jsx(bp,{labels:d.metric,format:c})}),l.jsxs(ae.Td,{className:Fv.numberCell,children:[d.value&&d.value[1],d.histogram&&l.jsxs(Mn,{children:[l.jsx(GOe,{histogram:d.histogram[1],index:f,scale:r}),l.jsxs(mt,{justify:"space-between",align:"center",p:10,children:[l.jsxs(mt,{align:"center",gap:"1rem",children:[l.jsxs("span",{children:[l.jsx("strong",{children:"Count:"})," ",d.histogram[1].count]}),l.jsxs("span",{children:[l.jsx("strong",{children:"Sum:"})," ",d.histogram[1].sum]})]}),l.jsxs(mt,{align:"center",gap:"1rem",children:[l.jsx("span",{children:"x-axis scale:"}),l.jsx(E0,{size:"xs",value:r,onChange:i,data:["exponential","linear"]})]})]}),zOe(d.histogram[1])]})]})]},f)):o==="matrix"?lG(s,e).map((d,f)=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:l.jsx(bp,{labels:d.metric,format:c})}),l.jsx(ae.Td,{className:Fv.numberCell,children:d.values&&d.values.map((p,m)=>l.jsxs("div",{children:[p[1]," ",l.jsxs(ht,{span:!0,c:"gray.7",size:"1em",title:Bf(p[0],a),children:["@ ",p[0]]})]},m))})]},f)):o==="scalar"?l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:"Scalar value"}),l.jsx(ae.Td,{className:Fv.numberCell,children:s[1]})]}):o==="string"?l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:"String value"}),l.jsx(ae.Td,{children:s[1]})]}):l.jsx(Lt,{color:"red",title:"Invalid query response",icon:l.jsx(na,{}),children:"Invalid result value type"})})})})]})},zOe=t=>{var e;return l.jsx(ae,{withTableBorder:!0,fz:"xs",children:l.jsxs(ae.Tbody,{style:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[l.jsxs(ae.Tr,{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[l.jsx(ae.Th,{children:"Bucket range"}),l.jsx(ae.Th,{children:"Count"})]}),l.jsx(Yc,{w:"100%",h:265,children:(e=t.buckets)==null?void 0:e.map((n,r)=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{style:{textAlign:"left"},children:DK(n)}),l.jsx(ae.Td,{children:n[3]})]},r))})]})})};Ve.extend(DL);const YOe=({panelIdx:t,retriggerIdx:e,expr:n})=>{var S,y;const[r,i]=I.useState(0),[a,s]=I.useState(!0),{visualizer:o}=Wl(E=>E.queryPage.panels[t]),c=Qc(),{endTime:d,range:f}=o,{data:p,error:m,isFetching:g,refetch:b}=md({key:[I.useId()],path:"/query",params:{query:n,time:`${(d!==null?d:Date.now())/1e3}`},enabled:n!=="",recordResponseTime:i});return I.useEffect(()=>{n!==""&&b()},[e,b,n,d]),I.useLayoutEffect(()=>{s(!0)},[p,g]),l.jsxs(Mn,{gap:"lg",mt:"sm",children:[l.jsxs(mt,{justify:"space-between",children:[l.jsx(z9,{time:d,range:f,description:"Evaluation time",onChangeTime:E=>c(sf({idx:t,visualizer:{...o,endTime:E}}))}),!g&&p!==void 0&&l.jsxs(ht,{size:"xs",c:"gray",children:["Load time: ",r,"ms   Result series:"," ",p.data.result.length]})]}),g?l.jsx(Se,{children:Array.from(Array(5),(E,x)=>l.jsx(Zo,{height:30,mb:15},x))}):m!==null?l.jsx(Lt,{color:"red",title:"Error executing query",icon:l.jsx(na,{}),children:m.message}):p===void 0?l.jsx(Lt,{variant:"transparent",children:"No data queried yet"}):l.jsxs(l.Fragment,{children:[p.data.result.length===0&&l.jsx(Lt,{title:"Empty query result",icon:l.jsx(gr,{}),children:"This query returned no data."}),(S=p.warnings)==null?void 0:S.map((E,x)=>l.jsx(Lt,{color:"red",title:"Query warning",icon:l.jsx(na,{}),children:E},x)),(y=p.infos)==null?void 0:y.map((E,x)=>l.jsx(Lt,{color:"yellow",title:"Query notice",icon:l.jsx(gr,{}),children:E},x)),l.jsx($Oe,{data:p.data,limitResults:a,setLimitResults:s})]})]})},HOe="_nodeText_1076s_1",VOe="_nodeTextSelected_1076s_10",WOe="_nodeTextError_1076s_27",QOe="_errorText_1076s_34",Uv={nodeText:HOe,nodeTextSelected:VOe,nodeTextError:WOe,errorText:QOe},KOe={abs:{argTypes:[ue.vector],returnType:ue.vector},absent:{argTypes:[ue.vector],returnType:ue.vector},absent_over_time:{argTypes:[ue.matrix],returnType:ue.vector},acos:{argTypes:[ue.vector],returnType:ue.vector},acosh:{argTypes:[ue.vector],returnType:ue.vector},asin:{argTypes:[ue.vector],returnType:ue.vector},asinh:{argTypes:[ue.vector],returnType:ue.vector},atan:{argTypes:[ue.vector],returnType:ue.vector},atanh:{argTypes:[ue.vector],returnType:ue.vector},avg_over_time:{argTypes:[ue.matrix],returnType:ue.vector},ceil:{argTypes:[ue.vector],returnType:ue.vector},changes:{argTypes:[ue.matrix],returnType:ue.vector},clamp:{argTypes:[ue.vector,ue.scalar,ue.scalar],returnType:ue.vector},clamp_max:{argTypes:[ue.vector,ue.scalar],returnType:ue.vector},clamp_min:{argTypes:[ue.vector,ue.scalar],returnType:ue.vector},cos:{argTypes:[ue.vector],returnType:ue.vector},cosh:{argTypes:[ue.vector],returnType:ue.vector},count_over_time:{argTypes:[ue.matrix],returnType:ue.vector},day_of_month:{argTypes:[ue.vector],returnType:ue.vector},day_of_week:{argTypes:[ue.vector],returnType:ue.vector},day_of_year:{argTypes:[ue.vector],returnType:ue.vector},days_in_month:{argTypes:[ue.vector],returnType:ue.vector},deg:{argTypes:[ue.vector],returnType:ue.vector},delta:{argTypes:[ue.matrix],returnType:ue.vector},deriv:{argTypes:[ue.matrix],returnType:ue.vector},exp:{argTypes:[ue.vector],returnType:ue.vector},floor:{argTypes:[ue.vector],returnType:ue.vector},histogram_avg:{argTypes:[ue.vector],returnType:ue.vector},histogram_count:{argTypes:[ue.vector],returnType:ue.vector},histogram_fraction:{argTypes:[ue.scalar,ue.scalar,ue.vector],returnType:ue.vector},histogram_quantile:{argTypes:[ue.scalar,ue.vector],returnType:ue.vector},histogram_stddev:{argTypes:[ue.vector],returnType:ue.vector},histogram_stdvar:{argTypes:[ue.vector],returnType:ue.vector},histogram_sum:{argTypes:[ue.vector],returnType:ue.vector},double_exponential_smoothing:{argTypes:[ue.matrix,ue.scalar,ue.scalar],returnType:ue.vector},hour:{argTypes:[ue.vector],returnType:ue.vector},idelta:{argTypes:[ue.matrix],returnType:ue.vector},increase:{argTypes:[ue.matrix],returnType:ue.vector},irate:{argTypes:[ue.matrix],returnType:ue.vector},label_join:{argTypes:[ue.vector,ue.string,ue.string,ue.string],returnType:ue.vector},label_replace:{argTypes:[ue.vector,ue.string,ue.string,ue.string,ue.string],returnType:ue.vector},last_over_time:{name:"last_over_time",argTypes:[ue.matrix],variadic:0,returnType:ue.vector},ln:{argTypes:[ue.vector],returnType:ue.vector},log10:{argTypes:[ue.vector],returnType:ue.vector},log2:{argTypes:[ue.vector],returnType:ue.vector},mad_over_time:{argTypes:[ue.matrix],returnType:ue.vector},max_over_time:{argTypes:[ue.matrix],returnType:ue.vector},min_over_time:{argTypes:[ue.matrix],returnType:ue.vector},minute:{argTypes:[ue.vector],returnType:ue.vector},month:{argTypes:[ue.vector],returnType:ue.vector},pi:{returnType:ue.scalar},predict_linear:{argTypes:[ue.matrix,ue.scalar],returnType:ue.vector},present_over_time:{argTypes:[ue.matrix],returnType:ue.vector},quantile_over_time:{argTypes:[ue.scalar,ue.matrix],returnType:ue.vector},rad:{argTypes:[ue.vector],returnType:ue.vector},rate:{argTypes:[ue.matrix],returnType:ue.vector},resets:{argTypes:[ue.matrix],returnType:ue.vector},round:{argTypes:[ue.vector,ue.scalar],returnType:ue.vector},scalar:{argTypes:[ue.vector],returnType:ue.scalar},sgn:{argTypes:[ue.vector],returnType:ue.vector},sin:{argTypes:[ue.vector],returnType:ue.vector},sinh:{argTypes:[ue.vector],returnType:ue.vector},sort:{argTypes:[ue.vector],returnType:ue.vector},sort_by_label:{argTypes:[ue.vector,ue.string],returnType:ue.vector},sort_by_label_desc:{argTypes:[ue.vector,ue.string],returnType:ue.vector},sort_desc:{argTypes:[ue.vector],returnType:ue.vector},sqrt:{argTypes:[ue.vector],returnType:ue.vector},stddev_over_time:{argTypes:[ue.matrix],returnType:ue.vector},stdvar_over_time:{argTypes:[ue.matrix],returnType:ue.vector},sum_over_time:{argTypes:[ue.matrix],returnType:ue.vector},tan:{argTypes:[ue.vector],returnType:ue.vector},tanh:{argTypes:[ue.vector],returnType:ue.vector},time:{returnType:ue.scalar},timestamp:{argTypes:[ue.vector],returnType:ue.vector},vector:{argTypes:[ue.scalar],returnType:ue.vector},year:{argTypes:[ue.vector],returnType:ue.vector}},jv=20,vR=10,cG=10,SR={width:me(18),height:me(18)},XOe=t=>t.includes("error")?"error":t.includes("waiting")?"waiting":t.includes("running")?"running":"success",yS=({node:t,selectedNode:e,setSelectedNode:n,parentEl:r,reportNodeState:i,reverse:a,childIdx:s})=>{const o=$a(),[c,d]=I.useState(null),f=I.useCallback(M=>d(M),[]),[p,m]=I.useState({borderColor:"light-dark(var(--mantine-color-gray-4), var(--mantine-color-dark-3))",borderLeftStyle:"solid",borderLeftWidth:2,width:jv-7,left:-13}),[g,b]=I.useState(0),[S,y]=I.useState({numSeries:0,labelExamples:{},sortedLabelCards:[]});I.useEffect(()=>{r===void 0&&n({id:o,node:t})},[r,n,o,t]),I.useEffect(()=>()=>{n(null)},[n]);const E=wTe(t),[x,C]=I.useState(E.map(()=>"waiting")),R=I.useMemo(()=>XOe(x),[x]);let T=t;T.type===pt.matrixSelector&&(T={type:pt.call,func:KOe.last_over_time,args:[t]});const{data:N,error:w,isFetching:D}=md({key:[$a()],path:"/query",params:{query:Ki(T)},recordResponseTime:b,enabled:R==="success"});I.useEffect(()=>{R==="error"&&i&&i(s,"error")},[R,i,s]),I.useEffect(()=>{w&&i&&i(s,"error")},[w,i,s]),I.useEffect(()=>{D&&i&&i(s,"running")},[D,i,s]);const L=I.useCallback((M,P)=>{C(V=>{const Y=[...V];return Y[M]=P,Y})},[C]);I.useLayoutEffect(()=>{if(r===void 0||r===null||c===null)return;const M=r.getBoundingClientRect(),P=c.getBoundingClientRect();m(a?V=>({...V,top:"calc(50% - 1px)",bottom:P.bottom-M.top,borderTopLeftRadius:3,borderTopStyle:"solid",borderBottomLeftRadius:void 0}):V=>({...V,top:M.bottom-P.top,bottom:"calc(50% - 1px)",borderBottomLeftRadius:3,borderBottomStyle:"solid",borderTopLeftRadius:void 0}))},[r,c,a,f,m]),I.useEffect(()=>{if(!N)return;i&&i(s,"success");let M=0;const P={},{resultType:V,result:Y}=N.data;V==="scalar"||V==="string"?M=1:Y&&Y.length>0&&(M=Y.length,Y.forEach(q=>{Object.entries(q.metric).forEach(([z,H])=>{z!=="__name__"&&(P[z]||(P[z]={}),P[z][H]=(P[z][H]||0)+1)})}));const G={},F={};Object.entries(P).forEach(([q,z])=>{G[q]=Object.keys(z).length,F[q]=Object.entries(z).sort(([,H],[,U])=>U-H).slice(0,cG).map(([H,U])=>({value:H,count:U}))}),y({numSeries:M,sortedLabelCards:Object.entries(G).sort((q,z)=>z[1]-q[1]),labelExamples:F})},[N,i,s]);const k=l.jsxs(mt,{w:"fit-content",gap:"lg",my:"sm",wrap:"nowrap",pos:"relative",align:"center",children:[r!==void 0&&l.jsx(Se,{pos:"absolute",display:"inline-block",style:p}),l.jsx(Se,{ref:f,w:"fit-content",px:10,py:4,style:{borderRadius:4,flexShrink:0},className:Tr(Uv.nodeText,{[Uv.nodeTextError]:w,[Uv.nodeTextSelected]:(e==null?void 0:e.id)===o}),onClick:()=>{(e==null?void 0:e.id)===o?n(null):n({id:o,node:t})},children:Do(t,!1,1)}),R==="waiting"?l.jsx(mt,{c:"gray",children:l.jsx(GC,{style:SR})}):R==="running"?l.jsx(ql,{size:14,color:"gray",type:"dots"}):R==="error"?l.jsxs(mt,{c:"orange.7",gap:5,fz:"xs",wrap:"nowrap",children:[l.jsx(GC,{style:SR})," Blocked on child query error"]}):D?l.jsx(ql,{size:14,color:"gray"}):w?l.jsxs(mt,{gap:5,wrap:"nowrap",style:{flexShrink:0},className:Uv.errorText,children:[l.jsx(GC,{style:SR}),l.jsxs(ht,{fz:"xs",children:[l.jsx("strong",{children:"Error executing query:"})," ",w.message]})]}):l.jsxs(mt,{gap:0,wrap:"nowrap",children:[l.jsxs(ht,{c:"dimmed",fz:"xs",style:{whiteSpace:"nowrap"},children:[S.numSeries," result",S.numSeries!==1&&"s","  –  ",g,"ms",S.sortedLabelCards.length>0&&l.jsx(l.Fragment,{children:"  –  "})]}),l.jsxs(mt,{gap:"xs",wrap:"nowrap",children:[S.sortedLabelCards.slice(0,vR).map(([M,P])=>l.jsx(bi,{position:"bottom",withArrow:!0,color:"dark.6",label:l.jsx(Se,{p:"xs",children:l.jsxs(mr,{fz:"xs",children:[S.labelExamples[M].map(({value:V,count:Y})=>l.jsxs(mr.Item,{py:1,children:[l.jsx(PM,{c:"red.3",bg:"gray.8",children:Xi(V)})," ","(",Y,"x)"]},V)),P>cG&&l.jsx("li",{children:"..."})]})}),children:l.jsxs("span",{style:{cursor:"pointer",whiteSpace:"nowrap"},children:[l.jsx(ht,{component:"span",fz:"xs",className:"promql-code promql-label-name",c:"light-dark(var(--mantine-color-green-9), var(--mantine-color-green-6))",children:M}),l.jsxs(ht,{component:"span",fz:"xs",c:"dimmed",children:[": ",P]})]})},M)),S.sortedLabelCards.length>vR?l.jsxs(ht,{component:"span",c:"dimmed",fz:"xs",style:{whiteSpace:"nowrap"},children:["...",S.sortedLabelCards.length-vR," more..."]}):null]})]})]});return t.type===pt.binaryExpr?l.jsxs("div",{children:[l.jsx(Se,{ml:jv,children:l.jsx(yS,{node:E[0],selectedNode:e,setSelectedNode:n,parentEl:c,reverse:!0,childIdx:0,reportNodeState:L})}),k,l.jsx(Se,{ml:jv,children:l.jsx(yS,{node:E[1],selectedNode:e,setSelectedNode:n,parentEl:c,reverse:!1,childIdx:1,reportNodeState:L})})]}):l.jsxs("div",{children:[k,E.map((M,P)=>l.jsx(Se,{ml:jv,children:l.jsx(yS,{node:M,selectedNode:e,setSelectedNode:n,parentEl:c,reverse:!1,childIdx:P,reportNodeState:L})},P))]})},ZOe=({panelIdx:t,selectedNode:e,setSelectedNode:n,closeTreeView:r})=>{const{expr:i}=Wl(s=>s.queryPage.panels[t]),{data:a}=Fi({path:"/parse_query",params:{query:i}});return l.jsxs(Ur,{withBorder:!0,fz:"sm",style:{overflowX:"auto"},pl:"sm",children:[l.jsx(Yl,{"aria-label":"Close tree view",title:"Close tree view",pos:"absolute",top:7,size:"sm",right:7,onClick:r}),l.jsx(yS,{childIdx:0,node:a.data,selectedNode:e,setSelectedNode:n,reverse:!1})]})},JOe={abs:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"abs(v instant-vector)"})," returns the input vector with all sample values converted to their absolute value."]})}),absent:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"absent(v instant-vector)"})," returns an empty vector if the vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the vector passed to it has no elements."]}),l.jsx("p",{children:"This is useful for alerting on when no time series exist for a given metric name and label combination."}),l.jsx("pre",{children:l.jsxs("code",{children:["absent(nonexistent","{",'job="myjob"',"}",") # => ","{",'job="myjob"',"}","absent(nonexistent","{",'job="myjob",instance=~".*"',"}",") # => ","{",'job="myjob"',"}","absent(sum(nonexistent","{",'job="myjob"',"}",")) # => ","{","}"]})}),l.jsxs("p",{children:["In the first two examples, ",l.jsx("code",{children:"absent()"})," tries to be smart about deriving labels of the 1-element output vector from the input vector."]})]}),absent_over_time:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"absent_over_time(v range-vector)"})," returns an empty vector if the range vector passed to it has any elements (floats or native histograms) and a 1-element vector with the value 1 if the range vector passed to it has no elements."]}),l.jsx("p",{children:"This is useful for alerting on when no time series exist for a given metric name and label combination for a certain amount of time."}),l.jsx("pre",{children:l.jsxs("code",{children:["absent_over_time(nonexistent","{",'job="myjob"',"}","[1h]) # => ","{",'job="myjob"',"}","absent_over_time(nonexistent","{",'job="myjob",instance=~".*"',"}","[1h]) # => ","{",'job="myjob"',"}","absent_over_time(sum(nonexistent","{",'job="myjob"',"}",")[1h:]) # => ","{","}"]})}),l.jsxs("p",{children:["In the first two examples, ",l.jsx("code",{children:"absent_over_time()"})," tries to be smart about deriving labels of the 1-element output vector from the input vector."]})]}),acos:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),acosh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),asin:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),asinh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),atan:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),atanh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),avg_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),ceil:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"ceil(v instant-vector)"})," rounds the sample values of all elements in ",l.jsx("code",{children:"v"})," up to the nearest integer value greater than or equal to v."]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"ceil(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"ceil(±0) = ±0"})}),l.jsx("li",{children:l.jsx("code",{children:"ceil(1.49) = 2.0"})}),l.jsx("li",{children:l.jsx("code",{children:"ceil(1.78) = 2.0"})})]})]}),changes:l.jsx(l.Fragment,{children:l.jsxs("p",{children:["For each input time series, ",l.jsx("code",{children:"changes(v range-vector)"})," returns the number of times its value has changed within the provided time range as an instant vector."]})}),clamp:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"clamp(v instant-vector, min scalar, max scalar)"}),"clamps the sample values of all elements in ",l.jsx("code",{children:"v"})," to have a lower limit of ",l.jsx("code",{children:"min"})," and an upper limit of ",l.jsx("code",{children:"max"}),"."]}),l.jsx("p",{children:"Special cases:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:["Return an empty vector if ",l.jsx("code",{children:"min > max"})]}),l.jsxs("li",{children:["Return ",l.jsx("code",{children:"NaN"})," if ",l.jsx("code",{children:"min"})," or ",l.jsx("code",{children:"max"})," is ",l.jsx("code",{children:"NaN"})]})]})]}),clamp_max:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"clamp_max(v instant-vector, max scalar)"})," clamps the sample values of all elements in ",l.jsx("code",{children:"v"})," to have an upper limit of ",l.jsx("code",{children:"max"}),"."]})}),clamp_min:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"clamp_min(v instant-vector, min scalar)"})," clamps the sample values of all elements in ",l.jsx("code",{children:"v"})," to have a lower limit of ",l.jsx("code",{children:"min"}),"."]})}),cos:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),cosh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),count_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),day_of_month:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"day_of_month(v=vector(time()) instant-vector)"})," returns the day of the month for each of the given times in UTC. Returned values are from 1 to 31."]})}),day_of_week:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"day_of_week(v=vector(time()) instant-vector)"})," returns the day of the week for each of the given times in UTC. Returned values are from 0 to 6, where 0 means Sunday etc."]})}),day_of_year:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"day_of_year(v=vector(time()) instant-vector)"})," returns the day of the year for each of the given times in UTC. Returned values are from 1 to 365 for non-leap years, and 1 to 366 in leap years."]})}),days_in_month:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"days_in_month(v=vector(time()) instant-vector)"})," returns number of days in the month for each of the given times in UTC. Returned values are from 28 to 31."]})}),deg:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),delta:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"delta(v range-vector)"})," calculates the difference between the first and last value of each time series element in a range vector ",l.jsx("code",{children:"v"}),", returning an instant vector with the given deltas and equivalent labels. The delta is extrapolated to cover the full time range as specified in the range vector selector, so that it is possible to get a non-integer result even if the sample values are all integers."]}),l.jsx("p",{children:"The following example expression returns the difference in CPU temperature between now and 2 hours ago:"}),l.jsx("pre",{children:l.jsxs("code",{children:["delta(cpu_temp_celsius","{",'host="zeus"',"}","[2h])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"delta"})," acts on native histograms by calculating a new histogram where each component (sum and count of observations, buckets) is the difference between the respective component in the first and last native histogram in",l.jsx("code",{children:"v"}),". However, each element in ",l.jsx("code",{children:"v"})," that contains a mix of float and native histogram samples within the range, will be missing from the result vector."]}),l.jsxs("p",{children:[l.jsx("code",{children:"delta"})," should only be used with gauges and native histograms where the components behave like gauges (so-called gauge histograms)."]})]}),deriv:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"deriv(v range-vector)"})," calculates the per-second derivative of the time series in a range vector"," ",l.jsx("code",{children:"v"}),", using ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Simple_linear_regression",children:"simple linear regression"}),". The range vector must have at least two samples in order to perform the calculation. When ",l.jsx("code",{children:"+Inf"})," or",l.jsx("code",{children:"-Inf"})," are found in the range vector, the slope and offset value calculated will be ",l.jsx("code",{children:"NaN"}),"."]}),l.jsxs("p",{children:[l.jsx("code",{children:"deriv"})," should only be used with gauges."]})]}),exp:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"exp(v instant-vector)"})," calculates the exponential function for all elements in ",l.jsx("code",{children:"v"}),". Special cases are:"]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"Exp(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"Exp(NaN) = NaN"})})]})]}),floor:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"floor(v instant-vector)"})," rounds the sample values of all elements in ",l.jsx("code",{children:"v"})," down to the nearest integer value smaller than or equal to v."]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"floor(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"floor(±0) = ±0"})}),l.jsx("li",{children:l.jsx("code",{children:"floor(1.49) = 1.0"})}),l.jsx("li",{children:l.jsx("code",{children:"floor(1.78) = 1.0"})})]})]}),histogram_avg:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"This function only acts on native histograms, which are an experimental feature. The behavior of this function may change in future versions of Prometheus, including its removal from PromQL."})}),l.jsxs("p",{children:[l.jsx("code",{children:"histogram_avg(v instant-vector)"})," returns the arithmetic average of observed values stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsxs("p",{children:["Use ",l.jsx("code",{children:"histogram_avg"})," as demonstrated below to compute the average request duration over a 5-minute window from a native histogram:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_avg(rate(http_request_duration_seconds[5m]))"})}),l.jsx("p",{children:"Which is equivalent to the following query:"}),l.jsx("pre",{children:l.jsxs("code",{children:[" ","histogram_sum(rate(http_request_duration_seconds[5m])) / histogram_count(rate(http_request_duration_seconds[5m]))"]})})]}),"histogram_count()` and `histogram_sum":l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"Both functions only act on native histograms, which are an experimental feature. The behavior of these functions may change in future versions of Prometheus, including their removal from PromQL."})}),l.jsxs("p",{children:[l.jsx("code",{children:"histogram_count(v instant-vector)"})," returns the count of observations stored in a native histogram. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsxs("p",{children:["Similarly, ",l.jsx("code",{children:"histogram_sum(v instant-vector)"})," returns the sum of observations stored in a native histogram."]}),l.jsxs("p",{children:["Use ",l.jsx("code",{children:"histogram_count"})," in the following way to calculate a rate of observations (in this case corresponding to “requests per second”) from a native histogram:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_count(rate(http_request_duration_seconds[10m]))"})})]}),histogram_fraction:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"This function only acts on native histograms, which are an experimental feature. The behavior of this function may change in future versions of Prometheus, including its removal from PromQL."})}),l.jsxs("p",{children:["For a native histogram, ",l.jsx("code",{children:"histogram_fraction(lower scalar, upper scalar, v instant-vector)"})," returns the estimated fraction of observations between the provided lower and upper values. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsx("p",{children:"For example, the following expression calculates the fraction of HTTP requests over the last hour that took 200ms or less:"}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_fraction(0, 0.2, rate(http_request_duration_seconds[1h]))"})}),l.jsx("p",{children:"The error of the estimation depends on the resolution of the underlying native histogram and how closely the provided boundaries are aligned with the bucket boundaries in the histogram."}),l.jsxs("p",{children:[l.jsx("code",{children:"+Inf"})," and ",l.jsx("code",{children:"-Inf"})," are valid boundary values. For example, if the histogram in the expression above included negative observations (which shouldn’t be the case for request durations), the appropriate lower boundary to include all observations less than or equal 0.2 would be ",l.jsx("code",{children:"-Inf"})," rather than ",l.jsx("code",{children:"0"}),"."]}),l.jsx("p",{children:"Whether the provided boundaries are inclusive or exclusive is only relevant if the provided boundaries are precisely aligned with bucket boundaries in the underlying native histogram. In this case, the behavior depends on the schema definition of the histogram. The currently supported schemas all feature inclusive upper boundaries and exclusive lower boundaries for positive values (and vice versa for negative values). Without a precise alignment of boundaries, the function uses linear interpolation to estimate the fraction. With the resulting uncertainty, it becomes irrelevant if the boundaries are inclusive or exclusive."})]}),histogram_quantile:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"histogram_quantile(φ scalar, b instant-vector)"})," calculates the φ-quantile (0 ≤ φ ≤ 1) from a"," ",l.jsx("a",{href:"https://prometheus.io/docs/concepts/metric_types/#histogram",children:"classic histogram"})," or from a native histogram. (See ",l.jsx("a",{href:"https://prometheus.io/docs/practices/histograms",children:"histograms and summaries"})," for a detailed explanation of φ-quantiles and the usage of the (classic) histogram metric type in general.)"]}),l.jsx("p",{children:l.jsx("em",{children:"Note that native histograms are an experimental feature. The behavior of this function when dealing with native histograms may change in future versions of Prometheus."})}),l.jsxs("p",{children:["The float samples in ",l.jsx("code",{children:"b"})," are considered the counts of observations in each bucket of one or more classic histograms. Each float sample must have a label",l.jsx("code",{children:"le"})," where the label value denotes the inclusive upper bound of the bucket. (Float samples without such a label are silently ignored.) The other labels and the metric name are used to identify the buckets belonging to each classic histogram. The"," ",l.jsx("a",{href:"https://prometheus.io/docs/concepts/metric_types/#histogram",children:"histogram metric type"}),"automatically provides time series with the ",l.jsx("code",{children:"_bucket"})," suffix and the appropriate labels."]}),l.jsxs("p",{children:["The native histogram samples in ",l.jsx("code",{children:"b"})," are treated each individually as a separate histogram to calculate the quantile from."]}),l.jsxs("p",{children:["As long as no naming collisions arise, ",l.jsx("code",{children:"b"})," may contain a mix of classic and native histograms."]}),l.jsxs("p",{children:["Use the ",l.jsx("code",{children:"rate()"})," function to specify the time window for the quantile calculation."]}),l.jsxs("p",{children:["Example: A histogram metric is called ",l.jsx("code",{children:"http_request_duration_seconds"})," (and therefore the metric name for the buckets of a classic histogram is",l.jsx("code",{children:"http_request_duration_seconds_bucket"}),"). To calculate the 90th percentile of request durations over the last 10m, use the following expression in case",l.jsx("code",{children:"http_request_duration_seconds"})," is a classic histogram:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, rate(http_request_duration_seconds_bucket[10m]))"})}),l.jsx("p",{children:"For a native histogram, use the following expression instead:"}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, rate(http_request_duration_seconds[10m]))"})}),l.jsxs("p",{children:["The quantile is calculated for each label combination in",l.jsx("code",{children:"http_request_duration_seconds"}),". To aggregate, use the ",l.jsx("code",{children:"sum()"})," aggregator around the"," ",l.jsx("code",{children:"rate()"})," function. Since the ",l.jsx("code",{children:"le"})," label is required by",l.jsx("code",{children:"histogram_quantile()"})," to deal with classic histograms, it has to be included in the ",l.jsx("code",{children:"by"})," ","clause. The following expression aggregates the 90th percentile by ",l.jsx("code",{children:"job"})," for classic histograms:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum by (job, le) (rate(http_request_duration_seconds_bucket[10m])))"})}),l.jsx("p",{children:"When aggregating native histograms, the expression simplifies to:"}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum by (job) (rate(http_request_duration_seconds[10m])))"})}),l.jsxs("p",{children:["To aggregate all classic histograms, specify only the ",l.jsx("code",{children:"le"})," label:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum by (le) (rate(http_request_duration_seconds_bucket[10m])))"})}),l.jsxs("p",{children:["With native histograms, aggregating everything works as usual without any ",l.jsx("code",{children:"by"})," clause:"]}),l.jsx("pre",{children:l.jsx("code",{children:"histogram_quantile(0.9, sum(rate(http_request_duration_seconds[10m])))"})}),l.jsxs("p",{children:["The ",l.jsx("code",{children:"histogram_quantile()"})," function interpolates quantile values by assuming a linear distribution within a bucket."]}),l.jsxs("p",{children:["If ",l.jsx("code",{children:"b"})," has 0 observations, ",l.jsx("code",{children:"NaN"})," is returned. For φ < 0, ",l.jsx("code",{children:"-Inf"})," is returned. For φ > 1, ",l.jsx("code",{children:"+Inf"})," is returned. For φ = ",l.jsx("code",{children:"NaN"}),", ",l.jsx("code",{children:"NaN"})," is returned."]}),l.jsxs("p",{children:["The following is only relevant for classic histograms: If ",l.jsx("code",{children:"b"})," contains fewer than two buckets,"," ",l.jsx("code",{children:"NaN"})," is returned. The highest bucket must have an upper bound of ",l.jsx("code",{children:"+Inf"}),". (Otherwise,"," ",l.jsx("code",{children:"NaN"})," is returned.) If a quantile is located in the highest bucket, the upper bound of the second highest bucket is returned. A lower limit of the lowest bucket is assumed to be 0 if the upper bound of that bucket is greater than 0. In that case, the usual linear interpolation is applied within that bucket. Otherwise, the upper bound of the lowest bucket is returned for quantiles located in the lowest bucket."]}),l.jsxs("p",{children:["You can use ",l.jsx("code",{children:"histogram_quantile(0, v instant-vector)"})," to get the estimated minimum value stored in a histogram."]}),l.jsxs("p",{children:["You can use ",l.jsx("code",{children:"histogram_quantile(1, v instant-vector)"})," to get the estimated maximum value stored in a histogram."]}),l.jsx("p",{children:"Buckets of classic histograms are cumulative. Therefore, the following should always be the case:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"The counts in the buckets are monotonically increasing (strictly non-decreasing)."}),l.jsx("li",{children:"A lack of observations between the upper limits of two consecutive buckets results in equal counts in those two buckets."})]}),l.jsxs("p",{children:["However, floating point precision issues (e.g. small discrepancies introduced by computing of buckets with"," ",l.jsx("code",{children:"sum(rate(...))"}),") or invalid data might violate these assumptions. In that case,",l.jsx("code",{children:"histogram_quantile"})," would be unable to return meaningful results. To mitigate the issue,",l.jsx("code",{children:"histogram_quantile"})," assumes that tiny relative differences between consecutive buckets are happening because of floating point precision errors and ignores them. (The threshold to ignore a difference between two buckets is a trillionth (1e-12) of the sum of both buckets.) Furthermore, if there are non-monotonic bucket counts even after this adjustment, they are increased to the value of the previous buckets to enforce monotonicity. The latter is evidence for an actual issue with the input data and is therefore flagged with an informational annotation reading ",l.jsx("code",{children:"input to histogram_quantile needed to be fixed for monotonicity"}),". If you encounter this annotation, you should find and remove the source of the invalid data."]})]}),"histogram_stddev()` and `histogram_stdvar":l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsx("em",{children:"Both functions only act on native histograms, which are an experimental feature. The behavior of these functions may change in future versions of Prometheus, including their removal from PromQL."})}),l.jsxs("p",{children:[l.jsx("code",{children:"histogram_stddev(v instant-vector)"})," returns the estimated standard deviation of observations in a native histogram, based on the geometric mean of the buckets where the observations lie. Samples that are not native histograms are ignored and do not show up in the returned vector."]}),l.jsxs("p",{children:["Similarly, ",l.jsx("code",{children:"histogram_stdvar(v instant-vector)"})," returns the estimated standard variance of observations in a native histogram."]})]}),double_exponential_smoothing:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"double_exponential_smoothing(v range-vector, sf scalar, tf scalar)"})," produces a smoothed value for time series based on the range in ",l.jsx("code",{children:"v"}),". The lower the smoothing factor ",l.jsx("code",{children:"sf"}),", the more importance is given to old data. The higher the trend factor ",l.jsx("code",{children:"tf"}),", the more trends in the data is considered. Both ",l.jsx("code",{children:"sf"})," ","and ",l.jsx("code",{children:"tf"})," must be between 0 and 1."]}),l.jsxs("p",{children:[l.jsx("code",{children:"double_exponential_smoothing"})," should only be used with gauges."]})]}),hour:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"hour(v=vector(time()) instant-vector)"})," returns the hour of the day for each of the given times in UTC. Returned values are from 0 to 23."]})}),idelta:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"idelta(v range-vector)"})," calculates the difference between the last two samples in the range vector"," ",l.jsx("code",{children:"v"}),", returning an instant vector with the given deltas and equivalent labels."]}),l.jsxs("p",{children:[l.jsx("code",{children:"idelta"})," should only be used with gauges."]})]}),increase:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"increase(v range-vector)"})," calculates the increase in the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for. The increase is extrapolated to cover the full time range as specified in the range vector selector, so that it is possible to get a non-integer result even if a counter increases only by integer increments."]}),l.jsx("p",{children:"The following example expression returns the number of HTTP requests as measured over the last 5 minutes, per time series in the range vector:"}),l.jsx("pre",{children:l.jsxs("code",{children:["increase(http_requests_total","{",'job="api-server"',"}","[5m])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"increase"})," acts on native histograms by calculating a new histogram where each component (sum and count of observations, buckets) is the increase between the respective component in the first and last native histogram in",l.jsx("code",{children:"v"}),". However, each element in ",l.jsx("code",{children:"v"})," that contains a mix of float and native histogram samples within the range, will be missing from the result vector."]}),l.jsxs("p",{children:[l.jsx("code",{children:"increase"})," should only be used with counters and native histograms where the components behave like counters. It is syntactic sugar for ",l.jsx("code",{children:"rate(v)"})," multiplied by the number of seconds under the specified time range window, and should be used primarily for human readability. Use ",l.jsx("code",{children:"rate"})," in recording rules so that increases are tracked consistently on a per-second basis."]})]}),irate:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"irate(v range-vector)"})," calculates the per-second instant rate of increase of the time series in the range vector. This is based on the last two data points. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for."]}),l.jsx("p",{children:"The following example expression returns the per-second rate of HTTP requests looking up to 5 minutes back for the two most recent data points, per time series in the range vector:"}),l.jsx("pre",{children:l.jsxs("code",{children:["irate(http_requests_total","{",'job="api-server"',"}","[5m])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"irate"})," should only be used when graphing volatile, fast-moving counters. Use ",l.jsx("code",{children:"rate"})," for alerts and slow-moving counters, as brief changes in the rate can reset the ",l.jsx("code",{children:"FOR"})," clause and graphs consisting entirely of rare spikes are hard to read."]}),l.jsxs("p",{children:["Note that when combining ",l.jsx("code",{children:"irate()"})," with an",l.jsx("a",{href:"operators.md#aggregation-operators",children:"aggregation operator"})," (e.g. ",l.jsx("code",{children:"sum()"}),") or a function aggregating over time (any function ending in ",l.jsx("code",{children:"_over_time"}),"), always take a ",l.jsx("code",{children:"irate()"})," first, then aggregate. Otherwise ",l.jsx("code",{children:"irate()"})," cannot detect counter resets when your target restarts."]})]}),label_join:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["For each timeseries in ",l.jsx("code",{children:"v"}),","," ",l.jsx("code",{children:"label_join(v instant-vector, dst_label string, separator string, src_label_1 string, src_label_2 string, ...)"})," ","joins all the values of all the ",l.jsx("code",{children:"src_labels"}),"using ",l.jsx("code",{children:"separator"})," and returns the timeseries with the label ",l.jsx("code",{children:"dst_label"})," containing the joined value. There can be any number of ",l.jsx("code",{children:"src_labels"})," in this function."]}),l.jsxs("p",{children:[l.jsx("code",{children:"label_join"})," acts on float and histogram samples in the same way."]}),l.jsxs("p",{children:["This example will return a vector with each time series having a ",l.jsx("code",{children:"foo"})," label with the value"," ",l.jsx("code",{children:"a,b,c"})," added to it:"]}),l.jsx("pre",{children:l.jsxs("code",{children:["label_join(up","{",'job="api-server",src1="a",src2="b",src3="c"',"}",', "foo", ",", "src1", "src2", "src3")']})})]}),label_replace:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["For each timeseries in ",l.jsx("code",{children:"v"}),","," ",l.jsx("code",{children:"label_replace(v instant-vector, dst_label string, replacement string, src_label string, regex string)"}),"matches the ",l.jsx("a",{href:"https://github.com/google/re2/wiki/Syntax",children:"regular expression"})," ",l.jsx("code",{children:"regex"})," against the value of the label ",l.jsx("code",{children:"src_label"}),". If it matches, the value of the label ",l.jsx("code",{children:"dst_label"})," in the returned timeseries will be the expansion of ",l.jsx("code",{children:"replacement"}),", together with the original labels in the input. Capturing groups in the regular expression can be referenced with ",l.jsx("code",{children:"$1"}),", ",l.jsx("code",{children:"$2"}),", etc. Named capturing groups in the regular expression can be referenced with ",l.jsx("code",{children:"$name"})," (where ",l.jsx("code",{children:"name"})," is the capturing group name). If the regular expression doesn’t match then the timeseries is returned unchanged."]}),l.jsxs("p",{children:[l.jsx("code",{children:"label_replace"})," acts on float and histogram samples in the same way."]}),l.jsxs("p",{children:["This example will return timeseries with the values ",l.jsx("code",{children:"a:c"})," at label ",l.jsx("code",{children:"service"})," and ",l.jsx("code",{children:"a"})," ","at label ",l.jsx("code",{children:"foo"}),":"]}),l.jsx("pre",{children:l.jsxs("code",{children:["label_replace(up","{",'job="api-server",service="a:c"',"}",', "foo", "$1", "service", "(.*):.*")']})}),l.jsx("p",{children:"This second example has the same effect than the first example, and illustrates use of named capturing groups:"}),l.jsx("pre",{children:l.jsxs("code",{children:["label_replace(up","{",'job="api-server",service="a:c"',"}",', "foo", "$name", "service", "(?P<name>.*):(?P<version>.*)")']})})]}),last_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),ln:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"ln(v instant-vector)"})," calculates the natural logarithm for all elements in ",l.jsx("code",{children:"v"}),". Special cases are:"]}),l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("code",{children:"ln(+Inf) = +Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"ln(0) = -Inf"})}),l.jsx("li",{children:l.jsx("code",{children:"ln(x < 0) = NaN"})}),l.jsx("li",{children:l.jsx("code",{children:"ln(NaN) = NaN"})})]})]}),log10:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"log10(v instant-vector)"})," calculates the decimal logarithm for all elements in ",l.jsx("code",{children:"v"}),". The special cases are equivalent to those in ",l.jsx("code",{children:"ln"}),"."]})}),log2:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"log2(v instant-vector)"})," calculates the binary logarithm for all elements in ",l.jsx("code",{children:"v"}),". The special cases are equivalent to those in ",l.jsx("code",{children:"ln"}),"."]})}),mad_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),max_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),min_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),minute:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"minute(v=vector(time()) instant-vector)"})," returns the minute of the hour for each of the given times in UTC. Returned values are from 0 to 59."]})}),month:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"month(v=vector(time()) instant-vector)"})," returns the month of the year for each of the given times in UTC. Returned values are from 1 to 12, where 1 means January etc."]})}),pi:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),predict_linear:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"predict_linear(v range-vector, t scalar)"})," predicts the value of time series",l.jsx("code",{children:"t"})," seconds from now, based on the range vector ",l.jsx("code",{children:"v"}),", using"," ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Simple_linear_regression",children:"simple linear regression"}),". The range vector must have at least two samples in order to perform the calculation. When ",l.jsx("code",{children:"+Inf"})," or ",l.jsx("code",{children:"-Inf"})," are found in the range vector, the slope and offset value calculated will be ",l.jsx("code",{children:"NaN"}),"."]}),l.jsxs("p",{children:[l.jsx("code",{children:"predict_linear"})," should only be used with gauges."]})]}),present_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),quantile_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),rad:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),rate:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"rate(v range-vector)"})," calculates the per-second average rate of increase of the time series in the range vector. Breaks in monotonicity (such as counter resets due to target restarts) are automatically adjusted for. Also, the calculation extrapolates to the ends of the time range, allowing for missed scrapes or imperfect alignment of scrape cycles with the range’s time period."]}),l.jsx("p",{children:"The following example expression returns the per-second rate of HTTP requests as measured over the last 5 minutes, per time series in the range vector:"}),l.jsx("pre",{children:l.jsxs("code",{children:["rate(http_requests_total","{",'job="api-server"',"}","[5m])"]})}),l.jsxs("p",{children:[l.jsx("code",{children:"rate"})," acts on native histograms by calculating a new histogram where each component (sum and count of observations, buckets) is the rate of increase between the respective component in the first and last native histogram in",l.jsx("code",{children:"v"}),". However, each element in ",l.jsx("code",{children:"v"})," that contains a mix of float and native histogram samples within the range, will be missing from the result vector."]}),l.jsxs("p",{children:[l.jsx("code",{children:"rate"})," should only be used with counters and native histograms where the components behave like counters. It is best suited for alerting, and for graphing of slow-moving counters."]}),l.jsxs("p",{children:["Note that when combining ",l.jsx("code",{children:"rate()"})," with an aggregation operator (e.g. ",l.jsx("code",{children:"sum()"}),") or a function aggregating over time (any function ending in ",l.jsx("code",{children:"_over_time"}),"), always take a ",l.jsx("code",{children:"rate()"})," first, then aggregate. Otherwise ",l.jsx("code",{children:"rate()"})," cannot detect counter resets when your target restarts."]})]}),resets:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["For each input time series, ",l.jsx("code",{children:"resets(v range-vector)"})," returns the number of counter resets within the provided time range as an instant vector. Any decrease in the value between two consecutive float samples is interpreted as a counter reset. A reset in a native histogram is detected in a more complex way: Any decrease in any bucket, including the zero bucket, or in the count of observation constitutes a counter reset, but also the disappearance of any previously populated bucket, an increase in bucket resolution, or a decrease of the zero-bucket width."]}),l.jsxs("p",{children:[l.jsx("code",{children:"resets"})," should only be used with counters and counter-like native histograms."]}),l.jsxs("p",{children:["If the range vector contains a mix of float and histogram samples for the same series, counter resets are detected separately and their numbers added up. The change from a float to a histogram sample is ",l.jsx("em",{children:"not"})," considered a counter reset. Each float sample is compared to the next float sample, and each histogram is comprared to the next histogram."]})]}),round:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"round(v instant-vector, to_nearest=1 scalar)"})," rounds the sample values of all elements in ",l.jsx("code",{children:"v"})," ","to the nearest integer. Ties are resolved by rounding up. The optional ",l.jsx("code",{children:"to_nearest"})," argument allows specifying the nearest multiple to which the sample values should be rounded. This multiple may also be a fraction."]})}),scalar:l.jsx(l.Fragment,{children:l.jsxs("p",{children:["Given a single-element input vector, ",l.jsx("code",{children:"scalar(v instant-vector)"})," returns the sample value of that single element as a scalar. If the input vector does not have exactly one element, ",l.jsx("code",{children:"scalar"})," will return"," ",l.jsx("code",{children:"NaN"}),"."]})}),sgn:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"sgn(v instant-vector)"})," returns a vector with all sample values converted to their sign, defined as this: 1 if v is positive, -1 if v is negative and 0 if v is equal to zero."]})}),sin:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),sinh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),sort:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:[l.jsx("code",{children:"sort(v instant-vector)"})," returns vector elements sorted by their sample values, in ascending order. Native histograms are sorted by their sum of observations."]}),l.jsxs("p",{children:["Please note that ",l.jsx("code",{children:"sort"})," only affects the results of instant queries, as range query results always have a fixed output ordering."]})]}),sort_by_label:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsxs("strong",{children:["This function has to be enabled via the"," ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"})," ",l.jsx("code",{children:"--enable-feature=promql-experimental-functions"}),"."]})}),l.jsxs("p",{children:[l.jsx("code",{children:"sort_by_label(v instant-vector, label string, ...)"})," returns vector elements sorted by the values of the given labels in ascending order. In case these label values are equal, elements are sorted by their full label sets."]}),l.jsx("p",{children:"Please note that the sort by label functions only affect the results of instant queries, as range query results always have a fixed output ordering."}),l.jsxs("p",{children:["This function uses ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Natural_sort_order",children:"natural sort order"}),"."]})]}),sort_by_label_desc:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:l.jsxs("strong",{children:["This function has to be enabled via the"," ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"})," ",l.jsx("code",{children:"--enable-feature=promql-experimental-functions"}),"."]})}),l.jsxs("p",{children:["Same as ",l.jsx("code",{children:"sort_by_label"}),", but sorts in descending order."]}),l.jsx("p",{children:"Please note that the sort by label functions only affect the results of instant queries, as range query results always have a fixed output ordering."}),l.jsxs("p",{children:["This function uses ",l.jsx("a",{href:"https://en.wikipedia.org/wiki/Natural_sort_order",children:"natural sort order"}),"."]})]}),sort_desc:l.jsxs(l.Fragment,{children:[l.jsxs("p",{children:["Same as ",l.jsx("code",{children:"sort"}),", but sorts in descending order."]}),l.jsxs("p",{children:["Like ",l.jsx("code",{children:"sort"}),", ",l.jsx("code",{children:"sort_desc"})," only affects the results of instant queries, as range query results always have a fixed output ordering."]})]}),sqrt:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"sqrt(v instant-vector)"})," calculates the square root of all elements in ",l.jsx("code",{children:"v"}),"."]})}),stddev_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),stdvar_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),sum_over_time:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The following functions allow aggregating each series of a given range vector over time and return an instant vector with per-series aggregation results:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"avg_over_time(range-vector)"}),": the average value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"min_over_time(range-vector)"}),": the minimum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"max_over_time(range-vector)"}),": the maximum value of all points in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sum_over_time(range-vector)"}),": the sum of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"count_over_time(range-vector)"}),": the count of all values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"quantile_over_time(scalar, range-vector)"}),": the φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stddev_over_time(range-vector)"}),": the population standard deviation of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"stdvar_over_time(range-vector)"}),": the population standard variance of the values in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"last_over_time(range-vector)"}),": the most recent point value in the specified interval."]}),l.jsxs("li",{children:[l.jsx("code",{children:"present_over_time(range-vector)"}),": the value 1 for any series in the specified interval."]})]}),l.jsxs("p",{children:["If the ",l.jsx("a",{href:"../feature_flags.md#experimental-promql-functions",children:"feature flag"}),l.jsx("code",{children:"--enable-feature=promql-experimental-functions"})," is set, the following additional functions are available:"]}),l.jsx("ul",{children:l.jsxs("li",{children:[l.jsx("code",{children:"mad_over_time(range-vector)"}),": the median absolute deviation of all points in the specified interval."]})}),l.jsx("p",{children:"Note that all values in the specified interval have the same weight in the aggregation even if the values are not equally spaced throughout the interval."}),l.jsxs("p",{children:[l.jsx("code",{children:"avg_over_time"}),", ",l.jsx("code",{children:"sum_over_time"}),", ",l.jsx("code",{children:"count_over_time"}),", ",l.jsx("code",{children:"last_over_time"}),", and",l.jsx("code",{children:"present_over_time"})," handle native histograms as expected. All other functions ignore histogram samples."]})]}),tan:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),tanh:l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"The trigonometric functions work in radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"acos(v instant-vector)"}),": calculates the arccosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"acosh(v instant-vector)"}),": calculates the inverse hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Acosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asin(v instant-vector)"}),": calculates the arcsine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"asinh(v instant-vector)"}),": calculates the inverse hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Asinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atan(v instant-vector)"}),": calculates the arctangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"atanh(v instant-vector)"}),": calculates the inverse hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Atanh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cos(v instant-vector)"}),": calculates the cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cos",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"cosh(v instant-vector)"}),": calculates the hyperbolic cosine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Cosh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sin(v instant-vector)"}),": calculates the sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sin",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"sinh(v instant-vector)"}),": calculates the hyperbolic sine of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Sinh",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tan(v instant-vector)"}),": calculates the tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tan",children:"special cases"}),")."]}),l.jsxs("li",{children:[l.jsx("code",{children:"tanh(v instant-vector)"}),": calculates the hyperbolic tangent of all elements in ",l.jsx("code",{children:"v"})," (",l.jsx("a",{href:"https://pkg.go.dev/math#Tanh",children:"special cases"}),")."]})]}),l.jsx("p",{children:"The following are useful for converting between degrees and radians:"}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("code",{children:"deg(v instant-vector)"}),": converts radians to degrees for all elements in ",l.jsx("code",{children:"v"}),"."]}),l.jsxs("li",{children:[l.jsx("code",{children:"pi()"}),": returns pi."]}),l.jsxs("li",{children:[l.jsx("code",{children:"rad(v instant-vector)"}),": converts degrees to radians for all elements in ",l.jsx("code",{children:"v"}),"."]})]})]}),time:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"time()"})," returns the number of seconds since January 1, 1970 UTC. Note that this does not actually return the current time, but the time at which the expression is to be evaluated."]})}),timestamp:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"timestamp(v instant-vector)"})," returns the timestamp of each of the samples of the given vector as the number of seconds since January 1, 1970 UTC. It also works with histogram samples."]})}),vector:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"vector(s scalar)"})," returns the scalar ",l.jsx("code",{children:"s"})," as a vector with no labels."]})}),year:l.jsx(l.Fragment,{children:l.jsxs("p",{children:[l.jsx("code",{children:"year(v=vector(time()) instant-vector)"})," returns the year for each of the given times in UTC."]})})},eRe="_funcDoc_mrib5_1",tRe={funcDoc:eRe},nRe=(t,e)=>l.jsxs(mr,{fz:"sm",my:"md",withPadding:!0,children:[t.length>0&&l.jsxs(mr.Item,{children:["The metric name is"," ",l.jsx("span",{className:"promql-code promql-metric-name",children:t}),"."]}),e.filter(n=>n.name!=="__name__").map(n=>{switch(n.type){case io.equal:return l.jsxs(mr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","is exactly"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),"."]});case io.notEqual:return l.jsxs(mr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","is not"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),"."]});case io.matchRegexp:return l.jsxs(mr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","matches the regular expression"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),"."]});case io.matchNotRegexp:return l.jsxs(mr.Item,{children:[l.jsx("span",{className:"promql-code promql-label-name",children:n.name}),l.jsx("span",{className:"promql-code promql-operator",children:n.type}),l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),": The label"," ",l.jsx("span",{className:"promql-code promql-label-name",children:n.name})," ","does not match the regular expression"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(n.value),'"']}),"."]});default:throw new Error("invalid matcher type")}})]}),uG=({node:t})=>{const e=t.name.replace(/(_count|_sum|_bucket)$/,""),{lookbackDelta:n}=yi(),{data:r}=Fi({path:"/metadata",params:{metric:e}});return l.jsxs(Ur,{withBorder:!0,children:[l.jsxs(ht,{fz:"lg",fw:600,mb:"md",children:[t.type===pt.vectorSelector?"Instant":"Range"," vector selector"]}),l.jsx(ht,{fz:"sm",children:r.data===void 0||r.data[e]===void 0||r.data[e].length<1?l.jsx(l.Fragment,{children:"No metric metadata found."}):l.jsxs(l.Fragment,{children:[l.jsx("strong",{children:"Metric help"}),":"," ",r.data[e][0].help,l.jsx("br",{}),l.jsx("strong",{children:"Metric type"}),":"," ",r.data[e][0].type]})}),l.jsx(sy,{my:"md"}),l.jsxs(ht,{fz:"sm",children:[t.type===pt.vectorSelector?l.jsxs(l.Fragment,{children:["This node selects the latest (non-stale) sample value within the last ",l.jsx("span",{className:"promql-code promql-duration",children:n})]}):l.jsxs(l.Fragment,{children:["This node selects"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(t.range)})," ","of data going backward from the evaluation timestamp"]}),t.timestamp!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to an absolute evaluation timestamp of"," ",l.jsx("span",{className:"promql-number",children:(t.timestamp/1e3).toFixed(3)})]}):t.startOrEnd!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to the ",t.startOrEnd," of the query range"]}):l.jsx(l.Fragment,{}),t.offset===0?l.jsx(l.Fragment,{}):t.offset>0?l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(t.offset)})," ","into the past,"]}):l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(-t.offset)})," ","into the future,"]})," ","for any series that match all of the following criteria:"]}),nRe(t.name,t.matchers),l.jsxs(ht,{fz:"sm",children:["If a series has no values in the last"," ",l.jsx("span",{className:"promql-code promql-duration",children:t.type===pt.vectorSelector?n:Nn(t.range)}),t.offset>0&&l.jsxs(l.Fragment,{children:[" ","(relative to the time-shifted instant"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(t.offset)})," ","in the past)"]}),", the series will not be returned."]})]})},vd=t=>{switch(t){case"+Inf":return 1/0;case"-Inf":return-1/0;default:return parseFloat(t)}},Zk=t=>{switch(t){case 1/0:return"+Inf";case-1/0:return"-Inf";default:return t.toString()}},rRe=(t,e)=>{switch(t){case"sum":return"sums over the sample values of the input series";case"min":return"takes the minimum of the sample values of the input series";case"max":return"takes the maximum of the sample values of the input series";case"avg":return"calculates the average of the sample values of the input series";case"stddev":return"calculates the population standard deviation of the sample values of the input series";case"stdvar":return"calculates the population standard variation of the sample values of the input series";case"count":return"counts the number of input series";case"group":return"groups the input series by the supplied grouping labels, while setting the sample value to 1";case"count_values":if(e===null)throw new Error("encountered count_values() node without label parameter");if(e.type!=="stringLiteral")throw new Error("encountered count_values() node without string literal label parameter");return l.jsxs(l.Fragment,{children:["outputs one time series for each unique sample value in the input series (each counting the number of occurrences of that value and indicating the original value in the ",Fa([e.val])," ","label)"]});case"bottomk":return e===null||e.type!=="numberLiteral"?l.jsxs(l.Fragment,{children:["returns the bottom"," ",l.jsx("span",{className:"promql-code promql-number",children:"K"})," series by value"]}):l.jsxs(l.Fragment,{children:["returns the bottom"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," series by value"]});case"topk":return e===null||e.type!=="numberLiteral"?l.jsxs(l.Fragment,{children:["returns the top ",l.jsx("span",{className:"promql-code promql-number",children:"K"})," ","series by value"]}):l.jsxs(l.Fragment,{children:["returns the top"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," series by value"]});case"quantile":if(e===null)throw new Error("encountered quantile() node without quantile parameter");return e.type==="numberLiteral"?`calculates the ${e.val}th quantile (${vd(e.val)*100}th percentile) over the sample values of the input series`:"calculates a quantile over the sample values of the input series";case"limitk":return e===null||e.type!=="numberLiteral"?l.jsxs(l.Fragment,{children:["limits the output to"," ",l.jsx("span",{className:"promql-code promql-number",children:"K"})," series"]}):l.jsxs(l.Fragment,{children:["limits the output to"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," series"]});case"limit_ratio":return e===null||e.type!=="numberLiteral"?"limits the output to a ratio of the input series":l.jsxs(l.Fragment,{children:["limits the output to a ratio of"," ",l.jsx("span",{className:"promql-code promql-number",children:e.val})," (",vd(e.val)*100,"%) of the input series"]});default:throw new Error(`invalid aggregation type ${t}`)}},iRe=(t,e)=>e?l.jsxs(l.Fragment,{children:["aggregating away the [",Fa(t),"] label dimensions"]}):t.length===1?l.jsxs(l.Fragment,{children:["grouped by their ",Fa(t)," label dimension"]}):t.length>1?l.jsxs(l.Fragment,{children:["grouped by their [",Fa(t),"] label dimensions"]}):"aggregating away any label dimensions",aRe=({node:t})=>l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Aggregation"}),l.jsxs(ht,{fz:"sm",children:["This node ",rRe(t.op,t.param),","," ",iRe(t.grouping,t.without),"."]})]}),IK="filtered";var s_=(t=>(t.multipleMatchesForOneToOneMatching="multipleMatchesForOneToOneMatching",t.multipleMatchesOnBothSides="multipleMatchesOnBothSides",t.multipleMatchesOnOneSide="multipleMatchesOnOneSide",t))(s_||{});const dG=16777619,sRe=2166136261,oRe=55296,fG=t=>{let e=sRe;for(let n=0;n<t.length;n++){if(t[n]!==void 0)for(let r=0;r<t[n].length;r++)e^=t[n].charCodeAt(r),e*=dG;n<t.length-1&&(e^=oRe,e*=dG)}return e.toString()},lRe=(t,e)=>(e.sort(),t?n=>fG(e.map(r=>n[r])):n=>fG(Object.keys(n).filter(r=>!e.includes(r)&&r!=="__name__").map(r=>n[r]))),hG=(t,e,n)=>{const r={};for(const i in t)n.includes(i)===e&&(e||i!=="__name__")&&(r[i]=t[i]);return r},cRe=(t,e,n)=>{const{value:r,keep:i}=LE(t,e,n);return Bk(t)?Number(i):r},LE=(t,e,n)=>{switch(t){case Vt.add:return{value:e+n,keep:!0};case Vt.sub:return{value:e-n,keep:!0};case Vt.mul:return{value:e*n,keep:!0};case Vt.div:return{value:e/n,keep:!0};case Vt.pow:return{value:Math.pow(e,n),keep:!0};case Vt.mod:return{value:e%n,keep:!0};case Vt.eql:return{value:e,keep:e===n};case Vt.neq:return{value:e,keep:e!==n};case Vt.gtr:return{value:e,keep:e>n};case Vt.lss:return{value:e,keep:e<n};case Vt.gte:return{value:e,keep:e>=n};case Vt.lte:return{value:e,keep:e<=n};case Vt.atan2:return{value:Math.atan2(e,n),keep:!0};default:throw new Error("invalid binop")}},uRe=t=>[Vt.add,Vt.sub,Vt.mul,Vt.div,Vt.pow,Vt.mod,Vt.atan2].includes(t),dRe=(t,e,n,r)=>{const i={};for(const a in t)i[a]=t[a];if(uRe(n)&&delete i.__name__,r.card===Wr.oneToOne)if(r.on)for(const a in i)r.labels.includes(a)||delete i[a];else for(const a of r.labels)delete i[a];return r.include.forEach(a=>{a in e?i[a]=e[a]:delete i[a]}),i},fRe=(t,e,n,r,i,a)=>{[r,i]=e.card===Wr.oneToMany?[i,r]:[r,i];const s={},o=lRe(e.on,e.labels),c=new Set;return i.forEach(d=>{const f=o(d.metric);if(!(f in s)){if(a!=null&&a.maxGroups&&Object.keys(s).length>=a.maxGroups){c.add(f);return}s[f]={groupLabels:hG(d.metric,e.on,e.labels),lhs:[],lhsCount:0,rhs:[],rhsCount:0,result:[],error:null}}(!(a!=null&&a.maxSeriesPerGroup)||s[f].rhsCount<a.maxSeriesPerGroup)&&s[f].rhs.push(d),s[f].rhsCount++}),r.forEach(d=>{const f=o(d.metric);if(!(f in s)){if(a!=null&&a.maxGroups&&Object.keys(s).length>=a.maxGroups){c.add(f);return}s[f]={groupLabels:hG(d.metric,e.on,e.labels),lhs:[],lhsCount:0,rhs:[],rhsCount:0,result:[],error:null}}(!(a!=null&&a.maxSeriesPerGroup)||s[f].lhsCount<a.maxSeriesPerGroup)&&s[f].lhs.push(d),s[f].lhsCount++}),Object.values(s).forEach(d=>{switch(e.card){case Wr.oneToOne:d.lhs.length>1&&d.rhs.length>1?d.error={type:"multipleMatchesOnBothSides"}:(d.lhs.length>1||d.rhs.length>1)&&(d.error={type:"multipleMatchesForOneToOneMatching",dupeSide:d.lhs.length>1?"left":"right"});break;case Wr.oneToMany:case Wr.manyToOne:d.rhs.length>1&&(d.error={type:"multipleMatchesOnOneSide"});break;case Wr.manyToMany:if(!iI(t))throw new Error("unexpected many-to-many matching for non-set operator");break;default:throw new Error("unknown vector matching cardinality")}d.error||(iI(t)?(d.lhs.forEach((f,p)=>{(t===Vt.and&&d.rhs.length>0||t===Vt.unless&&d.rhs.length===0||t===Vt.or)&&d.result.push({sample:{metric:f.metric,value:f.value},manySideIdx:p})}),t===Vt.or&&d.rhs.forEach((f,p)=>{d.lhs.length===0&&d.result.push({sample:{metric:f.metric,value:f.value},manySideIdx:p})})):d.rhs.forEach(f=>{d.lhs.forEach((p,m)=>{if(!p.value||!f.value)throw new Error("native histogram support not implemented yet");const[g,b]=e.card!==Wr.oneToMany?[p.value[1],f.value[1]]:[f.value[1],p.value[1]];let{value:S,keep:y}=LE(t,vd(g),vd(b));const E=dRe(p.metric,f.metric,t,e);n&&(S=y?1:0,delete E.__name__),d.result.push({sample:{metric:E,value:[p.value[0],y||n?Zk(S):IK]},manySideIdx:m})})}))}),e.card===Wr.oneToMany&&Object.keys(s).forEach(d=>{[s[d].lhs,s[d].rhs]=[s[d].rhs,s[d].lhs],[s[d].lhsCount,s[d].rhsCount]=[s[d].rhsCount,s[d].lhsCount]}),{groups:s,numGroups:Object.keys(s).length+c.size}},pG=({node:t,scalar:e,vector:n,scalarLeft:r})=>n.length===0?l.jsx(Lt,{children:"One side of the binary operation produces 0 results, no matching information shown."}):l.jsxs(ae,{withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,fz:"xs",children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{children:[!r&&l.jsx(ae.Th,{children:"Left labels"}),l.jsx(ae.Th,{children:"Left value"}),l.jsx(ae.Th,{children:"Operator"}),r&&l.jsx(ae.Th,{children:"Right labels"}),l.jsx(ae.Th,{children:"Right value"}),l.jsx(ae.Th,{}),l.jsx(ae.Th,{children:"Result"})]})}),l.jsx(ae.Tbody,{children:n.map((i,a)=>{if(!i.value)throw new Error("Native histograms are not supported yet");const s=vd(i.value[1]),o=vd(e[1]);let{value:c,keep:d}=r?LE(t.op,o,s):LE(t.op,s,o);Bk(t.op)&&r&&(c=s),t.bool&&(c=Number(d),d=!0);const f=l.jsx(ae.Td,{ta:"right",children:e[1]}),p=l.jsxs(l.Fragment,{children:[l.jsx(ae.Td,{children:l.jsx(bp,{labels:i.metric,format:!0})}),l.jsx(ae.Td,{ta:"right",children:i.value[1]})]});return l.jsxs(ae.Tr,{children:[r?f:p,l.jsxs(ae.Td,{ta:"center",children:[t.op,t.bool&&" bool"]}),r?p:f,l.jsx(ae.Td,{ta:"center",children:"="}),l.jsx(ae.Td,{ta:"right",children:d?Zk(c):l.jsx(ht,{c:"dimmed",children:"dropped"})})]},a)})})]}),t0=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#393b79","#637939","#8c6d31","#843c39","#d6616b","#7b4173","#ce6dbd","#9c9ede","#c5b0d5","#c49c94","#f7b6d2","#c7c7c7","#dbdb8d","#9edae5","#393b79","#637939","#8c6d31","#843c39","#d6616b","#7b4173","#ce6dbd","#9c9ede","#c5b0d5","#c49c94","#f7b6d2","#c7c7c7","#dbdb8d","#9edae5","#17becf","#393b79","#637939","#8c6d31","#843c39","#d6616b","#7b4173","#ce6dbd","#9c9ede","#c5b0d5","#c49c94","#f7b6d2"],mG=t0.length/2+3,ER=(t,e)=>`${t0[(t+(e||0))%t0.length]}80`,yR=t=>l.jsx(Se,{display:"inline-block",w:12,h:12,bg:t,style:{borderRadius:2,flexShrink:0}}),hRe=(t,e,n)=>{const r={};for(const i in t)n.includes(i)===e&&(e||i!=="__name__")||(r[i]=t[i]);return r},pRe=t=>{const e=t.matching,[n,r]=e.card===Wr.oneToMany?["left","right"]:["right","left"];return l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:"sm",children:Bk(t.op)?l.jsxs(l.Fragment,{children:['This node filters the series from the left-hand side based on the result of a "',l.jsx("span",{className:"promql-code promql-operator",children:t.op}),'" comparison with matching series from the right-hand side.']}):l.jsxs(l.Fragment,{children:['This node calculates the result of applying the "',l.jsx("span",{className:"promql-code promql-operator",children:t.op}),'" operator between the sample values of matching series from two sets of time series.']})}),l.jsxs(mr,{my:"md",fz:"sm",withPadding:!0,children:[(e.labels.length>0||e.on)&&(e.on?l.jsxs(mr.Item,{children:[l.jsx("span",{className:"promql-code promql-keyword",children:"on"}),"(",Fa(e.labels),"):"," ",e.labels.length>0?l.jsxs(l.Fragment,{children:["series on both sides are matched on the labels"," ",Fa(e.labels)]}):l.jsx(l.Fragment,{children:"all series from one side are matched to all series on the other side."})]}):l.jsxs(mr.Item,{children:[l.jsx("span",{className:"promql-code promql-keyword",children:"ignoring"}),"(",Fa(e.labels),"): series on both sides are matched on all of their labels, except"," ",Fa(e.labels),"."]})),e.card===Wr.oneToOne?l.jsx(mr.Item,{children:"One-to-one match. Each series from the left-hand side is allowed to match with at most one series on the right-hand side, and vice versa."}):l.jsxs(mr.Item,{children:[l.jsxs("span",{className:"promql-code promql-keyword",children:["group_",r,"(",Fa(e.include),")"]}),": ",e.card," match. Each series from the ",n,"-hand side is allowed to match with multiple series from the ",r,"-hand side.",e.include.length!==0&&l.jsxs(l.Fragment,{children:[" ","Any ",Fa(e.include)," labels found on the"," ",n,"-hand side are propagated into the result, in addition to the match group's labels."]})]}),t.bool&&l.jsxs(mr.Item,{children:[l.jsx("span",{className:"promql-code promql-keyword",children:"bool"}),": Instead of filtering series based on the outcome of the comparison for matched series, keep all series, but return the comparison outcome as a boolean ",l.jsx("span",{className:"promql-code promql-number",children:"0"})," or"," ",l.jsx("span",{className:"promql-code promql-number",children:"1"})," sample value."]})]})]})},mRe=(t,e,n)=>{const r=l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:"sm",children:l.jsx("strong",{children:"Possible fixes:"})}),l.jsxs(mr,{withPadding:!0,my:"md",fz:"sm",children:[n.type===s_.multipleMatchesForOneToOneMatching&&l.jsxs(mr.Item,{children:[l.jsxs(ht,{size:"sm",children:[l.jsxs("strong",{children:["Allow ",n.dupeSide==="left"?"many-to-one":"one-to-many"," ","matching"]}),": If you want to allow"," ",n.dupeSide==="left"?"many-to-one":"one-to-many"," ","matching, you need to explicitly request it by adding a"," ",l.jsxs("span",{className:"promql-code promql-keyword",children:["group_",n.dupeSide,"()"]})," ","modifier to the operator:"]}),l.jsx(ht,{size:"sm",ta:"center",my:"md",children:Do({...t,matching:{...t.matching?t.matching:{labels:[],on:!1,include:[]},card:n.dupeSide==="left"?Wr.manyToOne:Wr.oneToMany}},!0,1)})]}),l.jsxs(mr.Item,{children:[l.jsx("strong",{children:"Update your matching parameters:"})," Consider including more differentiating labels in your matching modifiers (via"," ",l.jsx("span",{className:"promql-code promql-keyword",children:"on()"})," /"," ",l.jsx("span",{className:"promql-code promql-keyword",children:"ignoring()"}),") to split multiple series into distinct match groups."]}),l.jsxs(mr.Item,{children:[l.jsx("strong",{children:"Aggregate the input:"})," Consider aggregating away the extra labels that create multiple series per group before applying the binary operation."]})]})]});switch(n.type){case s_.multipleMatchesForOneToOneMatching:return l.jsxs(l.Fragment,{children:[l.jsxs(ht,{size:"sm",children:["Binary operators only allow ",l.jsx("strong",{children:"one-to-one"})," matching by default, but we found"," ",l.jsxs("strong",{children:["multiple series on the ",n.dupeSide," side"]})," for this match group."]}),r]});case s_.multipleMatchesOnBothSides:return l.jsxs(l.Fragment,{children:[l.jsxs(ht,{size:"sm",children:["We found ",l.jsx("strong",{children:"multiple series on both sides"})," for this match group. Since ",l.jsx("strong",{children:"many-to-many matching"})," is not supported, you need to ensure that at least one of the sides only yields a single series."]}),r]});case s_.multipleMatchesOnOneSide:{const[i,a]=t.matching.card===Wr.oneToMany?["left","right"]:["right","left"];return l.jsxs(l.Fragment,{children:[l.jsxs(ht,{size:"sm",children:["You requested"," ",l.jsxs("strong",{children:[i==="right"?"many-to-one":"one-to-many"," matching"]})," ","via"," ",l.jsxs("span",{className:"promql-code promql-keyword",children:["group_",a,"()"]}),", but we also found"," ",l.jsxs("strong",{children:["multiple series on the ",i," side"]})," of the match group. Make sure that the ",i," side only contains a single series."]}),r]})}default:throw new Error("unknown match error")}},gRe=({node:t,lhs:e,rhs:n})=>{const[r,i]=RI({key:"queryPage.explain.binaryOperators.showSampleValues",defaultValue:!1}),[a,s]=I.useState(100),[o,c]=I.useState(100),{matching:d}=t;if(d===null)throw new Error("missing matching parameters in vector-to-vector binop");const{groups:f,numGroups:p}=fRe(t.op,d,t.bool,e,n,{maxGroups:a,maxSeriesPerGroup:o}),m=Object.values(f).filter(g=>g.error).length;return l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:"sm",children:pRe(t)}),l.jsx(mt,{my:"lg",justify:"flex-end",gap:"xl",children:l.jsx(xy,{label:"Show sample values",checked:r,onChange:g=>i(g.currentTarget.checked)})}),p>Object.keys(f).length&&l.jsxs(Lt,{color:"yellow",mb:"md",icon:l.jsx(na,{}),children:["Too many match groups to display, only showing"," ",Object.keys(f).length," out of ",p," groups.",l.jsx("br",{}),l.jsx("br",{}),l.jsx(Ei,{fz:"sm",onClick:()=>s(void 0),children:"Show all groups"})]}),m>0&&l.jsxs(Lt,{color:"yellow",mb:"md",icon:l.jsx(na,{}),children:["Found matching issues in ",m," match group",m>1?"s":"",". See below for per-group error details."]}),l.jsx(ae,{fz:"xs",withRowBorders:!1,children:l.jsx(ae.Tbody,{children:Object.values(f).map((g,b)=>{const{groupLabels:S,lhs:y,lhsCount:E,rhs:x,rhsCount:C,result:R,error:T}=g,N=P=>l.jsx(ae.Tr,{ta:"center",children:l.jsx(ae.Td,{colSpan:2,style:{backgroundColor:`${P}25`},children:l.jsx(bp,{labels:S,format:!0})})}),w=(P,V,Y,G)=>l.jsx(Se,{style:{borderRadius:3,border:"2px solid",borderColor:V===0?"light-dark(var(--mantine-color-gray-4), var(--mantine-color-gray-7))":Y},children:l.jsx(ae,{fz:"xs",withRowBorders:!1,verticalSpacing:5,children:l.jsxs(ae.Tbody,{children:[V===0?l.jsx(ae.Tr,{children:l.jsx(ae.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"no matching series"})}):l.jsxs(l.Fragment,{children:[N(Y),P.map((F,q)=>{if(F.value===void 0)throw new Error("Native histograms are not supported yet");return l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:l.jsxs(mt,{wrap:"nowrap",gap:7,align:"center",children:[yR(ER(q,G)),l.jsx(bp,{labels:hRe(F.metric,d.on,d.labels),format:!0})]})}),r&&l.jsx(ae.Td,{ta:"right",children:F.value[1]})]},q)})]}),V>P.length&&l.jsx(ae.Tr,{children:l.jsxs(ae.Td,{ta:"center",py:"md",fw:"bold",c:"gray.6",children:[V-P.length," more series omitted   –  ",l.jsx(Ei,{size:"xs",onClick:()=>c(void 0),children:"Show all series"})]})})]})})}),D=t0[b%t0.length],L=w(y,E,D),k=w(x,C,D,mG),M=l.jsx(Se,{style:{borderRadius:3,border:"2px solid",borderColor:R.length===0||T!==null?"light-dark(var(--mantine-color-gray-4), var(--mantine-color-gray-7))":D},children:l.jsx(ae,{fz:"xs",withRowBorders:!1,verticalSpacing:5,children:l.jsx(ae.Tbody,{children:T!==null?l.jsx(ae.Tr,{children:l.jsx(ae.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"error, result omitted"})}):R.length===0?l.jsx(ae.Tr,{children:l.jsx(ae.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"dropped"})}):T!==null?l.jsx(ae.Tr,{children:l.jsx(ae.Td,{ta:"center",c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-5))",py:"md",fw:"bold",children:"error, result omitted"})}):l.jsx(l.Fragment,{children:R.map(({sample:P,manySideIdx:V},Y)=>{if(P.value===void 0)throw new Error("Native histograms are not supported yet");const G=P.value[1]===IK,[F,q]=d.card===Wr.oneToMany?[0,V]:[V,0];return l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{style:{opacity:G?.5:1},title:G?"Series has been filtered by comparison operator":void 0,children:l.jsxs(mt,{wrap:"nowrap",gap:"xs",align:"flex-start",children:[l.jsxs(mt,{wrap:"nowrap",gap:0,children:[yR(ER(F)),l.jsx("span",{style:{color:"#aaa"},children:"–"}),yR(ER(q,mG))]}),l.jsx(bp,{labels:P.metric,format:!0})]})}),r&&l.jsx(ae.Td,{ta:"right",children:G?l.jsx("span",{style:{color:"grey"},children:"filtered"}):l.jsx("span",{children:P.value[1]})})]},Y)})})})})});return l.jsxs(xn.Fragment,{children:[b!==0&&l.jsx("tr",{style:{height:30}}),l.jsx(ae.Tr,{children:l.jsx(ae.Td,{colSpan:5,children:T&&l.jsx(Lt,{color:"red",mb:"md",title:"Error in match group below",icon:l.jsx(na,{}),children:mRe(t,g,T)})})}),l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{valign:"middle",p:0,children:L}),l.jsxs(ae.Td,{ta:"center",fw:iI(t.op)?"bold":void 0,children:[t.op,t.bool&&" bool"]}),l.jsx(ae.Td,{valign:"middle",p:0,children:k}),l.jsx(ae.Td,{ta:"center",children:"="}),l.jsx(ae.Td,{valign:"middle",p:0,children:M})]})]},b)})})})]})},_Re=({node:t,lhs:e,rhs:n})=>{const[r,i]=[vd(e[1]),vd(n[1])];return l.jsxs(ae,{withColumnBorders:!0,withTableBorder:!0,children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{children:"Left value"}),l.jsx(ae.Th,{children:"Operator"}),l.jsx(ae.Th,{children:"Right value"}),l.jsx(ae.Th,{}),l.jsx(ae.Th,{children:"Result"})]})}),l.jsx(ae.Tbody,{children:l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{className:"number-cell",children:e[1]}),l.jsxs(ae.Td,{className:"op-cell",children:[t.op,t.bool&&" bool"]}),l.jsx(ae.Td,{className:"number-cell",children:n[1]}),l.jsx(ae.Td,{className:"op-cell",children:"="}),l.jsx(ae.Td,{className:"number-cell",children:Zk(cRe(t.op,r,i))})]})})]})},bRe=({node:t})=>{const{data:e}=Fi({path:"/query",params:{query:Ki(t.lhs)}}),{data:n}=Fi({path:"/query",params:{query:Ki(t.rhs)}});if(e.data.resultType!==tp(t.lhs)||n.data.resultType!==tp(t.rhs))return null;if(e.data.resultType==="scalar"&&n.data.resultType==="scalar")return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Scalar-to-scalar binary operation"}),l.jsx(_Re,{node:t,lhs:e.data.result,rhs:n.data.result})]});if(e.data.resultType==="scalar"&&n.data.resultType==="vector")return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Scalar-to-vector binary operation"}),l.jsx(pG,{node:t,vector:n.data.result,scalar:e.data.result,scalarLeft:!0})]});if(e.data.resultType==="vector"&&n.data.resultType==="scalar")return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Vector-to-scalar binary operation"}),l.jsx(pG,{node:t,scalar:n.data.result,vector:e.data.result,scalarLeft:!1})]});if(e.data.resultType==="vector"&&n.data.resultType==="vector")return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Vector-to-vector binary operation"}),l.jsx(gRe,{node:t,lhs:e.data.result,rhs:n.data.result})]});throw new Error("invalid binary operator argument types")},vRe=({node:t,treeShown:e,showTree:n})=>{if(t===null)return l.jsxs(Lt,{title:"How to use the Explain view",icon:l.jsx(gr,{}),children:["This tab can help you understand the behavior of individual components of a query.",l.jsx("br",{}),l.jsx("br",{}),"To use the Explain view,"," ",!e&&l.jsxs(l.Fragment,{children:[l.jsx(Ei,{fz:"unset",onClick:n,children:"enable the query tree view"})," ","(also available via the expression input menu) and then"]})," ","select a node in the tree above."]});switch(t.type){case pt.aggregation:return l.jsx(aRe,{node:t});case pt.binaryExpr:return l.jsx(bRe,{node:t});case pt.call:return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Function call"}),l.jsxs(ht,{fz:"sm",children:["This node calls the"," ",l.jsx(Ei,{fz:"inherit",href:`https://prometheus.io/docs/prometheus/latest/querying/functions/#${t.func.name}`,target:"_blank",children:l.jsxs("span",{className:"promql-code promql-keyword",children:[t.func.name,"()"]})})," ","function",t.args.length>0?" on the provided inputs":"","."]}),l.jsx(sy,{my:"md"}),l.jsx(ht,{fz:"sm",className:tRe.funcDoc,children:JOe[t.func.name]})]});case pt.matrixSelector:return l.jsx(uG,{node:t});case pt.subquery:return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Subquery"}),l.jsxs(ht,{fz:"sm",children:["This node evaluates the passed expression as a subquery over the last"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(t.range)})," ","at a query resolution"," ",t.step>0?l.jsxs(l.Fragment,{children:["of"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(t.step)})]}):"equal to the default rule evaluation interval",t.timestamp!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to an absolute evaluation timestamp of"," ",l.jsx("span",{className:"promql-number",children:(t.timestamp/1e3).toFixed(3)})]}):t.startOrEnd!==null?l.jsxs(l.Fragment,{children:[", evaluated relative to the ",t.startOrEnd," of the query range"]}):l.jsx(l.Fragment,{}),t.offset===0?l.jsx(l.Fragment,{}):t.offset>0?l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(t.offset)})," ","into the past"]}):l.jsxs(l.Fragment,{children:[", time-shifted"," ",l.jsx("span",{className:"promql-code promql-duration",children:Nn(-t.offset)})," ","into the future"]}),"."]})]});case pt.numberLiteral:return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Number literal"}),l.jsxs(ht,{fz:"sm",children:["A scalar number literal with the value"," ",l.jsx("span",{className:"promql-code promql-number",children:t.val}),"."]})]});case pt.parenExpr:return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Parentheses"}),l.jsx(ht,{fz:"sm",children:"Parentheses that contain a sub-expression to be evaluated."})]});case pt.stringLiteral:return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"String literal"}),l.jsxs(ht,{fz:"sm",children:["A string literal with the value"," ",l.jsxs("span",{className:"promql-code promql-string",children:['"',Xi(t.val),'"']}),"."]})]});case pt.unaryExpr:return l.jsxs(Ur,{withBorder:!0,children:[l.jsx(ht,{fz:"lg",fw:600,mb:"md",children:"Unary expression"}),l.jsxs(ht,{fz:"sm",children:["A unary expression that"," ",t.op==="+"?"does not affect the expression it is applied to":"changes the sign of the expression it is applied to","."]})]});case pt.vectorSelector:return l.jsx(uG,{node:t});default:throw new Error("invalid node type")}},zg={width:"0.9rem",height:"0.9rem"},SRe=({idx:t,metricNames:e})=>{const[n,r]=I.useState(0),i=Wl(f=>f.queryPage.panels[t]),a=Qc(),[s,o]=I.useState(null),c=I.useMemo(()=>s!==null?Ki(s.node):i.expr,[s,i.expr]),d=I.useCallback((f,p)=>a(sf({idx:t,visualizer:{...i.visualizer,range:(p-f)*1e3,endTime:p*1e3}})),[a,t,i.visualizer]);return l.jsxs(Mn,{gap:"lg",children:[l.jsx(XTe,{initialExpr:i.expr,metricNames:e,executeQuery:f=>{r(p=>p+1),a(rfe({idx:t,expr:f})),!e.includes(f)&&f.trim()!==""&&a(T9(f))},treeShown:i.showTree,setShowTree:f=>{a(ZC({idx:t,showTree:f})),f||o(null)},removePanel:()=>{a(nfe(t))}}),i.expr.trim()!==""&&i.showTree&&l.jsx(Jp,{title:"Error showing tree view",children:l.jsx(I.Suspense,{fallback:l.jsx(Se,{mt:"lg",children:Array.from(Array(20),(f,p)=>l.jsx(Zo,{height:30,mb:15,width:"100%"},p))}),children:l.jsx(ZOe,{panelIdx:t,selectedNode:s,setSelectedNode:o,closeTreeView:()=>{a(ZC({idx:t,showTree:!1})),o(null)}})})},n),l.jsxs(Cs,{value:i.visualizer.activeTab,onChange:f=>a(sf({idx:t,visualizer:{...i.visualizer,activeTab:f}})),keepMounted:!1,children:[l.jsxs(Cs.List,{children:[l.jsx(Cs.Tab,{value:"table",leftSection:l.jsx(EH,{style:zg}),children:"Table"}),l.jsx(Cs.Tab,{value:"graph",leftSection:l.jsx(rle,{style:zg}),children:"Graph"}),l.jsx(Cs.Tab,{value:"explain",leftSection:l.jsx(gr,{style:zg}),children:"Explain"})]}),l.jsx(Cs.Panel,{pt:"sm",value:"table",children:l.jsx(YOe,{expr:c,panelIdx:t,retriggerIdx:n})}),l.jsxs(Cs.Panel,{pt:"sm",value:"graph",children:[l.jsxs(mt,{mt:"xs",justify:"space-between",children:[l.jsxs(mt,{children:[l.jsx(hhe,{range:i.visualizer.range,onChangeRange:f=>a(sf({idx:t,visualizer:{...i.visualizer,range:f}}))}),l.jsx(z9,{time:i.visualizer.endTime,range:i.visualizer.range,description:"End time",onChangeTime:f=>a(sf({idx:t,visualizer:{...i.visualizer,endTime:f}}))}),l.jsx(dOe,{resolution:i.visualizer.resolution,range:i.visualizer.range,onChangeResolution:f=>{a(sf({idx:t,visualizer:{...i.visualizer,resolution:f}}))}})]}),l.jsx(mt,{gap:"lg",children:l.jsx(E0,{onChange:f=>a(sf({idx:t,visualizer:{...i.visualizer,displayMode:f}})),value:i.visualizer.displayMode,data:[{value:qp.Lines,label:l.jsxs(x_,{children:[l.jsx(Voe,{style:zg}),l.jsx(Se,{ml:10,children:"Unstacked"})]})},{value:qp.Stacked,label:l.jsxs(x_,{children:[l.jsx(yle,{style:zg}),l.jsx(Se,{ml:10,children:"Stacked"})]})}]})})]}),l.jsx(iH,{h:"lg"}),l.jsx(uOe,{expr:c,node:(s==null?void 0:s.node)??null,endTime:i.visualizer.endTime,range:i.visualizer.range,resolution:i.visualizer.resolution,showExemplars:i.visualizer.showExemplars,displayMode:i.visualizer.displayMode,retriggerIdx:n,onSelectRange:d})]}),l.jsx(Cs.Panel,{pt:"sm",value:"explain",children:l.jsx(Jp,{title:"Error showing explain view",children:l.jsx(I.Suspense,{fallback:l.jsx(Se,{mt:"lg",children:Array.from(Array(20),(f,p)=>l.jsx(Zo,{height:30,mb:15,width:"100%"},p))}),children:l.jsx(vRe,{node:(s==null?void 0:s.node)??null,treeShown:i.showTree,showTree:()=>{a(ZC({idx:t,showTree:!0}))}})})},s==null?void 0:s.id)})]})]})};function MK(){const t=Wl(c=>c.queryPage.panels),e=Qc(),[n,r]=I.useState(0);I.useEffect(()=>{const c=()=>{const d=Zde(window.location.search);d.length>0&&e(FF(d))};return c(),window.addEventListener("popstate",c),()=>{window.removeEventListener("popstate",c)}},[e]),I.useEffect(()=>()=>{e(FF([Ly()]))},[e]);const{data:i,error:a}=md({path:"/label/__name__/values"}),{data:s,error:o}=md({path:"/query",params:{query:"time()"}});return I.useEffect(()=>{if(!s)return;if(s.data.resultType!=="scalar")throw new Error("Unexpected result type from time query");const c=new Date().getTime()/1e3,d=s.data.result[0];r(Math.abs(c-d))},[s]),l.jsxs(Se,{mt:"xs",children:[a&&l.jsxs(Lt,{mb:"sm",icon:l.jsx(na,{}),color:"red",title:"Error fetching metrics list",children:["Unable to fetch list of metric names: ",a.message]}),o&&l.jsx(Lt,{mb:"sm",icon:l.jsx(na,{}),color:"red",title:"Error fetching server time",children:o.message}),n>30&&l.jsxs(Lt,{mb:"sm",title:"Server time is out of sync",color:"red",icon:l.jsx(Goe,{}),onClose:()=>r(0),children:["Detected a time difference of"," ",l.jsx("strong",{children:op(n*1e3)})," between your browser and the server. You may see unexpected time-shifted query results due to the time drift."]}),l.jsx(Mn,{gap:"xl",children:t.map((c,d)=>l.jsx(SRe,{idx:d,metricNames:(i==null?void 0:i.data)||[]},c.id))}),l.jsx(Ea,{variant:"light",mt:"xl",leftSection:l.jsx(SH,{style:n_}),onClick:()=>e(tfe()),children:"Add query"})]})}const ERe="_statsBadge_1lijs_1",yRe="_labelBadge_1lijs_9",TRe="_healthOk_1lijs_17",xRe="_healthErr_1lijs_25",CRe="_healthWarn_1lijs_33",ORe="_healthInfo_1lijs_44",RRe="_healthUnknown_1lijs_52",Rn={statsBadge:ERe,labelBadge:yRe,healthOk:TRe,healthErr:xRe,healthWarn:CRe,healthInfo:ORe,healthUnknown:RRe},NRe="_panelHealthOk_p1xoy_1",ARe="_panelHealthErr_p1xoy_6",wRe="_panelHealthWarn_p1xoy_11",DRe="_panelHealthUnknown_p1xoy_16",Tf={panelHealthOk:NRe,panelHealthErr:ARe,panelHealthWarn:wRe,panelHealthUnknown:DRe},IRe="_codebox_b9wnp_1",MRe="_queryButton_b9wnp_8",gG={codebox:IRe,queryButton:MRe},am=({labels:t,variant:e,color:n,wrapper:r=mt})=>l.jsx(r,{gap:"xs",children:Object.entries(t).map(([i,a])=>l.jsxs(Qr,{variant:e||"light",color:n||void 0,className:n?void 0:Rn.labelBadge,styles:{label:{textTransform:"none"}},children:[_d(i),'="',ad(a),'"']},i))}),LRe=new AW,LK=({rule:t})=>{const e=II(),{pathPrefix:n}=yi();return l.jsxs(l.Fragment,{children:[l.jsxs(Ur,{p:"xs",className:gG.codebox,fz:"sm",shadow:"none",children:[l.jsx(Nk,{basicSetup:!1,value:t.query,editable:!1,extensions:[yQ,TQ,tT(e==="light"?xQ:CQ),LRe.asExtension(),et.lineWrapping]}),l.jsx(bi,{label:"Query rule expression",withArrow:!0,position:"top",children:l.jsx(jr,{pos:"absolute",top:7,right:7,variant:"light",onClick:()=>{window.open(`${n}/query?g0.expr=${encodeURIComponent(t.query)}&g0.tab=1`,"_blank")},className:gG.queryButton,children:l.jsx(th,{style:Zp})})})]}),t.type==="alerting"&&l.jsxs(mt,{mt:"lg",gap:"xs",children:[t.duration&&l.jsxs(Qr,{variant:"light",styles:{label:{textTransform:"none"}},leftSection:l.jsx(Koe,{style:Ac}),children:["for: ",Nn(t.duration*1e3)]}),t.keepFiringFor&&l.jsxs(Qr,{variant:"light",styles:{label:{textTransform:"none"}},leftSection:l.jsx(Xoe,{style:Ac}),children:["keep_firing_for: ",Nn(t.keepFiringFor*1e3)]})]}),t.labels&&Object.keys(t.labels).length>0&&l.jsx(Se,{mt:"lg",children:l.jsx(am,{labels:t.labels})}),t.type==="alerting"&&Object.keys(t.annotations).length>0&&l.jsx(ae,{mt:"lg",fz:"sm",children:l.jsx(ae.Tbody,{children:Object.entries(t.annotations).map(([r,i])=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-4))",children:r}),l.jsx(ae.Td,{children:i})]},r))})})]})};function _G({value:t,onRemove:e,...n}){return l.jsx(wc,{fw:600,style:{textTransform:"uppercase",fontWeight:600},onRemove:e,...n,withRemoveButton:!!e,children:t})}const Jk=({options:t,optionClass:e,optionCount:n,placeholder:r,values:i,onChange:a})=>{const s=ry({onDropdownClose:()=>s.resetSelectedOption(),onDropdownOpen:()=>s.updateSelectedOptionIndex("active")}),o=f=>a(i.includes(f)?i.filter(p=>p!==f):[...i,f]),c=f=>a(i.filter(p=>p!==f)),d=i.map(f=>l.jsx(_G,{value:n?`${f} (${n(f)})`:f,className:e(f),onRemove:()=>c(f)},f));return l.jsxs(an,{store:s,onOptionSubmit:o,withinPortal:!1,children:[l.jsx(an.DropdownTarget,{children:l.jsx(l_,{pointer:!0,onClick:()=>s.toggleDropdown(),miw:200,leftSection:l.jsx(_H,{style:Rm}),rightSection:i.length>0?l.jsx(_M,{onClear:()=>a([])}):l.jsx(ny,{}),children:l.jsxs(wc.Group,{children:[d.length>0?d:l.jsx(l_.Field,{placeholder:r,mt:1}),l.jsx(an.EventsTarget,{children:l.jsx(l_.Field,{type:"hidden",onBlur:()=>s.closeDropdown(),onKeyDown:f=>{f.key==="Backspace"&&(f.preventDefault(),c(i[i.length-1]))}})})]})})}),l.jsx(an.Dropdown,{children:l.jsx(an.Options,{children:t.map(f=>l.jsx(an.Option,{value:f,active:i.includes(f),children:l.jsxs(mt,{gap:"sm",children:[i.includes(f)?l.jsx(iy,{size:12,color:"gray"}):null,l.jsx(_G,{value:n?`${f} (${n(f)})`:f,className:e(f)})]})},f))})})]})};function Bc(t,e,n=!0){return{...t,default:e,decode:(...i)=>{const a=t.decode(...i);return a===void 0||n&&a===null?e:a}}}function eP(t,e){if(t==null)return t;if(t.length===0&&(!e||e&&t!==""))return null;const n=t instanceof Array?t[0]:t;return n==null?n:!e&&n===""?null:n}function kRe(t){return t==null||t instanceof Array?t:t===""?[]:[t]}function PRe(t){return t==null?t:t?"1":"0"}function BRe(t){const e=eP(t);return e==null?e:e==="1"?!0:e==="0"?!1:null}function FRe(t){return t==null?t:String(t)}function URe(t){const e=eP(t);return e==null?e:e===""?null:+e}function jRe(t){return t==null?t:String(t)}function GRe(t){const e=eP(t,!0);return e==null?e:String(e)}function qRe(t){return t==null,t}function $Re(t){const e=kRe(t);return e==null,e}const Zf={encode:jRe,decode:GRe},kK={encode:FRe,decode:URe},tP={encode:qRe,decode:$Re},zRe={encode:PRe,decode:BRe};function YRe(t){const e=new URLSearchParams,n=Object.entries(t);for(const[r,i]of n)if(i!==void 0&&i!==null)if(Array.isArray(i))for(const a of i)e.append(r,a??"");else e.append(r,i);return e.toString()}'{}[],":'.split("").map(t=>[t,encodeURIComponent(t)]);function HRe(t,e){const n={},r=Object.keys(e);for(const i of r){const a=e[i];t[i]?n[i]=t[i].encode(e[i]):n[i]=a==null?a:String(a)}return n}function VRe(t){const e=new URLSearchParams(t),n={};for(let[r,i]of e)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(i):n[r]=[n[r],i]:n[r]=i;return n}class WRe{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,n,r,i){this.paramsMap.set(e,{stringified:n,decoded:r,decode:i})}has(e,n,r){if(!this.paramsMap.has(e))return!1;const i=this.paramsMap.get(e);return i?i.stringified===n&&(r==null||i.decode===r):!1}get(e){var n;if(this.paramsMap.has(e))return(n=this.paramsMap.get(e))==null?void 0:n.decoded}registerParams(e){for(const n of e){const r=this.registeredParams.get(n)||0;this.registeredParams.set(n,r+1)}}unregisterParams(e){for(const n of e){const r=(this.registeredParams.get(n)||0)-1;r<=0?(this.registeredParams.delete(n),this.paramsMap.has(n)&&this.paramsMap.delete(n)):this.registeredParams.set(n,r)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}const TS=new WRe;function QRe(t,e){var n,r,i;const a={};let s=!1;const o=Object.keys(t);let c=o;if(e.includeKnownParams||e.includeKnownParams!==!1&&o.length===0){const f=Object.keys((n=e.params)!=null?n:{});c.push(...f)}for(const f of c){const p=t[f];if(p!=null&&typeof p=="object"){a[f]=p;continue}s=!0,a[f]=(i=(r=e.params)==null?void 0:r[f])!=null?i:Zf}return s?a:t}function PK(t,e,n,r){var i;if(!n||!e.length)return t;let a={...t},s=!1;for(const o of e)Object.prototype.hasOwnProperty.call(a,o)||(a[o]=(i=n[o])!=null?i:r,s=!0);return s?a:t}const KRe=Object.prototype.hasOwnProperty;function bG(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function BK(t,e,n){var r,i;if(bG(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;for(let o=0;o<a.length;o++){const c=(i=(r=void 0)==null?void 0:r.equals)!=null?i:bG;if(!KRe.call(e,a[o])||!c(t[a[o]],e[a[o]]))return!1}return!0}function FK(t,e,n){const r={},i=Object.keys(e);for(const a of i){const s=e[a],o=t[a];let c;if(n.has(a,o,s.decode))c=n.get(a);else{if(c=s.decode(o),s.equals&&n.has(a,o)){const d=n.get(a);s.equals(c,d)&&(c=d)}c!==void 0&&n.set(a,o,c,s.decode)}c===void 0&&s.default!==void 0&&(c=s.default),r[a]=c}return r}function XRe(){let t;function e(n,r,i){const a=FK(n,r,i);return t!=null&&BK(t,a)?t:(t=a,a)}return e}function ZRe(t){let e;for(const n in t)if(t[n].urlName){const i=`${t[n].urlName}\0${n}`;e?e.push(i):e=[i]}return e?e.join(`
`):void 0}function JRe(t){if(t)return Object.fromEntries(t.split(`
`).map(e=>e.split("\0")))}function e1e(t,e){var n;let r={};for(const i in t)((n=e[i])==null?void 0:n.urlName)!=null?r[e[i].urlName]=t[i]:r[i]=t[i];return r}let vG,SG,EG,TR={};const UK=(t,e,n)=>{if(vG===e&&EG===t&&SG===n)return TR;vG=e,EG=t;const r=t(e??"");SG=n;const i=JRe(n);for(let[a,s]of Object.entries(r)){i!=null&&i[a]&&(delete r[a],a=i[a],r[a]=s);const o=TR[a];BK(s,o)&&(r[a]=o)}return TR=r,r},t1e={searchStringToObject:VRe,objectToSearchString:YRe,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0};function jK(t,e){e==null&&(e={});const n={...t,...e};return e.params&&t.params&&(n.params={...t.params,...e.params}),n}const GK={adapter:{},options:t1e},gI=I.createContext(GK);function n1e(){const t=I.useContext(gI);if(t===void 0||t===GK)throw new Error("useQueryParams must be used within a QueryParamProvider");return t}function yG({children:t,adapter:e,options:n}){const{adapter:r,options:i}=I.useContext(gI),a=I.useMemo(()=>({adapter:e??r,options:jK(i,n)}),[e,n,r,i]);return I.createElement(gI.Provider,{value:a},t)}function r1e({children:t,adapter:e,options:n}){const r=e;return r?I.createElement(r,null,i=>I.createElement(yG,{adapter:i,options:n},t)):I.createElement(yG,{options:n},t)}function i1e(t,e){var n;for(const r in t)((n=e[r])==null?void 0:n.default)!==void 0&&t[r]!==void 0&&e[r].encode(e[r].default)===t[r]&&(t[r]=void 0)}function a1e({changes:t,updateType:e,currentSearchString:n,paramConfigMap:r,options:i}){const{searchStringToObject:a,objectToSearchString:s}=i;e==null&&(e=i.updateType);let o;const c=UK(a,n),d=PK(r,Object.keys(t),i.params);let f;if(typeof t=="function"){const m=FK(c,d,TS);f=t(m)}else f=t;o=HRe(d,f),i.removeDefaultsFromUrl&&i1e(o,d),o=e1e(o,d);let p;return e==="push"||e==="replace"?p=s(o):p=s({...c,...o}),p!=null&&p.length&&p[0]!=="?"&&(p=`?${p}`),p??""}function s1e({searchString:t,adapter:e,navigate:n,updateType:r}){const a={...e.location,search:t};typeof r=="string"&&r.startsWith("replace")?e.replace(a):e.push(a)}const o1e=t=>t(),l1e=t=>setTimeout(()=>t(),0),Gv=[];function c1e(t,{immediate:e}={}){Gv.push(t);let n=e?o1e:l1e;Gv.length===1&&n(()=>{const r=Gv.slice();Gv.length=0;const i=r[0].currentSearchString;let a;for(let s=0;s<r.length;++s){const o=s===0?r[s]:{...r[s],currentSearchString:a};a=a1e(o)}t.options.skipUpdateWhenNoChange&&a===i||s1e({searchString:a??"",adapter:r[r.length-1].adapter,navigate:!0,updateType:r[r.length-1].updateType})})}function u1e(t,e){const{adapter:n,options:r}=n1e(),[i]=I.useState(XRe),{paramConfigMap:a,options:s}=f1e(t,e),o=I.useMemo(()=>jK(r,s),[r,s]);let c=QRe(a,o);const d=UK(o.searchStringToObject,n.location.search,ZRe(c));o.includeAllParams&&(c=PK(c,Object.keys(d),o.params,Zf));const f=i(d,c,TS),p=Object.keys(c).join("\0");I.useEffect(()=>{const S=p.split("\0");return TS.registerParams(S),()=>{TS.unregisterParams(S)}},[p]);const m={adapter:n,paramConfigMap:c,options:o},g=I.useRef(m);g.current==null&&(g.current=m),I.useEffect(()=>{g.current.adapter=n,g.current.paramConfigMap=c,g.current.options=o},[n,c,o]);const[b]=I.useState(()=>(y,E)=>{const{adapter:x,paramConfigMap:C,options:R}=g.current;E==null&&(E=R.updateType),c1e({changes:y,updateType:E,currentSearchString:x.location.search,paramConfigMap:C,options:R,adapter:x},{immediate:!R.enableBatching})});return[f,b]}var d1e=u1e;function f1e(t,e){let n,r;return t===void 0?(n={},r=e):Array.isArray(t)?(n=Object.fromEntries(t.map(i=>[i,"inherit"])),r=e):(n=t,r=e),{paramConfigMap:n,options:r}}const Ko=(t,e,n)=>{const r=I.useMemo(()=>({[t]:e??"inherit"}),[t,e]),[i,a]=d1e(r,n),s=i[t],o=I.useCallback((c,d)=>a(typeof c=="function"?f=>{const p=c(f[t]);return{[t]:p}}:{[t]:c},d),[t,a]);return[s,o]};function h1e(t,e,n,r){let i=[];for(const a of e){const s=nP(t,a,n,r.concat([]));s!==null&&(Array.isArray(s)?i=i.concat(s):i.push(s))}return i.length===0?null:i.length===1?i[0]:i}function nP(t,e,n=0,r=[]){let i=e;for(let a=n;a<t.length;a++){if(i==null||typeof i!="object")return null;if(Array.isArray(i))return h1e(t,i,a,r);const s=t[a];if(typeof s=="string")if(i[s]!==void 0)r.push(s),i=i[s];else return null;else{let o=[];for(const c of Object.keys(i))if(s.test(c)){const d=nP(t,i[c],a+1,r.concat([c]));d!==null&&(Array.isArray(d)?o=o.concat(d):o.push(d))}return o}}return{path:r,value:i}}function p1e(t){return t.right!==void 0}function m1e(t){return t.keyPath!==void 0}function kE(t,e){const n={original:t.original,rendered:t.rendered,score:t.score+e.score,index:t.index};let r;return t.matched&&e.matched?r=t.matched.concat(e.matched):t.matched?r=t.matched:e.matched&&(r=e.matched),r&&(n.matched=r),n}function g1e(t,e){const n=t;for(const[r,i]of Object.entries(e)){const a=r;n[a]!==void 0?n[a]=kE(n[a],i):n[a]=i}}function _1e(t,e){const n={};for(const[r,i]of Object.entries(e)){const a=r;t[a]!==void 0&&(n[a]=kE(t[a],i))}return n}function b1e(t,e,n){return Dm(t,e,(r,i)=>r===i,n)}function v1e(t,e,n){return Dm(t,e,(r,i)=>r!==i,n)}function S1e(t,e,n){return Dm(t,e,(r,i)=>r>i,n)}function E1e(t,e,n){return Dm(t,e,(r,i)=>r>=i,n)}function y1e(t,e,n){return Dm(t,e,(r,i)=>r<i,n)}function T1e(t,e,n){return Dm(t,e,(r,i)=>r<=i,n)}function Dm(t,e,n,r){let i=t,a=e;return!r&&typeof i=="string"&&typeof a=="string"&&(i=i.toLocaleLowerCase(),a=a.toLocaleLowerCase()),n(a,i)}function TG(t,e){const n={match:"fuzzy",pattern:t,keyPath:[]};return Array.isArray(e)?n.keyPath=n.keyPath.concat(e):n.keyPath=[e],n}class ST{constructor(e){this.conf={caseSensitive:(e==null?void 0:e.caseSensitive)===void 0?!1:e.caseSensitive,excludedChars:(e==null?void 0:e.excludedChars)===void 0?[]:e.excludedChars,includeMatches:(e==null?void 0:e.includeMatches)===void 0?!1:e.includeMatches,shouldSort:(e==null?void 0:e.shouldSort)===void 0?!1:e.shouldSort,shouldRender:(e==null?void 0:e.shouldRender)===void 0?!0:e.shouldRender,escapeHTML:(e==null?void 0:e.escapeHTML)===void 0?!1:e.escapeHTML,findAllMatches:(e==null?void 0:e.findAllMatches)==null?!1:e.findAllMatches,pre:e==null?void 0:e.pre,post:e==null?void 0:e.post,indexedKeys:e==null?void 0:e.indexedKeys}}filter(e,n,r){const i=r!=null&&r.indexedKeys?r.indexedKeys:this.conf.indexedKeys;if(i===void 0)return[];const a=i.length,s=TG(e,i[0]);if(a===1)return this.filterWithQuery(s,n,r);const o={operator:"or",left:s,right:s};let c=o;for(let d=1;d<a;d++){const f=TG(e,i[d]);if(d+1<a){const p={operator:"or",left:f,right:f};c.right=p,c=p}else c.right=f}return this.filterWithQuery(o,n,r)}filterWithQuery(e,n,r){const i=(r==null?void 0:r.shouldSort)!==void 0?r.shouldSort:this.conf.shouldSort,a=(r==null?void 0:r.shouldRender)!==void 0?r.shouldRender:this.conf.shouldRender,s=(r==null?void 0:r.includeMatches)!==void 0?r.includeMatches:this.conf.includeMatches,o=(r==null?void 0:r.findAllMatches)!==void 0?r.findAllMatches:this.conf.findAllMatches,c=[{current:e,depth:0}],d=[];for(;c.length>0;){const p=c.shift();if(!p)break;const m=p.current;if(p1e(m)){c.unshift({current:m.left,parent:m.operator,depth:p.depth+1},{current:m.right,parent:m.operator,depth:p.depth+1},{current:m.operator,parent:p.parent,depth:p.depth});continue}if(m1e(m)){let S;!o&&d.length>1&&d[d.length-1].depth===p.depth&&p.parent!==void 0&&(S={result:d[d.length-1].result,parent:p.parent}),d.push({result:this.executeQuery(m,n,S,r),depth:p.depth});continue}const g=d.pop(),b=d.pop();if(!g||!b)break;m==="or"?(g1e(g.result,b.result),d.push({result:g.result,depth:p.depth})):d.push({result:_1e(g.result,b.result),depth:p.depth})}let f=Object.values(d[0].result);for(let p=0;p<f.length;p++)f[p].rendered=a?this.render(f[p].original,f[p].matched,r):f[p].original,s||(f[p].matched=void 0);return i&&(f=f.sort((p,m)=>m.score-p.score)),f||[]}match(e,n,r){const i=(r==null?void 0:r.includeMatches)!==void 0?r.includeMatches:this.conf.includeMatches,a=(r==null?void 0:r.shouldRender)!==void 0?r.shouldRender:this.conf.shouldRender,s=this.internalMatch(e,n,r);return s!==null&&(s.original=n,s.rendered=a?this.render(n,s.matched,r):n,i||(s.matched=void 0)),s}render(e,n,r){const i=r!=null&&r.pre?r.pre:this.conf.pre,a=r!=null&&r.post?r.post:this.conf.post;if(i===void 0&&a===void 0||n===void 0)return e;const s=JSON.parse(JSON.stringify(e)),o={};for(const c of n)this.renderingWalk(c,s,o,r);return s}renderingWalk(e,n,r,i){let a=n,s=0;const o=e.path;for(;s<o.length-1;)a[o[s]]!==void 0?a=a[o[s]]:a=a[r[o.slice(0,s).toString()]],s++;const c={pre:i!=null&&i.pre?i.pre:this.conf.pre,post:i!=null&&i.post?i.post:this.conf.post,escapeHTML:i!=null&&i.escapeHTML?i.escapeHTML:this.conf.escapeHTML};let d=o[s];if(typeof a[d]=="object"&&typeof e.value=="string"){a=a[d];const f=e6(e.value,e.intervals,c);a[f]=a[e.value],r[o.concat(e.value).toString()]=f,delete a[e.value]}else a[d]===void 0&&(d=r[o.toString()]),a[d]=e6(a[d],e.intervals,c)}executeQuery(e,n,r,i){const a={};for(let s=0;s<n.length;s++){const o=n[s];if(r){if(r.parent==="or"){if(r.result[s])continue}else if(!r.result[s])continue}const c=this.internalMatch(e,o,i);c!==null&&(c.index=s,c.original=o,a[s]=c)}return a}internalMatch(e,n,r){const i=nP(e.keyPath,n);return this.processWalkingPath(i,e,r)}processWalkingPath(e,n,r){let i=null;if(e===null)return null;if(Array.isArray(e))for(const a of e){const s=this.recursiveMatch(a.value,a.path,n,r);s!==null&&(i!=null?i=kE(s,i):i=s)}else i=this.recursiveMatch(e.value,e.path,n,r);return i}recursiveMatch(e,n,r,i){let a=null;if(typeof e=="string"||typeof e=="number")a=this.matchSingleStringOrNumber(e,n,r,i);else if(Array.isArray(e))for(const s of e){const o=this.recursiveMatch(s,n,r,i);o!==null&&(a!=null?a=kE(o,a):a=o)}else for(const s of Object.keys(e))if(a=this.matchSingleStringOrNumber(s,n,r,i),a!==null)break;return a}matchSingleStringOrNumber(e,n,r,i){const a=(i==null?void 0:i.caseSensitive)!==void 0?i.caseSensitive:this.conf.caseSensitive;let s=[];switch((i==null?void 0:i.excludedChars)!==void 0?s=i.excludedChars:this.conf.excludedChars!==void 0&&(s=this.conf.excludedChars),r.match){case"exact":return b1e(r.pattern,e,a)?{score:1/0,matched:[{path:n,value:e,intervals:typeof e=="string"?[{from:0,to:e.length-1}]:[]}]}:null;case"negative":return v1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"fuzzy":{if(typeof r.pattern!="string"||typeof e!="string")return null;const o=Zye(r.pattern,e,{includeMatches:!0,caseSensitive:a,excludedChars:s});return o===null?null:{score:o.score,matched:[{path:n,value:e,intervals:o.intervals?o.intervals:[]}]}}case"greater":return S1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"greaterEqual":return E1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"less":return y1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null;case"lessEqual":return T1e(r.pattern,e,a)?{score:1,matched:[{path:n,value:e,intervals:[]}]}:null}}}const x1e=new ST({shouldSort:!0,indexedKeys:["name","labels",["labels",/.*/]]}),C1e=(t,e,n)=>{const r={globalCounts:{inactive:0,pending:0,firing:0},groups:[]};for(const i of t.groups){const a={total:0,inactive:0,pending:0,firing:0};for(const o of i.rules)switch(a.total++,o.state){case"inactive":r.globalCounts.inactive++,a.inactive++;break;case"firing":r.globalCounts.firing++,a.firing++;break;case"pending":r.globalCounts.pending++,a.pending++;break;default:throw new Error(`Unknown rule state: ${o.state}`)}const s=(e===""?i.rules:x1e.filter(e,i.rules).map(o=>o.original)).filter(o=>n.length===0||n.includes(o.state));r.groups.push({name:i.name,file:i.file,counts:a,rules:s.map(o=>({rule:o,counts:{firing:o.alerts.filter(c=>c.state==="firing").length,pending:o.alerts.filter(c=>c.state==="pending").length}}))})}return r},O1e=[];function qK(){const{data:t}=Fi({path:"/rules",params:{type:"alert"}}),{showAnnotations:e}=yi(),[n,r]=Ko("state",Bc(tP,O1e)),[i,a]=Ko("search",Bc(Zf,"")),[s]=FE(i.trim(),250),[o,c]=RI({key:"alertsPage.showEmptyGroups",defaultValue:!0}),{alertGroupsPerPage:d}=yi(),[f,p]=Ko("page",Bc(kK,1)),m=I.useMemo(()=>C1e(t.data,s,n),[t,n,s]),g=I.useMemo(()=>o?m.groups:m.groups.filter(x=>x.rules.length>0),[m.groups,o]),b=Math.ceil(g.length/d),S=Math.max(1,Math.min(f,b));I.useEffect(()=>{S!==f&&p(S)},[S,f,p]);const y=I.useMemo(()=>g.slice((S-1)*d,S*d),[g,S,d]),E=I.useMemo(()=>y.map((x,C)=>l.jsxs(Ur,{shadow:"xs",withBorder:!0,p:"md",children:[l.jsxs(mt,{mb:"md",mt:"xs",ml:"xs",justify:"space-between",children:[l.jsxs(mt,{align:"baseline",children:[l.jsx(ht,{fz:"xl",fw:600,c:"var(--mantine-primary-color-filled)",children:x.name}),l.jsx(ht,{fz:"sm",c:"gray.6",children:x.file})]}),l.jsxs(mt,{children:[x.counts.firing>0&&l.jsxs(Qr,{className:Rn.healthErr,children:["firing (",x.counts.firing,")"]}),x.counts.pending>0&&l.jsxs(Qr,{className:Rn.healthWarn,children:["pending (",x.counts.pending,")"]}),x.counts.inactive>0&&l.jsxs(Qr,{className:Rn.healthOk,children:["inactive (",x.counts.inactive,")"]})]})]}),x.counts.total===0?l.jsxs(Lt,{title:"No rules",icon:l.jsx(gr,{}),children:["No rules in this group.",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>c(!1),children:"Hide empty groups"})]}):x.rules.length===0?l.jsxs(Lt,{title:"No matching rules",icon:l.jsx(gr,{}),children:["No rules in this group match your filter criteria (omitted"," ",x.counts.total," filtered rules).",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>c(!1),children:"Hide empty groups"})]}):l.jsx(j0,{allItems:x.rules,child:({items:R})=>l.jsx(_r,{multiple:!0,variant:"separated",children:R.map((T,N)=>l.jsxs(_r.Item,{styles:{item:{backgroundColor:"#c0c0c015"}},value:N.toString(),className:T.counts.firing>0?Tf.panelHealthErr:T.counts.pending>0?Tf.panelHealthWarn:Tf.panelHealthOk,children:[l.jsx(_r.Control,{children:l.jsxs(mt,{wrap:"nowrap",justify:"space-between",mr:"lg",children:[l.jsx(ht,{children:T.rule.name}),l.jsxs(mt,{gap:"xs",children:[T.counts.firing>0&&l.jsxs(Qr,{className:Rn.healthErr,children:["firing (",T.counts.firing,")"]}),T.counts.pending>0&&l.jsxs(Qr,{className:Rn.healthWarn,children:["pending (",T.counts.pending,")"]})]})]})}),l.jsxs(_r.Panel,{children:[l.jsx(LK,{rule:T.rule}),T.rule.alerts.length>0&&l.jsxs(ae,{mt:"lg",children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{style:{whiteSpace:"nowrap"},children:[l.jsx(ae.Th,{children:"Alert labels"}),l.jsx(ae.Th,{children:"State"}),l.jsx(ae.Th,{children:"Active Since"}),l.jsx(ae.Th,{children:"Value"})]})}),l.jsx(ae.Tbody,{children:T.rule.type==="alerting"&&T.rule.alerts.map((w,D)=>l.jsxs(I.Fragment,{children:[l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:l.jsx(am,{labels:w.labels})}),l.jsx(ae.Td,{children:l.jsx(Qr,{className:w.state==="firing"?Rn.healthErr:Rn.healthWarn,children:w.state})}),l.jsx(ae.Td,{style:{whiteSpace:"nowrap"},children:l.jsx(bi,{label:w.activeAt,children:l.jsx(Se,{children:VS(w.activeAt,HS(),"")})})}),l.jsx(ae.Td,{style:{whiteSpace:"nowrap"},children:isNaN(Number(w.value))?w.value:Number(w.value)})]}),e&&l.jsx(ae.Tr,{children:l.jsx(ae.Td,{colSpan:4,children:l.jsx(ae,{mt:"md",mb:"xl",children:l.jsx(ae.Tbody,{children:Object.entries(w.annotations).map(([L,k])=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{c:"light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-4))",children:L}),l.jsx(ae.Td,{children:k})]},L))})})})})]},D))})]})]})]},N))})})]},C)),[y,e,c]);return l.jsxs(Mn,{mt:"xs",children:[l.jsxs(mt,{children:[l.jsx(Jk,{options:["inactive","pending","firing"],optionClass:x=>x==="inactive"?Rn.healthOk:x==="pending"?Rn.healthWarn:Rn.healthErr,optionCount:x=>m.globalCounts[x],placeholder:"Filter by rule state",values:(n==null?void 0:n.filter(x=>x!==null))||[],onChange:x=>r(x)}),l.jsx(Wc,{flex:1,leftSection:l.jsx(th,{style:Rm}),placeholder:"Filter by rule name or labels",value:i||"",onChange:x=>a(x.currentTarget.value||null)})]}),m.groups.length===0?l.jsx(Lt,{title:"No rules found",icon:l.jsx(gr,{}),children:"No rules found."}):!o&&m.groups.length!==g.length&&l.jsxs(Lt,{title:"Hiding groups with no matching rules",icon:l.jsx(gr,{}),children:["Hiding ",m.groups.length-g.length," empty groups due to filters or no rules.",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>c(!0),children:"Show empty groups"})]}),l.jsxs(Mn,{children:[l.jsx(mo,{total:b,value:S,onChange:p,hideWithOnePage:!0}),E]})]})}const R1e=t=>{switch(t){case"ok":return Rn.healthOk;case"err":return Rn.healthErr;case"unknown":return Rn.healthUnknown;default:throw new Error("Unknown rule health state")}};function N1e(){const{data:t}=Fi({path:"/rules"}),{ruleGroupsPerPage:e}=yi(),[n,r]=Ko("page",Bc(kK,1)),i=Math.ceil(t.data.groups.length/e),a=Math.max(1,Math.min(n,i));return I.useEffect(()=>{a!==n&&r(a)},[a,n,r]),l.jsxs(Mn,{mt:"xs",children:[t.data.groups.length===0&&l.jsx(Lt,{title:"No rule groups",icon:l.jsx(gr,{}),children:"No rule groups configured."}),l.jsx(mo,{total:i,value:a,onChange:r,hideWithOnePage:!0}),t.data.groups.slice((a-1)*e,a*e).map((s,o)=>l.jsxs(Ur,{shadow:"xs",withBorder:!0,p:"md",mb:"md",children:[l.jsxs(mt,{mb:"md",mt:"xs",ml:"xs",justify:"space-between",children:[l.jsxs(mt,{align:"baseline",children:[l.jsx(ht,{fz:"xl",fw:600,c:"var(--mantine-primary-color-filled)",children:s.name}),l.jsx(ht,{fz:"sm",c:"gray.6",children:s.file})]}),l.jsxs(mt,{children:[l.jsx(bi,{label:"Last group evaluation",withArrow:!0,children:l.jsxs(Qr,{variant:"light",className:Rn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Ew,{style:Ac}),children:["last run ",VS(s.lastEvaluation,HS())]})}),l.jsx(bi,{label:"Duration of last group evaluation",withArrow:!0,children:l.jsxs(Qr,{variant:"light",className:Rn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Sw,{style:Ac}),children:["took ",op(parseFloat(s.evaluationTime)*1e3)]})}),l.jsx(bi,{label:"Group evaluation interval",withArrow:!0,children:l.jsxs(Qr,{variant:"transparent",className:Rn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(ole,{style:Ac}),children:["every ",op(parseFloat(s.interval)*1e3)," "]})})]})]}),s.rules.length===0&&l.jsx(Lt,{title:"No rules",icon:l.jsx(gr,{}),children:"No rules in rule group."}),l.jsx(j0,{allItems:s.rules,child:({items:c})=>l.jsx(_r,{multiple:!0,variant:"separated",children:c.map((d,f)=>l.jsxs(_r.Item,{styles:{item:{backgroundColor:"#c0c0c015"}},value:f.toString(),style:{borderLeft:d.health==="err"?"5px solid var(--mantine-color-red-4)":d.health==="unknown"?"5px solid var(--mantine-color-gray-5)":"5px solid var(--mantine-color-green-4)"},children:[l.jsx(_r.Control,{children:l.jsxs(mt,{justify:"space-between",mr:"lg",children:[l.jsxs(mt,{gap:"xs",wrap:"nowrap",children:[d.type==="alerting"?l.jsx(bi,{label:"Alerting rule",withArrow:!0,children:l.jsx(cL,{style:{width:me(15),height:me(15)}})}):l.jsx(bi,{label:"Recording rule",withArrow:!0,children:l.jsx(mle,{style:{width:me(15),height:me(15)}})}),l.jsx(ht,{children:d.name})]}),l.jsxs(mt,{gap:"xs",children:[l.jsxs(mt,{gap:"xs",wrap:"wrap",children:[l.jsx(bi,{label:"Last rule evaluation",withArrow:!0,children:l.jsx(Qr,{variant:"light",className:Rn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Ew,{style:Ac}),children:VS(d.lastEvaluation,HS())})}),l.jsx(bi,{label:"Duration of last rule evaluation",withArrow:!0,children:l.jsx(Qr,{variant:"light",className:Rn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Sw,{style:Ac}),children:op(parseFloat(d.evaluationTime)*1e3)})})]}),l.jsx(Qr,{className:R1e(d.health),children:d.health})]})]})}),l.jsxs(_r.Panel,{children:[l.jsx(LK,{rule:d}),d.lastError&&l.jsxs(Lt,{color:"red",mt:"sm",title:"Rule failed to evaluate",icon:l.jsx(na,{}),children:[l.jsx("strong",{children:"Error:"})," ",d.lastError]})]})]},f))})})]},o))]})}const $K="targetsPage.collapsedPools",A1e={collapsedPools:wo($K,[]),showLimitAlert:!1},zK=Dy({name:"targetsPage",initialState:A1e,reducers:{setCollapsedPools:(t,{payload:e})=>{t.collapsedPools=e},setShowLimitAlert:(t,{payload:e})=>{t.showLimitAlert=e}}}),{setCollapsedPools:rP,setShowLimitAlert:_I}=zK.actions,w1e=zK.reducer,bI=({endpoint:t,globalUrl:e})=>{let n,r="",i=!1;try{n=new URL(t)}catch{i=!0,t.indexOf("?")>-1&&(r=t.substring(t.indexOf("?"))),n=new URL("http://0.0.0.0"+r)}const{host:a,pathname:s,protocol:o,searchParams:c}=n,d=Array.from(c.entries()),f=i?t.replace(r,""):`${o}//${a}${s}`;return l.jsxs(Mn,{gap:0,children:[l.jsx(Ei,{size:"sm",href:e,target:"_blank",children:f}),d.length>0&&l.jsx(mt,{gap:"xs",mt:"md",children:d.map(([p,m])=>l.jsx(Qr,{size:"sm",variant:"light",color:"gray",style:{textTransform:"none"},children:`${p}="${m}"`},`${p}/${m}`))})]})},D1e=({discoveredLabels:t,labels:e})=>{const[n,{toggle:r}]=NI(!1);return l.jsxs(Mn,{children:[l.jsxs(mt,{wrap:"nowrap",align:"flex-start",children:[l.jsx(am,{labels:e}),l.jsx(jr,{size:"xs",color:"gray",variant:"light",onClick:r,title:`${n?"Hide":"Show"} discovered (pre-relabeling) labels`,children:n?l.jsx(pH,{style:Zp}):l.jsx(PS,{style:Zp})})]}),l.jsxs(kI,{in:n,children:[l.jsx(ht,{fw:700,size:"1em",my:"lg",c:"gray.7",children:"Discovered labels:"}),l.jsx(am,{color:"blue",labels:t})]})]})},I1e=t=>t.count>0&&t.downCount===t.count?Tf.panelHealthErr:t.downCount>=1?Tf.panelHealthWarn:t.unknownCount===t.count?Tf.panelHealthUnknown:Tf.panelHealthOk,M1e=t=>{switch(t.toLowerCase()){case"up":return Rn.healthOk;case"down":return Rn.healthErr;case"unknown":return Rn.healthUnknown;default:return Rn.healthWarn}},L1e=new ST({shouldSort:!0,indexedKeys:["labels","scrapePool",["labels",/.*/]]}),k1e=(t,e,n,r)=>{const i={};for(const s of t)i[s]={targets:[],count:0,upCount:0,downCount:0,unknownCount:0};for(const s of e){if(!i[s.scrapePool])throw new Error("Received target information for an unknown scrape pool, likely the list of scrape pools has changed. Please reload the page.");switch(i[s.scrapePool].count++,s.health.toLowerCase()){case"up":i[s.scrapePool].upCount++;break;case"down":i[s.scrapePool].downCount++;break;case"unknown":i[s.scrapePool].unknownCount++;break}}const a=(n===""?e:L1e.filter(n,e).map(s=>s.original)).filter(s=>r.length===0||r.includes(s.health));for(const s of a)i[s.scrapePool].targets.push(s);return i},P1e=({poolNames:t,selectedPool:e,healthFilter:n,searchFilter:r})=>{const{data:{data:{activeTargets:i}}}=Fi({path:"/targets",params:{state:"active",scrapePool:e===null?"":e}}),a=Qc(),[s,o]=RI({key:"targetsPage.showEmptyPools",defaultValue:!0}),{collapsedPools:c,showLimitAlert:d}=Wl(b=>b.targetsPage),[f]=FE(r.trim(),250),p=I.useMemo(()=>k1e(e?[e]:t,i,f,n),[e,t,i,f,n]),m=Object.keys(p),g=s?m:m.filter(b=>p[b].targets.length!==0);return l.jsxs(Mn,{children:[m.length===0?l.jsx(Lt,{title:"No scrape pools found",icon:l.jsx(gr,{}),children:"No scrape pools found."}):!s&&m.length!==g.length&&l.jsxs(Lt,{title:"Hiding pools with no matching targets",icon:l.jsx(gr,{}),children:["Hiding ",m.length-g.length," empty pools due to filters or no targets.",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>o(!0),children:"Show empty pools"})]}),d&&l.jsxs(Lt,{title:"Found many pools, showing only one",icon:l.jsx(gr,{}),withCloseButton:!0,onClose:()=>a(_I(!1)),children:["There are more than ",YK," scrape pools. Showing only the first one. Use the dropdown to select a different pool."]}),l.jsx(_r,{multiple:!0,variant:"separated",value:m.filter(b=>!c.includes(b)),onChange:b=>a(rP(m.filter(S=>!b.includes(S)))),children:g.map(b=>{const S=p[b];return l.jsxs(_r.Item,{value:b,className:I1e(S),children:[l.jsx(_r.Control,{children:l.jsxs(mt,{wrap:"nowrap",justify:"space-between",mr:"lg",children:[l.jsx(ht,{children:b}),l.jsxs(mt,{gap:"xs",children:[l.jsxs(ht,{c:"gray.6",children:[S.upCount," / ",S.count," up"]}),l.jsx(Ty,{size:25,thickness:5,sections:S.count===0?[]:[{value:S.upCount/S.count*100,color:"green.4"},{value:S.unknownCount/S.count*100,color:"gray.4"},{value:S.downCount/S.count*100,color:"red.5"}]})]})]})}),l.jsx(_r.Panel,{children:S.count===0?l.jsxs(Lt,{title:"No targets",icon:l.jsx(gr,{}),children:["No active targets in this scrape pool.",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>o(!1),children:"Hide empty pools"})]}):S.targets.length===0?l.jsxs(Lt,{title:"No matching targets",icon:l.jsx(gr,{}),children:["No targets in this pool match your filter criteria (omitted"," ",S.count," filtered targets).",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>o(!1),children:"Hide empty pools"})]}):l.jsx(j0,{allItems:S.targets,child:({items:y})=>l.jsxs(ae,{children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{w:"25%",children:"Endpoint"}),l.jsx(ae.Th,{children:"Labels"}),l.jsx(ae.Th,{w:230,children:"Last scrape"}),l.jsx(ae.Th,{w:100,children:"State"})]})}),l.jsx(ae.Tbody,{children:y.map((E,x)=>l.jsxs(xn.Fragment,{children:[l.jsxs(ae.Tr,{style:{borderBottom:E.lastError?"none":void 0},children:[l.jsx(ae.Td,{valign:"top",children:l.jsx(bI,{endpoint:E.scrapeUrl,globalUrl:E.globalUrl})}),l.jsx(ae.Td,{valign:"top",children:l.jsx(D1e,{labels:E.labels,discoveredLabels:E.discoveredLabels})}),l.jsx(ae.Td,{valign:"top",children:l.jsxs(mt,{gap:"xs",wrap:"wrap",children:[l.jsx(bi,{label:"Last target scrape",withArrow:!0,children:l.jsx(Qr,{variant:"light",className:Rn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Ew,{style:Ac}),children:VS(E.lastScrape,HS())})}),l.jsx(bi,{label:"Duration of last target scrape",withArrow:!0,children:l.jsx(Qr,{variant:"light",className:Rn.statsBadge,styles:{label:{textTransform:"none"}},leftSection:l.jsx(Sw,{style:Ac}),children:op(E.lastScrapeDuration*1e3)})})]})}),l.jsx(ae.Td,{valign:"top",children:l.jsx(Qr,{className:M1e(E.health),children:E.health})})]}),E.lastError&&l.jsx(ae.Tr,{children:l.jsx(ae.Td,{colSpan:5,valign:"top",children:l.jsxs(Lt,{color:"red",mb:"sm",icon:l.jsx(na,{}),children:[l.jsx("strong",{children:"Error scraping target:"})," ",E.lastError]})})})]},x))})]})})})]},b)})})]})},YK=20;function B1e(){const{data:{data:{scrapePools:t}}}=Fi({path:"/scrape_pools"}),e=Qc(),[n,r]=Ko("pool",Zf),[i,a]=Ko("health",Bc(tP,[])),[s,o]=Ko("search",Bc(Zf,"")),{collapsedPools:c,showLimitAlert:d}=Wl(p=>p.targetsPage),f=t.length>YK&&n===void 0;return f&&(r(t[0]),e(_I(!0))),l.jsxs(l.Fragment,{children:[l.jsxs(mt,{mb:"md",mt:"xs",children:[l.jsx(vm,{placeholder:"Select scrape pool",data:[{label:"All pools",value:""},...t],value:f&&t[0]||n||null,onChange:p=>{r(p),d&&e(_I(!1))},searchable:!0}),l.jsx(Jk,{options:["unknown","up","down"],optionClass:p=>p==="unknown"?Rn.healthUnknown:p==="up"?Rn.healthOk:Rn.healthErr,placeholder:"Filter by target health",values:(i==null?void 0:i.filter(p=>p!==null))||[],onChange:p=>a(p)}),l.jsx(Wc,{flex:1,leftSection:l.jsx(th,{style:Rm}),placeholder:"Filter by endpoint or labels",value:s||"",onChange:p=>o(p.currentTarget.value||null)}),l.jsx(jr,{size:"input-sm",title:c.length>0?"Expand all pools":"Collapse all pools",variant:"light",onClick:()=>e(rP(c.length>0?[]:t)),children:c.length>0?l.jsx(vH,{style:AE}):l.jsx(bH,{style:AE})})]}),l.jsx(Jp,{title:"Error showing target pools",children:l.jsx(I.Suspense,{fallback:l.jsx(Se,{mt:"lg",children:Array.from(Array(10),(p,m)=>l.jsx(Zo,{height:40,mb:15,width:1e3,mx:"auto"},m))}),children:l.jsx(P1e,{poolNames:t,selectedPool:f&&t[0]||n||null,healthFilter:i,searchFilter:s})})},location.pathname)]})}const Jf=({children:t,title:e,icon:n})=>l.jsxs(Ur,{shadow:"xs",withBorder:!0,p:"md",children:[e&&l.jsxs(mt,{wrap:"nowrap",align:"center",ml:"xs",mb:"sm",gap:"xs",fz:"xl",fw:600,children:[n&&l.jsx(n,{style:FTe}),e]}),t]}),G0=({children:t})=>l.jsx(Mn,{gap:"lg",maw:1e3,mx:"auto",mt:"xs",children:t});function F1e(){const{data:t}=Fi({path:"/status/buildinfo"}),{data:e}=Fi({path:"/status/runtimeinfo"}),{useLocalTime:n}=yi(),r={startTime:{title:"Start time",formatValue:i=>Bf(new Date(i).valueOf()/1e3,n)},CWD:{title:"Working directory"},hostname:{title:"Hostname"},serverTime:{title:"Server Time",formatValue:i=>Bf(new Date(i).valueOf()/1e3,n)},reloadConfigSuccess:{title:"Configuration reload",formatValue:i=>i?"Successful":"Unsuccessful"},lastConfigTime:{title:"Last successful configuration reload",formatValue:i=>Bf(new Date(i).valueOf()/1e3,n)},corruptionCount:{title:"WAL corruptions"},goroutineCount:{title:"Goroutines"},storageRetention:{title:"Storage retention"}};return l.jsxs(G0,{children:[l.jsx(Jf,{title:"Build information",icon:_le,children:l.jsx(ae,{layout:"fixed",children:l.jsx(ae.Tbody,{children:Object.entries(t.data).map(([i,a])=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{style:{textTransform:"capitalize"},children:i}),l.jsx(ae.Td,{children:a})]},i))})})}),l.jsx(Jf,{title:"Runtime information",icon:lle,children:l.jsx(ae,{layout:"fixed",children:l.jsx(ae.Tbody,{children:Object.entries(e.data).map(([i,a])=>{const{title:s=i,formatValue:o=c=>c}=r[i]||{};return l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{style:{textTransform:"capitalize"},children:s}),l.jsx(ae.Td,{children:o(a)})]},i)})})})})]})}function U1e(){const{data:{data:{headStats:t,labelValueCountByLabelName:e,seriesCountByMetricName:n,memoryInBytesByLabelName:r,seriesCountByLabelValuePair:i}}}=Fi({path:"/status/tsdb"}),{useLocalTime:a}=yi(),s=g=>{const b=Bf(g,a);return b==="Invalid Date"?c===0?"No datapoints yet":`Error parsing time (${g})`:b},{chunkCount:o,numSeries:c,numLabelPairs:d,minTime:f,maxTime:p}=t,m=[{name:"Number of Series",value:c},{name:"Number of Chunks",value:o},{name:"Number of Label Pairs",value:d},{name:"Current Min Time",value:`${s(f/1e3)}`},{name:"Current Max Time",value:`${s(p/1e3)}`}];return l.jsx(G0,{children:[{title:"TSDB Head Status",stats:m,formatAsCode:!1},{title:"Top 10 label names with value count",stats:e,formatAsCode:!0},{title:"Top 10 series count by metric names",stats:n,formatAsCode:!0},{title:"Top 10 label names with high memory usage",unit:"Bytes",stats:r,formatAsCode:!0},{title:"Top 10 series count by label value pairs",stats:i,formatAsCode:!0}].map(({title:g,unit:b="Count",stats:S,formatAsCode:y})=>l.jsx(Jf,{title:g,children:l.jsxs(ae,{layout:"fixed",children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{children:"Name"}),l.jsx(ae.Th,{children:b})]})}),l.jsx(ae.Tbody,{children:S.map(({name:E,value:x})=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{style:{wordBreak:"break-all"},children:y?l.jsx("code",{children:E}):E}),l.jsx(ae.Td,{children:x})]},E))})]})}))})}const j1e="_th_1w9xk_1",G1e="_control_1w9xk_5",q1e="_icon_1w9xk_17",xR={th:j1e,control:G1e,icon:q1e};function xG({children:t,reversed:e,sorted:n,onSort:r}){const i=n?e?pH:PS:cle;return l.jsx(ae.Th,{className:xR.th,children:l.jsx(Si,{onClick:r,className:xR.control,children:l.jsxs(mt,{justify:"space-between",children:[l.jsx(ht,{fw:600,fz:"sm",children:t}),l.jsx(x_,{className:xR.icon,children:l.jsx(i,{style:{width:me(16),height:me(16)},stroke:1.5})})]})})})}function CG(t,e){const n=e.toLowerCase().trim();return t.filter(r=>Pi(t[0]).some(i=>r[i].toLowerCase().includes(n)))}function OG(t,e){const{sortBy:n}=e;return CG(n?[...t].sort((r,i)=>e.reversed?i[n].localeCompare(r[n]):r[n].localeCompare(i[n])):t,e.search)}function $1e(){const{data:t}=Fi({path:"/status/flags"}),e=Object.entries(t.data).map(([g,b])=>({flag:g,value:b})),[n,r]=I.useState(""),[i,a]=I.useState(e),[s,o]=I.useState(null),[c,d]=I.useState(!1),f=g=>{const b=g===s?!c:!1;d(b),o(g),a(OG(e,{sortBy:g,reversed:b,search:n}))},p=g=>{const{value:b}=g.currentTarget;r(b),a(OG(e,{sortBy:s,reversed:c,search:b}))},m=i.map(g=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{children:l.jsxs("code",{children:["--",g.flag]})}),l.jsx(ae.Td,{children:l.jsx("code",{children:g.value})})]},g.flag));return l.jsx(G0,{children:l.jsxs(Jf,{children:[l.jsx(Wc,{placeholder:"Filter by flag name or value",mb:"md",autoFocus:!0,leftSection:l.jsx(th,{style:Rm}),value:n,onChange:p}),l.jsxs(ae,{horizontalSpacing:"md",verticalSpacing:"xs",miw:700,layout:"fixed",children:[l.jsx(ae.Tbody,{children:l.jsxs(ae.Tr,{children:[l.jsx(xG,{sorted:s==="flag",reversed:c,onSort:()=>f("flag"),children:"Flag"}),l.jsx(xG,{sorted:s==="value",reversed:c,onSort:()=>f("value"),children:"Value"})]})}),l.jsx(ae.Tbody,{children:m.length>0?m:l.jsx(ae.Tr,{children:l.jsx(ae.Td,{colSpan:2,children:l.jsx(ht,{fw:500,ta:"center",children:"Nothing found"})})})})]})]})})}var CR,RG;function z1e(){if(RG)return CR;RG=1;function t(ne){return ne instanceof Map?ne.clear=ne.delete=ne.set=function(){throw new Error("map is read-only")}:ne instanceof Set&&(ne.add=ne.clear=ne.delete=function(){throw new Error("set is read-only")}),Object.freeze(ne),Object.getOwnPropertyNames(ne).forEach(Ae=>{const Xe=ne[Ae],Me=typeof Xe;(Me==="object"||Me==="function")&&!Object.isFrozen(Xe)&&t(Xe)}),ne}class e{constructor(Ae){Ae.data===void 0&&(Ae.data={}),this.data=Ae.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(ne){return ne.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(ne,...Ae){const Xe=Object.create(null);for(const Me in ne)Xe[Me]=ne[Me];return Ae.forEach(function(Me){for(const Xt in Me)Xe[Xt]=Me[Xt]}),Xe}const i="</span>",a=ne=>!!ne.scope,s=(ne,{prefix:Ae})=>{if(ne.startsWith("language:"))return ne.replace("language:","language-");if(ne.includes(".")){const Xe=ne.split(".");return[`${Ae}${Xe.shift()}`,...Xe.map((Me,Xt)=>`${Me}${"_".repeat(Xt+1)}`)].join(" ")}return`${Ae}${ne}`};class o{constructor(Ae,Xe){this.buffer="",this.classPrefix=Xe.classPrefix,Ae.walk(this)}addText(Ae){this.buffer+=n(Ae)}openNode(Ae){if(!a(Ae))return;const Xe=s(Ae.scope,{prefix:this.classPrefix});this.span(Xe)}closeNode(Ae){a(Ae)&&(this.buffer+=i)}value(){return this.buffer}span(Ae){this.buffer+=`<span class="${Ae}">`}}const c=(ne={})=>{const Ae={children:[]};return Object.assign(Ae,ne),Ae};class d{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ae){this.top.children.push(Ae)}openNode(Ae){const Xe=c({scope:Ae});this.add(Xe),this.stack.push(Xe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ae){return this.constructor._walk(Ae,this.rootNode)}static _walk(Ae,Xe){return typeof Xe=="string"?Ae.addText(Xe):Xe.children&&(Ae.openNode(Xe),Xe.children.forEach(Me=>this._walk(Ae,Me)),Ae.closeNode(Xe)),Ae}static _collapse(Ae){typeof Ae!="string"&&Ae.children&&(Ae.children.every(Xe=>typeof Xe=="string")?Ae.children=[Ae.children.join("")]:Ae.children.forEach(Xe=>{d._collapse(Xe)}))}}class f extends d{constructor(Ae){super(),this.options=Ae}addText(Ae){Ae!==""&&this.add(Ae)}startScope(Ae){this.openNode(Ae)}endScope(){this.closeNode()}__addSublanguage(Ae,Xe){const Me=Ae.root;Xe&&(Me.scope=`language:${Xe}`),this.add(Me)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(ne){return ne?typeof ne=="string"?ne:ne.source:null}function m(ne){return S("(?=",ne,")")}function g(ne){return S("(?:",ne,")*")}function b(ne){return S("(?:",ne,")?")}function S(...ne){return ne.map(Xe=>p(Xe)).join("")}function y(ne){const Ae=ne[ne.length-1];return typeof Ae=="object"&&Ae.constructor===Object?(ne.splice(ne.length-1,1),Ae):{}}function E(...ne){return"("+(y(ne).capture?"":"?:")+ne.map(Me=>p(Me)).join("|")+")"}function x(ne){return new RegExp(ne.toString()+"|").exec("").length-1}function C(ne,Ae){const Xe=ne&&ne.exec(Ae);return Xe&&Xe.index===0}const R=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function T(ne,{joinWith:Ae}){let Xe=0;return ne.map(Me=>{Xe+=1;const Xt=Xe;let jt=p(Me),it="";for(;jt.length>0;){const st=R.exec(jt);if(!st){it+=jt;break}it+=jt.substring(0,st.index),jt=jt.substring(st.index+st[0].length),st[0][0]==="\\"&&st[1]?it+="\\"+String(Number(st[1])+Xt):(it+=st[0],st[0]==="("&&Xe++)}return it}).map(Me=>`(${Me})`).join(Ae)}const N=/\b\B/,w="[a-zA-Z]\\w*",D="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",k="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",V=(ne={})=>{const Ae=/^#![ ]*\//;return ne.binary&&(ne.begin=S(Ae,/.*\b/,ne.binary,/\b.*/)),r({scope:"meta",begin:Ae,end:/$/,relevance:0,"on:begin":(Xe,Me)=>{Xe.index!==0&&Me.ignoreMatch()}},ne)},Y={begin:"\\\\[\\s\\S]",relevance:0},G={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Y]},F={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Y]},q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},z=function(ne,Ae,Xe={}){const Me=r({scope:"comment",begin:ne,end:Ae,contains:[]},Xe);Me.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Xt=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Me.contains.push({begin:S(/[ ]+/,"(",Xt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Me},H=z("//","$"),U=z("/\\*","\\*/"),Q=z("#","$"),X={scope:"number",begin:L,relevance:0},te={scope:"number",begin:k,relevance:0},ie={scope:"number",begin:M,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Y,{begin:/\[/,end:/\]/,relevance:0,contains:[Y]}]},Ce={scope:"title",begin:w,relevance:0},Re={scope:"title",begin:D,relevance:0},_e={begin:"\\.\\s*"+D,relevance:0};var Oe=Object.freeze({__proto__:null,APOS_STRING_MODE:G,BACKSLASH_ESCAPE:Y,BINARY_NUMBER_MODE:ie,BINARY_NUMBER_RE:M,COMMENT:z,C_BLOCK_COMMENT_MODE:U,C_LINE_COMMENT_MODE:H,C_NUMBER_MODE:te,C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(ne){return Object.assign(ne,{"on:begin":(Ae,Xe)=>{Xe.data._beginMatch=Ae[1]},"on:end":(Ae,Xe)=>{Xe.data._beginMatch!==Ae[1]&&Xe.ignoreMatch()}})},HASH_COMMENT_MODE:Q,IDENT_RE:w,MATCH_NOTHING_RE:N,METHOD_GUARD:_e,NUMBER_MODE:X,NUMBER_RE:L,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:F,REGEXP_MODE:fe,RE_STARTERS_RE:P,SHEBANG:V,TITLE_MODE:Ce,UNDERSCORE_IDENT_RE:D,UNDERSCORE_TITLE_MODE:Re});function se(ne,Ae){ne.input[ne.index-1]==="."&&Ae.ignoreMatch()}function xe(ne,Ae){ne.className!==void 0&&(ne.scope=ne.className,delete ne.className)}function ce(ne,Ae){Ae&&ne.beginKeywords&&(ne.begin="\\b("+ne.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ne.__beforeBegin=se,ne.keywords=ne.keywords||ne.beginKeywords,delete ne.beginKeywords,ne.relevance===void 0&&(ne.relevance=0))}function je(ne,Ae){Array.isArray(ne.illegal)&&(ne.illegal=E(...ne.illegal))}function rt(ne,Ae){if(ne.match){if(ne.begin||ne.end)throw new Error("begin & end are not supported with match");ne.begin=ne.match,delete ne.match}}function _t(ne,Ae){ne.relevance===void 0&&(ne.relevance=1)}const Te=(ne,Ae)=>{if(!ne.beforeMatch)return;if(ne.starts)throw new Error("beforeMatch cannot be used with starts");const Xe=Object.assign({},ne);Object.keys(ne).forEach(Me=>{delete ne[Me]}),ne.keywords=Xe.keywords,ne.begin=S(Xe.beforeMatch,m(Xe.begin)),ne.starts={relevance:0,contains:[Object.assign(Xe,{endsParent:!0})]},ne.relevance=0,delete Xe.beforeMatch},Ne=["of","and","for","in","not","or","if","then","parent","list","value"],at="keyword";function ze(ne,Ae,Xe=at){const Me=Object.create(null);return typeof ne=="string"?Xt(Xe,ne.split(" ")):Array.isArray(ne)?Xt(Xe,ne):Object.keys(ne).forEach(function(jt){Object.assign(Me,ze(ne[jt],Ae,jt))}),Me;function Xt(jt,it){Ae&&(it=it.map(st=>st.toLowerCase())),it.forEach(function(st){const xt=st.split("|");Me[xt[0]]=[jt,Ze(xt[0],xt[1])]})}}function Ze(ne,Ae){return Ae?Number(Ae):Ye(ne)?0:1}function Ye(ne){return Ne.includes(ne.toLowerCase())}const ve={},Ue=ne=>{console.error(ne)},Ke=(ne,...Ae)=>{console.log(`WARN: ${ne}`,...Ae)},yt=(ne,Ae)=>{ve[`${ne}/${Ae}`]||(console.log(`Deprecated as of ${ne}. ${Ae}`),ve[`${ne}/${Ae}`]=!0)},Ut=new Error;function Nt(ne,Ae,{key:Xe}){let Me=0;const Xt=ne[Xe],jt={},it={};for(let st=1;st<=Ae.length;st++)it[st+Me]=Xt[st],jt[st+Me]=!0,Me+=x(Ae[st-1]);ne[Xe]=it,ne[Xe]._emit=jt,ne[Xe]._multi=!0}function Qt(ne){if(Array.isArray(ne.begin)){if(ne.skip||ne.excludeBegin||ne.returnBegin)throw Ue("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ut;if(typeof ne.beginScope!="object"||ne.beginScope===null)throw Ue("beginScope must be object"),Ut;Nt(ne,ne.begin,{key:"beginScope"}),ne.begin=T(ne.begin,{joinWith:""})}}function sn(ne){if(Array.isArray(ne.end)){if(ne.skip||ne.excludeEnd||ne.returnEnd)throw Ue("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ut;if(typeof ne.endScope!="object"||ne.endScope===null)throw Ue("endScope must be object"),Ut;Nt(ne,ne.end,{key:"endScope"}),ne.end=T(ne.end,{joinWith:""})}}function wr(ne){ne.scope&&typeof ne.scope=="object"&&ne.scope!==null&&(ne.beginScope=ne.scope,delete ne.scope)}function Wn(ne){wr(ne),typeof ne.beginScope=="string"&&(ne.beginScope={_wrap:ne.beginScope}),typeof ne.endScope=="string"&&(ne.endScope={_wrap:ne.endScope}),Qt(ne),sn(ne)}function er(ne){function Ae(it,st){return new RegExp(p(it),"m"+(ne.case_insensitive?"i":"")+(ne.unicodeRegex?"u":"")+(st?"g":""))}class Xe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(st,xt){xt.position=this.position++,this.matchIndexes[this.matchAt]=xt,this.regexes.push([xt,st]),this.matchAt+=x(st)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const st=this.regexes.map(xt=>xt[1]);this.matcherRe=Ae(T(st,{joinWith:"|"}),!0),this.lastIndex=0}exec(st){this.matcherRe.lastIndex=this.lastIndex;const xt=this.matcherRe.exec(st);if(!xt)return null;const un=xt.findIndex((ia,Jl)=>Jl>0&&ia!==void 0),En=this.matchIndexes[un];return xt.splice(0,un),Object.assign(xt,En)}}class Me{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(st){if(this.multiRegexes[st])return this.multiRegexes[st];const xt=new Xe;return this.rules.slice(st).forEach(([un,En])=>xt.addRule(un,En)),xt.compile(),this.multiRegexes[st]=xt,xt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(st,xt){this.rules.push([st,xt]),xt.type==="begin"&&this.count++}exec(st){const xt=this.getMatcher(this.regexIndex);xt.lastIndex=this.lastIndex;let un=xt.exec(st);if(this.resumingScanAtSamePosition()&&!(un&&un.index===this.lastIndex)){const En=this.getMatcher(0);En.lastIndex=this.lastIndex+1,un=En.exec(st)}return un&&(this.regexIndex+=un.position+1,this.regexIndex===this.count&&this.considerAll()),un}}function Xt(it){const st=new Me;return it.contains.forEach(xt=>st.addRule(xt.begin,{rule:xt,type:"begin"})),it.terminatorEnd&&st.addRule(it.terminatorEnd,{type:"end"}),it.illegal&&st.addRule(it.illegal,{type:"illegal"}),st}function jt(it,st){const xt=it;if(it.isCompiled)return xt;[xe,rt,Wn,Te].forEach(En=>En(it,st)),ne.compilerExtensions.forEach(En=>En(it,st)),it.__beforeBegin=null,[ce,je,_t].forEach(En=>En(it,st)),it.isCompiled=!0;let un=null;return typeof it.keywords=="object"&&it.keywords.$pattern&&(it.keywords=Object.assign({},it.keywords),un=it.keywords.$pattern,delete it.keywords.$pattern),un=un||/\w+/,it.keywords&&(it.keywords=ze(it.keywords,ne.case_insensitive)),xt.keywordPatternRe=Ae(un,!0),st&&(it.begin||(it.begin=/\B|\b/),xt.beginRe=Ae(xt.begin),!it.end&&!it.endsWithParent&&(it.end=/\B|\b/),it.end&&(xt.endRe=Ae(xt.end)),xt.terminatorEnd=p(xt.end)||"",it.endsWithParent&&st.terminatorEnd&&(xt.terminatorEnd+=(it.end?"|":"")+st.terminatorEnd)),it.illegal&&(xt.illegalRe=Ae(it.illegal)),it.contains||(it.contains=[]),it.contains=[].concat(...it.contains.map(function(En){return ci(En==="self"?it:En)})),it.contains.forEach(function(En){jt(En,xt)}),it.starts&&jt(it.starts,st),xt.matcher=Xt(xt),xt}if(ne.compilerExtensions||(ne.compilerExtensions=[]),ne.contains&&ne.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return ne.classNameAliases=r(ne.classNameAliases||{}),jt(ne)}function Kt(ne){return ne?ne.endsWithParent||Kt(ne.starts):!1}function ci(ne){return ne.variants&&!ne.cachedVariants&&(ne.cachedVariants=ne.variants.map(function(Ae){return r(ne,{variants:null},Ae)})),ne.cachedVariants?ne.cachedVariants:Kt(ne)?r(ne,{starts:ne.starts?r(ne.starts):null}):Object.isFrozen(ne)?r(ne):ne}var Dr="11.10.0";class mn extends Error{constructor(Ae,Xe){super(Ae),this.name="HTMLInjectionError",this.html=Xe}}const qt=n,tr=r,nr=Symbol("nomatch"),za=7,Ps=function(ne){const Ae=Object.create(null),Xe=Object.create(null),Me=[];let Xt=!0;const jt="Could not find the language '{}', did you forget to load/include a language module?",it={disableAutodetect:!0,name:"Plain text",contains:[]};let st={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:f};function xt(He){return st.noHighlightRe.test(He)}function un(He){let Et=He.className+" ";Et+=He.parentNode?He.parentNode.className:"";const Gt=st.languageDetectRe.exec(Et);if(Gt){const gn=Bn(Gt[1]);return gn||(Ke(jt.replace("{}",Gt[1])),Ke("Falling back to no-highlight mode for this block.",He)),gn?Gt[1]:"no-highlight"}return Et.split(/\s+/).find(gn=>xt(gn)||Bn(gn))}function En(He,Et,Gt){let gn="",Dn="";typeof Et=="object"?(gn=He,Gt=Et.ignoreIllegals,Dn=Et.language):(yt("10.7.0","highlight(lang, code, ...args) has been deprecated."),yt("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),Dn=He,gn=Et),Gt===void 0&&(Gt=!0);const Fn={code:gn,language:Dn};oa("before:highlight",Fn);const Ir=Fn.result?Fn.result:ia(Fn.language,Fn.code,Gt);return Ir.code=Fn.code,oa("after:highlight",Ir),Ir}function ia(He,Et,Gt,gn){const Dn=Object.create(null);function Fn(We,dt){return We.keywords[dt]}function Ir(){if(!Dt.keywords){ar.addText(Zt);return}let We=0;Dt.keywordPatternRe.lastIndex=0;let dt=Dt.keywordPatternRe.exec(Zt),At="";for(;dt;){At+=Zt.substring(We,dt.index);const Jt=Zr.case_insensitive?dt[0].toLowerCase():dt[0],Un=Fn(Dt,Jt);if(Un){const[zi,Na]=Un;if(ar.addText(At),At="",Dn[Jt]=(Dn[Jt]||0)+1,Dn[Jt]<=za&&(Va+=Na),zi.startsWith("_"))At+=dt[0];else{const Fs=Zr.classNameAliases[zi]||zi;ca(dt[0],Fs)}}else At+=dt[0];We=Dt.keywordPatternRe.lastIndex,dt=Dt.keywordPatternRe.exec(Zt)}At+=Zt.substring(We),ar.addText(At)}function zr(){if(Zt==="")return;let We=null;if(typeof Dt.subLanguage=="string"){if(!Ae[Dt.subLanguage]){ar.addText(Zt);return}We=ia(Dt.subLanguage,Zt,!0,tc[Dt.subLanguage]),tc[Dt.subLanguage]=We._top}else We=aa(Zt,Dt.subLanguage.length?Dt.subLanguage:null);Dt.relevance>0&&(Va+=We.relevance),ar.__addSublanguage(We._emitter,We.language)}function Yr(){Dt.subLanguage!=null?zr():Ir(),Zt=""}function ca(We,dt){We!==""&&(ar.startScope(dt),ar.addText(We),ar.endScope())}function ol(We,dt){let At=1;const Jt=dt.length-1;for(;At<=Jt;){if(!We._emit[At]){At++;continue}const Un=Zr.classNameAliases[We[At]]||We[At],zi=dt[At];Un?ca(zi,Un):(Zt=zi,Ir(),Zt=""),At++}}function tu(We,dt){return We.scope&&typeof We.scope=="string"&&ar.openNode(Zr.classNameAliases[We.scope]||We.scope),We.beginScope&&(We.beginScope._wrap?(ca(Zt,Zr.classNameAliases[We.beginScope._wrap]||We.beginScope._wrap),Zt=""):We.beginScope._multi&&(ol(We.beginScope,dt),Zt="")),Dt=Object.create(We,{parent:{value:Dt}}),Dt}function ll(We,dt,At){let Jt=C(We.endRe,At);if(Jt){if(We["on:end"]){const Un=new e(We);We["on:end"](dt,Un),Un.isMatchIgnored&&(Jt=!1)}if(Jt){for(;We.endsParent&&We.parent;)We=We.parent;return We}}if(We.endsWithParent)return ll(We.parent,dt,At)}function Ad(We){return Dt.matcher.regexIndex===0?(Zt+=We[0],1):(Bs=!0,0)}function Ci(We){const dt=We[0],At=We.rule,Jt=new e(At),Un=[At.__beforeBegin,At["on:begin"]];for(const zi of Un)if(zi&&(zi(We,Jt),Jt.isMatchIgnored))return Ad(dt);return At.skip?Zt+=dt:(At.excludeBegin&&(Zt+=dt),Yr(),!At.returnBegin&&!At.excludeBegin&&(Zt=dt)),tu(At,We),At.returnBegin?0:dt.length}function nu(We){const dt=We[0],At=Et.substring(We.index),Jt=ll(Dt,We,At);if(!Jt)return nr;const Un=Dt;Dt.endScope&&Dt.endScope._wrap?(Yr(),ca(dt,Dt.endScope._wrap)):Dt.endScope&&Dt.endScope._multi?(Yr(),ol(Dt.endScope,We)):Un.skip?Zt+=dt:(Un.returnEnd||Un.excludeEnd||(Zt+=dt),Yr(),Un.excludeEnd&&(Zt=dt));do Dt.scope&&ar.closeNode(),!Dt.skip&&!Dt.subLanguage&&(Va+=Dt.relevance),Dt=Dt.parent;while(Dt!==Jt.parent);return Jt.starts&&tu(Jt.starts,We),Un.returnEnd?0:dt.length}function ru(){const We=[];for(let dt=Dt;dt!==Zr;dt=dt.parent)dt.scope&&We.unshift(dt.scope);We.forEach(dt=>ar.openNode(dt))}let Ha={};function ua(We,dt){const At=dt&&dt[0];if(Zt+=We,At==null)return Yr(),0;if(Ha.type==="begin"&&dt.type==="end"&&Ha.index===dt.index&&At===""){if(Zt+=Et.slice(dt.index,dt.index+1),!Xt){const Jt=new Error(`0 width match regex (${He})`);throw Jt.languageName=He,Jt.badRule=Ha.rule,Jt}return 1}if(Ha=dt,dt.type==="begin")return Ci(dt);if(dt.type==="illegal"&&!Gt){const Jt=new Error('Illegal lexeme "'+At+'" for mode "'+(Dt.scope||"<unnamed>")+'"');throw Jt.mode=Dt,Jt}else if(dt.type==="end"){const Jt=nu(dt);if(Jt!==nr)return Jt}if(dt.type==="illegal"&&At==="")return 1;if(fa>1e5&&fa>dt.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Zt+=At,At.length}const Zr=Bn(He);if(!Zr)throw Ue(jt.replace("{}",He)),new Error('Unknown language: "'+He+'"');const iu=er(Zr);let da="",Dt=gn||iu;const tc={},ar=new st.__emitter(st);ru();let Zt="",Va=0,Ra=0,fa=0,Bs=!1;try{if(Zr.__emitTokens)Zr.__emitTokens(Et,ar);else{for(Dt.matcher.considerAll();;){fa++,Bs?Bs=!1:Dt.matcher.considerAll(),Dt.matcher.lastIndex=Ra;const We=Dt.matcher.exec(Et);if(!We)break;const dt=Et.substring(Ra,We.index),At=ua(dt,We);Ra=We.index+At}ua(Et.substring(Ra))}return ar.finalize(),da=ar.toHTML(),{language:He,value:da,relevance:Va,illegal:!1,_emitter:ar,_top:Dt}}catch(We){if(We.message&&We.message.includes("Illegal"))return{language:He,value:qt(Et),illegal:!0,relevance:0,_illegalBy:{message:We.message,index:Ra,context:Et.slice(Ra-100,Ra+100),mode:We.mode,resultSoFar:da},_emitter:ar};if(Xt)return{language:He,value:qt(Et),illegal:!1,relevance:0,errorRaised:We,_emitter:ar,_top:Dt};throw We}}function Jl(He){const Et={value:qt(He),illegal:!1,relevance:0,_top:it,_emitter:new st.__emitter(st)};return Et._emitter.addText(He),Et}function aa(He,Et){Et=Et||st.languages||Object.keys(Ae);const Gt=Jl(He),gn=Et.filter(Bn).filter(ir).map(Yr=>ia(Yr,He,!1));gn.unshift(Gt);const Dn=gn.sort((Yr,ca)=>{if(Yr.relevance!==ca.relevance)return ca.relevance-Yr.relevance;if(Yr.language&&ca.language){if(Bn(Yr.language).supersetOf===ca.language)return 1;if(Bn(ca.language).supersetOf===Yr.language)return-1}return 0}),[Fn,Ir]=Dn,zr=Fn;return zr.secondBest=Ir,zr}function qr(He,Et,Gt){const gn=Et&&Xe[Et]||Gt;He.classList.add("hljs"),He.classList.add(`language-${gn}`)}function $r(He){let Et=null;const Gt=un(He);if(xt(Gt))return;if(oa("before:highlightElement",{el:He,language:Gt}),He.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",He);return}if(He.children.length>0&&(st.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(He)),st.throwUnescapedHTML))throw new mn("One of your code blocks includes unescaped HTML.",He.innerHTML);Et=He;const gn=Et.textContent,Dn=Gt?En(gn,{language:Gt,ignoreIllegals:!0}):aa(gn);He.innerHTML=Dn.value,He.dataset.highlighted="yes",qr(He,Gt,Dn.language),He.result={language:Dn.language,re:Dn.relevance,relevance:Dn.relevance},Dn.secondBest&&(He.secondBest={language:Dn.secondBest.language,relevance:Dn.secondBest.relevance}),oa("after:highlightElement",{el:He,result:Dn,text:gn})}function Gi(He){st=tr(st,He)}const Jc=()=>{qi(),yt("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function al(){qi(),yt("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let eu=!1;function qi(){if(document.readyState==="loading"){eu=!0;return}document.querySelectorAll(st.cssSelector).forEach($r)}function Qn(){eu&&qi()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Qn,!1);function rr(He,Et){let Gt=null;try{Gt=Et(ne)}catch(gn){if(Ue("Language definition for '{}' could not be registered.".replace("{}",He)),Xt)Ue(gn);else throw gn;Gt=it}Gt.name||(Gt.name=He),Ae[He]=Gt,Gt.rawDefinition=Et.bind(null,ne),Gt.aliases&&sa(Gt.aliases,{languageName:He})}function wn(He){delete Ae[He];for(const Et of Object.keys(Xe))Xe[Et]===He&&delete Xe[Et]}function Ya(){return Object.keys(Ae)}function Bn(He){return He=(He||"").toLowerCase(),Ae[He]||Ae[Xe[He]]}function sa(He,{languageName:Et}){typeof He=="string"&&(He=[He]),He.forEach(Gt=>{Xe[Gt.toLowerCase()]=Et})}function ir(He){const Et=Bn(He);return Et&&!Et.disableAutodetect}function ec(He){He["before:highlightBlock"]&&!He["before:highlightElement"]&&(He["before:highlightElement"]=Et=>{He["before:highlightBlock"](Object.assign({block:Et.el},Et))}),He["after:highlightBlock"]&&!He["after:highlightElement"]&&(He["after:highlightElement"]=Et=>{He["after:highlightBlock"](Object.assign({block:Et.el},Et))})}function sl(He){ec(He),Me.push(He)}function $i(He){const Et=Me.indexOf(He);Et!==-1&&Me.splice(Et,1)}function oa(He,Et){const Gt=He;Me.forEach(function(gn){gn[Gt]&&gn[Gt](Et)})}function la(He){return yt("10.7.0","highlightBlock will be removed entirely in v12.0"),yt("10.7.0","Please use highlightElement now."),$r(He)}Object.assign(ne,{highlight:En,highlightAuto:aa,highlightAll:qi,highlightElement:$r,highlightBlock:la,configure:Gi,initHighlighting:Jc,initHighlightingOnLoad:al,registerLanguage:rr,unregisterLanguage:wn,listLanguages:Ya,getLanguage:Bn,registerAliases:sa,autoDetection:ir,inherit:tr,addPlugin:sl,removePlugin:$i}),ne.debugMode=function(){Xt=!1},ne.safeMode=function(){Xt=!0},ne.versionString=Dr,ne.regex={concat:S,lookahead:m,either:E,optional:b,anyNumberOfTimes:g};for(const He in Oe)typeof Oe[He]=="object"&&t(Oe[He]);return Object.assign(ne,Oe),ne},ui=Ps({});return ui.newInstance=()=>Ps({}),CR=ui,ui.HighlightJS=ui,ui.default=ui,CR}var OR,NG;function Y1e(){if(NG)return OR;NG=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",c="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",g="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища "+"wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",U="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля "+"автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы "+"виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента "+"авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных "+"использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц "+"отображениевремениэлементовпланировщика "+"типфайлаформатированногодокумента "+"обходрезультатазапроса типзаписизапроса "+"видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов "+"доступкфайлу режимдиалогавыборафайла режимоткрытияфайла "+"типизмеренияпостроителязапроса "+"видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений "+"wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson "+"видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных "+"важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения "+"режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации "+"расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии "+"кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip "+"звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp "+"направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса "+"httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений "+"важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",te="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ie="null истина ложь неопределено",fe=e.inherit(e.NUMBER_MODE),Ce={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Re={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},_e={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},Ie=e.inherit(e.C_LINE_COMMENT_MODE),Oe={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:n,keyword:a+c},contains:[Ie]},se={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},xe={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:n,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:n,keyword:"знач",literal:ie},contains:[fe,Ce,Re]},Ie]},e.inherit(e.TITLE_MODE,{begin:n})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:n,keyword:a,built_in:g,class:U,type:te,literal:ie},contains:[Oe,xe,Ie,se,fe,Ce,Re,_e]}}return OR=t,OR}var RR,AG;function H1e(){if(AG)return RR;AG=1;function t(e){const n=e.regex,r=/^[a-zA-Z][a-zA-Z0-9-]*/,i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],a=e.COMMENT(/;/,/$/),s={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},o={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},c={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},d={scope:"symbol",match:/%[si](?=".*")/},f={scope:"attribute",match:n.concat(r,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:i,contains:[{scope:"operator",match:/=\/?/},f,a,s,o,c,d,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return RR=t,RR}var NR,wG;function V1e(){if(wG)return NR;wG=1;function t(e){const n=e.regex,r=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:n.concat(/"/,n.either(...r)),end:/"/,keywords:r,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return NR=t,NR}var AR,DG;function W1e(){if(DG)return AR;DG=1;function t(e){const n=e.regex,r=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=n.concat(r,n.concat("(\\.",r,")*")),a=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:r,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:n.concat(/:\s*/,a)}]},e.METHOD_GUARD],illegal:/#/}}return AR=t,AR}var wR,IG;function Q1e(){if(IG)return wR;IG=1;function t(e){const n="\\d(_|\\d)*",r="[eE][-+]?"+n,i=n+"(\\."+n+")?("+r+")?",a="\\w+",o="\\b("+(n+"#"+a+"(\\."+a+")?#("+r+")?")+"|"+i+")",c="[A-Za-z](_?[A-Za-z0-9.])*",d=`[]\\{\\}%#'"`,f=e.COMMENT("--","$"),p={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:d,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:c,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[f,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,relevance:0},{className:"symbol",begin:"'"+c},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:d},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[f,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:d},p,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:d}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:d},p]}}return wR=t,wR}var DR,MG;function K1e(){if(MG)return DR;MG=1;function t(e){const n={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},r={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[n,r]};return n.contains=[i],r.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},n,r,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return DR=t,DR}var IR,LG;function X1e(){if(LG)return IR;LG=1;function t(e){const n={className:"number",begin:/[$%]\d+/},r={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},a={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,a,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",n]},i,r,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return IR=t,IR}var MR,kG;function Z1e(){if(kG)return MR;kG=1;function t(e){const n=e.regex,r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,r]},a=e.COMMENT(/--/,/$/),s=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",a]}),o=[a,s,e.HASH_COMMENT_MODE],c=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],d=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[r,e.C_NUMBER_MODE,{className:"built_in",begin:n.concat(/\b/,n.either(...d),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:n.concat(/\b/,n.either(...c),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...o],illegal:/\/\/|->|=>|\[\[/}}return MR=t,MR}var LR,PG;function J1e(){if(PG)return LR;PG=1;function t(e){const n=e.regex,r="[A-Za-z_][0-9A-Za-z_]*",i={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},a=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","value","view"],s={className:"symbol",begin:"\\$"+n.either(...a)},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]};c.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,o,e.REGEXP_MODE];const f=c.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:i,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:f}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:f}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return LR=t,LR}var kR,BG;function eNe(){if(BG)return kR;BG=1;function t(n){const r=n.regex,i=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),a="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="(?!struct)("+a+"|"+r.optional(s)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},i,n.C_BLOCK_COMMENT_MODE]},b={className:"title",begin:r.optional(s)+n.IDENT_RE,relevance:0},S=r.optional(s)+n.IDENT_RE+"\\s*\\(",y=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],E=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],C=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],N={type:E,keyword:y,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},w={className:"function.dispatch",relevance:0,keywords:{_hint:C},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},D=[w,g,d,i,n.C_BLOCK_COMMENT_MODE,m,p],L={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:D.concat([{begin:/\(/,end:/\)/,keywords:N,contains:D.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+c+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:a,keywords:N,relevance:0},{begin:S,returnBegin:!0,contains:[b],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[i,n.C_BLOCK_COMMENT_MODE,p,m,d,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",i,n.C_BLOCK_COMMENT_MODE,p,m,d]}]},d,i,n.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:N,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(L,k,w,D,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:N,contains:["self",d]},{begin:n.IDENT_RE+"::",keywords:N},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(n){const r={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},i=t(n),a=i.keywords;return a.type=[...a.type,...r.type],a.literal=[...a.literal,...r.literal],a.built_in=[...a.built_in,...r.built_in],a._hints=r._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}return kR=e,kR}var PR,FG;function tNe(){if(FG)return PR;FG=1;function t(e){const n={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},n,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return PR=t,PR}var BR,UG;function nNe(){if(UG)return BR;UG=1;function t(e){const n=e.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(s,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,d,c,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,d,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:f}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return BR=t,BR}var FR,jG;function rNe(){if(jG)return FR;jG=1;function t(e){const n=e.regex,r={begin:"^'{3,}[ \\t]*$",relevance:10},i=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],a=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],s=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],o={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},c={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ 	].+?([ 	]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},c,o,...i,...a,...s,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},r,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return FR=t,FR}var UR,GG;function iNe(){if(GG)return UR;GG=1;function t(e){const n=e.regex,r=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:r,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:r.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:r,illegal:/["\[\]]/,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:r.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:r,excludeEnd:!0,contains:[{begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return UR=t,UR}var jR,qG;function aNe(){if(qG)return jR;qG=1;function t(e){const n={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[n,e.inherit(e.QUOTE_STRING_MODE,{contains:[n]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return jR=t,jR}var GR,$G;function sNe(){if($G)return GR;$G=1;function t(e){const n="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",r=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],i="True False And Null Not Or Default",a="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",s={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},o={begin:"\\$[A-z0-9_]+"},c={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},d={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},f={className:"meta",begin:"#",end:"$",keywords:{keyword:r},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[c,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},c,s]},p={className:"symbol",begin:"@[A-z0-9_]+"},m={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[o,c,d]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:n,built_in:a,literal:i},contains:[s,o,c,d,f,p,m]}}return GR=t,GR}var qR,zG;function oNe(){if(zG)return qR;zG=1;function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return qR=t,qR}var $R,YG;function lNe(){if(YG)return $R;YG=1;function t(e){const n={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:r},contains:[n,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return $R=t,$R}var zR,HG;function cNe(){if(HG)return zR;HG=1;function t(e){const n=e.UNDERSCORE_IDENT_RE,s={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},o={variants:[{match:[/(class|interface)\s+/,n,/\s+(extends|implements)\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"X++",aliases:["x++"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},o]}}return zR=t,zR}var YR,VG;function uNe(){if(VG)return YR;VG=1;function t(e){const n=e.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,a]};a.contains.push(c);const d={match:/\\"/},f={className:"string",begin:/'/,end:/'/},p={match:/\\'/},m={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},g=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],b=e.SHEBANG({binary:`(${g.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},y=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],E=["true","false"],x={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],R=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],T=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],N=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:y,literal:E,built_in:[...C,...R,"set","shopt",...T,...N]},contains:[b,e.SHEBANG(),S,m,s,o,x,c,d,f,p,r]}}return YR=t,YR}var HR,WG;function dNe(){if(WG)return HR;WG=1;function t(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return HR=t,HR}var VR,QG;function fNe(){if(QG)return VR;QG=1;function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return VR=t,VR}var WR,KG;function hNe(){if(KG)return WR;KG=1;function t(e){const n={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[n]},n]}}return WR=t,WR}var QR,XG;function pNe(){if(XG)return QR;XG=1;function t(e){const n=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+i+"|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0},b=n.optional(a)+e.IDENT_RE+"\\s*\\(",E={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},x=[m,c,r,e.C_BLOCK_COMMENT_MODE,p,f],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:x.concat([{begin:/\(/,end:/\)/,keywords:E,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={begin:"("+o+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:E,relevance:0},{begin:b,returnBegin:!0,contains:[e.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,f,p,c,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,f,p,c]}]},c,r,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"</",contains:[].concat(C,R,x,[m,{begin:e.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:m,strings:f,keywords:E}}}return QR=t,QR}var KR,ZG;function mNe(){if(ZG)return KR;ZG=1;function t(e){const n=e.regex,r=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],i="false true",a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"string",begin:/(#\d+)+/},c={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},d={className:"string",begin:'"',end:'"'},f={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[s,o,e.NUMBER_MODE]},...a]},p=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],m={match:[/OBJECT/,/\s+/,n.either(...p),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:i},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,o,c,d,e.NUMBER_MODE,m,f]}}return KR=t,KR}var XR,JG;function gNe(){if(JG)return XR;JG=1;function t(e){const n=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],r=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],i=["true","false"],a={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:n,type:r,literal:i},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},a]}}return XR=t,XR}var ZR,eq;function _Ne(){if(eq)return ZR;eq=1;function t(e){const n=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],r=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],i=["doc","by","license","see","throws","tagged"],a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:n,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{name:"Ceylon",keywords:{keyword:n.concat(r),meta:i},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return ZR=t,ZR}var JR,tq;function bNe(){if(tq)return JR;tq=1;function t(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return JR=t,JR}var e1,nq;function vNe(){if(nq)return e1;nq=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&'",r="[#]?["+n+"]["+n+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:r,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},s={begin:r,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},c={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},d={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},f=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),p={scope:"punctuation",match:/,/,relevance:0},m=e.COMMENT(";","$",{relevance:0}),g={className:"literal",begin:/\b(true|false|nil)\b/},b={begin:"\\[|(#::?"+r+")?\\{",end:"[\\]\\}]",relevance:0},S={className:"symbol",begin:"[:]{1,2}"+r},y={begin:"\\(",end:"\\)"},E={endsWithParent:!0,relevance:0},x={keywords:a,className:"name",begin:r,relevance:0,starts:E},C=[p,y,c,d,f,m,S,b,o,g,s],R={beginKeywords:i,keywords:{$pattern:r,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:r,relevance:0,excludeEnd:!0,endsParent:!0}].concat(C)};return y.contains=[R,x,E],E.contains=C,b.contains=C,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[p,y,c,d,f,m,S,b,o,g]}}return e1=t,e1}var t1,rq;function SNe(){if(rq)return t1;rq=1;function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return t1=t,t1}var n1,iq;function ENe(){if(iq)return n1;iq=1;function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while 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 build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group 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 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 build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return n1=t,n1}var r1,aq;function yNe(){if(aq)return r1;aq=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,n,r);function s(o){const c=["npm","print"],d=["yes","no","on","off"],f=["then","unless","until","loop","by","when","and","or","is","isnt","not"],p=["var","const","let","function","static"],m=T=>N=>!T.includes(N),g={keyword:t.concat(f).filter(m(p)),literal:e.concat(d),built_in:a.concat(c)},b="[A-Za-z$_][0-9A-Za-z$_]*",S={className:"subst",begin:/#\{/,end:/\}/,keywords:g},y=[o.BINARY_NUMBER_MODE,o.inherit(o.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,S]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[S,o.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+b},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];S.contains=y;const E=o.inherit(o.TITLE_MODE,{begin:b}),x="(\\(.*\\)\\s*)?\\B[-=]>",C={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(y)}]},R={variants:[{match:[/class\s+/,b,/\s+extends\s+/,b]},{match:[/class\s+/,b]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:g};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:g,illegal:/\/\*/,contains:[...y,o.COMMENT("###","###"),o.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+b+"\\s*=\\s*"+x,end:"[-=]>",returnBegin:!0,contains:[E,C]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:x,end:"[-=]>",returnBegin:!0,contains:[C]}]},R,{begin:b+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return r1=s,r1}var i1,sq;function TNe(){if(sq)return i1;sq=1;function t(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return i1=t,i1}var a1,oq;function xNe(){if(oq)return a1;oq=1;function t(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return a1=t,a1}var s1,lq;function CNe(){if(lq)return s1;lq=1;function t(e){const n=e.regex,r=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},f={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},m={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(f,{className:"string"}),{className:"string",begin:/<.*?>/},r,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0},b=n.optional(a)+e.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],T={type:y,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},N={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},w=[N,m,c,r,e.C_BLOCK_COMMENT_MODE,p,f],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:T,contains:w.concat([{begin:/\(/,end:/\)/,keywords:T,contains:w.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+o+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:T,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:T,relevance:0},{begin:b,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[f,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:[r,e.C_BLOCK_COMMENT_MODE,f,p,c,{begin:/\(/,end:/\)/,keywords:T,relevance:0,contains:["self",r,e.C_BLOCK_COMMENT_MODE,f,p,c]}]},c,r,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:T,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(D,L,N,w,[m,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:T,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:T},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return s1=t,s1}var o1,cq;function ONe(){if(cq)return o1;cq=1;function t(e){const n="primitive rsc_template",r="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization"+" "+"read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\"+" "+"number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:n,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+r.split(" ").join("|")+")\\s+",keywords:r,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}return o1=t,o1}var l1,uq;function RNe(){if(uq)return l1;uq=1;function t(e){const n="(_?[ui](8|16|32|64|128))?",r="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:i,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},f={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function p(x,C){const R=[{begin:x,end:C}];return R[0].contains=R,R}const m={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:p("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:p("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:p(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:p("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},g={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:p("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:p("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:p(/\{/,/\}/)},{begin:"%q<",end:">",contains:p("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},b={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},S={className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"%r\\(",end:"\\)",contains:p("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:p("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:p(/\{/,/\}/)},{begin:"%r<",end:">",contains:p("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},y={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},E=[f,m,g,S,b,y,d,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[m,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+n},{begin:"\\b0o([0-7_]+)"+n},{begin:"\\b0x([A-Fa-f0-9_]+)"+n},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+r+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+n}],relevance:0}];return c.contains=E,f.contains=E.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:E}}return l1=t,l1}var c1,dq;function NNe(){if(dq)return c1;dq=1;function t(e){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(s),built_in:n,literal:i},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},f={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},m=e.inherit(p,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:o},b=e.inherit(g,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,b]},y={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},E=e.inherit(y,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]});g.contains=[y,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],b.contains=[E,S,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[f,y,S,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},R=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",T={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+R+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[x,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},T]}}return c1=t,c1}var u1,fq;function ANe(){if(fq)return u1;fq=1;function t(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return u1=t,u1}var d1,hq;function wNe(){if(hq)return d1;hq=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const f=d.regex,p=t(d),m={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",b=/@-?\w[\w]*(-\w+)*/,S="[a-zA-Z-][a-zA-Z0-9_-]*",y=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[p.BLOCK_COMMENT,m,p.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+S,relevance:0},p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[p.BLOCK_COMMENT,p.HEXCOLOR,p.IMPORTANT,p.CSS_NUMBER_MODE,...y,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...y,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p.FUNCTION_DISPATCH]},{begin:f.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:b},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...y,p.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return d1=c,d1}var f1,pq;function DNe(){if(pq)return f1;pq=1;function t(e){const n={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},r="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,c="([eE][+-]?"+i+")",d="("+i+"(\\.\\d*|"+c+")|\\d+\\."+i+"|\\."+r+c+"?)",f="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+i+")",p="("+r+"|"+a+"|"+o+")",m="("+f+"|"+d+")",g=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,b={className:"number",begin:"\\b"+p+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},S={className:"number",begin:"\\b("+m+"([fF]|L|i|[fF]i|Li)?|"+p+"(i|[fF]i|Li))",relevance:0},y={className:"string",begin:"'("+g+"|.)",end:"'",illegal:"."},x={className:"string",begin:'"',contains:[{begin:g,relevance:0}],end:'"[cwd]?'},C={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},R={className:"string",begin:"`",end:"`[cwd]?"},T={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},N={className:"string",begin:'q"\\{',end:'\\}"'},w={className:"meta",begin:"^#!",end:"$",relevance:5},D={className:"meta",begin:"#(line)",end:"$",relevance:5},L={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},k=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,k,T,x,C,R,N,S,b,y,w,D,L]}}return f1=t,f1}var h1,mq;function INe(){if(mq)return h1;mq=1;function t(e){const n=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},f={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},m=e.inherit(f,{contains:[]}),g=e.inherit(p,{contains:[]});f.contains.push(g),p.contains.push(m);let b=[r,d];return[f,p,m,g].forEach(x=>{x.contains=x.contains.concat(b)}),b=b.concat(f,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},r,s,f,p,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},a,i,d,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return h1=t,h1}var p1,gq;function MNe(){if(gq)return p1;gq=1;function t(e){const n={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},r={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n,r]}]};r.contains=[e.C_NUMBER_MODE,i];const a=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],s=a.map(d=>`${d}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:a.concat(s).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return p1=t,p1}var m1,_q;function LNe(){if(_q)return m1;_q=1;function t(e){const n=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},c={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},d={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[a,o,i].concat(r)},i].concat(r)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:n,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,o,s,c,d,i].concat(r)}}return m1=t,m1}var g1,bq;function kNe(){if(bq)return g1;bq=1;function t(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return g1=t,g1}var _1,vq;function PNe(){if(vq)return _1;vq=1;function t(e){const n={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[n]}]}}return _1=t,_1}var b1,Sq;function BNe(){if(Sq)return b1;Sq=1;function t(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return b1=t,b1}var v1,Eq;function FNe(){if(Eq)return v1;Eq=1;function t(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return v1=t,v1}var S1,yq;function UNe(){if(yq)return S1;yq=1;function t(e){const n=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"}.begin,end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),n]},{className:"number",begin:"\\b\\d+",relevance:0},n]}}return S1=t,S1}var E1,Tq;function jNe(){if(Tq)return E1;Tq=1;function t(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}return E1=t,E1}var y1,xq;function GNe(){if(xq)return y1;xq=1;function t(e){const n={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},r={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(n,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",relevance:0,begin:"<",end:">",contains:[r,a]},d={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},f={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},p={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},m={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},g={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[f,a,s,o,d,m,p,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,n,i,g,{begin:e.IDENT_RE+"::",keywords:""}]}}return y1=t,y1}var T1,Cq;function qNe(){if(Cq)return T1;Cq=1;function t(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return T1=t,T1}var x1,Oq;function $Ne(){if(Oq)return x1;Oq=1;function t(e){const n=e.COMMENT(/\(\*/,/\*\)/),r={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},a={begin:/=/,end:/[.;]/,contains:[n,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[n,r,a]}}return x1=t,x1}var C1,Rq;function zNe(){if(Rq)return C1;Rq=1;function t(e){const n=e.regex,r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:r,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},p={match:/\\[\s\S]/,scope:"char.escape",relevance:0},m=`[/|([{<"']`,g=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],b=N=>({scope:"char.escape",begin:n.concat(/\\/,N),relevance:0}),S={className:"string",begin:"~[a-z](?="+m+")",contains:g.map(N=>e.inherit(N,{contains:[b(N.end),p,c]}))},y={className:"string",begin:"~[A-Z](?="+m+")",contains:g.map(N=>e.inherit(N,{contains:[b(N.end)]}))},E={className:"regex",variants:[{begin:"~r(?="+m+")",contains:g.map(N=>e.inherit(N,{end:n.concat(N.end,/[uismxfU]{0,7}/),contains:[b(N.end),p,c]}))},{begin:"~R(?="+m+")",contains:g.map(N=>e.inherit(N,{end:n.concat(N.end,/[uismxfU]{0,7}/),contains:[b(N.end)]}))}]},x={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},C={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})]},R=e.inherit(C,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),T=[x,E,y,S,e.HASH_COMMENT_MODE,R,C,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[x,{begin:i}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return c.contains=T,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:T}}return C1=t,C1}var O1,Nq;function YNe(){if(Nq)return O1;Nq=1;function t(e){const n={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n]},a={begin:/\{/,end:/\}/,contains:i.contains},s={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,n],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,n],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[r,i,a,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"port",end:"$",keywords:"port",contains:[n]},s,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}],illegal:/;/}}return O1=t,O1}var R1,Aq;function HNe(){if(Aq)return R1;Aq=1;function t(e){const n=e.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=n.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},f=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:o},m={className:"string",contains:[e.BACKSLASH_ESCAPE,p],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,p]})]}]},g="[1-9](_?[0-9])*|0",b="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${b}))?([eE][+-]?(${b})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},w=[m,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[m,{begin:r}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,p],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(d,f),relevance:0}].concat(d,f);p.contains=w,y.contains=w;const M=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:w}}];return f.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(M).concat(f).concat(w)}}return R1=t,R1}var N1,wq;function VNe(){if(wq)return N1;wq=1;function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return N1=t,N1}var A1,Dq;function WNe(){if(Dq)return A1;Dq=1;function t(e){const n=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:n.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return A1=t,A1}var w1,Iq;function QNe(){if(Iq)return w1;Iq=1;function t(e){const n="[a-z'][a-zA-Z0-9_']*",r="("+n+":"+n+"|"+n+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},a=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+n+"/\\d+"},c={begin:r+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:r,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},d={begin:/\{/,end:/\}/,relevance:0},f={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},p={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},m={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},g={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},b={beginKeywords:"fun receive if try case",end:"end",keywords:i};b.contains=[a,o,e.inherit(e.APOS_STRING_MODE,{className:""}),b,c,e.QUOTE_STRING_MODE,s,d,f,p,m,g];const S=[a,o,b,c,e.QUOTE_STRING_MODE,s,d,f,p,m,g];c.contains[1].contains=S,d.contains=S,m.contains[1].contains=S;const y=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],E={className:"params",begin:"\\(",end:"\\)",contains:S};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+n+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[E,e.inherit(e.TITLE_MODE,{begin:n})],starts:{end:";|\\.",keywords:i,contains:S}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:y.map(x=>`${x}|1.5`).join(" ")},contains:[E]},s,e.QUOTE_STRING_MODE,m,f,p,d,g,{begin:/\.$/}]}}return w1=t,w1}var D1,Mq;function KNe(){if(Mq)return D1;Mq=1;function t(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return D1=t,D1}var I1,Lq;function XNe(){if(Lq)return I1;Lq=1;function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return I1=t,I1}var M1,kq;function ZNe(){if(kq)return M1;kq=1;function t(e){const n={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},r={className:"string",variants:[{begin:'"',end:'"'}]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,a,e.C_NUMBER_MODE]}}return M1=t,M1}var L1,Pq;function JNe(){if(Pq)return L1;Pq=1;function t(e){const n=e.regex,r={className:"params",begin:"\\(",end:"\\)"},i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,s,a)},{begin:n.concat(/\b\d+/,s,a)},{begin:n.concat(/\.\d+/,s,a)}],relevance:0},c={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,r]},d={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[d,c,{begin:/^C\s*=(?!=)/,relevance:0},i,o]}}return L1=t,L1}var k1,Bq;function eAe(){if(Bq)return k1;Bq=1;function t(o){return new RegExp(o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(d=>e(d)).join("")}function i(o){const c=o[o.length-1];return typeof c=="object"&&c.constructor===Object?(o.splice(o.length-1,1),c):{}}function a(...o){return"("+(i(o).capture?"":"?:")+o.map(f=>e(f)).join("|")+")"}function s(o){const c=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],d={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},f=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],p=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],m=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],g=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],S={keyword:c,literal:p,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":m},E={variants:[o.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),o.C_LINE_COMMENT_MODE]},x=/[a-zA-Z_](\w|')*/,C={scope:"variable",begin:/``/,end:/``/},R=/\B('|\^)/,T={scope:"symbol",variants:[{match:r(R,/``.*?``/)},{match:r(R,o.UNDERSCORE_IDENT_RE)}],relevance:0},N=function({includeEqual:fe}){let Ce;fe?Ce="!%&*+-/<=>@^|~?":Ce="!%&*+-/<>@^|~?";const Re=Array.from(Ce),_e=r("[",...Re.map(t),"]"),Ie=a(_e,/\./),Oe=r(Ie,n(Ie)),se=a(r(Oe,Ie,"*"),r(_e,"+"));return{scope:"operator",match:a(se,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},w=N({includeEqual:!0}),D=N({includeEqual:!1}),L=function(fe,Ce){return{begin:r(fe,n(r(/\s*/,a(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:Ce,end:n(a(/\n/,/=/)),relevance:0,keywords:o.inherit(S,{type:g}),contains:[E,T,o.inherit(C,{scope:null}),D]}},k=L(/:/,"operator"),M=L(/\bof\b/,"keyword"),P={begin:[/(^|\s+)/,/type/,/\s+/,x],beginScope:{2:"keyword",4:"title.class"},end:n(/\(|=|$/),keywords:S,contains:[E,o.inherit(C,{scope:null}),T,{scope:"operator",match:/<|>/},k]},V={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},Y={begin:[/^\s*/,r(/#/,a(...f)),/\b/],beginScope:{2:"meta"},end:n(/\s|$/)},G={variants:[o.BINARY_NUMBER_MODE,o.C_NUMBER_MODE]},F={scope:"string",begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE]},q={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},o.BACKSLASH_ESCAPE]},z={scope:"string",begin:/"""/,end:/"""/,relevance:2},H={scope:"subst",begin:/\{/,end:/\}/,keywords:S},U={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},o.BACKSLASH_ESCAPE,H]},Q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},o.BACKSLASH_ESCAPE,H]},X={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},H],relevance:2},te={scope:"string",match:r(/'/,a(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return H.contains=[Q,U,q,F,te,d,E,C,k,V,Y,G,T,w],{name:"F#",aliases:["fs","f#"],keywords:S,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[d,{variants:[X,Q,U,z,q,F,te]},E,C,P,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[C,z,q,F,te,G]},M,k,V,Y,G,T,w]}}return k1=s,k1}var P1,Fq;function tAe(){if(Fq)return P1;Fq=1;function t(e){const n=e.regex,r={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},a={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},o={begin:"/",end:"/",keywords:r,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},c=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,d={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,o,{className:"comment",begin:n.concat(c,n.anyNumberOfTimes(n.concat(/[ ]+/,c))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:r,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,d]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[d]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},i,a]},e.C_NUMBER_MODE,a]}}return P1=t,P1}var B1,Uq;function nAe(){if(Uq)return B1;Uq=1;function t(e){const n={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},r=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r]},a={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,a]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},c=function(g,b,S){const y=e.inherit({className:"function",beginKeywords:g,end:b,excludeEnd:!0,contains:[].concat(s)},{});return y.contains.push(o),y.contains.push(e.C_NUMBER_MODE),y.contains.push(e.C_BLOCK_COMMENT_MODE),y.contains.push(r),y},d={className:"built_in",begin:"\\b("+n.built_in.split(" ").join("|")+")\\b"},f={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},p={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:n,relevance:0,contains:[{beginKeywords:n.keyword},d,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},m={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:n.built_in,literal:n.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,d,p,f,"self"]};return p.contains.push(m),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:n,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,f,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},c("proc keyword",";"),c("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,r,m]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},p,a]}}return B1=t,B1}var F1,jq;function rAe(){if(jq)return F1;jq=1;function t(e){const n="[A-Z_][A-Z0-9_.]*",r="%",i={$pattern:n,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},a={className:"meta",begin:"([O])([0-9]+)"},s=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),o=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),s,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[s],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r},a].concat(o)}}return F1=t,F1}var U1,Gq;function iAe(){if(Gq)return U1;Gq=1;function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}return U1=t,U1}var j1,qq;function aAe(){if(qq)return j1;qq=1;function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return j1=t,j1}var G1,$q;function sAe(){if($q)return G1;$q=1;function t(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return G1=t,G1}var q1,zq;function oAe(){if(zq)return q1;zq=1;function t(e){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}return q1=t,q1}var $1,Yq;function lAe(){if(Yq)return $1;Yq=1;function t(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return $1=t,$1}var z1,Hq;function cAe(){if(Hq)return z1;Hq=1;function t(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}return z1=t,z1}var Y1,Vq;function uAe(){if(Vq)return Y1;Vq=1;function t(e){const n=e.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(r,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Y1=t,Y1}var H1,Wq;function dAe(){if(Wq)return H1;Wq=1;function t(n,r={}){return r.variants=n,r}function e(n){const r=n.regex,i="[A-Za-z0-9_$]+",a=t([n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),s={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[n.BACKSLASH_ESCAPE]},o=t([n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]),c=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE],{className:"string"}),d={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,n.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[n.SHEBANG({binary:"groovy",relevance:10}),a,c,s,o,d,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:i+"[ 	]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[a,c,s,o,"self"]},{className:"symbol",begin:"^[ 	]*"+r.lookahead(i+":"),excludeBegin:!0,end:i+":",relevance:0}],illegal:/#|<\//}}return H1=e,H1}var V1,Qq;function fAe(){if(Qq)return V1;Qq=1;function t(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return V1=t,V1}var W1,Kq;function hAe(){if(Kq)return W1;Kq=1;function t(e){const n=e.regex,r={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},i={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},a=/""|"[^"]+"/,s=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,c=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=/(\.|\/)/,f=n.either(a,s,o,c),p=n.concat(n.optional(/\.|\.\/|\//),f,n.anyNumberOfTimes(n.concat(d,f))),m=n.concat("(",o,"|",c,")(?==)"),g={begin:p},b=e.inherit(g,{keywords:i}),S={begin:/\(/,end:/\)/},y={className:"attr",begin:m,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,b,S]}}},E={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},x={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,E,y,b,S],returnEnd:!0},C=e.inherit(g,{className:"name",keywords:r,starts:e.inherit(x,{end:/\)/})});S.contains=[C];const R=e.inherit(g,{keywords:r,className:"name",starts:e.inherit(x,{end:/\}\}/})}),T=e.inherit(g,{keywords:r,className:"name"}),N=e.inherit(g,{className:"name",keywords:r,starts:e.inherit(x,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[R],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[T]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[T]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[N]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[N]}]}}return W1=t,W1}var Q1,Xq;function pAe(){if(Xq)return Q1;Xq=1;function t(e){const n="([0-9]_*)+",r="([0-9a-fA-F]_*)+",i="([01]_*)+",a="([0-7]_*)+",d="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",f={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},p={className:"meta",begin:/\{-#/,end:/#-\}/},m={className:"meta",begin:"^#",end:"$"},g={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},b={begin:"\\(",end:"\\)",illegal:'"',contains:[p,m,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),f]},S={begin:/\{/,end:/\}/,contains:b.contains},y={className:"number",relevance:0,variants:[{match:`\\b(${n})(\\.(${n}))?([eE][+-]?(${n}))?\\b`},{match:`\\b0[xX]_*(${r})(\\.(${r}))?([pP][+-]?(${n}))?\\b`},{match:`\\b0[oO](${a})\\b`},{match:`\\b0[bB](${i})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[b,f],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[b,f],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[g,b,f]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[p,g,b,S,f]},{beginKeywords:"default",end:"$",contains:[g,b,f]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,f]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[g,e.QUOTE_STRING_MODE,f]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},p,m,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,y,g,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${d}--+|--+(?!-)${d}`},f,{begin:"->|<-"}]}}return Q1=t,Q1}var K1,Zq;function mAe(){if(Zq)return K1;Zq=1;function t(e){const n="[a-zA-Z_$][a-zA-Z0-9_$]*",r=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:r,relevance:0},{className:"variable",begin:"\\$"+n},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}return K1=t,K1}var X1,Jq;function gAe(){if(Jq)return X1;Jq=1;function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}return X1=t,X1}var Z1,e8;function _Ae(){if(e8)return Z1;e8=1;function t(e){const n=e.regex,r="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,a={className:"attribute",begin:n.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(a,{relevance:0})]}}return Z1=t,Z1}var J1,t8;function bAe(){if(t8)return J1;t8=1;function t(e){const n="a-zA-Z_\\-!.?+*=<>&#'",r="["+n+"]["+n+"0-9/;:]*",i={$pattern:r,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},a="[-+]?\\d+(\\.\\d+)?",s={begin:r,relevance:0},o={className:"number",begin:a,relevance:0},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d=e.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},p={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},m={className:"comment",begin:"\\^"+r},g=e.COMMENT("\\^\\{","\\}"),b={className:"symbol",begin:"[:]{1,2}"+r},S={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},E={className:"name",relevance:0,keywords:i,begin:r,starts:y},x=[S,c,m,g,d,b,p,o,f,s];return S.contains=[e.COMMENT("comment",""),E,y],y.contains=x,p.contains=x,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),S,c,m,g,d,b,p,o,f]}}return J1=t,J1}var eN,n8;function vAe(){if(n8)return eN;n8=1;function t(e){const n="\\[",r="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:n,end:r}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:n,end:r,contains:["self"]}]}}return eN=t,eN}var tN,r8;function SAe(){if(r8)return tN;r8=1;function t(e){const n=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,s,a,o,r,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,f=/"(\\"|[^"])*"/,p=/'[^']*'/,m=n.either(d,f,p),g=n.concat(m,"(\\s*\\.\\s*",m,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:g,className:"attr",starts:{end:/$/,contains:[i,c,s,a,o,r]}}]}}return tN=t,tN}var nN,i8;function EAe(){if(i8)return nN;i8=1;function t(e){const n=e.regex,r={className:"params",begin:"\\(",end:"\\)"},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:n.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:n.concat(/\b\d+/,a,i)},{begin:n.concat(/\.\d+/,a,i)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,r]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}}return nN=t,nN}var rN,a8;function yAe(){if(a8)return rN;a8=1;function t(e){const n="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",i="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",fe="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING  SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE "+"CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE "+"ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME "+"DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY "+"ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION "+"JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY "+"ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE "+"smHidden smMaximized smMinimized smNormal wmNo wmYes "+"COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND "+"COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE "+"MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY "+"NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY "+"dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT "+"CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM "+"ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME "+"PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE "+"ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE "+"CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT "+"STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER "+"COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE "+"SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID "+"RESULT_VAR_NAME RESULT_VAR_NAME_ENG "+"AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID "+"SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY "+"SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY "+"SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS "+"SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS "+"SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS "+"ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME "+"TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME "+"ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk "+"EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE "+"cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate "+"ISBL_SYNTAX NO_SYNTAX XML_SYNTAX "+"WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY "+"SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Ha="atUser atGroup atRole "+"aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty "+"apBegin apEnd "+"alLeft alRight "+"asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways "+"cirCommon cirRevoked "+"ctSignature ctEncode ctSignatureEncode "+"clbUnchecked clbChecked clbGrayed "+"ceISB ceAlways ceNever "+"ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob "+"cfInternal cfDisplay "+"ciUnspecified ciWrite ciRead "+"ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog "+"ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton "+"cctDate cctInteger cctNumeric cctPick cctReference cctString cctText "+"cltInternal cltPrimary cltGUI "+"dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange "+"dssEdit dssInsert dssBrowse dssInActive "+"dftDate dftShortDate dftDateTime dftTimeStamp "+"dotDays dotHours dotMinutes dotSeconds "+"dtkndLocal dtkndUTC "+"arNone arView arEdit arFull "+"ddaView ddaEdit "+"emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode "+"ecotFile ecotProcess "+"eaGet eaCopy eaCreate eaCreateStandardRoute "+"edltAll edltNothing edltQuery "+"essmText essmCard "+"esvtLast esvtLastActive esvtSpecified "+"edsfExecutive edsfArchive "+"edstSQLServer edstFile "+"edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile "+"vsDefault vsDesign vsActive vsObsolete "+"etNone etCertificate etPassword etCertificatePassword "+"ecException ecWarning ecInformation "+"estAll estApprovingOnly "+"evtLast evtLastActive evtQuery "+"fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger "+"ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch "+"grhAuto grhX1 grhX2 grhX3 "+"hltText hltRTF hltHTML "+"iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG "+"im8bGrayscale im24bRGB im1bMonochrome "+"itBMP itJPEG itWMF itPNG "+"ikhInformation ikhWarning ikhError ikhNoIcon "+"icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler "+"isShow isHide isByUserSettings "+"jkJob jkNotice jkControlJob "+"jtInner jtLeft jtRight jtFull jtCross "+"lbpAbove lbpBelow lbpLeft lbpRight "+"eltPerConnection eltPerUser "+"sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac "+"sfsItalic sfsStrikeout sfsNormal "+"ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents "+"mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom "+"vtEqual vtGreaterOrEqual vtLessOrEqual vtRange "+"rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth "+"rdWindow rdFile rdPrinter "+"rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument "+"reOnChange reOnChangeValues "+"ttGlobal ttLocal ttUser ttSystem "+"ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal "+"smSelect smLike smCard "+"stNone stAuthenticating stApproving "+"sctString sctStream "+"sstAnsiSort sstNaturalSort "+"svtEqual svtContain "+"soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown "+"tarAbortByUser tarAbortByWorkflowException "+"tvtAllWords tvtExactPhrase tvtAnyWord "+"usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp "+"utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected "+"btAnd btDetailAnd btOr btNotOr btOnly "+"vmView vmSelect vmNavigation "+"vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection "+"wfatPrevious wfatNext wfatCancel wfatFinish "+"wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 "+"wfetQueryParameter wfetText wfetDelimiter wfetLabel "+"wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate "+"wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal "+"wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal "+"waAll waPerformers waManual "+"wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause "+"wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection "+"wiLow wiNormal wiHigh "+"wrtSoft wrtHard "+"wsInit wsRunning wsDone wsControlled wsAborted wsContinued "+"wtmFull wtmFromCurrent wtmOnlyCurrent ",ua="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",Zr="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",iu="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",da=fe+Ha,Dt=Zr,tc="null true false nil ",ar={className:"number",begin:e.NUMBER_RE,relevance:0},Zt={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Va={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Ra={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Va]},fa={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Va]},Bs={variants:[Ra,fa]},We={$pattern:n,keyword:i,built_in:da,class:Dt,literal:tc},dt={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:We,relevance:0},At={className:"type",begin:":[ \\t]*("+iu.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Jt={className:"variable",keywords:We,begin:n,relevance:0,contains:[At,dt]},Un=r+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:We,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:Un,end:"\\)$",returnBegin:!0,keywords:We,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:n,built_in:ua},begin:Un,end:"\\(",returnBegin:!0,excludeEnd:!0},dt,Jt,Zt,ar,Bs]},At,dt,Jt,Zt,ar,Bs]}}return rN=t,rN}var iN,s8;function TAe(){if(s8)return iN;s8=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(s,o,c){return c===-1?"":s.replace(o,d=>i(s,o,c-1))}function a(s){const o=s.regex,c="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",d=c+i("(?:<"+c+"~~~(?:\\s*,\\s*"+c+"~~~)*>)?",/~~~/g,2),b={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},S={className:"meta",begin:"@"+c,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:b,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[o.concat(/(?!else)/,c),/\s+/,c,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,c],className:{1:"keyword",3:"title.class"},contains:[y,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+d+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:b,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[S,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,r,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},r,S]}}return iN=a,iN}var aN,o8;function xAe(){if(o8)return aN;o8=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,r,i);function c(d){const f=d.regex,p=(Re,{after:_e})=>{const Ie="</"+Re[0].slice(1);return Re.input.indexOf(Ie,_e)!==-1},m=t,g={begin:"<>",end:"</>"},b=/<[A-Za-z0-9\\._:-]+\s*\/>/,S={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Re,_e)=>{const Ie=Re[0].length+Re.index,Oe=Re.input[Ie];if(Oe==="<"||Oe===","){_e.ignoreMatch();return}Oe===">"&&(p(Re,{after:Ie})||_e.ignoreMatch());let se;const xe=Re.input.substring(Ie);if(se=xe.match(/^\s*=/)){_e.ignoreMatch();return}if((se=xe.match(/^\s+extends\s+/))&&se.index===0){_e.ignoreMatch();return}}},y={$pattern:t,keyword:e,literal:n,built_in:o,"variable.language":s},E="[0-9](_?[0-9])*",x=`\\.(${E})`,C="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${C})((${x})|\\.)?|(${x}))[eE][+-]?(${E})\\b`},{begin:`\\b(${C})\\b((${x})\\b|\\.)?|(${x})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},T={className:"subst",begin:"\\$\\{",end:"\\}",keywords:y,contains:[]},N={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"css"}},D={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,T],subLanguage:"graphql"}},L={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,T]},M={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:m+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},P=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,N,w,D,L,{match:/\$\d+/},R];T.contains=P.concat({begin:/\{/,end:/\}/,keywords:y,contains:["self"].concat(P)});const V=[].concat(M,T.contains),Y=V.concat([{begin:/(\s*)\(/,end:/\)/,keywords:y,contains:["self"].concat(V)}]),G={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:Y},F={variants:[{match:[/class/,/\s+/,m,/\s+/,/extends/,/\s+/,f.concat(m,"(",f.concat(/\./,m),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,m],scope:{1:"keyword",3:"title.class"}}]},q={relevance:0,match:f.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},H={variants:[{match:[/function/,/\s+/,m,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[G],illegal:/%/},U={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(Re){return f.concat("(?!",Re.join("|"),")")}const X={match:f.concat(/\b/,Q([...a,"super","import"].map(Re=>`${Re}\\s*\\(`)),m,f.lookahead(/\s*\(/)),className:"title.function",relevance:0},te={begin:f.concat(/\./,f.lookahead(f.concat(m,/(?![0-9A-Za-z$_(])/))),end:m,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ie={match:[/get|set/,/\s+/,m,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},G]},fe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",Ce={match:[/const|var|let/,/\s+/,m,/\s*/,/=\s*/,/(async\s*)?/,f.lookahead(fe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[G]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:y,exports:{PARAMS_CONTAINS:Y,CLASS_REFERENCE:q},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,N,w,D,L,M,{match:/\$\d+/},R,q,{className:"attr",begin:m+f.lookahead(":"),relevance:0},Ce,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[M,d.REGEXP_MODE,{className:"function",begin:fe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:Y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:b},{begin:S.begin,"on:begin":S.isTrulyOpeningTag,end:S.end}],subLanguage:"xml",contains:[{begin:S.begin,end:S.end,skip:!0,contains:["self"]}]}]},H,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[G,d.inherit(d.TITLE_MODE,{begin:m,className:"title.function"})]},{match:/\.\.\./,relevance:0},te,{match:"\\$"+m,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[G]},X,U,F,ie,{match:/\$[(.]/}]}}return aN=c,aN}var sN,l8;function CAe(){if(l8)return sN;l8=1;function t(e){const r={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},i={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,s,i,a,r]}}return sN=t,sN}var oN,c8;function OAe(){if(c8)return oN;c8=1;function t(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[n,r,e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return oN=t,oN}var lN,u8;function RAe(){if(u8)return lN;u8=1;function t(e){const n="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",s={$pattern:n,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},o={keywords:s,illegal:/<\//},c={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},d={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},f={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},p={className:"variable",begin:"\\$"+n},m={className:"string",contains:[e.BACKSLASH_ESCAPE,f,p],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},g={className:"string",contains:[e.BACKSLASH_ESCAPE,f,p],begin:"`",end:"`"},b={className:"meta",begin:"@"+n},S={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return o.name="Julia",o.contains=[c,d,m,g,b,S,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],f.contains=o.contains,o}return lN=t,lN}var cN,d8;function NAe(){if(d8)return cN;d8=1;function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return cN=t,cN}var uN,f8;function AAe(){if(f8)return uN;f8=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(a){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},o={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"@"},d={className:"subst",begin:/\$\{/,end:/\}/,contains:[a.C_NUMBER_MODE]},f={className:"variable",begin:"\\$"+a.UNDERSCORE_IDENT_RE},p={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[f,d]},{begin:"'",end:"'",illegal:/\n/,contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[a.BACKSLASH_ESCAPE,f,d]}]};d.contains.push(p);const m={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+a.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+a.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[a.inherit(p,{className:"string"}),"self"]}]},b=r,S=a.COMMENT("/\\*","\\*/",{contains:[a.C_BLOCK_COMMENT_MODE]}),y={variants:[{className:"type",begin:a.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},E=y;return E.variants[1].contains=[y],y.variants[1].contains=[E],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),a.C_LINE_COMMENT_MODE,S,o,c,m,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[y,a.C_LINE_COMMENT_MODE,S],relevance:0},a.C_LINE_COMMENT_MODE,S,m,g,p,a.C_NUMBER_MODE]},S]},{begin:[/class|interface|trait/,/\s+/,a.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},a.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},m,g]},p,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},b]}}return uN=i,uN}var dN,h8;function wAe(){if(h8)return dN;h8=1;function t(e){const n="[a-zA-Z_][\\w.]*",r="<\\?(lasso(script)?|=)",i="\\]|\\?>",a={$pattern:n+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("<!--","-->",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},c={className:"meta",begin:"\\[/noprocess|"+r},d={className:"symbol",begin:"'"+n+"'"},f=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+n},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:n,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[d]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+r,returnEnd:!0,relevance:0,contains:[s]}},o,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:a,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+r,returnEnd:!0,contains:[s]}},o,c].concat(f)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(f)}}return dN=t,dN}var fN,p8;function DAe(){if(p8)return fN;p8=1;function t(e){const r=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(M=>M+"(?![a-zA-Z@:_])")),i=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(M=>M+"(?![a-zA-Z:_])").join("|")),a=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:r},{endsParent:!0,begin:i},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:a}]},c={className:"params",relevance:0,begin:/#+\d?/},d={variants:s},f={className:"built_in",relevance:0,begin:/[$&^_]/},p={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},m=e.COMMENT("%","$",{relevance:0}),g=[o,c,d,f,p,m],b={begin:/\{/,end:/\}/,relevance:0,contains:["self",...g]},S=e.inherit(b,{relevance:0,endsParent:!0,contains:[b,...g]}),y={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[b,...g]},E={begin:/\s+/,relevance:0},x=[S],C=[y],R=function(M,P){return{contains:[E],starts:{relevance:0,contains:M,starts:P}}},T=function(M,P){return{begin:"\\\\"+M+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+M},relevance:0,contains:[E],starts:P}},N=function(M,P){return e.inherit({begin:"\\\\begin(?=[ 	]*(\\r?\\n[ 	]*)?\\{"+M+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},R(x,P))},w=(M="string")=>e.END_SAME_AS_BEGIN({className:M,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),D=function(M){return{className:"string",end:"(?=\\\\end\\{"+M+"\\})"}},L=(M="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:M,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),k=[...["verb","lstinline"].map(M=>T(M,{contains:[w()]})),T("mint",R(x,{contains:[w()]})),T("mintinline",R(x,{contains:[L(),w()]})),T("url",{contains:[L("link"),L("link")]}),T("hyperref",{contains:[L("link")]}),T("href",R(C,{contains:[L("link")]})),...[].concat(...["","\\*"].map(M=>[N("verbatim"+M,D("verbatim"+M)),N("filecontents"+M,R(x,D("filecontents"+M))),...["","B","L"].map(P=>N(P+"Verbatim"+M,R(C,D(P+"Verbatim"+M))))])),N("minted",R(C,R(x,D("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...k,...g]}}return fN=t,fN}var hN,m8;function IAe(){if(m8)return hN;m8=1;function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return hN=t,hN}var pN,g8;function MAe(){if(g8)return pN;g8=1;function t(e){const n=/([A-Za-z_][A-Za-z_0-9]*)?/,i={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},a={match:[n,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(a),{name:"Leaf",contains:[{match:[/#+/,n,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[i]},{match:[/#+/,n,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return pN=t,pN}var mN,_8;function LAe(){if(_8)return mN;_8=1;const t=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse(),c=a.concat(s).sort().reverse();function d(f){const p=t(f),m=c,g="and or not only",b="[\\w-]+",S="("+b+"|@\\{"+b+"\\})",y=[],E=[],x=function(V){return{className:"string",begin:"~?"+V+".*?"+V}},C=function(V,Y,G){return{className:V,begin:Y,relevance:G}},R={$pattern:/[a-z-]+/,keyword:g,attribute:i.join(" ")},T={begin:"\\(",end:"\\)",contains:E,keywords:R,relevance:0};E.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,x("'"),x('"'),p.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},p.HEXCOLOR,T,C("variable","@@?"+b,10),C("variable","@\\{"+b+"\\}"),C("built_in","~?`[^`]*?`"),{className:"attribute",begin:b+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},p.IMPORTANT,{beginKeywords:"and not"},p.FUNCTION_DISPATCH);const N=E.concat({begin:/\{/,end:/\}/,contains:y}),w={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(E)},D={begin:S+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},p.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:E}}]},L={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:R,returnEnd:!0,contains:E,relevance:0}},k={className:"variable",variants:[{begin:"@"+b+"\\s*:",relevance:15},{begin:"@"+b}],starts:{end:"[;}]",returnEnd:!0,contains:N}},M={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:S,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,w,C("keyword","all\\b"),C("variable","@\\{"+b+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},p.CSS_NUMBER_MODE,C("selector-tag",S,0),C("selector-id","#"+S),C("selector-class","\\."+S,0),C("selector-tag","&",0),p.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:N},{begin:"!important"},p.FUNCTION_DISPATCH]},P={begin:b+`:(:)?(${m.join("|")})`,returnBegin:!0,contains:[M]};return y.push(f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,L,k,P,D,M,w,p.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:y}}return mN=d,mN}var gN,b8;function kAe(){if(b8)return gN;b8=1;function t(e){const n="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",r="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",a={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c=e.COMMENT(";","$",{relevance:0}),d={begin:"\\*",end:"\\*"},f={className:"symbol",begin:"[:&]"+n},p={begin:n,relevance:0},m={begin:r},b={contains:[s,o,d,f,{begin:"\\(",end:"\\)",contains:["self",a,o,s,p]},p],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+r}]},S={variants:[{begin:"'"+n},{begin:"#'"+n+"(::"+n+")*"}]},y={begin:"\\(\\s*",end:"\\)"},E={endsWithParent:!0,relevance:0};return y.contains=[{className:"name",variants:[{begin:n,relevance:0},{begin:r}]},E],E.contains=[b,S,y,a,s,o,c,d,f,m,p],{name:"Lisp",illegal:/\S/,contains:[s,e.SHEBANG(),a,o,c,b,S,y,p]}}return gN=t,gN}var _N,v8;function PAe(){if(v8)return _N;v8=1;function t(e){const n={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},r=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[n,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(r),illegal:";$|^\\[|^=|&|\\{"}}return _N=t,_N}var bN,S8;function BAe(){if(S8)return bN;S8=1;const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],e=["true","false","null","undefined","NaN","Infinity"],n=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(i,n,r);function s(o){const c=["npm","print"],d=["yes","no","on","off","it","that","void"],f=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],p={keyword:t.concat(f),literal:e.concat(d),built_in:a.concat(c)},m="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",g=o.inherit(o.TITLE_MODE,{begin:m}),b={className:"subst",begin:/#\{/,end:/\}/,keywords:p},S={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:p},y=[o.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[o.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,b,S]},{begin:/"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,b,S]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[b,o.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+m},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];b.contains=y;const E={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(y)}]},x={begin:"(#=>|=>|\\|>>|-?->|!->)"},C={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:p};return{name:"LiveScript",aliases:["ls"],keywords:p,illegal:/\/\*/,contains:y.concat([o.COMMENT("\\/\\*","\\*\\/"),o.HASH_COMMENT_MODE,x,{className:"function",contains:[g,E],returnBegin:!0,variants:[{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},C,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return bN=s,bN}var vN,E8;function FAe(){if(E8)return vN;E8=1;function t(e){const n=e.regex,r=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},a={className:"operator",relevance:0,begin:/=/},s={className:"punctuation",relevance:0,begin:/,/},o={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},c={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:n.concat(/%/,r)},{begin:/%\d+/},{begin:/#\d+/}]},f={className:"title",variants:[{begin:n.concat(/@/,r)},{begin:/@\d+/},{begin:n.concat(/!/,r)},{begin:n.concat(/!\d+/,r)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[i,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},f,s,a,d,c,o]}}return vN=t,vN}var SN,y8;function UAe(){if(y8)return SN;y8=1;function t(e){const r={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE},a={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},s={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[r,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},i,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},s,a,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return SN=t,SN}var EN,T8;function jAe(){if(T8)return EN;T8=1;function t(e){const n="\\[=*\\[",r="\\]=*\\]",i={begin:n,end:r,contains:["self"]},a=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,r,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[i],relevance:5}])}}return EN=t,EN}var yN,x8;function GAe(){if(x8)return yN;x8=1;function t(e){const n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,n,r,i,a,s,o]}}return yN=t,yN}var TN,C8;function qAe(){if(C8)return TN;C8=1;const t=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function e(n){const r=n.regex,i=/([2-9]|[1-2]\d|[3][0-5])\^\^/,a=/(\w*\.\w+|\w+\.\w*|\w+)/,s=/(\d*\.\d+|\d+\.\d*|\d+)/,o=r.either(r.concat(i,a),s),c=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,d=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,f=r.either(c,d),p=/\*\^[+-]?\d+/,g={className:"number",relevance:0,begin:r.concat(o,r.optional(f),r.optional(p))},b=/[a-zA-Z$][a-zA-Z0-9$]*/,S=new Set(t),y={variants:[{className:"builtin-symbol",begin:b,"on:begin":(w,D)=>{S.has(w[0])||D.ignoreMatch()}},{className:"symbol",relevance:0,begin:b}]},E={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},x={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},C={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},R={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},T={className:"brace",relevance:0,begin:/[[\](){}]/},N={className:"message-name",relevance:0,begin:r.concat("::",b)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[n.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),C,R,N,y,E,n.QUOTE_STRING_MODE,g,x,T]}}return TN=e,TN}var xN,O8;function $Ae(){if(O8)return xN;O8=1;function t(e){const n="('|\\.')+",r={relevance:0,contains:[{begin:n}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:r},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+n,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:r},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:r},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:r},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return xN=t,xN}var CN,R8;function zAe(){if(R8)return CN;R8=1;function t(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return CN=t,CN}var ON,N8;function YAe(){if(N8)return ON;N8=1;function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return 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 CBG 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 HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS 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 Mayatomr 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",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return ON=t,ON}var RN,A8;function HAe(){if(A8)return RN;A8=1;function t(e){const n={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},r=e.COMMENT("%","$"),i={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},a=e.inherit(e.APOS_STRING_MODE,{relevance:0}),s=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),o={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return s.contains=s.contains.slice(),s.contains.push(o),{name:"Mercury",aliases:["m","moo"],keywords:n,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},r,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,a,s,{begin:/:-/},{begin:/\.$/}]}}return RN=t,RN}var NN,w8;function VAe(){if(w8)return NN;w8=1;function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return NN=t,NN}var AN,D8;function WAe(){if(D8)return AN;D8=1;function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}return AN=t,AN}var wN,I8;function QAe(){if(I8)return wN;I8=1;function t(e){const n=e.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},o={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},f={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},p=[e.BACKSLASH_ESCAPE,s,d],m=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],g=(y,E,x="\\1")=>{const C=x==="\\1"?x:n.concat(x,E);return n.concat(n.concat("(?:",y,")"),E,/(?:\\.|[^\\\/])*?/,C,/(?:\\.|[^\\\/])*?/,x,i)},b=(y,E,x)=>n.concat(n.concat("(?:",y,")"),E,/(?:\\.|[^\\\/])*?/,x,i),S=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:p,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},f,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:g("s|tr|y",n.either(...m,{capture:!0}))},{begin:g("s|tr|y","\\(","\\)")},{begin:g("s|tr|y","\\[","\\]")},{begin:g("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:b("(?:m|qr)?",/\//,/\//)},{begin:b("m|qr",n.either(...m,{capture:!0}),/\1/)},{begin:b("m|qr",/\(/,/\)/)},{begin:b("m|qr",/\[/,/\]/)},{begin:b("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,f]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=S,o.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:S}}return wN=t,wN}var DN,M8;function KAe(){if(M8)return DN;M8=1;function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return DN=t,DN}var IN,L8;function XAe(){if(L8)return IN;L8=1;function t(e){const n={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},r={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),r,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,n]}}return IN=t,IN}var MN,k8;function ZAe(){if(k8)return MN;k8=1;function t(e){const n={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},r="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:n},a=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=a;const s=e.inherit(e.TITLE_MODE,{begin:r}),o="(\\(.*\\)\\s*)?\\B[-=]>",c={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(a)}]};return{name:"MoonScript",aliases:["moon"],keywords:n,illegal:/\/\*/,contains:a.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+r+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,c]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[c]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:r+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return MN=t,MN}var LN,P8;function JAe(){if(P8)return LN;P8=1;function t(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}return LN=t,LN}var kN,B8;function ewe(){if(B8)return kN;B8=1;function t(e){const n={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},r={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},i={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},a={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),a,i,n,r]}}return kN=t,kN}var PN,F8;function twe(){if(F8)return PN;F8=1;function t(e){const n=e.regex,r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:n.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},a={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:a.contains,keywords:{section:"upstream location"}},{className:"section",begin:n.concat(e.UNDERSCORE_IDENT_RE+n.lookahead(/\s+\{/)),relevance:0},{begin:n.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return PN=t,PN}var BN,U8;function nwe(){if(U8)return BN;U8=1;function t(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}return BN=t,BN}var FN,j8;function rwe(){if(j8)return FN;j8=1;function t(e){const n={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},r={className:"subst",begin:/\$\{/,end:/\}/,keywords:n},i={className:"char.escape",begin:/''\$/},a={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},s={className:"string",contains:[i,r],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},o=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,a];return r.contains=o,{name:"Nix",aliases:["nixos"],keywords:n,contains:o}}return FN=t,FN}var UN,G8;function iwe(){if(G8)return UN;G8=1;function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return UN=t,UN}var jN,q8;function awe(){if(q8)return jN;q8=1;function t(e){const n=e.regex,r=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],i=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],a=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],s={className:"variable.constant",begin:n.concat(/\$/,n.either(...r))},o={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},c={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},d={className:"variable",begin:/\$+\([\w^.:!-]+\)/},f={className:"params",begin:n.either(...i)},p={className:"keyword",begin:n.concat(/!/,n.either(...a))},m={className:"char.escape",begin:/\$(\\[nrt]|\$)/},g={className:"title.function",begin:/\w+::\w+/},b={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[m,s,o,c,d]},S=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],y=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],E={match:[/Function/,/\s+/,n.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},C={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:S,literal:y},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),C,E,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},b,p,o,c,d,f,g,e.NUMBER_MODE]}}return jN=t,jN}var GN,$8;function swe(){if($8)return GN;$8=1;function t(e){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return GN=t,GN}var qN,z8;function owe(){if(z8)return qN;z8=1;function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return qN=t,qN}var $N,Y8;function lwe(){if(Y8)return $N;Y8=1;function t(e){const n={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},r={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",i,a,n,r]},c={begin:"[*!#%]",relevance:0},d={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,s,a,n,c,d]}}return $N=t,$N}var zN,H8;function cwe(){if(H8)return zN;H8=1;function t(e){const n={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},r=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:n,contains:[a,s]},r,i]},c={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:n,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[r,i,e.C_LINE_COMMENT_MODE,a,s,e.NUMBER_MODE,o,c]}}return zN=t,zN}var YN,V8;function uwe(){if(V8)return YN;V8=1;function t(e){const n=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[n]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}return YN=t,YN}var HN,W8;function dwe(){if(W8)return HN;W8=1;function t(e){const n={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},r={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,n,r]}}return HN=t,HN}var VN,Q8;function fwe(){if(Q8)return VN;Q8=1;function t(e){const n=e.COMMENT("--","$"),r="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="<<\\s*"+r+"\\s*>>",s="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",c="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",d="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",f=d.trim().split(" ").map(function(y){return y.split("|")[0]}).join("|"),p="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",m="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",g="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",S="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(y){return y.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:s+c+o,built_in:p+m+g},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+S+")\\s*\\("},{begin:"\\.("+f+")\\b"},{begin:"\\b("+f+")\\s+PATH\\b",keywords:{keyword:"PATH",type:d.replace("PATH ","")}},{className:"type",begin:"\\b("+f+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:a,relevance:10}]}}return VN=t,VN}var WN,K8;function hwe(){if(K8)return WN;K8=1;function t(e){const n=e.regex,r=/(?![A-Za-z0-9])(?![$])/,i=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),a=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),s={scope:"variable",match:"\\$+"+i},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=e.inherit(e.APOS_STRING_MODE,{illegal:null}),f=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(Y,G)=>{G.data._beginMatch=Y[1]||Y[2]},"on:end":(Y,G)=>{G.data._beginMatch!==Y[1]&&G.ignoreMatch()}},m=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ 	
]`,b={scope:"string",variants:[f,d,p,m]},S={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},y=["false","null","true"],E=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],x=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],R={keyword:E,literal:(Y=>{const G=[];return Y.forEach(F=>{G.push(F),F.toLowerCase()===F?G.push(F.toUpperCase()):G.push(F.toLowerCase())}),G})(y),built_in:x},T=Y=>Y.map(G=>G.replace(/\|\d+$/,"")),N={variants:[{match:[/new/,n.concat(g,"+"),n.concat("(?!",T(x).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},w=n.concat(i,"\\b(?!\\()"),D={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,n.concat(/::/,n.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[a,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},L={scope:"attr",match:n.concat(i,n.lookahead(":"),n.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:R,contains:[L,s,D,e.C_BLOCK_COMMENT_MODE,b,S,N]},M={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",T(E).join("\\b|"),"|",T(x).join("\\b|"),"\\b)"),i,n.concat(g,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push(M);const P=[L,D,e.C_BLOCK_COMMENT_MODE,b,S,N],V={begin:n.concat(/#\[\s*/,a),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:y,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:y,keyword:["new","array"]},contains:["self",...P]},...P,{scope:"meta",match:a}]};return{case_insensitive:!1,keywords:R,contains:[V,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,M,D,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},N,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:R,contains:["self",s,D,e.C_BLOCK_COMMENT_MODE,b,S]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},b,S]}}return WN=t,WN}var QN,X8;function pwe(){if(X8)return QN;X8=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return QN=t,QN}var KN,Z8;function mwe(){if(Z8)return KN;Z8=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return KN=t,KN}var XN,J8;function gwe(){if(J8)return XN;J8=1;function t(e){const n={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},r={className:"string",begin:'"""',end:'"""',relevance:10},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:n,contains:[s,r,i,a,o,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return XN=t,XN}var ZN,e$;function _we(){if(e$)return ZN;e$=1;function t(e){const n=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],r="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",a={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},s=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},c={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},d={className:"literal",begin:/\$(null|true|false)\b/},f={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,c,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},p={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},m={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},g=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[m]}),b={className:"built_in",variants:[{begin:"(".concat(r,")+(-)[\\w\\d]+")}]},S={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},y={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:s,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[c]}]},E={begin:/using\s/,end:/$/,returnBegin:!0,contains:[f,p,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},x={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},C={className:"selector-tag",begin:/@\B/,relevance:0},R={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(a.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},T=[R,g,o,e.NUMBER_MODE,f,p,b,c,d,C],N={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",T,{begin:"("+n.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return R.contains.unshift(N),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:a,contains:T.concat(S,y,E,x,N)}}return ZN=t,ZN}var JN,t$;function bwe(){if(t$)return JN;t$=1;function t(e){const n=e.regex,r=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,a={variants:[{match:n.concat(n.either(...r),n.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:n.concat(/\b(?!for|if|while)/,i,n.lookahead(/\s*\(/)),className:"title.function"}]},s={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,i],className:{2:"property"}},c={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},d=["boolean","byte","char","color","double","float","int","long","short"],f=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...r,...f],type:d},contains:[c,s,a,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return JN=t,JN}var eA,n$;function vwe(){if(n$)return eA;n$=1;function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return eA=t,eA}var tA,r$;function Swe(){if(r$)return tA;r$=1;function t(e){const n={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},r={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},i={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},c={className:"string",begin:/0'(\\'|.)/},d={className:"string",begin:/0'\\s/},p=[n,r,i,{begin:/:-/},a,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,c,d,e.C_NUMBER_MODE];return i.contains=p,a.contains=p,{name:"Prolog",contains:p.concat([{begin:/\.$/}])}}return tA=t,tA}var nA,i$;function Ewe(){if(i$)return nA;i$=1;function t(e){const n="[ \\t\\f]*",r="[ \\t\\f]+",i=n+"[:=]"+n,a=r,s="("+i+"|"+a+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",c={end:s,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+i},{begin:o+a}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:c},{className:"attr",begin:o+n+"$"}]}}return nA=t,nA}var rA,a$;function ywe(){if(a$)return rA;a$=1;function t(e){const n=["package","import","option","optional","required","repeated","group","oneof"],r=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:n,type:r,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return rA=t,rA}var iA,s$;function Twe(){if(s$)return iA;s$=1;function t(e){const n={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},r=e.COMMENT("#","$"),i="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:i}),s={className:"variable",begin:"\\$"+i},o={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[r,s,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,r]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:n,relevance:0,contains:[o,r,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}}return iA=t,iA}var aA,o$;function xwe(){if(o$)return aA;o$=1;function t(e){const n={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},r={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning 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 EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until  UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},n,r]}}return aA=t,aA}var sA,l$;function Cwe(){if(l$)return sA;l$=1;function t(e){const n=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},p={begin:/\{\{/,relevance:0},m={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,p,f]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,p,f]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",b=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,S=`\\b|${i.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${b}))[eE][+-]?(${g})[jJ]?(?=${S})`},{begin:`(${b})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${S})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${S})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${S})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${S})`},{begin:`\\b(${g})[jJ](?=${S})`}]},E={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},x={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",d,y,m,e.HASH_COMMENT_MODE]}]};return f.contains=[m,y,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[d,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},m,E,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[x]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,x,m]}]}}return sA=t,sA}var oA,c$;function Owe(){if(c$)return oA;c$=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return oA=t,oA}var lA,u$;function Rwe(){if(u$)return lA;u$=1;function t(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return lA=t,lA}var cA,d$;function Nwe(){if(d$)return cA;d$=1;function t(e){const n=e.regex,r={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",a={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},c={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:n.concat(i,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:r,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},s,a,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,c,d],illegal:/#/}}return cA=t,cA}var uA,f$;function Awe(){if(f$)return uA;f$=1;function t(e){const n=e.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return uA=t,uA}var dA,h$;function wwe(){if(h$)return dA;h$=1;function t(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return dA=t,dA}var fA,p$;function Dwe(){if(p$)return fA;p$=1;function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}return fA=t,fA}var hA,m$;function Iwe(){if(m$)return hA;m$=1;function t(e){const n="[a-zA-Z-_][^\\n{]+\\{",r={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+n,end:/\}/,keywords:"facet",contains:[r,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+n,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",r,e.HASH_COMMENT_MODE]},{begin:"^"+n,end:/\}/,contains:[r,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}return hA=t,hA}var pA,g$;function Mwe(){if(g$)return pA;g$=1;function t(e){const n="foreach do while for if from to step else on-error and or not in",r="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",i="add remove enable disable set get print export edit find run debug error info warning",a="true false yes no nothing nil null",s="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",o={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},d={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:a,keyword:n+" :"+n.split(" ").join(" :")+" :"+r.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),c,d,o,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[c,d,o,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+i.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return pA=t,pA}var mA,_$;function Lwe(){if(_$)return mA;_$=1;function t(e){const n=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],r=["matrix","float","color","point","normal","vector"],i=["while","for","if","do","return","else","break","extern","continue"],a={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:i,built_in:n,type:r},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return mA=t,mA}var gA,b$;function kwe(){if(b$)return gA;b$=1;function t(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return gA=t,gA}var _A,v$;function Pwe(){if(v$)return _A;v$=1;function t(e){const n=e.regex,r=/(r#)?/,i=n.concat(r,e.UNDERSCORE_IDENT_RE),a=n.concat(r,e.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,n.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],d=["true","false","Some","None","Ok","Err"],f=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],p=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:p,keyword:c,literal:d,built_in:f},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:f,type:p}},{className:"punctuation",begin:"->"},s]}}return _A=t,_A}var bA,S$;function Bwe(){if(S$)return bA;S$=1;function t(e){const n=e.regex,r=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],i=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],a=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:r},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+n.either(...a)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:n.either(...i)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return bA=t,bA}var vA,E$;function Fwe(){if(E$)return vA;E$=1;function t(e){const n=e.regex,r={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},a={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},c={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},d={className:"function",beginKeywords:"def",end:n.lookahead(/[:={\[(\n;]/),contains:[o]},f={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},p={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},m=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],g={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,d,c,e.C_NUMBER_MODE,f,p,...m,g,r]}}return vA=t,vA}var SA,y$;function Uwe(){if(y$)return SA;y$=1;function t(e){const n="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",r="(-|\\+)?\\d+([./]\\d+)?",i=r+"[+\\-]"+r+"i",a={$pattern:n,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"literal",begin:"(#t|#f|#\\\\"+n+"|#\\\\.)"},o={className:"number",variants:[{begin:r,relevance:0},{begin:i,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=e.QUOTE_STRING_MODE,d=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],f={begin:n,relevance:0},p={className:"symbol",begin:"'"+n},m={endsWithParent:!0,relevance:0},g={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,c,o,f,p]}]},b={className:"name",relevance:0,begin:n,keywords:a},y={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[b,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[f]}]},b,m]};return m.contains=[s,o,c,f,p,g,y].concat(d),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),o,c,p,g,y].concat(d)}}return SA=t,SA}var EA,T$;function jwe(){if(T$)return EA;T$=1;function t(e){const n=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:n},e.COMMENT("//","$")].concat(n)}}return EA=t,EA}var yA,x$;function Gwe(){if(x$)return yA;x$=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const f=t(d),p=s,m=a,g="@[a-z-]+",b="and or not only",y={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,f.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},f.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+p.join("|")+")"},y,{begin:/\(/,end:/\)/,contains:[f.CSS_NUMBER_MODE]},f.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[f.BLOCK_COMMENT,y,f.HEXCOLOR,f.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,f.IMPORTANT,f.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:g,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:b,attribute:i.join(" ")},contains:[{begin:g,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},y,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,f.HEXCOLOR,f.CSS_NUMBER_MODE]},f.FUNCTION_DISPATCH]}}return yA=c,yA}var TA,C$;function qwe(){if(C$)return TA;C$=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return TA=t,TA}var xA,O$;function $we(){if(O$)return xA;O$=1;function t(e){const n=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],r=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],i=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+i.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+n.join("|")+")\\s"},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return xA=t,xA}var CA,R$;function zwe(){if(R$)return CA;R$=1;function t(e){const n="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:n+":",relevance:0},e.C_NUMBER_MODE,i,r,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,r,e.C_NUMBER_MODE,i]}]}}return CA=t,CA}var OA,N$;function Ywe(){if(N$)return OA;N$=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"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 with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return OA=t,OA}var RA,A$;function Hwe(){if(A$)return RA;A$=1;function t(e){const n={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","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","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","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","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","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","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","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","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","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","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","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_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","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","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","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","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","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","keys","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","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","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","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","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","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","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","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","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","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","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","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","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","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","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","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:a,built_in:o,literal:s},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,n,r,i,c],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return RA=t,RA}var NA,w$;function Vwe(){if(w$)return NA;w$=1;function t(e){const n=e.regex,r=e.COMMENT("--","$"),i={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},a={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],d=["add","asc","collation","desc","final","first","last","view"],f=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],m=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],b=p,S=[...f,...d].filter(R=>!p.includes(R)),y={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},E={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={begin:n.concat(/\b/,n.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function C(R,{exceptions:T,when:N}={}){const w=N;return T=T||[],R.map(D=>D.match(/\|\d+$/)||T.includes(D)?D:w(D)?`${D}|0`:D)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(S,{when:R=>R.length<3}),literal:s,type:c,built_in:m},contains:[{begin:n.either(...g),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:S.concat(g),literal:s,type:c}},{className:"type",begin:n.either(...o)},x,y,i,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,E]}}return NA=t,NA}var AA,D$;function Wwe(){if(D$)return AA;D$=1;function t(e){const n=e.regex,r=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],a=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],s=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],o=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],c=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),d={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},f=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:r,type:a,keyword:i,built_in:s},contains:[e.C_LINE_COMMENT_MODE,d,e.HASH_COMMENT_MODE,c,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:n.concat(/[<,]\s*/,n.either(...f),/\s*=/),keywords:f},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,n.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:o,begin:n.concat(/\w*/,n.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,n.concat(n.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+n.either(...o)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:n.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return AA=t,AA}var wA,I$;function Qwe(){if(I$)return wA;I$=1;function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ 	]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return wA=t,wA}var DA,M$;function Kwe(){if(M$)return DA;M$=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return DA=t,DA}var IA,L$;function Xwe(){if(L$)return IA;L$=1;const t=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...e,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const f=t(d),p="and or not only",m={className:"variable",begin:"\\$"+d.IDENT_RE},g=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],b="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,f.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+b,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+b,className:"selector-id"},{begin:"\\b("+r.join("|")+")"+b,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+b},{className:"selector-pseudo",begin:"&?:(:)?("+s.join("|")+")"+b},f.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:i.join(" ")},contains:[f.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+g.join("|")+"))\\b"},m,f.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[f.HEXCOLOR,m,d.APOS_STRING_MODE,f.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE]}]},f.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",starts:{end:/;|$/,contains:[f.HEXCOLOR,m,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,f.CSS_NUMBER_MODE,d.C_BLOCK_COMMENT_MODE,f.IMPORTANT,f.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},f.FUNCTION_DISPATCH]}}return IA=c,IA}var MA,k$;function Zwe(){if(k$)return MA;k$=1;function t(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return MA=t,MA}var LA,P$;function Jwe(){if(P$)return LA;P$=1;function t(D){return D?typeof D=="string"?D:D.source:null}function e(D){return n("(?=",D,")")}function n(...D){return D.map(k=>t(k)).join("")}function r(D){const L=D[D.length-1];return typeof L=="object"&&L.constructor===Object?(D.splice(D.length-1,1),L):{}}function i(...D){return"("+(r(D).capture?"":"?:")+D.map(M=>t(M)).join("|")+")"}const a=D=>n(/\b/,D,/\w$/.test(D)?/\b/:/\B/),s=["Protocol","Type"].map(a),o=["init","self"].map(a),c=["Any","Self"],d=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],f=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],g=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],b=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),S=i(b,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=n(b,S,"*"),E=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),x=i(E,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),C=n(E,x,"*"),R=n(/[A-Z]/,x,"*"),T=["attached","autoclosure",n(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,C,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],N=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function w(D){const L={match:/\s+/,relevance:0},k=D.COMMENT("/\\*","\\*/",{contains:["self"]}),M=[D.C_LINE_COMMENT_MODE,k],P={match:[/\./,i(...s,...o)],className:{2:"keyword"}},V={match:n(/\./,i(...d)),relevance:0},Y=d.filter(qt=>typeof qt=="string").concat(["_|0"]),G=d.filter(qt=>typeof qt!="string").concat(c).map(a),F={variants:[{className:"keyword",match:i(...G,...o)}]},q={$pattern:i(/\b\w+/,/#\w+/),keyword:Y.concat(m),literal:f},z=[P,V,F],H={match:n(/\./,i(...g)),relevance:0},U={className:"built_in",match:n(/\b/,i(...g),/(?=\()/)},Q=[H,U],X={match:/->/,relevance:0},te={className:"operator",relevance:0,variants:[{match:y},{match:`\\.(\\.|${S})+`}]},ie=[X,te],fe="([0-9]_*)+",Ce="([0-9a-fA-F]_*)+",Re={className:"number",relevance:0,variants:[{match:`\\b(${fe})(\\.(${fe}))?([eE][+-]?(${fe}))?\\b`},{match:`\\b0x(${Ce})(\\.(${Ce}))?([pP][+-]?(${fe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},_e=(qt="")=>({className:"subst",variants:[{match:n(/\\/,qt,/[0\\tnr"']/)},{match:n(/\\/,qt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Ie=(qt="")=>({className:"subst",match:n(/\\/,qt,/[\t ]*(?:[\r\n]|\r\n)/)}),Oe=(qt="")=>({className:"subst",label:"interpol",begin:n(/\\/,qt,/\(/),end:/\)/}),se=(qt="")=>({begin:n(qt,/"""/),end:n(/"""/,qt),contains:[_e(qt),Ie(qt),Oe(qt)]}),xe=(qt="")=>({begin:n(qt,/"/),end:n(/"/,qt),contains:[_e(qt),Oe(qt)]}),ce={className:"string",variants:[se(),se("#"),se("##"),se("###"),xe(),xe("#"),xe("##"),xe("###")]},je=[D.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[D.BACKSLASH_ESCAPE]}],rt={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:je},_t=qt=>{const tr=n(qt,/\//),nr=n(/\//,qt);return{begin:tr,end:nr,contains:[...je,{scope:"comment",begin:`#(?!.*${nr})`,end:/$/}]}},Te={scope:"regexp",variants:[_t("###"),_t("##"),_t("#"),rt]},Ne={match:n(/`/,C,/`/)},at={className:"variable",match:/\$\d+/},ze={className:"variable",match:`\\$${x}+`},Ze=[Ne,at,ze],Ye={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:N,contains:[...ie,Re,ce]}]}},ve={scope:"keyword",match:n(/@/,i(...T),e(i(/\(/,/\s+/)))},Ue={scope:"meta",match:n(/@/,C)},Ke=[Ye,ve,Ue],yt={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,x,"+")},{className:"type",match:R,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,e(R)),relevance:0}]},Ut={begin:/</,end:/>/,keywords:q,contains:[...M,...z,...Ke,X,yt]};yt.contains.push(Ut);const Nt={match:n(C,/\s*:/),keywords:"_|0",relevance:0},Qt={begin:/\(/,end:/\)/,relevance:0,keywords:q,contains:["self",Nt,...M,Te,...z,...Q,...ie,Re,ce,...Ze,...Ke,yt]},sn={begin:/</,end:/>/,keywords:"repeat each",contains:[...M,yt]},wr={begin:i(e(n(C,/\s*:/)),e(n(C,/\s+/,C,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:C}]},Wn={begin:/\(/,end:/\)/,keywords:q,contains:[wr,...M,...z,...ie,Re,ce,...Ke,yt,Qt],endsParent:!0,illegal:/["']/},er={match:[/(func|macro)/,/\s+/,i(Ne.match,C,y)],className:{1:"keyword",3:"title.function"},contains:[sn,Wn,L],illegal:[/\[/,/%/]},Kt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[sn,Wn,L],illegal:/\[|%/},ci={match:[/operator/,/\s+/,y],className:{1:"keyword",3:"title"}},Dr={begin:[/precedencegroup/,/\s+/,R],className:{1:"keyword",3:"title"},contains:[yt],keywords:[...p,...f],end:/}/},mn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,C,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:q,contains:[sn,...z,{begin:/:/,end:/\{/,keywords:q,contains:[{scope:"title.class.inherited",match:R},...z],relevance:0}]};for(const qt of ce.variants){const tr=qt.contains.find(za=>za.label==="interpol");tr.keywords=q;const nr=[...z,...Q,...ie,Re,ce,...Ze];tr.contains=[...nr,{begin:/\(/,end:/\)/,contains:["self",...nr]}]}return{name:"Swift",keywords:q,contains:[...M,er,Kt,mn,ci,Dr,{beginKeywords:"import",end:/$/,contains:[...M],relevance:0},Te,...z,...Q,...ie,Re,ce,...Ze,...Ke,yt,Qt]}}return LA=w,LA}var kA,B$;function eDe(){if(B$)return kA;B$=1;function t(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return kA=t,kA}var PA,F$;function tDe(){if(F$)return PA;F$=1;function t(e){const n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,a]},o=e.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},b={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},S={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},y=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},b,S,s],E=[...y];return E.pop(),E.push(o),g.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}return PA=t,PA}var BA,U$;function nDe(){if(U$)return BA;U$=1;function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return BA=t,BA}var FA,j$;function rDe(){if(j$)return FA;j$=1;function t(e){const n=e.regex,r=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:n.concat(/\$/,n.optional(/::/),r,"(::",r,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}}return FA=t,FA}var UA,G$;function iDe(){if(G$)return UA;G$=1;function t(e){const n=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:n,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...n,"set","list","map"]},end:">",contains:["self"]}]}}return UA=t,UA}var jA,q$;function aDe(){if(q$)return jA;q$=1;function t(e){const n={className:"number",begin:"[1-9][0-9]*",relevance:0},r={className:"symbol",begin:":[^\\]]+"},i={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",n,r]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",n,e.QUOTE_STRING_MODE,r]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[i,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return jA=t,jA}var GA,$$;function sDe(){if($$)return GA;$$=1;function t(e){const n=e.regex,r=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],i=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let a=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];a=a.concat(a.map(S=>`end${S}`));const s={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:"number",match:/\d+/},c={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[s,o]},d={beginKeywords:r.join(" "),keywords:{name:r},relevance:0,contains:[c]},f={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:i}]},p=(S,{relevance:y})=>({beginScope:{1:"template-tag",3:"name"},relevance:y||2,endScope:"template-tag",begin:[/\{%/,/\s*/,n.either(...S)],end:/%\}/,keywords:"in",contains:[f,d,s,o]}),m=/[a-z_]+/,g=p(a,{relevance:2}),b=p([m],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),g,b,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",f,d,s,o]}]}}return GA=t,GA}var qA,z$;function oDe(){if(z$)return qA;z$=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],o=[].concat(a,r,i);function c(f){const p=f.regex,m=(_e,{after:Ie})=>{const Oe="</"+_e[0].slice(1);return _e.input.indexOf(Oe,Ie)!==-1},g=t,b={begin:"<>",end:"</>"},S=/<[A-Za-z0-9\\._:-]+\s*\/>/,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(_e,Ie)=>{const Oe=_e[0].length+_e.index,se=_e.input[Oe];if(se==="<"||se===","){Ie.ignoreMatch();return}se===">"&&(m(_e,{after:Oe})||Ie.ignoreMatch());let xe;const ce=_e.input.substring(Oe);if(xe=ce.match(/^\s*=/)){Ie.ignoreMatch();return}if((xe=ce.match(/^\s+extends\s+/))&&xe.index===0){Ie.ignoreMatch();return}}},E={$pattern:t,keyword:e,literal:n,built_in:o,"variable.language":s},x="[0-9](_?[0-9])*",C=`\\.(${x})`,R="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",T={className:"number",variants:[{begin:`(\\b(${R})((${C})|\\.)?|(${C}))[eE][+-]?(${x})\\b`},{begin:`\\b(${R})\\b((${C})\\b|\\.)?|(${C})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},N={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},w={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,N],subLanguage:"xml"}},D={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,N],subLanguage:"css"}},L={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,N],subLanguage:"graphql"}},k={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,N]},P={className:"comment",variants:[f.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},V=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,w,D,L,k,{match:/\$\d+/},T];N.contains=V.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(V)});const Y=[].concat(P,N.contains),G=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:E,contains:["self"].concat(Y)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:G},q={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,p.concat(g,"(",p.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},z={relevance:0,match:p.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},H={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},Q={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function X(_e){return p.concat("(?!",_e.join("|"),")")}const te={match:p.concat(/\b/,X([...a,"super","import"].map(_e=>`${_e}\\s*\\(`)),g,p.lookahead(/\s*\(/)),className:"title.function",relevance:0},ie={begin:p.concat(/\./,p.lookahead(p.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},Ce="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",Re={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,p.lookahead(Ce)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:z},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),H,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,w,D,L,k,P,{match:/\$\d+/},T,z,{className:"attr",begin:g+p.lookahead(":"),relevance:0},Re,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[P,f.REGEXP_MODE,{className:"function",begin:Ce,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:b.begin,end:b.end},{match:S},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,f.inherit(f.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},ie,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},te,Q,q,fe,{match:/\$[(.]/}]}}function d(f){const p=c(f),m=t,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],b={begin:[/namespace/,/\s+/,f.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},S={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[p.exports.CLASS_REFERENCE]},y={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},E=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],x={$pattern:t,keyword:e.concat(E),literal:n,built_in:o.concat(g),"variable.language":s},C={className:"meta",begin:"@"+m},R=(w,D,L)=>{const k=w.contains.findIndex(M=>M.label===D);if(k===-1)throw new Error("can not find mode to replace");w.contains.splice(k,1,L)};Object.assign(p.keywords,x),p.exports.PARAMS_CONTAINS.push(C);const T=p.contains.find(w=>w.className==="attr");p.exports.PARAMS_CONTAINS.push([p.exports.CLASS_REFERENCE,T]),p.contains=p.contains.concat([C,b,S]),R(p,"shebang",f.SHEBANG()),R(p,"use_strict",y);const N=p.contains.find(w=>w.label==="func.def");return N.relevance=0,Object.assign(p,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),p}return qA=d,qA}var $A,Y$;function lDe(){if(Y$)return $A;Y$=1;function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return $A=t,$A}var zA,H$;function cDe(){if(H$)return zA;H$=1;function t(e){const n=e.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:n.concat(/# */,n.either(s,a),/ *#/)},{begin:n.concat(/# */,c,/ *#/)},{begin:n.concat(/# */,o,/ *#/)},{begin:n.concat(/# */,n.either(s,a),/ +/,n.either(o,c),/ *#/)}]},f={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},m=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,i,d,f,p,m,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return zA=t,zA}var YA,V$;function uDe(){if(V$)return YA;V$=1;function t(e){const n=e.regex,r=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],i=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],a={begin:n.concat(n.either(...r),"\\s*\\("),relevance:0,keywords:{built_in:r}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:i,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[a,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return YA=t,YA}var HA,W$;function dDe(){if(W$)return HA;W$=1;function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return HA=t,HA}var VA,Q$;function fDe(){if(Q$)return VA;Q$=1;function t(e){const n=e.regex,r={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","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","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},i=["__FILE__","__LINE__"],a=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:r,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:n.concat(/`/,n.either(...i))},{scope:"meta",begin:n.concat(/`/,n.either(...a)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:a}]}}return VA=t,VA}var WA,K$;function hDe(){if(K$)return WA;K$=1;function t(e){const n="\\d(_|\\d)*",r="[eE][-+]?"+n,i=n+"(\\."+n+")?("+r+")?",a="\\w+",o="\\b("+(n+"#"+a+"(\\."+a+")?#("+r+")?")+"|"+i+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:o,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}return WA=t,WA}var QA,X$;function pDe(){if(X$)return QA;X$=1;function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return QA=t,QA}var KA,Z$;function mDe(){if(Z$)return KA;Z$=1;function t(e){e.regex;const n=e.COMMENT(/\(;/,/;\)/);n.contains.push("self");const r=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\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/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},f={className:"keyword",match:/\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|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,a,e.QUOTE_STRING_MODE,d,f,c]}}return KA=t,KA}var XA,J$;function gDe(){if(J$)return XA;J$=1;function t(e){const n=e.regex,r=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],a=["true","false","null"],s=["this","super"],o=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],c=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],d={relevance:0,match:n.concat(/\b(?!(if|while|for|else|super)\b)/,r,/(?=\s*[({])/),className:"title.function"},f={match:n.concat(n.either(n.concat(/\b(?!(if|while|for|else|super)\b)/,r),n.either(...c)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:r}]}]}},p={variants:[{match:[/class\s+/,r,/\s+is\s+/,r]},{match:[/class\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},m={relevance:0,match:n.either(...c),className:"operator"},g={className:"string",begin:/"""/,end:/"""/},b={className:"property",begin:n.concat(/\./,n.lookahead(r)),end:r,excludeBegin:!0,relevance:0},S={relevance:0,match:n.concat(/\b_/,r),scope:"variable"},y={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:o}},E=e.C_NUMBER_MODE,x={match:[r,/\s*/,/=/,/\s*/,/\(/,r,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},C=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),R={scope:"subst",begin:/%\(/,end:/\)/,contains:[E,y,d,S,m]},T={scope:"string",begin:/"/,end:/"/,contains:[R,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};R.contains.push(T);const N=[...i,...s,...a],w={relevance:0,match:n.concat("\\b(?!",N.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":s,literal:a},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:a},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},E,T,g,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,p,x,f,d,m,S,b,w]}}return XA=t,XA}var ZA,e5;function _De(){if(e5)return ZA;e5=1;function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0  xmm1  xmm2  xmm3  xmm4  xmm5  xmm6  xmm7  xmm8  xmm9 xmm10  xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0  ymm1  ymm2  ymm3  ymm4  ymm5  ymm6  ymm7  ymm8  ymm9 ymm10  ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0  zmm1  zmm2  zmm3  zmm4  zmm5  zmm6  zmm7  zmm8  zmm9 zmm10  zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__  __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__  __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return ZA=t,ZA}var JA,t5;function bDe(){if(t5)return JA;t5=1;function t(e){const n=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],r=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],i=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],s={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:n,literal:["true","false","nil"],built_in:r.concat(i)},o={className:"string",begin:'"',end:'"',illegal:"\\n"},c={className:"string",begin:"'",end:"'",illegal:"\\n"},d={className:"string",begin:"<<",end:">>"},f={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},p={beginKeywords:"import",end:"$",keywords:s,contains:[o]},m={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:s}})]};return{name:"XL",aliases:["tao"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,c,d,m,p,f,e.NUMBER_MODE]}}return JA=t,JA}var ew,n5;function vDe(){if(n5)return ew;n5=1;function t(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return ew=t,ew}var tw,r5;function SDe(){if(r5)return tw;r5=1;function t(e){const n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},a="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[r,{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:["self",e.C_BLOCK_COMMENT_MODE,n,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},r]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[r]},{beginKeywords:"use",end:/;/,contains:[r]},{begin:/=>/},n,i]}}return tw=t,tw}var nw,i5;function EDe(){if(i5)return nw;i5=1;var t=z1e();return t.registerLanguage("1c",Y1e()),t.registerLanguage("abnf",H1e()),t.registerLanguage("accesslog",V1e()),t.registerLanguage("actionscript",W1e()),t.registerLanguage("ada",Q1e()),t.registerLanguage("angelscript",K1e()),t.registerLanguage("apache",X1e()),t.registerLanguage("applescript",Z1e()),t.registerLanguage("arcade",J1e()),t.registerLanguage("arduino",eNe()),t.registerLanguage("armasm",tNe()),t.registerLanguage("xml",nNe()),t.registerLanguage("asciidoc",rNe()),t.registerLanguage("aspectj",iNe()),t.registerLanguage("autohotkey",aNe()),t.registerLanguage("autoit",sNe()),t.registerLanguage("avrasm",oNe()),t.registerLanguage("awk",lNe()),t.registerLanguage("axapta",cNe()),t.registerLanguage("bash",uNe()),t.registerLanguage("basic",dNe()),t.registerLanguage("bnf",fNe()),t.registerLanguage("brainfuck",hNe()),t.registerLanguage("c",pNe()),t.registerLanguage("cal",mNe()),t.registerLanguage("capnproto",gNe()),t.registerLanguage("ceylon",_Ne()),t.registerLanguage("clean",bNe()),t.registerLanguage("clojure",vNe()),t.registerLanguage("clojure-repl",SNe()),t.registerLanguage("cmake",ENe()),t.registerLanguage("coffeescript",yNe()),t.registerLanguage("coq",TNe()),t.registerLanguage("cos",xNe()),t.registerLanguage("cpp",CNe()),t.registerLanguage("crmsh",ONe()),t.registerLanguage("crystal",RNe()),t.registerLanguage("csharp",NNe()),t.registerLanguage("csp",ANe()),t.registerLanguage("css",wNe()),t.registerLanguage("d",DNe()),t.registerLanguage("markdown",INe()),t.registerLanguage("dart",MNe()),t.registerLanguage("delphi",LNe()),t.registerLanguage("diff",kNe()),t.registerLanguage("django",PNe()),t.registerLanguage("dns",BNe()),t.registerLanguage("dockerfile",FNe()),t.registerLanguage("dos",UNe()),t.registerLanguage("dsconfig",jNe()),t.registerLanguage("dts",GNe()),t.registerLanguage("dust",qNe()),t.registerLanguage("ebnf",$Ne()),t.registerLanguage("elixir",zNe()),t.registerLanguage("elm",YNe()),t.registerLanguage("ruby",HNe()),t.registerLanguage("erb",VNe()),t.registerLanguage("erlang-repl",WNe()),t.registerLanguage("erlang",QNe()),t.registerLanguage("excel",KNe()),t.registerLanguage("fix",XNe()),t.registerLanguage("flix",ZNe()),t.registerLanguage("fortran",JNe()),t.registerLanguage("fsharp",eAe()),t.registerLanguage("gams",tAe()),t.registerLanguage("gauss",nAe()),t.registerLanguage("gcode",rAe()),t.registerLanguage("gherkin",iAe()),t.registerLanguage("glsl",aAe()),t.registerLanguage("gml",sAe()),t.registerLanguage("go",oAe()),t.registerLanguage("golo",lAe()),t.registerLanguage("gradle",cAe()),t.registerLanguage("graphql",uAe()),t.registerLanguage("groovy",dAe()),t.registerLanguage("haml",fAe()),t.registerLanguage("handlebars",hAe()),t.registerLanguage("haskell",pAe()),t.registerLanguage("haxe",mAe()),t.registerLanguage("hsp",gAe()),t.registerLanguage("http",_Ae()),t.registerLanguage("hy",bAe()),t.registerLanguage("inform7",vAe()),t.registerLanguage("ini",SAe()),t.registerLanguage("irpf90",EAe()),t.registerLanguage("isbl",yAe()),t.registerLanguage("java",TAe()),t.registerLanguage("javascript",xAe()),t.registerLanguage("jboss-cli",CAe()),t.registerLanguage("json",OAe()),t.registerLanguage("julia",RAe()),t.registerLanguage("julia-repl",NAe()),t.registerLanguage("kotlin",AAe()),t.registerLanguage("lasso",wAe()),t.registerLanguage("latex",DAe()),t.registerLanguage("ldif",IAe()),t.registerLanguage("leaf",MAe()),t.registerLanguage("less",LAe()),t.registerLanguage("lisp",kAe()),t.registerLanguage("livecodeserver",PAe()),t.registerLanguage("livescript",BAe()),t.registerLanguage("llvm",FAe()),t.registerLanguage("lsl",UAe()),t.registerLanguage("lua",jAe()),t.registerLanguage("makefile",GAe()),t.registerLanguage("mathematica",qAe()),t.registerLanguage("matlab",$Ae()),t.registerLanguage("maxima",zAe()),t.registerLanguage("mel",YAe()),t.registerLanguage("mercury",HAe()),t.registerLanguage("mipsasm",VAe()),t.registerLanguage("mizar",WAe()),t.registerLanguage("perl",QAe()),t.registerLanguage("mojolicious",KAe()),t.registerLanguage("monkey",XAe()),t.registerLanguage("moonscript",ZAe()),t.registerLanguage("n1ql",JAe()),t.registerLanguage("nestedtext",ewe()),t.registerLanguage("nginx",twe()),t.registerLanguage("nim",nwe()),t.registerLanguage("nix",rwe()),t.registerLanguage("node-repl",iwe()),t.registerLanguage("nsis",awe()),t.registerLanguage("objectivec",swe()),t.registerLanguage("ocaml",owe()),t.registerLanguage("openscad",lwe()),t.registerLanguage("oxygene",cwe()),t.registerLanguage("parser3",uwe()),t.registerLanguage("pf",dwe()),t.registerLanguage("pgsql",fwe()),t.registerLanguage("php",hwe()),t.registerLanguage("php-template",pwe()),t.registerLanguage("plaintext",mwe()),t.registerLanguage("pony",gwe()),t.registerLanguage("powershell",_we()),t.registerLanguage("processing",bwe()),t.registerLanguage("profile",vwe()),t.registerLanguage("prolog",Swe()),t.registerLanguage("properties",Ewe()),t.registerLanguage("protobuf",ywe()),t.registerLanguage("puppet",Twe()),t.registerLanguage("purebasic",xwe()),t.registerLanguage("python",Cwe()),t.registerLanguage("python-repl",Owe()),t.registerLanguage("q",Rwe()),t.registerLanguage("qml",Nwe()),t.registerLanguage("r",Awe()),t.registerLanguage("reasonml",wwe()),t.registerLanguage("rib",Dwe()),t.registerLanguage("roboconf",Iwe()),t.registerLanguage("routeros",Mwe()),t.registerLanguage("rsl",Lwe()),t.registerLanguage("ruleslanguage",kwe()),t.registerLanguage("rust",Pwe()),t.registerLanguage("sas",Bwe()),t.registerLanguage("scala",Fwe()),t.registerLanguage("scheme",Uwe()),t.registerLanguage("scilab",jwe()),t.registerLanguage("scss",Gwe()),t.registerLanguage("shell",qwe()),t.registerLanguage("smali",$we()),t.registerLanguage("smalltalk",zwe()),t.registerLanguage("sml",Ywe()),t.registerLanguage("sqf",Hwe()),t.registerLanguage("sql",Vwe()),t.registerLanguage("stan",Wwe()),t.registerLanguage("stata",Qwe()),t.registerLanguage("step21",Kwe()),t.registerLanguage("stylus",Xwe()),t.registerLanguage("subunit",Zwe()),t.registerLanguage("swift",Jwe()),t.registerLanguage("taggerscript",eDe()),t.registerLanguage("yaml",tDe()),t.registerLanguage("tap",nDe()),t.registerLanguage("tcl",rDe()),t.registerLanguage("thrift",iDe()),t.registerLanguage("tp",aDe()),t.registerLanguage("twig",sDe()),t.registerLanguage("typescript",oDe()),t.registerLanguage("vala",lDe()),t.registerLanguage("vbnet",cDe()),t.registerLanguage("vbscript",uDe()),t.registerLanguage("vbscript-html",dDe()),t.registerLanguage("verilog",fDe()),t.registerLanguage("vhdl",hDe()),t.registerLanguage("vim",pDe()),t.registerLanguage("wasm",mDe()),t.registerLanguage("wren",gDe()),t.registerLanguage("x86asm",_De()),t.registerLanguage("xl",bDe()),t.registerLanguage("xquery",vDe()),t.registerLanguage("zephir",SDe()),t.HighlightJS=t,t.default=t,nw=t,nw}var yDe=EDe();const a5=nl(yDe);function HK({copied:t,style:e,...n}){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:me(18),height:me(18),...e},viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...n,children:t?l.jsxs(l.Fragment,{children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M5 12l5 5l10 -10"})]}):l.jsxs(l.Fragment,{children:[l.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),l.jsx("path",{d:"M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"}),l.jsx("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"})]})})}HK.displayName="@mantine/code-highlight/CopyIcon";var s5={code:"m_5caae6d3",pre:"m_2c47c4fd",header:"m_e58679f3",controls:"m_be7e9c9c",copy:"m_5caae85b",control:"m_d498bab7",file:"m_5cac2e62",files:"m_38d99e51",codeWrapper:"m_9f507240",showCodeButton:"m_c9378bc2",root:"m_5cb1b9c8",fileIcon:"m_b46cddfb"},TDe={theme:"m_1f5e827e"};function xDe({code:t,language:e,highlightOnClient:n}){const r=a5.getLanguage(e)?e:"plaintext",i=()=>a5.highlight(t.trim(),{language:r}).value,[a,s]=I.useState(!n),[o,c]=I.useState(n?t:i()),d=()=>a?{dangerouslySetInnerHTML:{__html:o}}:{children:t.trim()};return I.useEffect(()=>{n&&(c(i()),s(!0))},[]),I.useEffect(()=>{c(i())},[t]),d}const VK={...s5,root:Tr(s5.root,TDe.theme)},CDe={copyLabel:"Copy code",copiedLabel:"Copied",language:"tsx",withCopyButton:!0},iP=Le((t,e)=>{const n=Ee("CodeHighlight",CDe,t),{classNames:r,className:i,style:a,styles:s,unstyled:o,vars:c,children:d,code:f,copiedLabel:p,copyLabel:m,language:g,withCopyButton:b,highlightOnClient:S,...y}=n,E=ct({name:"CodeHighlight",props:n,classes:VK,className:i,style:a,classNames:r,styles:s,unstyled:o}),x=xDe({code:f,language:g,highlightOnClient:S});return l.jsxs(Se,{...E("root"),ref:e,...y,dir:"ltr",children:[b&&l.jsx(BM,{value:f.trim(),children:({copied:C,copy:R})=>l.jsx(bi,{label:C?p:m,fz:"sm",position:"left",children:l.jsx(jr,{onClick:R,variant:"none",...E("copy"),children:l.jsx(HK,{copied:C})})})}),l.jsx(Yc,{type:"hover",dir:"ltr",offsetScrollbars:!1,children:l.jsx("pre",{...E("pre"),children:l.jsx("code",{...E("code"),...x()})})})]})});iP.displayName="@mantine/core/CodeHighlight";iP.classes=VK;function ODe(){const{data:{data:{yaml:t}}}=Fi({path:"/status/config"});return l.jsx(iP,{code:t,language:"yaml",miw:"50vw",w:"fit-content",maw:"calc(100vw - 75px)",mx:"auto",mt:"xs"})}const RDe=()=>l.jsx(G0,{children:l.jsxs(Jf,{title:"Prometheus Agent",icon:hle,children:[l.jsxs(ht,{p:"md",children:["This Prometheus instance is running in ",l.jsx("strong",{children:"agent mode"}),". In this mode, Prometheus is only used to scrape discovered targets and forward the scraped metrics to remote write endpoints."]}),l.jsx(ht,{p:"md",children:"Some features are not available in this mode, such as querying and alerting."})]})}),NDe=()=>{const{colorScheme:t,setColorScheme:e}=W5(),n={style:{width:me(20),height:me(20),display:"block"},stroke:1.5};return l.jsx(jr,{color:"gray",title:`Switch to ${t==="light"?"dark":t==="dark"?"browser-preferred":"light"} theme`,"aria-label":`Switch to ${t==="light"?"dark":t==="dark"?"browser-preferred":"light"} theme`,size:32,onClick:()=>e(t==="light"?"dark":t==="dark"?"auto":"light"),children:t==="light"?l.jsx(xle,{...n}):t==="dark"?l.jsx(Tle,{...n}):l.jsx(Ele,{...n})})},ADe=()=>{const{useLocalTime:t,enableQueryHistory:e,enableAutocomplete:n,enableSyntaxHighlighting:r,enableLinter:i,showAnnotations:a,ruleGroupsPerPage:s,alertGroupsPerPage:o}=yi(),c=Qc();return l.jsxs(li,{position:"bottom",withArrow:!0,shadow:"md",children:[l.jsx(li.Target,{children:l.jsx(jr,{color:"gray",title:"Settings","aria-label":"Settings",size:32,children:l.jsx(fle,{style:Zp})})}),l.jsx(li.Dropdown,{children:l.jsxs(mt,{align:"flex-start",children:[l.jsxs(Mn,{children:[l.jsx(Xh,{p:"md",legend:"Global settings",children:l.jsx($o,{checked:t,label:"Use local time",onChange:d=>c(Cl({useLocalTime:d.currentTarget.checked}))})}),l.jsx(Xh,{p:"md",legend:"Query page settings",children:l.jsxs(Mn,{children:[l.jsx($o,{checked:e,label:"Enable query history",onChange:d=>c(Cl({enableQueryHistory:d.currentTarget.checked}))}),l.jsx($o,{checked:n,label:"Enable autocomplete",onChange:d=>c(Cl({enableAutocomplete:d.currentTarget.checked}))}),l.jsx($o,{checked:r,label:"Enable syntax highlighting",onChange:d=>c(Cl({enableSyntaxHighlighting:d.currentTarget.checked}))}),l.jsx($o,{checked:i,label:"Enable linter",onChange:d=>c(Cl({enableLinter:d.currentTarget.checked}))})]})})]}),l.jsxs(Mn,{children:[l.jsx(Xh,{p:"md",legend:"Alerts page settings",children:l.jsxs(Mn,{children:[l.jsx($o,{checked:a,label:"Show expanded annotations",onChange:d=>c(Cl({showAnnotations:d.currentTarget.checked}))}),l.jsx(kS,{min:1,allowDecimal:!1,label:"Alert groups per page",value:o,onChange:d=>{typeof d=="number"&&c(Cl({alertGroupsPerPage:d}))}})]})}),l.jsx(Xh,{p:"md",legend:"Rules page settings",children:l.jsx(kS,{min:1,allowDecimal:!1,label:"Rule groups per page",value:s,onChange:d=>{typeof d=="number"&&c(Cl({ruleGroupsPerPage:d}))}})})]})]})})]})},o5="is starting up...",wDe="is shutting down...",DDe="is not ready...",IDe=()=>{const{pathPrefix:t,agentMode:e}=yi(),n=Qc(),[r,i]=I.useState(0),[a,s]=I.useState(""),{data:o}=WH({queryKey:["ready",r],retry:!1,refetchOnWindowFocus:!1,gcTime:0,queryFn:async({signal:p})=>{try{const m=await fetch(`${t}/-/ready`,{cache:"no-store",credentials:"same-origin",signal:p});switch(m.status){case 200:return s(""),!0;case 503:return m.headers.get("X-Prometheus-Stopping")==="true"?s(wDe):s(o5),!1;default:throw new Error(m.statusText)}}catch{throw new Error("Unexpected error while fetching ready status")}}}),c=a===o5,{data:d,isSuccess:f}=Fi({path:"/status/walreplay",key:["walreplay",r]});return I.useEffect(()=>{o&&n(Cl({ready:o}))},[o,n]),I.useEffect(()=>{const p=setInterval(()=>i(m=>m+1),1e3);return()=>clearInterval(p)},[]),l.jsx(Lt,{color:"yellow",title:"Prometheus "+(e&&"Agent "||"")+(a||DDe),icon:l.jsx(na,{}),maw:500,mx:"auto",mt:"lg",children:c&&f&&d&&l.jsxs(Mn,{children:[l.jsxs("strong",{children:["Replaying WAL (",d.data.current,"/",d.data.max,")"]}),l.jsx(bm,{size:"xl",animated:!0,color:"yellow",value:(d.data.current-d.data.min+1)/(d.data.max-d.data.min+1)*100})]})})},qv=({children:t})=>{const{ready:e}=yi();return e?l.jsx(l.Fragment,{children:t}):l.jsx(IDe,{})},MDe={notifications:[],isConnectionError:!1},WK=I.createContext(MDe),LDe=()=>I.useContext(WK);async function kDe(t,e){const n=t.getReader();let r;for(;!(r=await n.read()).done;)e(r.value)}function PDe(t){let e,n,r,i=!1;return function(s){e===void 0?(e=s,n=0,r=-1):e=FDe(e,s);const o=e.length;let c=0;for(;n<o;){i&&(e[n]===10&&(c=++n),i=!1);let d=-1;for(;n<o&&d===-1;++n)switch(e[n]){case 58:r===-1&&(r=n-c);break;case 13:i=!0;case 10:d=n;break}if(d===-1)break;t(e.subarray(c,d),r),c=n,r=-1}c===o?e=void 0:c!==0&&(e=e.subarray(c),n-=c)}}function BDe(t,e,n){let r=l5();const i=new TextDecoder;return function(s,o){if(s.length===0)n==null||n(r),r=l5();else if(o>0){const c=i.decode(s.subarray(0,o)),d=o+(s[o+1]===32?2:1),f=i.decode(s.subarray(d));switch(c){case"data":r.data=r.data?r.data+`
`+f:f;break;case"event":r.event=f;break;case"id":t(r.id=f);break;case"retry":const p=parseInt(f,10);isNaN(p)||e(r.retry=p);break}}}}function FDe(t,e){const n=new Uint8Array(t.length+e.length);return n.set(t),n.set(e,t.length),n}function l5(){return{data:"",event:"",id:"",retry:void 0}}var UDe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const vI="text/event-stream",jDe=1e3,c5="last-event-id";function GDe(t,e){var{signal:n,headers:r,onopen:i,onmessage:a,onclose:s,onerror:o,openWhenHidden:c,fetch:d}=e,f=UDe(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((p,m)=>{const g=Object.assign({},r);g.accept||(g.accept=vI);let b;function S(){b.abort(),document.hidden||T()}c||document.addEventListener("visibilitychange",S);let y=jDe,E=0;function x(){document.removeEventListener("visibilitychange",S),window.clearTimeout(E),b.abort()}n==null||n.addEventListener("abort",()=>{x(),p()});const C=d??window.fetch,R=i??qDe;async function T(){var N;b=new AbortController;try{const w=await C(t,Object.assign(Object.assign({},f),{headers:g,signal:b.signal}));await R(w),await kDe(w.body,PDe(BDe(D=>{D?g[c5]=D:delete g[c5]},D=>{y=D},a))),s==null||s(),x(),p()}catch(w){if(!b.signal.aborted)try{const D=(N=o==null?void 0:o(w))!==null&&N!==void 0?N:y;window.clearTimeout(E),E=window.setTimeout(T,D)}catch(D){x(),m(D)}}}T()})}function qDe(t){const e=t.headers.get("content-type");if(!(e!=null&&e.startsWith(vI)))throw new Error(`Expected content-type to be ${vI}, Actual: ${e}`)}const $De=({children:t})=>{const{pathPrefix:e}=yi(),[n,r]=I.useState([]),[i,a]=I.useState(!1),[s,o]=I.useState(!1),{data:c,isError:d}=md({path:"/notifications",enabled:s,refetchInterval:1e4});return I.useEffect(()=>{c&&c.data&&r(c.data),a(d)},[c,d]),I.useEffect(()=>{const f=new AbortController;return GDe(`${e}/api/v1/notifications/live`,{signal:f.signal,async onopen(p){if(p.ok)p.status===200?(r([]),a(!1)):p.status===204&&(f.abort(),o(!0));else throw a(!0),new Error(`Unexpected response: ${p.status} ${p.statusText}`)},onmessage(p){const m=JSON.parse(p.data);r(g=>{const b=[...g.filter(S=>S.text!==m.text)];return m.active&&b.push(m),b})},onclose(){throw new Error("Server closed the connection")},onerror(){return a(!0),5e3}}),()=>{f.abort()}},[e]),l.jsx(WK.Provider,{value:{notifications:n,isConnectionError:i},children:t})},zDe=()=>{const{notifications:t,isConnectionError:e}=LDe(),{useLocalTime:n}=yi();return t.length===0&&!e?null:l.jsx(FM,{color:"red",size:16,label:e?"!":t.length,children:l.jsxs(li,{position:"bottom-end",shadow:"md",withArrow:!0,children:[l.jsx(li.Target,{children:l.jsx(jr,{color:"gray",title:"Notifications","aria-label":"Notifications",size:32,children:l.jsx(ile,{style:Zp})})}),l.jsx(li.Dropdown,{children:l.jsxs(Mn,{gap:"xs",children:[l.jsx(ht,{fw:700,size:"xs",c:"dimmed",ta:"center",children:"Notifications"}),l.jsx(Yc.Autosize,{mah:200,children:e?l.jsx(Ur,{p:"xs",color:"red",children:l.jsxs(mt,{wrap:"nowrap",children:[l.jsx(sle,{color:"red",style:{width:me(20),height:me(20)}}),l.jsxs(Mn,{gap:"0",children:[l.jsx(ht,{size:"sm",fw:500,children:"Real-time notifications interrupted."}),l.jsx(ht,{size:"xs",c:"dimmed",children:"Please refresh the page or check your connection."})]})]})}):t.length===0?l.jsx(ht,{ta:"center",c:"dimmed",children:"No notifications"}):t.map((r,i)=>l.jsx(Ur,{p:"xs",children:l.jsxs(mt,{wrap:"nowrap",align:"flex-start",children:[l.jsx(na,{color:"red",style:{width:me(20),height:me(20),marginTop:me(3)}}),l.jsxs(Mn,{maw:250,gap:5,children:[l.jsx(ht,{size:"sm",fw:500,children:r.text}),l.jsx(ht,{size:"xs",c:"dimmed",children:Bf(new Date(r.date).valueOf()/1e3,n)})]})]})},i))})]})})]})})},YDe=({children:t})=>{var e;const{navigator:n}=I.useContext(go),r=hL(),i=(e=I.useContext(nh))==null?void 0:e.router,a=Vl();return t({replace(o){r(o.search||"?",{replace:!0,state:o.state})},push(o){r(o.search||"?",{replace:!1,state:o.state})},get location(){var o,c,d;return(d=(c=(o=i==null?void 0:i.state)==null?void 0:o.location)!=null?c:n==null?void 0:n.location)!=null?d:a}})},QK="serviceDiscovery.collapsedPools",HDe={collapsedPools:wo(QK,[]),showLimitAlert:!1},KK=Dy({name:"serviceDiscoveryPage",initialState:HDe,reducers:{setCollapsedPools:(t,{payload:e})=>{t.collapsedPools=e},setShowLimitAlert:(t,{payload:e})=>{t.showLimitAlert=e}}}),{setCollapsedPools:aP,setShowLimitAlert:SI}=KK.actions,VDe=KK.reducer,WDe=new ST({shouldSort:!0,indexedKeys:["labels","discoveredLabels",["discoveredLabels",/.*/],["labels",/.*/]]}),QDe=new ST({shouldSort:!0,indexedKeys:["discoveredLabels",["discoveredLabels",/.*/]]}),KDe=(t,e,n,r,i)=>{const a={};for(const c of t)a[c]={targets:[],active:0,total:0};for(const c of e){const d=a[c.scrapePool];if(!d)throw new Error("Received target information for an unknown scrape pool, likely the list of scrape pools has changed. Please reload the page.");d.active++,d.total++}const s=i.length!==0&&!i.includes("active")?[]:r===""?e:WDe.filter(r,e).map(c=>c.original);for(const c of s)a[c.scrapePool].targets.push({discoveredLabels:c.discoveredLabels,labels:c.labels,isDropped:!1});for(const c of n){const d=a[c.scrapePool];if(!d)throw new Error("Received target information for an unknown scrape pool, likely the list of scrape pools has changed. Please reload the page.");d.total++}const o=i.length!==0&&!i.includes("dropped")?[]:r===""?n:QDe.filter(r,n).map(c=>c.original);for(const c of o)a[c.scrapePool].targets.push({discoveredLabels:c.discoveredLabels,isDropped:!0,labels:{}});return a},XDe=({poolNames:t,selectedPool:e,stateFilter:n,searchFilter:r})=>{const i=Qc(),[a,s]=Ko("showEmptyPools",Bc(zRe,!0)),{data:{data:{activeTargets:o,droppedTargets:c}}}=Fi({path:"/targets",params:{scrapePool:e===null?"":e}}),{collapsedPools:d,showLimitAlert:f}=Wl(S=>S.serviceDiscoveryPage),[p]=FE(r,250),m=I.useMemo(()=>KDe(e?[e]:t,o,c,p,n),[e,t,o,c,p,n]),g=Object.keys(m),b=a?g:g.filter(S=>m[S].targets.length!==0);return l.jsxs(Mn,{children:[g.length===0?l.jsx(Lt,{title:"No scrape pools found",icon:l.jsx(gr,{}),children:"No scrape pools found."}):!a&&g.length!==b.length&&l.jsxs(Lt,{title:"Hiding pools with no matching targets",icon:l.jsx(gr,{}),children:["Hiding ",g.length-b.length," empty pools due to filters or no targets.",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>s(!0),children:"Show empty pools"})]}),f&&l.jsxs(Lt,{title:"Found many pools, showing only one",icon:l.jsx(gr,{}),withCloseButton:!0,onClose:()=>i(SI(!1)),children:["There are more than ",XK," scrape pools. Showing only the first one. Use the dropdown to select a different pool."]}),l.jsx(_r,{multiple:!0,variant:"separated",value:g.filter(S=>!d.includes(S)),onChange:S=>i(aP(g.filter(y=>!S.includes(y)))),children:b.map(S=>{const y=m[S];return l.jsxs(_r.Item,{value:S,children:[l.jsx(_r.Control,{children:l.jsxs(mt,{wrap:"nowrap",justify:"space-between",mr:"lg",children:[l.jsx(ht,{children:S}),l.jsxs(mt,{gap:"xs",children:[l.jsxs(ht,{c:"gray.6",children:[y.active," / ",y.total]}),l.jsx(Ty,{size:25,thickness:5,sections:y.total===0?[]:[{value:y.active/y.total*100,color:"green.4"},{value:(y.total-y.active)/y.total*100,color:"blue.6"}]})]})]})}),l.jsx(_r.Panel,{children:y.total===0?l.jsxs(Lt,{title:"No targets",icon:l.jsx(gr,{}),children:["No targets in this scrape pool.",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>s(!1),children:"Hide empty pools"})]}):y.targets.length===0?l.jsxs(Lt,{title:"No matching targets",icon:l.jsx(gr,{}),children:["No targets in this pool match your filter criteria (omitted"," ",y.total," filtered targets).",l.jsx(Ei,{ml:"md",fz:"1em",onClick:()=>s(!1),children:"Hide empty pools"})]}):l.jsx(j0,{allItems:y.targets,child:({items:E})=>l.jsxs(ae,{children:[l.jsx(ae.Thead,{children:l.jsxs(ae.Tr,{children:[l.jsx(ae.Th,{w:"50%",children:"Discovered labels"}),l.jsx(ae.Th,{w:"50%",children:"Target labels"})]})}),l.jsx(ae.Tbody,{children:E.map((x,C)=>l.jsxs(ae.Tr,{children:[l.jsx(ae.Td,{py:"lg",valign:"top",children:l.jsx(am,{labels:x.discoveredLabels,wrapper:Mn})}),l.jsx(ae.Td,{py:"lg",valign:x.isDropped?"middle":"top",children:x.isDropped?l.jsx(ht,{c:"blue.6",fw:"bold",children:"dropped due to relabeling rules"}):l.jsx(am,{labels:x.labels,wrapper:Mn})})]},C))})]})})})]},S)})})]})},XK=20;function ZDe(){const{data:{data:{scrapePools:t}}}=Fi({path:"/scrape_pools"}),e=Qc(),[n,r]=Ko("pool",Zf),[i,a]=Ko("state",Bc(tP,[])),[s,o]=Ko("search",Bc(Zf,"")),{collapsedPools:c,showLimitAlert:d}=Wl(p=>p.serviceDiscoveryPage),f=t.length>XK&&n===void 0;return f&&(r(t[0]),e(SI(!0))),l.jsxs(l.Fragment,{children:[l.jsxs(mt,{mb:"md",mt:"xs",children:[l.jsx(vm,{placeholder:"Select scrape pool",data:[{label:"All pools",value:""},...t],value:f&&t[0]||n||null,onChange:p=>{r(p),d&&e(SI(!1))},searchable:!0}),l.jsx(Jk,{options:["active","dropped"],optionClass:p=>p==="active"?Rn.healthOk:Rn.healthInfo,placeholder:"Filter by state",values:(i==null?void 0:i.filter(p=>p!==null))||[],onChange:p=>a(p)}),l.jsx(Wc,{flex:1,leftSection:l.jsx(th,{style:Rm}),placeholder:"Filter by labels",value:s||"",onChange:p=>o(p.currentTarget.value)}),l.jsx(jr,{size:"input-sm",title:c.length>0?"Expand all pools":"Collapse all pools",variant:"light",onClick:()=>e(aP(c.length>0?[]:t)),children:c.length>0?l.jsx(vH,{style:AE}):l.jsx(bH,{style:AE})})]}),l.jsx(Jp,{title:"Error showing target pools",children:l.jsx(I.Suspense,{fallback:l.jsx(Se,{mt:"lg",children:Array.from(Array(10),(p,m)=>l.jsx(Zo,{height:40,mb:15,width:1e3,mx:"auto"},m))}),children:l.jsx(XDe,{poolNames:t,selectedPool:f&&t[0]||n||null,stateFilter:i,searchFilter:s})})},location.pathname)]})}function JDe(){const{data:{data:{activeAlertmanagers:t,droppedAlertmanagers:e}}}=Fi({path:"/alertmanagers"});return l.jsxs(G0,{children:[l.jsx(Jf,{title:"Active Alertmanagers",icon:cL,children:t.length===0?l.jsx(Lt,{title:"No active alertmanagers",icon:l.jsx(gr,{}),children:"No active alertmanagers found."}):l.jsx(ae,{layout:"fixed",children:l.jsx(ae.Tbody,{children:t.map(n=>l.jsx(ae.Tr,{children:l.jsx(ae.Td,{children:l.jsx(bI,{endpoint:n.url,globalUrl:n.url})})},n.url))})})}),l.jsx(Jf,{title:"Dropped Alertmanagers",icon:zoe,children:e.length===0?l.jsx(Lt,{title:"No dropped alertmanagers",icon:l.jsx(gr,{}),children:"No dropped alertmanagers found."}):l.jsx(ae,{layout:"fixed",children:l.jsx(ae.Tbody,{children:e.map(n=>l.jsx(ae.Tr,{children:l.jsx(ae.Td,{children:l.jsx(bI,{endpoint:n.url,globalUrl:n.url})})},n.url))})})})]})}const eIe=new lue,tIe=[{title:"Query",path:"/query",icon:l.jsx(th,{style:Ua}),element:l.jsx(MK,{}),inAgentMode:!1},{title:"Alerts",path:"/alerts",icon:l.jsx(Sle,{style:Ua}),element:l.jsx(qK,{}),inAgentMode:!1}],ZK=[{title:"Target health",path:"/targets",icon:l.jsx(_H,{style:Ua}),element:l.jsx(B1e,{}),inAgentMode:!0},{title:"Rule health",path:"/rules",icon:l.jsx(EH,{style:Ua}),element:l.jsx(N1e,{}),inAgentMode:!1},{title:"Service discovery",path:"/service-discovery",icon:l.jsx(Zoe,{style:Ua}),element:l.jsx(ZDe,{}),inAgentMode:!0}],JK=[{title:"Runtime & build information",path:"/status",icon:l.jsx(gr,{style:Ua}),element:l.jsx(F1e,{}),inAgentMode:!0},{title:"TSDB status",path:"/tsdb-status",icon:l.jsx(Joe,{style:Ua}),element:l.jsx(U1e,{}),inAgentMode:!1},{title:"Command-line flags",path:"/flags",icon:l.jsx(nle,{style:Ua}),element:l.jsx($1e,{}),inAgentMode:!0},{title:"Configuration",path:"/config",icon:l.jsx(ule,{style:Ua}),element:l.jsx(ODe,{}),inAgentMode:!0},{title:"Alertmanager discovery",path:"/alertmanager-discovery",icon:l.jsx(cL,{style:Ua}),element:l.jsx(JDe,{}),inAgentMode:!1}],u5=[...ZK,...JK],nIe={colors:{"codebox-bg":["#f5f5f5","#e7e7e7","#cdcdcd","#b2b2b2","#9a9a9a","#8b8b8b","#848484","#717171","#656565","#575757"]}},$v="md";function rIe(){const[t,{toggle:e}]=NI(),{agentMode:n,consolesLink:r,pathPrefix:i}=yi(),a=l.jsxs(l.Fragment,{children:[r&&l.jsx(Ea,{component:"a",href:r,className:Wb.link,leftSection:l.jsx(ele,{style:Ua}),px:$v,children:"Consoles"}),tIe.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(Ea,{component:Hh,to:o.path,className:Wb.link,leftSection:o.icon,px:$v,children:o.title},o.path)),l.jsxs(hr,{shadow:"md",width:240,children:[l.jsxs(sF,{children:[u5.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(Du,{path:o.path,element:l.jsx(hr.Target,{children:l.jsxs(Ea,{component:Hh,to:o.path,className:Wb.link,leftSection:o.icon,rightSection:l.jsx(PS,{style:Ua}),px:$v,children:["Status ",l.jsx(hH,{style:Ua})," ",o.title]})})},o.path)),l.jsx(Du,{path:"*",element:l.jsx(hr.Target,{children:l.jsx(Ea,{component:Hh,to:"/",className:Wb.link,leftSection:l.jsx(dle,{style:Ua}),rightSection:l.jsx(PS,{style:Ua}),onClick:o=>{o.preventDefault()},px:$v,children:"Status"})})})]}),l.jsxs(hr.Dropdown,{children:[l.jsx(hr.Label,{children:"Monitoring status"}),ZK.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(hr.Item,{component:Hh,to:o.path,leftSection:o.icon,children:o.title},o.path)),l.jsx(hr.Divider,{}),l.jsx(hr.Label,{children:"Server status"}),JK.filter(o=>!n||o.inAgentMode).map(o=>l.jsx(hr.Item,{component:Hh,to:o.path,leftSection:o.icon,children:o.title},o.path))]})]})]}),s=l.jsxs(l.Fragment,{children:[l.jsx(NDe,{}),l.jsx(zDe,{}),l.jsx(ADe,{}),l.jsx(jr,{component:"a",href:"https://prometheus.io/docs/prometheus/latest/getting_started/",target:"_blank",color:"gray",title:"Documentation","aria-label":"Documentation",size:me(32),children:l.jsx(Hoe,{style:Zp})})]});return l.jsx(Fce,{basename:i,children:l.jsx(r1e,{adapter:YDe,children:l.jsxs(H5,{defaultColorScheme:"auto",theme:nIe,children:[l.jsx(Zc,{position:"top-right"}),l.jsx(fue,{client:eIe,children:l.jsxs(to,{header:{height:56},navbar:{width:300,breakpoint:"sm",collapsed:{desktop:!0,mobile:!t}},padding:"md",children:[l.jsxs($De,{children:[l.jsx(to.Header,{bg:"rgb(65, 73, 81)",c:"#fff",children:l.jsxs(mt,{h:"100%",px:"md",wrap:"nowrap",children:[l.jsxs(mt,{style:{flex:1},justify:"space-between",wrap:"nowrap",children:[l.jsxs(mt,{gap:40,wrap:"nowrap",children:[l.jsx(bL,{to:"/",style:{textDecoration:"none",color:"white"},children:l.jsxs(mt,{gap:10,wrap:"nowrap",children:[l.jsx("img",{src:IZ,height:30}),l.jsx(ht,{hiddenFrom:"sm",fz:20,children:"Prometheus"}),l.jsx(ht,{visibleFrom:"md",fz:20,children:"Prometheus"}),l.jsx(ht,{fz:20,children:n&&"Agent"})]})}),l.jsx(mt,{gap:12,visibleFrom:"sm",wrap:"nowrap",children:a})]}),l.jsx(mt,{visibleFrom:"xs",wrap:"nowrap",gap:"xs",children:s})]}),l.jsx(IM,{opened:t,onClick:e,hiddenFrom:"sm",size:"sm",color:"gray.2"})]})}),l.jsxs(to.Navbar,{py:"md",px:4,bg:"rgb(65, 73, 81)",c:"#fff",children:[a,l.jsx(mt,{mt:"md",hiddenFrom:"xs",justify:"center",children:s})]})]}),l.jsx(to.Main,{children:l.jsx(Jp,{children:l.jsx(I.Suspense,{fallback:l.jsx(Se,{mt:"lg",children:Array.from(Array(10),(o,c)=>l.jsx(Zo,{height:40,mb:15,width:1e3,mx:"auto"},c))}),children:l.jsxs(sF,{children:[l.jsx(Du,{path:"/",element:l.jsx(hce,{to:n?"/agent":"/query",replace:!0})}),n?l.jsx(Du,{path:"/agent",element:l.jsx(qv,{children:l.jsx(RDe,{})})}):l.jsxs(l.Fragment,{children:[l.jsx(Du,{path:"/query",element:l.jsx(qv,{children:l.jsx(MK,{})})}),l.jsx(Du,{path:"/alerts",element:l.jsx(qv,{children:l.jsx(qK,{})})})]}),u5.map(o=>l.jsx(Du,{path:o.path,element:l.jsx(qv,{children:o.element})},o.path))]})})},location.pathname)})]})})]})})})}const ET=(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},eX=jde(),yT=eX.startListening.withTypes();yT({actionCreator:rP,effect:({payload:t})=>{ET($K,t)}});yT({actionCreator:aP,effect:({payload:t})=>{ET(QK,t)}});yT({actionCreator:T9,effect:(t,{getState:e})=>{ET(E9,e().queryPage.queryHistory)}});yT({actionCreator:Cl,effect:({payload:t})=>{Object.entries(t).forEach(([e,n])=>{switch(e){case"useLocalTime":case"enableQueryHistory":case"enableAutocomplete":case"enableSyntaxHighlighting":case"enableLinter":case"showAnnotations":case"ruleGroupsPerPage":return ET(`settings.${e}`,n)}})}});const iIe=gde({reducer:{settings:fhe,queryPage:ife,targetsPage:w1e,serviceDiscoveryPage:VDe},middleware:t=>t().prepend(eX.middleware)});wZ.createRoot(document.getElementById("root")).render(l.jsx(xn.StrictMode,{children:l.jsx(jue,{store:iIe,children:l.jsx(rIe,{})})}));
